Skip to content

Commit cb9b6f2

Browse files
committed
Actually convert the .scss files to .css.
1 parent 1f66dbe commit cb9b6f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+703
-630
lines changed

assets/css/base/breakpoints.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@custom-media --break-sm (min-width: 384px);
2+
@custom-media --break-md (min-width: 576px);
3+
@custom-media --break-lg (min-width: 768px);

assets/styles/_base.scss renamed to assets/css/base/elements.css

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
*, *::before, *::after {
1+
*,
2+
*::after
3+
*::before {
24
box-sizing: border-box;
35
}
46

@@ -27,11 +29,13 @@ h3 {
2729
font-size: 1em;
2830
}
2931

30-
pre, p {
32+
p,
33+
pre {
3134
margin: 0 0 1em;
3235
}
3336

34-
pre, code {
37+
code,
38+
pre {
3539
font-family: "source-code-pro", monospace;
3640
}
3741

@@ -50,12 +54,14 @@ a {
5054
border-bottom: 1px dashed hsla(150, 45%, 50%, 0.5);
5155
color: hsl(150, 45%, 50%);
5256
text-decoration: none;
53-
&:hover, &:focus {
54-
border-bottom: 1px solid hsl(150, 45%, 50%);
55-
}
57+
}
58+
a:focus,
59+
a:hover {
60+
border-bottom: 1px solid hsl(150, 45%, 50%);
5661
}
5762

58-
ul, ol {
63+
ol,
64+
ul {
5965
margin: 0;
6066
padding: 0;
6167
list-style: none;

assets/css/base/variables.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:root {
2+
--bg-color: hsl(150, 45%, 50%);
3+
}

assets/styles/components/_aligner.scss renamed to assets/css/components/aligner.css

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1+
/*
2+
* 1. `height` is needed for IE10-11 for this bug
3+
* http://bit.ly/16b1Xhx
4+
* 2. Other browser use `min-height`.
5+
*/
6+
17
.Aligner {
28
display: flex;
39
align-items: center;
10+
height: 24em; /* 1 */
411
justify-content: center;
5-
6-
// height is needed for IE10-11 for this bug
7-
// http://bit.ly/16b1Xhx
8-
height: 24em;
9-
// other browsers use min-height
10-
@supports not (-ms-flex: 1) {
11-
height: auto;
12-
min-height: 24em;
12+
}
13+
@supports not (-ms-flex: 1) {
14+
.Aligner {
15+
height: auto; /* 2 */
16+
min-height: 24em; /* 2 */
1317
}
1418
}
1519

assets/styles/components/_browser-logo.scss renamed to assets/css/components/browser-logo.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
@import '../base/breakpoints';
2+
13
.BrowserLogo {
24
width: 64px;
35
height: 64px;
46
margin-bottom: 0.5em;
5-
background: url("../images/browser-logos.jpg") no-repeat 0 0;
7+
background: url('../images/browser-logos.jpg') no-repeat 0 0;
68
background-size: auto 100%;
79
}
810

assets/styles/components/_browser-matrix.scss renamed to assets/css/components/browser-matrix.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../base/breakpoints';
2+
13
.BrowserMatrix {
24
display: flex;
35
flex-wrap: wrap;
@@ -8,10 +10,6 @@
810
flex: none;
911
margin: 0.5em 1em;
1012
text-align: center;
11-
12-
@include breakpoint("large") {
13-
margin: 0.5em 1.5em;
14-
}
1513
}
1614

1715
.BrowserMatrix-title {
@@ -26,3 +24,8 @@
2624
white-space: nowrap;
2725
}
2826

27+
@media (--break-lg) {
28+
.BrowserMatrix-item {
29+
margin: 0.5em 1.5em;
30+
}
31+
}

assets/styles/components/_button.scss renamed to assets/css/components/button.css

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,30 @@
1212
line-height: normal;
1313
text-decoration: none;
1414
white-space: nowrap;
15-
&:focus {
16-
outline: thin dotted #666;
17-
text-decoration:none;
18-
}
19-
&:hover, &:active, &:focus {
20-
border: 0;
21-
background: hsla(31, 15%, 50%, 0.25);
22-
text-decoration:none;
23-
}
15+
}
16+
.Button:focus {
17+
outline: thin dotted #666;
18+
text-decoration:none;
19+
}
20+
.Button:active,
21+
.Button:focus
22+
.Button:hover {
23+
border: 0;
24+
background: hsla(31, 15%, 50%, 0.25);
25+
text-decoration:none;
2426
}
2527

2628
.Button--action {
2729
background-color: hsl(150, 45%, 50%);
2830
color: #fff;
29-
&:hover, &:active, &:focus {
30-
background-color: hsl(150, 45%, 40%);
31-
}
31+
}
32+
.Button--action:active,
33+
.Button--action:focus,
34+
.Button--action:hover {
35+
background-color: hsl(150, 45%, 40%);
3236
}
3337

3438
.Button--wide {
3539
padding-right: 1.5em;
3640
padding-left: 1.5em;
3741
}
38-
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.Container {
22
max-width: 50rem;
33
margin: 0 auto;
4-
}
4+
}

assets/styles/components/_demo.scss renamed to assets/css/components/demo.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
margin-bottom: 1em;
55
background: hsla(31, 15%, 50%, 0.1);
66
border-radius: 3px;
7-
&::after {
8-
content: "";
9-
display: block;
10-
margin-top: 0.8em;
11-
height: 1px;
12-
}
7+
}
8+
.Demo::after {
9+
content: "";
10+
display: block;
11+
margin-top: 0.8em;
12+
height: 1px;
1313
}
1414

1515
.Demo-title {
1616
margin-bottom: 0.25rem;
1717
font-size: 1em;
18-
}
18+
}

assets/styles/components/_error.scss renamed to assets/css/components/error.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
color: #fff;
55
font-weight: 700;
66
text-align: center;
7-
}
7+
}

0 commit comments

Comments
 (0)