Skip to content

Commit 711e737

Browse files
committed
New styles.
1 parent e907479 commit 711e737

File tree

2 files changed

+217
-355
lines changed

2 files changed

+217
-355
lines changed

css/style.css

Lines changed: 72 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/* Colors based on plantpower1 theme */
2+
/* https://color.adobe.com/plantpower1-color-theme-10440009/ */
3+
:root {
4+
--pink: #ff135c;
5+
--white: #fff;
6+
--green: #3a8828;
7+
--yellow: #fffd00;
8+
--greenish: #45f7b4;
9+
10+
--header-height: 80px;
11+
}
12+
113
* {
214
margin: 0;
315
padding: 0;
@@ -10,7 +22,8 @@ img {
1022

1123
html,
1224
body {
13-
background: #f7f7f7;
25+
background: var(--white);
26+
margin: 0;
1427
}
1528

1629
html.fullscreen,
@@ -24,7 +37,7 @@ html.fullscreen,
2437

2538
body {
2639
font: 14px sans-serif;
27-
color: #333;
40+
color: #444;
2841
}
2942

3043
p {
@@ -78,22 +91,25 @@ a {
7891
/* Header */
7992

8093
.header {
81-
height: 65px;
94+
height: var(--header-height);
8295
display: flex;
8396
flex-direction: row;
84-
background: #222;
85-
xxborder-bottom: 1px solid #333;
86-
color: #eee;
97+
background: var(--pink);
98+
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
99+
border-bottom: 3px solid var(--green);
100+
color: #fff;
87101
width: 100%;
102+
z-index: 999;
103+
position: fixed;
88104
}
89105

90106
.header__logo {
91107
margin-left: 1rem;
92108
flex: 1;
93109
align-self: center;
94-
font-size: 14px;
95-
font-weight: 200;
96-
letter-spacing: 1rem;
110+
font-size: 64px;
111+
padding: 5px 0;
112+
font-weight: 900;
97113
}
98114

99115
.header__nav {
@@ -109,8 +125,7 @@ a {
109125

110126
.page {
111127
flex: 1;
112-
background: linear-gradient(0deg, #000, #222);
113-
color: white;
128+
padding-top: var(--header-height);
114129
}
115130

116131
.page.centered {
@@ -138,6 +153,16 @@ a {
138153

139154
.intro {
140155
padding: 5rem 2rem;
156+
/* background: #fffd00;
157+
color: #333;
158+
border-bottom: 10px solid #3a8828;
159+
*/
160+
background: linear-gradient(#eee, #fff);
161+
}
162+
163+
.intro__inner {
164+
max-width: 900px;
165+
margin: 0 auto;
141166
}
142167

143168
.intro__large {
@@ -154,7 +179,6 @@ a {
154179
}
155180

156181
.intro__cta .button {
157-
background: #333;
158182
color: white;
159183
padding: 8px 12px;
160184
border-bottom: 2px solid rgba(0, 0, 0, 0.2);
@@ -165,13 +189,20 @@ a {
165189
}
166190

167191
.intro__cta .button.primary {
168-
background: #6a6;
192+
background: var(--pink);
169193
}
170194

171195
.gallery {
196+
background: white;
197+
}
198+
199+
.gallery__inner {
172200
display: flex;
173201
flex-wrap: wrap;
174202
justify-content: center;
203+
max-width: 900px;
204+
margin: 0 auto;
205+
padding: 30px 0;
175206
}
176207

177208
.gallery h1 {
@@ -187,6 +218,7 @@ a {
187218

188219
.gallery__img {
189220
border-radius: 3px;
221+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
190222
}
191223

192224
.gallery__link {
@@ -198,38 +230,40 @@ a {
198230
transform: translateY(2px);
199231
}
200232

201-
202233
/* Editor */
203234

204235
.editor {
205236
flex: 1;
206237
display: flex;
207238
flex-direction: row;
239+
padding-top: var(--header-height);
240+
}
241+
242+
.embed .editor {
243+
padding-top: 0;
208244
}
209245

210-
.editor__source-wrap, .editor__viewer-wrap {
246+
.editor__source-wrap,
247+
.editor__viewer-wrap {
211248
flex: 1;
212249
display: flex;
213250
flex-direction: column;
214251
}
215252

216-
217253
.editor__toolbar {
218-
height: 40px;
219-
min-height: 40px;
220-
background: #666;
254+
height: 50px;
255+
min-height: 50px;
256+
background: #333;
221257
display: flex;
222258
align-items: center;
223259
justify-content: flex-start;
224260
padding: 0 10px;
225261
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
226-
border-top: 1px solid #777;
227-
border-bottom: 2px solid #555;
228262
}
229263

230264
.editor__toolbar .button {
231265
padding: 5px 8px;
232-
background: #6a6;
266+
background: var(--pink);
233267
font-size: 0.8rem;
234268
}
235269

@@ -248,7 +282,7 @@ a {
248282
}
249283

250284
.editor__toolbar-right a {
251-
color: white;
285+
color: #eee;
252286
text-decoration: underline;
253287
opacity: 0.8;
254288
}
@@ -290,7 +324,7 @@ a {
290324
text-align: center;
291325
font-family: "SF Mono", Menlo, monospace;
292326
border: 0;
293-
background: transparent;;
327+
background: transparent;
294328
color: white;
295329
}
296330

@@ -348,8 +382,8 @@ a {
348382

349383
.docs__nav {
350384
width: 300px;
351-
border-right: 1px solid #ddd;
352385
padding-top: 10px;
386+
position: fixed;
353387
}
354388

355389
.docs__nav ul {
@@ -381,6 +415,8 @@ a {
381415
min-height: 100%;
382416
padding: 20px 30px;
383417
max-width: 50rem;
418+
margin-left: 300px;
419+
border-left: 1px solid #ddd;
384420
}
385421

386422
.docs__body h2 {
@@ -390,7 +426,8 @@ a {
390426
margin-bottom: 0.5rem;
391427
}
392428

393-
.docs__body p, .docs__body li {
429+
.docs__body p,
430+
.docs__body li {
394431
line-height: 1.5;
395432
}
396433

@@ -423,7 +460,6 @@ a {
423460
border-bottom-color: rgba(0, 0, 0, 0.9);
424461
}
425462

426-
427463
.docs__body a.noline {
428464
border-bottom: none !important;
429465
}
@@ -454,7 +490,7 @@ a {
454490
}
455491

456492
.docs__body .code-wrap pre::before {
457-
content: 'sketch';
493+
content: "sketch";
458494
position: absolute;
459495
right: 7px;
460496
top: 5px;
@@ -474,7 +510,7 @@ a {
474510
}
475511

476512
.docs__body .code-wrap .code-result::before {
477-
content: 'result';
513+
content: "result";
478514
position: absolute;
479515
right: 7px;
480516
top: 5px;
@@ -492,7 +528,7 @@ a {
492528
}
493529

494530
.docs__body blockquote {
495-
background: #6a6;
531+
background: var(--pink);
496532
color: white;
497533
padding: 1rem 1rem 0.2rem 1rem;
498534
font-size: 18px;
@@ -501,10 +537,15 @@ a {
501537
margin-bottom: 1rem;
502538
}
503539

540+
.docs__body blockquote code {
541+
color: white;
542+
background: transparent;
543+
}
544+
504545
.docs__body iframe {
505546
border: 1px solid #ddd;
506547
margin-bottom: 1rem;
507548
width: 100%;
508549
height: 400px;
550+
border-radius: 3px;
509551
}
510-

0 commit comments

Comments
 (0)