components/sass/badge/_index.scss

58 lines
964 B
SCSS
Raw Normal View History

.badge {
font-weight: 600;
vertical-align: top;
white-space: nowrap;
2018-12-06 18:48:18 +01:00
&:not(.badge--large) {
border-radius: 0.2rem;
display: inline-block;
font-size: 0.8rem;
letter-spacing: 0.05rem;
line-height: 2;
2018-12-31 21:10:58 +01:00
padding-right: var(--spacing-xs);
padding-left: var(--spacing-xs);
}
2018-12-06 18:48:18 +01:00
}
2018-12-06 18:48:18 +01:00
.badge--cost:not(.badge--large) {
background-color: $lbry-yellow-2;
2019-02-13 17:37:50 +01:00
color: $lbry-black;
2018-12-06 18:48:18 +01:00
[data-mode="dark"] & {
background-color: $lbry-yellow-3;
}
2018-12-06 18:48:18 +01:00
}
2018-12-06 18:48:18 +01:00
.badge--free {
background-color: $lbry-blue-2;
2018-12-06 18:48:18 +01:00
[data-mode="dark"] & {
background-color: $lbry-blue-3;
color: $lbry-black;
}
2018-12-06 18:48:18 +01:00
}
2018-12-06 18:48:18 +01:00
.badge--large {
2019-02-13 17:37:50 +01:00
font-size: 4rem;
2018-12-06 18:48:18 +01:00
line-height: 1;
}
2018-12-06 18:48:18 +01:00
.badge--nsfw {
background-color: $lbry-grape-2;
2018-12-06 18:48:18 +01:00
[data-mode="dark"] & {
background-color: $lbry-grape-3;
color: $lbry-black;
}
}
2019-01-23 23:54:30 +01:00
.badge--primary {
background-color: $lbry-teal-5;
color: $lbry-white;
}
2019-02-13 17:37:50 +01:00
.badge--alert {
background-color: $lbry-red-2;
color: $lbry-white;
}