overleaf/services/web/frontend/stylesheets/bootstrap-5/base/typography.scss
Rebeka Dekany f8efc3e2ae Merge pull request #20740 from overleaf/rd-ide-offcanvas
[web] Implement the editor's left menu in Offcanvas

GitOrigin-RevId: 999e995d664b1dc958f56643f05e95b8aa2d6290
2024-10-14 11:09:31 +00:00

95 lines
1.2 KiB
SCSS

// Typography
body {
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility; /* stylelint-disable-line value-keyword-case */
-moz-osx-font-smoothing: grayscale;
}
// Headings
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
// Apply margin above the heading only when it has a preceding sibling or is inside a row with a preceding sibling
* > * + &,
* + .row & {
margin-top: $spacing-08;
}
}
h1,
.h1 {
@include heading-xl;
}
h2,
.h2 {
@include heading-md;
}
h3,
.h3 {
@include heading-sm;
}
h4,
.h4 {
@include heading-xs;
}
h5,
.h5 {
@include body-base;
}
h6,
.h6 {
@include body-sm;
}
// Miscellaneous
.small {
@include body-sm;
}
// Peformatted text, sample output, code, keyboard input elements
// E.g.: Git authentication token
code,
kbd,
pre,
samp {
@include body-base;
}
.list-style-check-green {
list-style-image: url('../../../../public/img/fa-check-green.svg');
}
.text-center {
text-align: center;
}
.text-muted {
color: var(--content-disabled) !important;
}
@include media-breakpoint-up(lg) {
.text-center-only-desktop {
text-align: center;
}
}
@include media-breakpoint-down(lg) {
.text-center-only-mobile {
text-align: center;
}
}