2014-09-23 09:41:37 -04:00
|
|
|
.label {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0.3em 0.8em;
|
|
|
|
font-size: $font-size-small;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
border-radius: 1em;
|
|
|
|
white-space: nowrap;
|
|
|
|
background-color: $color-main;
|
|
|
|
color: $color-main-text;
|
|
|
|
transition: background-color 0.3s;
|
|
|
|
|
|
|
|
& > svg {
|
|
|
|
display: inline-block;
|
2014-11-10 08:46:18 -05:00
|
|
|
fill: $color-main-text;
|
2014-09-23 09:41:37 -04:00
|
|
|
width: 1.5em;
|
2014-11-10 08:46:18 -05:00
|
|
|
height: 1.3em;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-top: -0.1em; // move upwards to optimize vertical alignment with label text
|
2014-09-23 09:41:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&--invalid {
|
2014-11-10 08:46:18 -05:00
|
|
|
background-color: $color-error-area;
|
2014-09-23 09:41:37 -04:00
|
|
|
color: $color-error-text;
|
|
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAJUlEQVQIW2NkQABJIPM5lCvJCGMgC4LYIAkUlTAFMB0gjRQaBQCw8go5lVnl5wAAAABJRU5ErkJggg==);
|
|
|
|
|
|
|
|
& > svg {
|
2014-11-10 08:46:18 -05:00
|
|
|
fill: $color-error-text;
|
2014-09-23 09:41:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@include scut-hd-bp {
|
|
|
|
background-size: 3px 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--invalid-clickable {
|
2014-11-10 08:46:18 -05:00
|
|
|
cursor: pointer;
|
2014-09-23 09:41:37 -04:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2014-11-10 08:46:18 -05:00
|
|
|
background-color: lighten($color-error-area, 5%);
|
2014-09-23 09:41:37 -04:00
|
|
|
}
|
|
|
|
|
2014-11-10 08:46:18 -05:00
|
|
|
&:active {
|
|
|
|
transform: translateX(1px) translateY(1px);
|
2014-09-23 09:41:37 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--blank {
|
|
|
|
background-color: transparent;
|
|
|
|
color: $color-black;
|
|
|
|
text-align: left;
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
|
|
|
|
& > svg {
|
|
|
|
fill: $color-black;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|