@@ -63,6 +63,7 @@ production stylesheet in assets/built/screen.css
63
63
--color-border : rgb (0 0 0 / 0.08 );
64
64
--font-sans : Inter, -apple-system, BlinkMacSystemFont, "Segoe UI" , "Roboto" , "Oxygen" , "Ubuntu" , "Cantarell" , "Fira Sans" , "Droid Sans" , "Helvetica Neue" , sans-serif;
65
65
--font-serif : "EB Garamond" , Georgia, Times, serif;
66
+ --font-serif-alt : Georgia, Times, serif;
66
67
--font-slab : "Roboto Slab" , Georgia, Times, serif;
67
68
--font-mono : Menlo, Courier, monospace;
68
69
--container-width : 1320px ;
@@ -303,8 +304,7 @@ a:hover {
303
304
304
305
.gh-navigation-logo {
305
306
position : relative;
306
- font-size : 2.6rem ;
307
- font-weight : 750 ;
307
+ font-size : calc (2.6rem * var (--factor , 1 ));
308
308
letter-spacing : -0.015em ;
309
309
white-space : nowrap;
310
310
}
@@ -778,8 +778,7 @@ Search LOGO Login Subscribe
778
778
}
779
779
780
780
.gh-card-title {
781
- font-size : 2.1rem ;
782
- font-weight : 800 ;
781
+ font-size : calc (2.1rem * var (--factor , 1 ));
783
782
letter-spacing : -0.014em ;
784
783
}
785
784
@@ -1025,7 +1024,8 @@ Search LOGO Login Subscribe
1025
1024
1026
1025
.gh-header .is-classic {
1027
1026
display : flex;
1028
- min-height : calc (100vh - 100px - 240px );
1027
+ margin-top : 0 ;
1028
+ padding-block : 160px ;
1029
1029
}
1030
1030
1031
1031
.gh-header .is-classic .gh-header-inner {
@@ -1039,8 +1039,7 @@ Search LOGO Login Subscribe
1039
1039
}
1040
1040
1041
1041
.gh-header .is-classic .gh-header-title {
1042
- font-size : clamp (3.2rem , 3.18vw + 1.93rem , 6rem );
1043
- font-weight : 750 ;
1042
+ font-size : calc (clamp (3.2rem , 3.18vw + 1.93rem , 6rem ) * var (--factor , 1 ));
1044
1043
line-height : 1.1 ;
1045
1044
letter-spacing : -0.022em ;
1046
1045
}
@@ -1212,10 +1211,6 @@ Search LOGO Login Subscribe
1212
1211
font-weight : 600 ;
1213
1212
}
1214
1213
1215
- .gh-header .is-classic ~ .gh-cta {
1216
- display : none;
1217
- }
1218
-
1219
1214
/* 10. Featured posts
1220
1215
/* ---------------------------------------------------------- */
1221
1216
@@ -1300,11 +1295,15 @@ Search LOGO Login Subscribe
1300
1295
margin-top : 100px ;
1301
1296
}
1302
1297
1298
+ .gh-header .is-classic : not (.has-image ) ~ .gh-container {
1299
+ margin-top : 0 ;
1300
+ }
1301
+
1303
1302
.gh-more {
1304
1303
display : none;
1305
1304
grid-column : 1 / -1 ;
1306
1305
margin-top : 48px ;
1307
- font-size : 2.4rem ;
1306
+ font-size : calc ( 2.4rem * var ( --factor , 1 )) ;
1308
1307
font-weight : 750 ;
1309
1308
letter-spacing : -0.019em ;
1310
1309
}
@@ -1340,7 +1339,7 @@ Search LOGO Login Subscribe
1340
1339
1341
1340
/* 11.2. Without sidebar */
1342
1341
1343
- .gh-container : not (.has-sidebar ) .gh-main {
1342
+ .gh-container : not (.has-sidebar ) : is ( .gh-container-title , . gh- main, . gh-more ) {
1344
1343
grid-column : 3 / span 12 ;
1345
1344
}
1346
1345
@@ -1358,6 +1357,10 @@ Search LOGO Login Subscribe
1358
1357
border-bottom : 1px solid var (--color-border );
1359
1358
}
1360
1359
1360
+ .gh-container-title : has (+ .gh-main : not (: has (.gh-card ))) {
1361
+ display : none;
1362
+ }
1363
+
1361
1364
.gh-container .gh-feed {
1362
1365
gap : var (--grid-gap );
1363
1366
}
@@ -1466,8 +1469,7 @@ Search LOGO Login Subscribe
1466
1469
}
1467
1470
1468
1471
.gh-about-title {
1469
- font-size : 2.4rem ;
1470
- font-weight : 800 ;
1472
+ font-size : calc (2.4rem * var (--factor , 1 ));
1471
1473
letter-spacing : -0.019em ;
1472
1474
}
1473
1475
@@ -1493,7 +1495,7 @@ Search LOGO Login Subscribe
1493
1495
}
1494
1496
1495
1497
.gh-article-header {
1496
- margin : 40 px 0 ;
1498
+ margin : 72 px 0 40 px ;
1497
1499
}
1498
1500
1499
1501
.gh-article-tag {
@@ -1506,8 +1508,7 @@ Search LOGO Login Subscribe
1506
1508
}
1507
1509
1508
1510
.gh-article-title {
1509
- font-size : clamp (3.2rem , 1.59vw + 2.56rem , 4.6rem );
1510
- font-weight : 750 ;
1511
+ font-size : calc (clamp (3.2rem , 1.59vw + 2.56rem , 4.6rem ) * var (--factor , 1 ));
1511
1512
line-height : 1.05 ;
1512
1513
letter-spacing : -0.022em ;
1513
1514
}
@@ -1813,6 +1814,10 @@ unless a heading is the very first element in the post content */
1813
1814
font-family : var (--font-serif );
1814
1815
}
1815
1816
1817
+ .has-slab-title .kg-toggle-card .kg-toggle-heading-text {
1818
+ font-family : var (--font-slab );
1819
+ }
1820
+
1816
1821
/* Callout */
1817
1822
1818
1823
.kg-callout-card .kg-card {
@@ -1848,6 +1853,10 @@ blockquote.kg-blockquote-alt {
1848
1853
font-family : var (--font-serif );
1849
1854
}
1850
1855
1856
+ .has-slab-title .kg-card .kg-header-card h2 .kg-header-card-header {
1857
+ font-family : var (--font-slab );
1858
+ }
1859
+
1851
1860
.has-serif-body .kg-header-card h3 .kg-header-card-subheader {
1852
1861
font-family : var (--font-serif );
1853
1862
}
@@ -1858,6 +1867,10 @@ blockquote.kg-blockquote-alt {
1858
1867
border-radius : 0.25em !important ;
1859
1868
}
1860
1869
1870
+ .kg-bookmark-card .kg-bookmark-container : hover {
1871
+ opacity : 1 ;
1872
+ }
1873
+
1861
1874
.kg-bookmark-card .kg-bookmark-content {
1862
1875
padding : 1.15em ;
1863
1876
}
@@ -1891,12 +1904,18 @@ blockquote.kg-blockquote-alt {
1891
1904
margin-top : 12px ;
1892
1905
}
1893
1906
1894
- .is-font-serif .kg-product-card .kg-card .kg-product-card-title ,
1895
- .is-font-serif .kg-product-card .kg-card .kg-product-card-description : is (p , ul , ol ),
1896
- .is-font-serif .kg-product-card .kg-card .kg-product-card-button {
1907
+ .has-serif-title .kg-product-card .kg-card .kg-product-card-title {
1897
1908
font-family : var (--font-serif );
1898
1909
}
1899
1910
1911
+ .has-slab-title .kg-product-card .kg-card .kg-product-card-title {
1912
+ font-family : var (--font-slab );
1913
+ }
1914
+
1915
+ .has-serif-body .kg-product-card-description : is (p , ul , ol ) {
1916
+ font-family : var (--font-serif-alt );
1917
+ }
1918
+
1900
1919
/* File */
1901
1920
1902
1921
.kg-file-card .kg-card .kg-file-card-container {
@@ -1920,7 +1939,7 @@ blockquote.kg-blockquote-alt {
1920
1939
1921
1940
figcaption {
1922
1941
margin-top : 12px ;
1923
- font-size : calc ( 1.4rem * var ( --font-multiplier , 1 )) ;
1942
+ font-size : 1.4rem ;
1924
1943
text-align : center;
1925
1944
}
1926
1945
@@ -2039,60 +2058,60 @@ figcaption a {
2039
2058
2040
2059
/* 20.1. Typography */
2041
2060
2061
+ .has-serif-title {
2062
+ --factor : 1.15 ;
2063
+ }
2064
+
2065
+ .has-slab-title {
2066
+ --factor : 1.1 ;
2067
+ }
2068
+
2042
2069
.has-sans-title .is-title {
2043
2070
font-family : var (--font-sans );
2071
+ font-weight : 800 ;
2044
2072
}
2045
2073
2046
2074
.has-serif-title .is-title {
2047
2075
font-family : var (--font-serif );
2076
+ font-weight : 600 ;
2048
2077
}
2049
2078
2050
2079
.has-slab-title .is-title {
2051
2080
font-family : var (--font-slab );
2081
+ font-weight : 650 ;
2052
2082
}
2053
2083
2054
2084
.has-sans-body .is-body {
2055
2085
font-family : var (--font-sans );
2056
2086
}
2057
2087
2058
2088
.has-serif-body .is-body {
2059
- font-family : Georgia;
2060
- }
2061
-
2062
- .has-serif-title : is (.gh-navigation-logo , .gh-footer-logo ) {
2063
- font-size : 2.8rem ;
2064
- font-weight : 600 ;
2089
+ font-family : var (--font-serif-alt );
2065
2090
}
2066
2091
2067
2092
.has-serif-title .gh-header .is-classic .gh-header-title {
2068
2093
font-weight : 550 ;
2069
2094
letter-spacing : -0.015em ;
2070
2095
}
2071
2096
2097
+ .has-serif-title .gh-header .is-classic .gh-header-form {
2098
+ border-radius : 0 ;
2099
+ }
2100
+
2072
2101
.has-serif-title .gh-card-title {
2073
- font-size : 2.3rem ;
2074
- font-weight : 600 ;
2075
2102
line-height : 1.1 ;
2076
2103
letter-spacing : -0.006em ;
2077
2104
}
2078
2105
2079
- .has-serif-title .gh-featured-feed .gh-card-title {
2080
- font-size : 2.1rem ;
2081
- }
2082
-
2083
2106
.has-serif-title .gh-about-title {
2084
- font-size : 2.6rem ;
2085
- font-weight : 600 ;
2086
2107
letter-spacing : -0.009em ;
2087
2108
}
2088
2109
2089
2110
.has-serif-title .gh-footer-signup-header {
2090
- font-weight : 550 ;
2091
2111
letter-spacing : -0.019em ;
2092
2112
}
2093
2113
2094
2114
.has-serif-title .gh-article-title {
2095
- font-weight : 600 ;
2096
2115
letter-spacing : -0.019em ;
2097
2116
}
2098
2117
@@ -2123,12 +2142,12 @@ figcaption a {
2123
2142
letter-spacing : 0 ;
2124
2143
}
2125
2144
2126
- .has-slab -title : is (.gh-button , .gh-header-form ) {
2127
- border-radius : 8 px ;
2145
+ .has-serif -title : is (.gh-button , . gh-header . is-classic .gh-header-form ) {
2146
+ border-radius : 0 ;
2128
2147
}
2129
2148
2130
- .has-serif -title : is (.gh-button , .gh-header-form ) {
2131
- border-radius : 0 ;
2149
+ .has-slab -title : is (.gh-button , . gh-header . is-classic .gh-header-form ) {
2150
+ border-radius : 8 px ;
2132
2151
}
2133
2152
2134
2153
/* 20.2. Colors */
@@ -2141,7 +2160,7 @@ figcaption a {
2141
2160
/* ---------------------------------------------------------- */
2142
2161
2143
2162
.gh-footer {
2144
- margin-top : 120 px ;
2163
+ margin-top : 160 px ;
2145
2164
font-size : 1.6rem ;
2146
2165
color : var (--color-darker-gray );
2147
2166
}
@@ -2188,12 +2207,15 @@ figcaption a {
2188
2207
2189
2208
.gh-footer-logo {
2190
2209
position : relative;
2191
- font-size : 2.6rem ;
2192
- font-weight : 750 ;
2210
+ font-size : calc (2.6rem * var (--factor , 1 ));
2193
2211
letter-spacing : -0.015em ;
2194
2212
white-space : nowrap;
2195
2213
}
2196
2214
2215
+ .gh-footer-logo img {
2216
+ max-height : 40px ;
2217
+ }
2218
+
2197
2219
.gh-footer-menu .nav {
2198
2220
display : flex;
2199
2221
gap : 28px ;
@@ -2220,7 +2242,7 @@ figcaption a {
2220
2242
}
2221
2243
2222
2244
.gh-footer-signup-header {
2223
- font-size : clamp (3.2rem , 2.5vw + 2.2rem , 5.4rem );
2245
+ font-size : calc ( clamp (3.2rem , 2.5vw + 2.2rem , 5.4rem ) * var ( --factor , 1 ) );
2224
2246
font-weight : 750 ;
2225
2247
letter-spacing : -0.03em ;
2226
2248
}
0 commit comments