|
1 | 1 | /*
|
2 |
| -Comment-A: rem for left-right, for consistent alignment. |
3 |
| - em for top/bottom, so the spacing is relative to font-size |
4 |
| -
|
5 |
| -Comment-D: |
6 |
| - Set the font-size w/ calc and use rem. This way, the font-size can scale up as the browser window gets larger, but it also doesn't get ridiculously hard to read when the browser window shrinks |
7 |
| -Comment-E: |
8 |
| - increases margin as screen width gets smaller |
| 2 | + Comment-A: rem for left-right, for consistent alignment. |
| 3 | + em for top/bottom, so the spacing is relative to font-size |
9 | 4 | */
|
10 | 5 | :root {
|
11 | 6 | /* Color Palette
|
12 | 7 | Variables follow convention found here: https://codepen.io/paceaux/pen/XdxQza
|
13 | 8 | Color is a dark, dark gray rgb (55, 55, 55). All grays and base line styles are multiples of this
|
14 | 9 | Using a "base value", all colors are a multiple of 55
|
15 | 10 | */
|
16 |
| - --colorNeutralDarker: rgb(55,55,55); /*base: #373737; hsl(22%, 22%, 22%) */ |
| 11 | + --colorNeutralDarker: rgb(55,55,55); /*base: #373737; hsl(22%, 22%, 22%) */ |
17 | 12 | --colorNeutralDark: rgb(110,110,110); /* base * 2: #6e6e6e; hsl(0, 0%, 43%) */
|
18 |
| - --colorNeutral: rgb(165,165,165); /* base * 3: #a5a5a5; hsl(0, 0%, 65%) */ |
19 |
| - --colorNeutralLight: rgb(192.5,192.5,192.5); /*base * 3.5: #c1c1c1; hsl(0, 0%, 75%) */ |
20 |
| - --colorNeutralLighter: rgb(220,220,220); /* base * 4: #dcdcdc; hsl(0, 0%, 86%) */ |
21 |
| - --colorCool: rgb(110,165,220); /* #6ea5dc; hsl(210, 61%, 65%); */ |
22 |
| - --colorCoolDarker: rgb(110,165,193); /* #6ea5c1; hsl (200,40%,59%) */ |
| 13 | + --colorNeutral: rgb(165,165,165); /* base * 3: #a5a5a5; hsl(0, 0%, 65%) */ |
| 14 | + --colorNeutralLight: rgb(192.5,192.5,192.5); /*base * 3.5: #c1c1c1; hsl(0, 0%, 75%) */ |
| 15 | + --colorNeutralLighter: rgb(220,220,220); /* base * 4: #dcdcdc; hsl(0, 0%, 86%) */ |
| 16 | + --colorCool: rgb(110,165,220); /* #6ea5dc; hsl(210, 61%, 65%); */ |
| 17 | + --colorCoolDarker: rgb(110,165,193); /* #6ea5c1; hsl (200,40%,59%) */ |
23 | 18 |
|
24 | 19 | /* Colors
|
25 | 20 | Variables follow convention found here: https://gist.github.com/paceaux/8638765e747f5bd6387b721cde99e066#sassscssstylus-naming
|
@@ -58,7 +53,7 @@ Comment-E:
|
58 | 53 | html {
|
59 | 54 | color: #373737;
|
60 | 55 | color: var(--baseTextColor);
|
61 |
| - font-size: calc(.5vw + 1rem); /*Comment-D*/ |
| 56 | + font-size: calc(.5vw + 1rem); /*the font-size can scale up as the browser window gets larger, but doesn't get hard to read when the browser window shrinks*/ |
62 | 57 | line-height: 1.168;
|
63 | 58 | line-height: var(--baseLineHeight);
|
64 | 59 | }
|
|
99 | 94 | font-weight: bold;
|
100 | 95 | line-height: 1.2;
|
101 | 96 | line-height: var(--smallLineHeight);
|
102 |
| - margin-bottom: calc(1.618vmin - 1vmax + .35em); /*Comment-E*/ |
| 97 | + margin-bottom: calc(1.618vmin - 1vmax + .35em); /* increases margin as screen width gets smaller */ |
103 | 98 | }
|
104 | 99 |
|
105 | 100 | h1 {
|
|
0 commit comments