5 body, button, input, select, label, textarea {
6 font-family: var(--font-body);
8 pre, #markdown-editor-input, .text-mono, .code-base {
9 font-family: var(--font-code);
18 line-height: 1.22222222em;
19 margin-top: 0.48888889em;
20 margin-bottom: 0.48888889em;
24 line-height: 1.294117647em;
25 margin-top: 0.8627451em;
26 margin-bottom: 0.43137255em;
30 line-height: 1.221428572em;
31 margin-top: 0.78571429em;
32 margin-bottom: 0.43137255em;
37 margin-top: 0.78571429em;
38 margin-bottom: 0.43137255em;
41 h1, h2, h3, h4, h5, h6 {
45 font-family: var(--font-heading, var(--font-body));
46 @include lightDark(color, #222, #BBB);
55 margin-top: 0.78571429em;
56 margin-bottom: 0.66em;
59 @include smaller-than($s) {
73 font-size: 1.161616em;
89 color: var(--color-link);
92 text-decoration: none;
93 transition: filter ease-in-out 80ms;
96 text-decoration: underline;
99 display: inline-block;
103 display: inline-block;
105 &:focus img:only-child {
106 outline: 2px dashed var(--color-link);
114 text-decoration: none;
126 * Other HTML Text Elements
128 p, ul, ol, pre, table, blockquote {
130 margin-bottom: 1.375em;
136 @include lightDark(background, #eaeaea, #555);
139 background-image: linear-gradient(to right, #FFF, #e3e0e0 20%, #e3e0e0 80%, #FFF);
142 @include lightDark(background, #DDD, #666);
144 &.margin-top, &.even {
149 strong, b, .bold, .strong {
151 > strong, > b, > .bold, > .strong {
160 small, p.small, span.small, .text-small {
165 vertical-align: super;
176 border: 1px solid #DDD;
177 @include lightDark(background-color, #FFF, #2B2B2B);
178 @include lightDark(border-color, #DDD, #111);
180 padding-inline-start: 26px;
190 inset-inline-start: 0;
192 @include lightDark(background-color, #f5f5f5, #313335);
193 @include lightDark(border-inline-end, 1px solid #DDD, none);
209 border-left: 4px solid transparent;
210 border-left-color: var(--color-primary);
211 @include lightDark(background-color, #f8f8f8, #333);
212 padding: $-s $-m $-s $-xl;
226 font-family: var(--font-code);
230 text-transform: uppercase;
234 text-transform: capitalize;
239 border: 1px solid #DDD;
241 @include lightDark(background-color, #f8f8f8, #2b2b2b);
242 @include lightDark(border-color, #DDD, #444);
249 white-space:pre-wrap;
259 background-color: transparent;
275 padding-left: $-m * 2.0;
276 padding-right: $-m * 2.0;
300 margin-block-start: 0;
301 padding-block-end: 0;
302 padding-block-start: 0;
303 padding-left: $-m * 1.2;
304 padding-right: $-m * 1.2;
309 * Some styles duplicated for supporting logical units (eg. inline-end) while
310 * providing fallbacks to non-logical rules, so RTL is natively supported where possible.
312 li.checkbox-item, li.task-list-item {
315 margin-left: -($-m * 1.2);
316 margin-inline-start: -($-m * 1.2);
317 margin-inline-end: 0;
318 input[type="checkbox"] {
320 margin-inline-end: $-xs;
321 margin-inline-start: 0;
323 li.checkbox-item, li.task-list-item {
325 margin-inline-start: $-xs;
326 margin-inline-end: 0;
331 * Generic text styling classes
334 text-decoration: underline;
347 @each $sizeLetter, $size in $screen-sizes {
348 @include larger-than($size) {
349 .text-#{$sizeLetter}-center {
352 .text-#{$sizeLetter}-left {
355 .text-#{$sizeLetter}-right {
375 word-wrap: break-word;
376 overflow-wrap: break-word;
379 .text-limit-lines-1 {
382 text-overflow: ellipsis;
385 .text-limit-lines-2 {
386 // -webkit use here is actually standardised cross-browser:
387 // https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp
388 display: -webkit-box;
389 -webkit-box-orient: vertical;
390 -webkit-line-clamp: 2;
399 h1, h2, h3, h4, h5, h6 {
419 display: inline-block;
422 margin-inline-end: $-xs;
423 pointer-events: none;