Skip to content

Commit 50be576

Browse files
committed
add missing margin & align code styling
1 parent c394faa commit 50be576

File tree

1 file changed

+56
-13
lines changed

1 file changed

+56
-13
lines changed

src/styles/app.scss

Lines changed: 56 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ $red: #C14566;
88
$green: #398277;
99
$purple: #403D58;
1010
$yellow: #FFD45E;
11+
$border-radius: 4px;
1112

1213
html {
1314
font-size: 62.5%
@@ -41,6 +42,30 @@ code {
4142
overflow: auto;
4243
}
4344

45+
@mixin code-space-full-width {
46+
padding: 1rem 1.5rem;
47+
margin: 0 .2rem;
48+
}
49+
50+
@mixin code-space-inline {
51+
padding: .2rem .5rem;
52+
margin: 0 .2rem;
53+
}
54+
55+
@mixin code-highlight-white {
56+
color: white;
57+
background-color: rgba(white, 0.15);
58+
border: 1px solid #E1E1E1;
59+
border-radius: $border-radius;
60+
}
61+
62+
@mixin code-highlight-black {
63+
color: black;
64+
background-color: rgba(69, 76, 82, 0.05);
65+
border: 1px solid rgba(69, 76, 82, 0.25);
66+
border-radius: $border-radius;
67+
}
68+
4469
.button,
4570
button {
4671
display: block;
@@ -86,6 +111,23 @@ header h1 {
86111
font-size: 8rem;
87112
margin-bottom: 0;
88113
margin-top: 0;
114+
line-height: 1.2;
115+
font-weight: 300;
116+
}
117+
118+
header h2 {
119+
font-size: 4.2rem;
120+
line-height: 1.25;
121+
font-weight: 300;
122+
}
123+
124+
section h3 {
125+
margin-top: 0;
126+
line-height: 1.3;
127+
}
128+
129+
section p, code {
130+
line-height: 1.6;
89131
}
90132

91133
header .button.button-download {
@@ -124,6 +166,11 @@ section {
124166
letter-spacing: 1px;
125167
}
126168
}
169+
170+
p {
171+
margin-top: 0;
172+
margin-bottom: 30px;
173+
}
127174
}
128175

129176
ul {
@@ -205,9 +252,8 @@ a.brand {
205252
}
206253
}
207254
code {
208-
color: white;
209-
background-color: rgba(white, 0.15);
210-
border: 1px solid rgba(white, 0.65);
255+
@include code-highlight-white();
256+
@include code-space-inline();
211257
}
212258
}
213259

@@ -229,11 +275,10 @@ a.brand {
229275
&:hover, &:focus {
230276
border-color: white;
231277
}
232-
}
278+
}
233279
code {
234-
color: white;
235-
background-color: rgba(white, 0.15);
236-
border: 1px solid rgba(white, 0.65);
280+
@include code-highlight-white();
281+
@include code-space-full-width();
237282
}
238283
}
239284

@@ -256,9 +301,8 @@ a.brand {
256301
}
257302
}
258303
code {
259-
color: black;
260-
background-color: rgba($gray, 0.05);
261-
border: 1px solid rgba($gray, 0.25);
304+
@include code-highlight-black();
305+
@include code-space-inline();
262306
}
263307
}
264308

@@ -282,9 +326,8 @@ a.brand {
282326
}
283327
}
284328
code {
285-
color: white;
286-
background-color: rgba(white, 0.15);
287-
border: 1px solid rgba(white, 0.65);
329+
@include code-highlight-white();
330+
@include code-space-inline();
288331
}
289332
}
290333

0 commit comments

Comments
 (0)