Created
August 5, 2020 14:18
-
-
Save TheGreyDiamond/aeebcf109ec0c44245a1fa12749c4dd6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.attention-active { | |
animation-name: attention; | |
animation-duration: 3s; | |
animation-iteration-count: infinite; | |
margin: 0px; | |
padding: 0px; | |
} | |
@keyframes attention { | |
20% {background-color: transparent;} | |
60% {background-color: {{config.highlightColor;}}} /* #CCCC00 */ | |
} | |
.attention-table { | |
display: flex; | |
flex-direction: column; | |
width: 100%; | |
height: 200%; | |
margin: 0px; | |
padding: 0px; | |
} | |
.attention-table-cell { | |
padding: 5px; | |
width: 50%; | |
} | |
.attention-table-btn { | |
width: 100%; | |
} | |
</style> | |
<div class="attention-table" ng-class="(config.attentionValue <= itemState(config.item)) ? 'attention-active' : ''"> | |
<div> | |
{{ngModel.name}} | |
</div> | |
<span class="value">{{itemState(config.item)}}</span> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment