components/sass/badge/_index.scss

58 lines
1 KiB
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: var(--lbry-yellow-2);
color: var(--lbry-black);
2018-12-06 18:48:18 +01:00
[data-mode="dark"] & {
background-color: var(--lbry-yellow-3);
}
2018-12-06 18:48:18 +01:00
}
2018-12-06 18:48:18 +01:00
.badge--free {
background-color: var(--lbry-blue-2);
2018-12-06 18:48:18 +01:00
[data-mode="dark"] & {
background-color: var(--lbry-blue-3);
color: var(--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: var(--lbry-grape-2);
2018-12-06 18:48:18 +01:00
[data-mode="dark"] & {
background-color: var(--lbry-grape-3);
color: var(--lbry-black);
}
}
2019-01-23 23:54:30 +01:00
.badge--primary {
background-color: var(--lbry-teal-5);
color: var(--lbry-white);
2019-01-23 23:54:30 +01:00
}
2019-02-13 17:37:50 +01:00
.badge--alert {
background-color: var(--lbry-red-2);
color: var(--lbry-white);
2019-02-13 17:37:50 +01:00
}