Skip to content

Commit 2d9dd9c

Browse files
committed
redo html and body, clean up type, fix some masthead
1 parent 97d1824 commit 2d9dd9c

File tree

1 file changed

+84
-52
lines changed

1 file changed

+84
-52
lines changed

_sass/_og.scss

Lines changed: 84 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -30,75 +30,95 @@
3030
.icon-github-circled:before { content: '\e800'; } /* '' */
3131
.icon-twitter:before { content: '\e801'; } /* '' */
3232

33+
//
34+
// Global
35+
//
3336

34-
/*
35-
* Scaffolding and type
36-
*/
37+
:root {
38+
--red: #f03e3e;
39+
--pink: #d6336c;
40+
--purple: #7048e8;
41+
--blue: #1c7ed6;
42+
--indigo: #4263eb;
43+
--cyan: #1098ad;
44+
}
45+
46+
*,
47+
*::before,
48+
*::after {
49+
box-sizing: border-box;
50+
}
3751

3852
html {
53+
border-top: 1rem solid currentColor;
54+
padding: 2rem;
3955
font-size: 16px;
40-
}
41-
@media (min-width: 48em) {
42-
html {
56+
57+
@media (min-width: 48em) {
58+
padding: 3rem;
4359
font-size: 18px;
4460
}
4561
}
4662

4763
body {
48-
max-width: 64em;
49-
padding: 2em;
50-
margin: 0 auto;
64+
max-width: 80em;
65+
padding: 0;
66+
margin-right: auto;
67+
margin-left: auto;
5168
font-size: 1rem;
5269
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
5370
line-height: 1.5;
54-
color: #555;
71+
color: #212529;
5572
}
5673

5774
a {
5875
color: #08c;
5976
text-decoration: none;
60-
}
61-
a:hover {
62-
text-decoration: underline;
77+
78+
&:hover {
79+
text-decoration: underline;
80+
}
6381
}
6482

6583
h1, h2, h3, h4 {
6684
margin: 0 0 .5rem;
67-
font-weight: normal;
85+
font-weight: 500;
6886
line-height: 1;
6987
color: #2a2a2a;
70-
letter-spacing: -.05em;
7188
}
7289
h1 { font-size: 2rem; }
7390
h2 { font-size: 1.75rem; }
7491
h3 { font-size: 1.5rem; }
7592
h4 { font-size: 1.25rem }
7693

7794
p {
78-
margin: 0 0 1rem;
95+
margin-top: 0;
96+
margin-bottom: 1rem;
7997
}
98+
8099
.lead {
81-
font-size: 1.3rem;
100+
font-size: 1.25rem;
82101
}
83102

84103
blockquote {
85104
position: relative;
86105
margin: 0 1rem 1rem;
87106
font-style: italic;
88107
color: #7a7a7a;
89-
}
90-
blockquote p {
91-
margin-bottom: 0;
108+
109+
p {
110+
margin-bottom: 0;
111+
}
92112
}
93113

94-
ul li {
114+
li {
95115
margin-bottom: .25rem;
96116
}
97117

98118
/* Tighten up margin on last items */
99119
p:last-child,
100120
ul:last-child,
101-
blockquote:last-child{
121+
blockquote:last-child {
102122
margin-bottom: 0;
103123
}
104124

@@ -110,7 +130,7 @@ blockquote:last-child{
110130

111131
code,
112132
pre {
113-
font-family: "PT Mono", Menlo, "Courier New", monospace;
133+
font-family: "SFMono-Regular", Menlo, "Courier New", monospace;
114134
font-size: 95%;
115135
}
116136
code {
@@ -150,14 +170,14 @@ pre code {
150170
*/
151171

152172
.col {
153-
padding: 2rem 1rem;
173+
// padding: 2rem 1rem;
154174
}
155175
.col p {
156176
max-width: 40rem;
157177
}
158178
.col + .col {
159-
border-top: 1px solid #dfe1e8;
160-
background-color: #f7f7f9;
179+
// border-top: 1px solid #dfe1e8;
180+
background-color: #f8f9fa;
161181
}
162182
@media (min-width: 38em) {
163183
.col {
@@ -169,14 +189,16 @@ pre code {
169189
display: table;
170190
width: 100%;
171191
table-layout: fixed;
192+
margin-bottom: 3rem;
172193
}
173194
.col {
174195
display: table-cell;
175-
padding: 3rem;
196+
padding: 3rem 3rem 3rem 0;
176197
vertical-align: top;
177198
}
178199
.col + .col {
179200
border-top: 0;
201+
padding: 3rem;
180202
}
181203
}
182204

@@ -190,33 +212,41 @@ pre code {
190212
* Masthead
191213
*/
192214

193-
.masthead {
194-
}
195-
.masthead h1 {
196-
margin-bottom: .25rem;
197-
}
198-
.masthead .icon {
199-
display: inline-block;
200-
font-size: 3rem;
201-
margin: 0 .5rem;
215+
.cg-icon {
216+
display: block;
217+
width: 3rem;
218+
height: 3rem;
219+
margin-bottom: 1.5rem;
220+
color: var(--red);
221+
border: solid currentColor;
222+
border-width: .25rem .25rem .25rem 1.5rem;
223+
}
224+
225+
.cg-masthead {
226+
// max-width: 64em;
227+
// padding: 2rem;
228+
margin-right: auto;
229+
margin-left: auto;
230+
231+
@media (min-width: 48em) {
232+
// padding: 4rem;
233+
}
234+
235+
> * {
236+
max-width: 48rem;
237+
}
238+
239+
h1 {
240+
// font-size: 4rem;
241+
margin-bottom: .25rem;
242+
}
202243
}
244+
203245
.masthead-links {
204246
font-size: 2rem;
205247
}
206248
.masthead-links a {
207-
color: rgba(255,255,255,.5);
208249
text-decoration: none;
209-
transition: all .15s linear;
210-
}
211-
.masthead-links a:hover {
212-
color: #fff;
213-
}
214-
215-
@media (min-width: 38em) {
216-
.masthead {
217-
padding-top: 4rem;
218-
padding-bottom: 4rem;
219-
}
220250
}
221251

222252

@@ -225,18 +255,20 @@ pre code {
225255
*/
226256

227257
.heading {
228-
padding: 2rem 1rem 1.5rem;
229-
background-color: #dfe1e8;
258+
padding-top: 1rem;
259+
// padding: 2rem 1rem 1.5rem;
260+
// background-color: #dfe1e8;
261+
border-top: .25rem solid;
230262
}
231263

232264
@media (min-width: 38em) {
233265
.heading {
234-
padding: 3rem 3rem 2.5rem;
266+
// padding: 3rem 3rem 2.5rem;
235267
}
236268
}
237269

238270
.section {
239-
border-bottom: 1px solid #dfe1e8;
271+
// border-bottom: 1px solid #dfe1e8;
240272
}
241273

242274

0 commit comments

Comments
 (0)