Skip to content

Instantly share code, notes, and snippets.

@TheGreyDiamond
Created August 5, 2020 14:18
Show Gist options
  • Save TheGreyDiamond/aeebcf109ec0c44245a1fa12749c4dd6 to your computer and use it in GitHub Desktop.
Save TheGreyDiamond/aeebcf109ec0c44245a1fa12749c4dd6 to your computer and use it in GitHub Desktop.
<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