Files
overleaf-cep/services/web/frontend/stylesheets/components/styled-text.scss
Rebeka Dekany 3f11776ecd Remove LESS stylesheets and dependencies (#27409)
* Remove components, core and modules LESS stylesheets

* Remove variables LESS stylesheets

* Remove app LESS stylesheets

* Remove github-sync, onboarding LESS stylesheets

* Remove main-light and IEEE LESS stylesheets

* Remove Less loader configuration

* Remove bootstrap-3 entrypoint

* Rename bootstrap-5 entrypoint to bootstrap

* Remove bootstrap-5 CSS folder and move stylesheets

* Update CSS variables

* Restore and update github-sync.scss path

* Fix try-premium.scss path and fix undefined mixin error

* Restore entrypoints

* Simplify buildCssPath to always use main-style.css

* Remove less from prettier formatting scripts

* Remove less from addHook extension

* Source format

* Remove nvd3 file reference from prettierignore (equivalent of nvd3.scss)

* Remove less and less-loader

* Add SCSS files to pirates require hook

GitOrigin-RevId: bd83c79f4d6ef7305d75993959a4dc5e7714ef9c
2025-08-06 08:05:38 +00:00

58 lines
1.1 KiB
SCSS

.text-with-bg {
@include font-mono;
padding: 0 var(--spacing-04);
border-radius: var(--border-radius-medium);
margin-top: var(--spacing-02);
// 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 {
@include font-mono;
@include body-lg;
color: var(--green-60);
font-weight: 500;
margin: 0;
}
.eyebrow-text {
@extend .mono-text;
display: block;
margin-bottom: var(--spacing-04);
}
p:has(.eyebrow-text) {
margin-bottom: 0;
}
p:has(.eyebrow-text) + h1,
p:has(.eyebrow-text) + h2,
p:has(.eyebrow-text) + h3,
p:has(.eyebrow-text) + h4,
p:has(.eyebrow-text) + h5,
p:has(.eyebrow-text) + h6 {
margin-top: 0;
}