Skip to content

Commit 5e06bb2

Browse files
update main css
1 parent 743cdbf commit 5e06bb2

File tree

1 file changed

+192
-7
lines changed

1 file changed

+192
-7
lines changed

_sass/_main.scss

Lines changed: 192 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
}
1010

1111
body {
12-
font-family: system-ui, sans-serif;
12+
font-family: Inter, SF Pro, Segoe UI, Roboto, Oxygen, Ubuntu, Helvetica Neue, Helvetica, Arial, sans-serif;
1313
-webkit-font-smoothing: antialiased;
1414
text-rendering: optimizeLegibility;
15-
line-height: 1.5;
15+
line-height: 1.7;
1616
font-size: 1rem;
1717
color: rgb(22, 23, 26);
1818
}
@@ -248,11 +248,6 @@ main {
248248
font-weight: bold;
249249
}
250250

251-
h1 {
252-
font-weight: 700;
253-
font-size: 28px;
254-
}
255-
256251
.post a {
257252
overflow-wrap: break-word;
258253
}
@@ -365,3 +360,193 @@ figcaption {
365360
display: none !important;
366361
}
367362
}
363+
364+
.post > h1 {
365+
font-size: 2.125em;
366+
margin-bottom: .5em;
367+
line-height: 36px;
368+
}
369+
370+
.content {
371+
--content-heading-weight: var(--weight-extrabold);
372+
--content-heading-line-height: 1.125;
373+
--content-block-margin-bottom: 1em;
374+
--content-blockquote-padding: 1.25em 1.5em;
375+
--content-pre-padding: 1.25em 1.5em;
376+
--content-table-cell-border-width: 0 0 1px;
377+
--content-table-cell-padding: 0.5em 0.75em;
378+
--content-table-head-cell-border-width: 0 0 2px;
379+
--content-table-body-last-row-cell-border-bottom-width: 0;
380+
--content-table-foot-cell-border-width: 2px 0 0;
381+
}
382+
383+
.content li + li {
384+
margin-top: 0.25em;
385+
}
386+
.content p:not(:last-child),
387+
.content dl:not(:last-child),
388+
.content ol:not(:last-child),
389+
.content ul:not(:last-child),
390+
.content blockquote:not(:last-child),
391+
.content pre:not(:last-child),
392+
.content table:not(:last-child) {
393+
margin-bottom: var(--content-block-margin-bottom);
394+
}
395+
.content h1,
396+
.content h2,
397+
.content h3,
398+
.content h4,
399+
.content h5,
400+
.content h6 {
401+
font-weight: var(--content-heading-weight);
402+
line-height: var(--content-heading-line-height);
403+
}
404+
.content h1 {
405+
font-size: 2em;
406+
margin-bottom: 0.5em;
407+
}
408+
.content h1:not(:first-child) {
409+
margin-top: 1em;
410+
}
411+
.content h2 {
412+
font-size: 1.75em;
413+
margin-bottom: 0.5714em;
414+
}
415+
.content h2:not(:first-child) {
416+
margin-top: 1.1428em;
417+
}
418+
.content h3 {
419+
font-size: 1.5em;
420+
margin-bottom: 0.6666em;
421+
}
422+
.content h3:not(:first-child) {
423+
margin-top: 1.3333em;
424+
}
425+
.content h4 {
426+
font-size: 1.25em;
427+
margin-bottom: 0.8em;
428+
}
429+
.content h5 {
430+
font-size: 1.125em;
431+
margin-bottom: 0.8888em;
432+
}
433+
.content h6 {
434+
font-size: 1em;
435+
margin-bottom: 1em;
436+
}
437+
.content blockquote {
438+
padding: var(--content-blockquote-padding);
439+
}
440+
.content ol {
441+
list-style-position: outside;
442+
margin-inline-start: 2em;
443+
}
444+
.content ol:not(:first-child) {
445+
margin-top: 1em;
446+
}
447+
.content ol:not([type]) {
448+
list-style-type: decimal;
449+
}
450+
.content ol:not([type]).is-lower-alpha {
451+
list-style-type: lower-alpha;
452+
}
453+
.content ol:not([type]).is-lower-roman {
454+
list-style-type: lower-roman;
455+
}
456+
.content ol:not([type]).is-upper-alpha {
457+
list-style-type: upper-alpha;
458+
}
459+
.content ol:not([type]).is-upper-roman {
460+
list-style-type: upper-roman;
461+
}
462+
.content ul {
463+
list-style: disc outside;
464+
margin-inline-start: 2em;
465+
}
466+
.content ul:not(:first-child) {
467+
margin-top: 1em;
468+
}
469+
.content ul ul {
470+
list-style-type: circle;
471+
margin-bottom: 0.25em;
472+
margin-top: 0.25em;
473+
}
474+
.content ul ul ul {
475+
list-style-type: square;
476+
}
477+
.content dd {
478+
margin-inline-start: 2em;
479+
}
480+
.content figure:not([class]) {
481+
margin-left: 2em;
482+
margin-right: 2em;
483+
text-align: center;
484+
}
485+
.content figure:not([class]):not(:first-child) {
486+
margin-top: 2em;
487+
}
488+
.content figure:not([class]):not(:last-child) {
489+
margin-bottom: 2em;
490+
}
491+
.content figure:not([class]) img {
492+
display: inline-block;
493+
}
494+
.content figure:not([class]) figcaption {
495+
font-style: italic;
496+
}
497+
.content pre {
498+
-webkit-overflow-scrolling: touch;
499+
overflow-x: auto;
500+
padding: var(--content-pre-padding);
501+
white-space: pre;
502+
word-wrap: normal;
503+
}
504+
.content sup,
505+
.content sub {
506+
font-size: 75%;
507+
}
508+
.content table td,
509+
.content table th {
510+
border-width: var(--content-table-cell-border-width);
511+
padding: var(--content-table-cell-padding);
512+
vertical-align: top;
513+
}
514+
.content table th:not([align]) {
515+
text-align: inherit;
516+
}
517+
.content table thead td,
518+
.content table thead th {
519+
border-width: var(--content-table-head-cell-border-width);
520+
}
521+
.content table tfoot td,
522+
.content table tfoot th {
523+
border-width: var(--content-table-foot-cell-border-width);
524+
}
525+
.content table tbody tr:last-child td,
526+
.content table tbody tr:last-child th {
527+
border-bottom-width: var(--content-table-body-last-row-cell-border-bottom-width);
528+
}
529+
.content .tabs li + li {
530+
margin-top: 0;
531+
}
532+
.content.is-small {
533+
font-size: var(--size-small);
534+
}
535+
.content.is-normal {
536+
font-size: var(--size-normal);
537+
}
538+
.content.is-medium {
539+
font-size: var(--size-medium);
540+
}
541+
.content.is-large {
542+
font-size: var(--size-large);
543+
}
544+
545+
:root {
546+
--weight-light: 300;
547+
--weight-normal: 400;
548+
--weight-medium: 500;
549+
--weight-semibold: 600;
550+
--weight-bold: 700;
551+
--weight-extrabold: 800;
552+
}

0 commit comments

Comments
 (0)