Skip to content

Commit 3386821

Browse files
committed
css updates
1 parent 133212e commit 3386821

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

src/css/custom.css

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ html,
2424
body {
2525
font-weight: var(--ifm-font-weight-normal);
2626
letter-spacing: -0.011rem;
27-
line-height: 1.45;
27+
line-height: 1.625;
2828
-webkit-font-smoothing: antialiased;
2929
-moz-osx-font-smoothing: grayscale;
3030
}
@@ -331,7 +331,7 @@ html[data-theme='light'] body {
331331
--st-text: var(--st-gray-800);
332332
--st-text-highlight: var(--st-gray-900);
333333
--st-heading: var(--st-text-highlight);
334-
--st-text-secondary: var(--st-gray-700);
334+
--st-text-secondary: var(--st-gray-600);
335335
--st-text-link: var(--st-blue-700);
336336
--st-text-link-hover: var(--st-blue-600);
337337
--st-text-link-active: var(--st-blue-500);
@@ -481,9 +481,9 @@ html[data-theme='dark'] body {
481481
--st-background: var(--st-gray-900);
482482
--st-background-secondary: var(--st-gray-800);
483483
--st-text: var(--st-gray-200);
484-
--st-text-highlight: var(--st-gray-100);
484+
--st-text-highlight: var(--st-gray-50);
485485
--st-heading: var(--st-text-highlight);
486-
--st-text-secondary: var(--st-gray-200);
486+
--st-text-secondary: var(--st-gray-400);
487487
--st-text-link: var(--st-blue-300);
488488
--st-text-link-hover: var(--st-blue-400);
489489
--st-text-link-active: var(--st-blue-400);
@@ -664,39 +664,41 @@ h1 {
664664
}
665665

666666
.markdown h1, .markdown h1:first-child, .index-page h1 {
667-
--ifm-h1-font-size: 1.875rem;
667+
--ifm-h1-font-size: 2rem;
668668
}
669669

670670
h2 {
671671
letter-spacing: -0.021rem;
672672
}
673673

674674
.markdown h2 {
675-
--ifm-h2-font-size: 2rem;
675+
margin-top: 4.5rem;
676+
--ifm-h2-font-size: 1.5rem;
676677
}
677678

678679
h3 {
679680
letter-spacing: -0.019rem;
681+
color: var(--st-heading);
680682
}
681683

682684
.markdown h3 {
683-
--ifm-h3-font-size: 1.5rem;
685+
--ifm-h3-font-size: 1.25rem;
684686
}
685687

686688
.markdown > h3 {
687-
margin-top: calc(var(--ifm-h2-vertical-rhythm-top) * var(--ifm-leading));
689+
margin-top: 3rem;
688690
}
689691

690692
.markdown h4 {
691-
--ifm-h4-font-size: 1.2rem;
693+
--ifm-h4-font-size: 1.15rem;
692694
}
693695

694696
.markdown h5 {
695-
--ifm-h5-font-size: 1.1rem;
697+
--ifm-h5-font-size: 1.05rem;
696698
}
697699

698700
.markdown h6 {
699-
--ifm-h6-font-size: 1.05rem;
701+
--ifm-h6-font-size: 1rem;
700702
}
701703

702704
.text--bold,
@@ -786,6 +788,9 @@ article,
786788
.index-page {
787789
margin: 0 auto;
788790
max-width: 50rem;
791+
/* adds more side padding when in column mode */
792+
padding-left: 0.5rem;
793+
padding-right: 0.5rem;
789794
}
790795

791796
/* back to top button */
@@ -850,6 +855,11 @@ code {
850855
margin-right: 0;
851856
width: calc(var(--doc-sidebar-width) - 1rem);
852857
}
858+
article, .index-page {
859+
/* Let content breath some on a not-huge screen */
860+
padding-left: 2rem;
861+
padding-right: 2rem;
862+
}
853863
}
854864

855865
.navbar__logo {
@@ -1113,6 +1123,7 @@ html [class*='toggleButton'] {
11131123
}
11141124
.menu__list-item:last-of-type {
11151125
padding-bottom: 0.2rem;
1126+
margin-bottom: 0.5rem;
11161127
}
11171128
.menu__list-item:not(:first-child) {
11181129
margin-top: 0;
@@ -1164,6 +1175,7 @@ html [class*='toggleButton'] {
11641175
.menu__list-item .menu__list-item .menu__link--active {
11651176
border-left: 3px solid var(--st-menu-link-border-active);
11661177
margin-left: -4px;
1178+
color: var(--ifm-color-emphasis-0);
11671179
}
11681180

11691181
.menu__list-item .menu__list-item .menu__list-item .menu__link--active {

0 commit comments

Comments
 (0)