mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 20:13:46 -05:00
3746abc640
[web] Copy text rendering CSS from BS3 for BS5 GitOrigin-RevId: a07fdc70aa0da6096f349c61ea6d74546724844a
75 lines
943 B
SCSS
75 lines
943 B
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');
|
|
}
|