1
0
mirror of https://github.com/moparisthebest/mail synced 2024-08-13 16:43:47 -04:00
mail/src/sass/blocks/basics/_labels.scss

61 lines
1.4 KiB
SCSS
Raw Normal View History

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;
fill: $color-main-text;
2014-09-23 09:41:37 -04:00
width: 1.5em;
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 {
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 {
fill: $color-error-text;
2014-09-23 09:41:37 -04:00
}
@include scut-hd-bp {
background-size: 3px 3px;
}
}
&--invalid-clickable {
cursor: pointer;
2014-09-23 09:41:37 -04:00
&:hover,
&:focus {
background-color: lighten($color-error-area, 5%);
2014-09-23 09:41:37 -04: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;
}
}
}