2024-09-16 11:27:09 -04:00
|
|
|
.text-with-bg {
|
|
|
|
@extend .dm-mono;
|
|
|
|
|
2024-09-18 10:36:08 -04:00
|
|
|
padding: 0 var(--spacing-04);
|
|
|
|
border-radius: var(--border-radius-medium);
|
|
|
|
margin-top: var(--spacing-02);
|
2024-09-16 11:27:09 -04:00
|
|
|
|
|
|
|
// will make all spans content inline while avoiding overflowing the viewport in mobile
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/display#flow-root
|
|
|
|
// https://css-tricks.com/display-flow-root/
|
|
|
|
display: inline flow-root;
|
|
|
|
|
|
|
|
&.tangerine-bg {
|
|
|
|
background-color: var(--vivid-tangerine);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.purple-bg {
|
|
|
|
background-color: var(--ceil);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.yellow-bg {
|
|
|
|
background-color: var(--caramel);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.green-bg {
|
|
|
|
background-color: var(--green-30);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mono-text {
|
|
|
|
@extend .dm-mono;
|
|
|
|
@include body-lg;
|
|
|
|
|
|
|
|
color: var(--green-60);
|
|
|
|
font-weight: 500;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5 {
|
|
|
|
> span.mono-text {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: var(--spacing-04);
|
|
|
|
}
|
|
|
|
}
|