Skip to content

Commit ef79ba8

Browse files
authored
Format Scss (#995)
1 parent 988b510 commit ef79ba8

File tree

2 files changed

+146
-84
lines changed

2 files changed

+146
-84
lines changed

src/styles/app.scss

Lines changed: 52 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
@import 'tachyons-ext';
1+
@import "tachyons-ext";
22

3-
$body-font: 'Fira Sans', Helvetica, Arial, sans-serif;
4-
$header-font: 'Alfa Slab One', serif;
3+
$body-font: "Fira Sans", Helvetica, Arial, sans-serif;
4+
$header-font: "Alfa Slab One", serif;
55

6-
$gray: #454C52;
7-
$red: #C14566;
6+
$gray: #454c52;
7+
$red: #c14566;
88
$green: #398277;
9-
$purple: #403D58;
10-
$yellow: #FFD45E;
9+
$purple: #403d58;
10+
$yellow: #ffd45e;
1111
$border-radius: 4px;
12-
$link-color: #1EAEDB;
12+
$link-color: #1eaedb;
1313
$footer-gray: #303030;
1414

1515
html {
16-
font-size: 62.5%
16+
font-size: 62.5%;
1717
}
1818

1919
@media screen and (min-width: 30em) {
@@ -33,7 +33,7 @@ body {
3333
display: flex;
3434
flex-direction: column;
3535
& > #main-content {
36-
flex: 1;
36+
flex: 1;
3737
}
3838
}
3939

@@ -43,12 +43,12 @@ body {
4343
}
4444

4545
code {
46-
padding: .2rem .5rem;
47-
margin: 0 .2rem;
46+
padding: 0.2rem 0.5rem;
47+
margin: 0 0.2rem;
4848
font-size: 90%;
4949
white-space: nowrap;
50-
background: #F1F1F1;
51-
border: 1px solid #E1E1E1;
50+
background: #f1f1f1;
51+
border: 1px solid #e1e1e1;
5252
border-radius: 4px;
5353
overflow: auto;
5454
}
@@ -61,7 +61,7 @@ pre > code {
6161
@mixin code-highlight-white {
6262
color: white;
6363
background-color: rgba(black, 0.3);
64-
border: 1px solid #E1E1E1;
64+
border: 1px solid #e1e1e1;
6565
border-radius: $border-radius;
6666
}
6767

@@ -80,15 +80,16 @@ button {
8080
padding: 8px 30px;
8181
text-align: center;
8282
font-weight: 600;
83-
letter-spacing: .1rem;
83+
letter-spacing: 0.1rem;
8484
text-transform: uppercase;
8585
text-decoration: none;
8686
border-radius: 4px;
8787
border: 1px solid;
8888
cursor: pointer;
8989
box-sizing: border-box;
9090

91-
&:hover, &:focus {
91+
&:hover,
92+
&:focus {
9293
outline: 0;
9394
}
9495
}
@@ -109,7 +110,8 @@ code.code-header {
109110
margin: 0 0 3px 0;
110111
}
111112

112-
header h1, section h2 {
113+
header h1,
114+
section h2 {
113115
z-index: 999999;
114116
position: relative;
115117
letter-spacing: 1px;
@@ -137,7 +139,8 @@ section h3 {
137139
line-height: 1.3;
138140
}
139141

140-
section p, code {
142+
section p,
143+
code {
141144
line-height: 1.6;
142145
}
143146

@@ -151,7 +154,8 @@ header .button.button-download {
151154
font-size: 2.25rem;
152155
margin-top: 20px;
153156

154-
&:hover, &:focus {
157+
&:hover,
158+
&:focus {
155159
border-color: black;
156160
}
157161
}
@@ -181,8 +185,8 @@ section {
181185
}
182186

183187
h2 {
184-
font-family: $body-font;
185-
font-weight: 800;
188+
font-family: $body-font;
189+
font-weight: 800;
186190
}
187191

188192
h3 {
@@ -265,7 +269,8 @@ a.brand {
265269
border-color: $purple;
266270
color: white;
267271
text-decoration: none;
268-
&:hover, &:focus {
272+
&:hover,
273+
&:focus {
269274
border-color: white;
270275
}
271276
}
@@ -289,7 +294,8 @@ a.brand {
289294
border-color: $purple;
290295
color: white;
291296
text-decoration: none;
292-
&:hover, &:focus {
297+
&:hover,
298+
&:focus {
293299
border-color: white;
294300
}
295301
}
@@ -299,7 +305,7 @@ a.brand {
299305
}
300306

301307
.white {
302-
color: black;
308+
color: black;
303309
.highlight {
304310
background-color: $yellow;
305311
}
@@ -312,7 +318,8 @@ a.brand {
312318
border-color: $yellow;
313319
color: $gray;
314320
text-decoration: none;
315-
&:hover, &:focus {
321+
&:hover,
322+
&:focus {
316323
border-color: $gray;
317324
}
318325
}
@@ -336,7 +343,8 @@ a.brand {
336343
border-color: $red;
337344
color: white;
338345
text-decoration: none;
339-
&:hover, &:focus {
346+
&:hover,
347+
&:focus {
340348
border-color: white;
341349
}
342350
}
@@ -418,7 +426,7 @@ footer .attribution {
418426
}
419427

420428
footer .languages {
421-
color: $gray
429+
color: $gray;
422430
}
423431

424432
blockquote {
@@ -431,7 +439,7 @@ blockquote {
431439
}
432440

433441
blockquote::before {
434-
content: '';
442+
content: "";
435443
color: $gray;
436444
font-size: 3em;
437445
position: absolute;
@@ -493,7 +501,8 @@ blockquote::before {
493501
min-height: 300px;
494502
}
495503

496-
#share-your-experience h3, #production-domains h3 {
504+
#share-your-experience h3,
505+
#production-domains h3 {
497506
padding-bottom: 20px;
498507
text-align: center;
499508
}
@@ -524,7 +533,6 @@ blockquote::before {
524533
}
525534
}
526535

527-
528536
#rust-trademarks {
529537
img {
530538
vertical-align: middle;
@@ -635,8 +643,8 @@ blockquote::before {
635643
background-color: rgba(white, 0.15);
636644
border: 1px solid rgba(white, 0.65);
637645
margin-bottom: 20px;
638-
padding: .2rem .5rem;
639-
margin: 0 .2rem;
646+
padding: 0.2rem 0.5rem;
647+
margin: 0 0.2rem;
640648
border-radius: 4px;
641649
}
642650

@@ -672,15 +680,15 @@ blockquote::before {
672680
}
673681
}
674682

675-
section header {
676-
padding: {
677-
top: 10px;
678-
bottom: 30px;
679-
}
680-
h2 {
681-
font-size: 3rem;
682-
}
683+
section header {
684+
padding: {
685+
top: 10px;
686+
bottom: 30px;
683687
}
688+
h2 {
689+
font-size: 3rem;
690+
}
691+
}
684692

685693
.team {
686694
text-align: center;
@@ -744,10 +752,10 @@ blockquote::before {
744752
}
745753

746754
#pb4 {
747-
padding-bottom: 3.8em;
755+
padding-bottom: 3.8em;
748756
}
749757

750758
.max-height-5rem {
751-
/* Tachyons is missing this class */
752-
max-height: 5rem;
759+
/* Tachyons is missing this class */
760+
max-height: 5rem;
753761
}

0 commit comments

Comments
 (0)