Skip to content

Commit cd511ef

Browse files
committed
Removed css var() to target IE 11
1 parent a1f54de commit cd511ef

File tree

5 files changed

+71
-36
lines changed

5 files changed

+71
-36
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@
1111
],
1212
"files.associations": {
1313
"*.stylelintrc": "json"
14-
}
14+
},
15+
"files.trimFinalNewlines": true,
16+
"files.trimTrailingWhitespace": true
1517
}

examples/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
</head>
1111
<body class="fl-master-template">
1212

13-
<header class="fl-text-center">
14-
<div>
13+
<header class="fl-text-center fl-valign">
14+
<h5>
1515
Header
16-
</div>
16+
</h5>
1717
</header>
1818

1919
<main class="fl-text-center">

src/_typography.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
@import "./_variables";
2+
13
:root {
2-
font-family: var(--font-family-sans-serif);
4+
font-family: $font-family-sans-serif;
35
}
46

57

@@ -10,7 +12,7 @@ i,
1012
ruby,
1113
kbd,
1214
rt {
13-
font-family: var(--font-family-monospace);
15+
font-family: $font-family-monospace;
1416
}
1517

1618

src/_variables.scss

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
:root {
2-
--blue: #007BFF;
3-
--indigo: #6610F2;
4-
--purple: #6F42C1;
5-
--pink: #E83E8C;
6-
--red: #DC3545;
7-
--orange: #FD7E14;
8-
--yellow: #FFC107;
9-
--green: #28A745;
10-
--teal: #20C997;
11-
--cyan: #17A2B8;
12-
--white: #FFF;
13-
--gray: #6C757D;
14-
--gray-dark: #343A40;
15-
--primary: #007BFF;
16-
--secondary: #6C757D;
17-
--success: #28A745;
18-
--info: #17A2B8;
19-
--warning: #FFC107;
20-
--danger: #DC3545;
21-
--light: #F8F9FA;
22-
--dark: #343A40;
23-
--breakpoint-xs: 0;
24-
--breakpoint-sm: 576px;
25-
--breakpoint-md: 768px;
26-
--breakpoint-lg: 992px;
27-
--breakpoint-xl: 1200px;
28-
--font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
29-
--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
30-
}
1+
$blue: #007BFF;
2+
$indigo: #6610F2;
3+
$purple: #6F42C1;
4+
$pink: #E83E8C;
5+
$red: #DC3545;
6+
$orange: #FD7E14;
7+
$yellow: #FFC107;
8+
$green: #28A745;
9+
$teal: #20C997;
10+
$cyan: #17A2B8;
11+
$white: #FFF;
12+
$gray: #6C757D;
13+
$gray-dark: #343A40;
14+
$primary: #007BFF;
15+
$secondary: #6C757D;
16+
$success: #28A745;
17+
$info: #17A2B8;
18+
$warning: #FFC107;
19+
$danger: #DC3545;
20+
$light: #F8F9FA;
21+
$dark: #343A40;
22+
23+
$breakpoint-xs: 0;
24+
$breakpoint-sm: 576px;
25+
$breakpoint-md: 768px;
26+
$breakpoint-lg: 992px;
27+
$breakpoint-xl: 1200px;
28+
29+
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
30+
$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

src/main.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,37 @@
77
@import "_master-template";
88
@import "_typography";
99

10+
:root {
11+
--blue: $blue;
12+
--indigo: $indigo;
13+
--purple: $purple;
14+
--pink: $pink;
15+
--red: $red;
16+
--orange: $orange;
17+
--yellow: $yellow;
18+
--green: $green;
19+
--teal: $teal;
20+
--cyan: $cyan;
21+
--white: $white;
22+
--gray: $gray;
23+
--gray-dark: $gray-dark;
24+
--primary: $primary;
25+
--secondary: $secondary;
26+
--success: $success;
27+
--info: $info;
28+
--warning: $warning;
29+
--danger: $danger;
30+
--light: $light;
31+
--dark: $dark;
32+
--breakpoint-xs: $breakpoint-xs;
33+
--breakpoint-sm: $breakpoint-sm;
34+
--breakpoint-md: $breakpoint-md;
35+
--breakpoint-lg: $breakpoint-lg;
36+
--breakpoint-xl: $breakpoint-xl;
37+
--font-family-sans-serif: $font-family-sans-serif;
38+
--font-family-monospace: $font-family-monospace;
39+
}
40+
1041

1142
* {
1243
box-sizing: border-box;

0 commit comments

Comments
 (0)