Skip to content

Commit 74d81dd

Browse files
committed
tweak various bits of CSS
1 parent 8d38dbf commit 74d81dd

File tree

13 files changed

+46
-16
lines changed

13 files changed

+46
-16
lines changed

site/src/components/TopNav.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@
9393
overflow-y: auto;
9494
}
9595

96-
.primary { list-style: none }
96+
.primary {
97+
list-style: none;
98+
font-family: var(--font);
99+
margin: 0;
100+
}
101+
97102
.primary li { display: inline }
98103

99104
.primary:first-of-type li {

site/src/routes/blog/[slug].html

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ <h1>{post.metadata.title}</h1>
3636
.post h1 {
3737
color: var(--second);
3838
max-width: 20em;
39+
margin: 0 0 1.2rem 0;
3940
}
4041

4142
.post :global(h2) {

site/src/routes/blog/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ <h2>{post.metadata.title}</h2>
6565

6666
.post:first-child::before {
6767
content: 'Latest post • ' attr(data-pubdate);
68-
font-weight: 300;
68+
font-weight: 400;
6969
color: #aaa;
7070
text-transform: uppercase;
7171
}
7272

7373
.post:nth-child(2)::before {
7474
content: 'Older posts';
75-
font-weight: 300;
75+
font-weight: 400;
7676
color: #aaa;
7777
text-transform: uppercase;
7878
}

site/src/routes/guide/_GuideContents.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
.section {
7272
display: block;
7373
padding: 0 0 .8rem 0;
74-
font: 300 var(--h6) var(--font-alt);
74+
font: 400 var(--h6) var(--font);
7575
color: var(--section-clr);
7676
text-transform: uppercase;
7777
letter-spacing: 0.12em;

site/src/routes/guide/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696

9797
.sidebar {
9898
padding: var(--top-offset) 3.2rem var(--top-offset) 0;
99-
font-family: var(--font-ui);
99+
font-family: var(--font);
100100
overflow-y: auto;
101101
height: 100%;
102102
width: calc(var(--sidebar-w) + 5rem);

site/src/routes/repl/_components/CodeMirror.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
height: 100%;
163163
/* background: var(--background); */
164164
background: transparent;
165-
font: 300 var(--code-fs)/1.7 var(--font-mono);
165+
font: 400 var(--code-fs)/1.7 var(--font-mono);
166166
color: var(--base);
167167
}
168168

@@ -199,7 +199,7 @@
199199
.error {
200200
text-align: center;
201201
color: #999;
202-
font-weight: 300;
202+
font-weight: 400;
203203
margin: 2.4rem 0 0 0;
204204
}
205205

site/src/routes/repl/_components/Input/ComponentSelector.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
.file-tabs button {
8686
position: relative;
87-
font: 300 1.2rem/1.5 var(--font);
87+
font: 400 1.2rem/1.5 var(--font);
8888
border-bottom: var(--border-w) solid transparent;
8989
padding: 1.2rem 1.2rem 0.8rem 0.5rem;
9090
margin: 0 0.5rem 0 0;
@@ -114,7 +114,7 @@
114114
top: 1.2rem;
115115
/* padding: 0 0.4rem; */
116116
/* font-size: 1rem; */
117-
font: 300 1.2rem/1.5 var(--font);
117+
font: 400 1.2rem/1.5 var(--font);
118118
border: none;
119119
color: var(--flash);
120120
outline: none;

site/src/routes/repl/_components/Output/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
height: 100%; */
5959
text-align: left;
6060
position: relative;
61-
font: 300 1.2rem/1.5 var(--font);
61+
font: 400 1.2rem/1.5 var(--font);
6262
border-bottom: var(--border-w) solid transparent;
6363
padding: 1.2rem 0.8rem 0.8rem 0.8rem;
6464
color: #999;

site/src/routes/repl/_components/Repl.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
margin: 0;
221221
padding: 1.2rem 1.6rem 1.2rem 4.4rem;
222222
vertical-align: middle;
223-
font: 300 1.2rem/1.7 var(--font);
223+
font: 400 1.2rem/1.7 var(--font);
224224
color: white;
225225
}
226226

site/src/routes/repl/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
.loading {
167167
text-align: center;
168168
color: var(--second);
169-
font-weight: 300;
169+
font-weight: 400;
170170
margin: 2em 0 0 0;
171171
opacity: 0;
172172
animation: fade-in .4s;
Binary file not shown.
Binary file not shown.

site/static/global.css

+28-4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,28 @@
4444
url('fonts/overpass/overpass-latin-300italic.woff2') format('woff2');
4545
}
4646

47+
/* overpass-400normal - latin */
48+
@font-face {
49+
font-family: 'Overpass';
50+
font-style: normal;
51+
font-weight: 400;
52+
src:
53+
local('Overpass Light '),
54+
local('Overpass-Light'),
55+
url('fonts/overpass/overpass-latin-400.woff2') format('woff2');
56+
}
57+
58+
/* overpass-400italic - latin */
59+
@font-face {
60+
font-family: 'Overpass';
61+
font-style: italic;
62+
font-weight: 400;
63+
src:
64+
local('Overpass Light italic'),
65+
local('Overpass-Lightitalic'),
66+
url('fonts/overpass/overpass-latin-400italic.woff2') format('woff2');
67+
}
68+
4769
/* overpass-700normal - latin */
4870
@font-face {
4971
font-family: 'Overpass';
@@ -83,6 +105,7 @@ body {
83105
--font-alt: 'Overpass', sans-serif;
84106
--font-mono: 'Overpass Mono', monospace;
85107
--font-ui: var(--font-mono);
108+
--font-system: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
86109
}
87110

88111
/* base reset ----------------------------- */
@@ -187,7 +210,7 @@ body {
187210
color: var(--text);
188211
}
189212

190-
h1, h2, h3, h4, h5, h6, li, blockquote {
213+
h1, h2, h3, h4, h5, h6, blockquote {
191214
margin: 0;
192215
color: var(--heading);
193216
}
@@ -200,15 +223,16 @@ h3 { font-size: var(--h3) }
200223
h2 { font-size: var(--h2) }
201224
h1 { font-size: var(--h1) }
202225

203-
p {
226+
p, ol, ul {
204227
line-height: 1.35;
205228
margin: 0 0 1em 0;
229+
/* font-family: var(--font-system); */
206230
}
207231

208232
.b, b, strong { font-weight: 700 }
209233

210234
tt, code, kbd, samp {
211-
font: 300 var(--code-fs)/1.7 var(--font-mono);
235+
font: 400 var(--code-fs)/1.7 var(--font-mono);
212236
}
213237

214238
:not(pre) > p > code {
@@ -361,7 +385,7 @@ a:hover > .icon { stroke: var(--flash) }
361385
.listify ul > li {
362386
max-width: calc(var(--linemax) - var(--list-padding));
363387
line-height: 1.35;
364-
margin: 0 0 0.8em 0;
388+
margin: 0 0 0.4rem 0;
365389
}
366390

367391
.listify ul > li:before {

0 commit comments

Comments
 (0)