|
3 | 3 | @import "vendor/breakpoint";
|
4 | 4 | @import "vendor/breakpoint-slicer";
|
5 | 5 |
|
6 |
| -$slicer-breakpoint-names: 'xs' 's' 'm' 'l' 'xl'; |
| 6 | +// 0 400 600 800 1050 |
| 7 | +$slicer-breakpoint-names: 'xs' 's' 'm' 'l' 'xl'; |
| 8 | + |
| 9 | +$s-sidebar-width: 100%; |
| 10 | +$m-sidebar-width: 13rem; |
| 11 | +$l-sidebar-width: 17rem; |
| 12 | +$side-pad-left: 1rem; |
7 | 13 |
|
8 | 14 | html {
|
9 | 15 | font-family: "PT Sans", Helvetica, Arial, sans-serif;
|
10 |
| -} |
11 |
| - |
12 |
| -// 48em - 768 - 4 |
13 |
| -// 58em - 928 - 5 |
14 |
| -// 64em - 1024 - 5 |
15 | 16 |
|
16 |
| -@include from('m') { |
17 |
| - html { |
| 17 | + @include from('s') { |
| 18 | + background-color: orange; |
| 19 | + } |
| 20 | + @include from('m') { |
18 | 21 | background-color: yellow;
|
19 | 22 | }
|
20 |
| -} |
21 |
| -@include from('l') { |
22 |
| - html { |
| 23 | + @include from('l') { |
23 | 24 | font-size: 16px;
|
24 | 25 | background-color: green;
|
25 | 26 | }
|
26 |
| -} |
27 |
| -@include from('xl') { |
28 |
| - html { |
| 27 | + @include from('xl') { |
29 | 28 | font-size: 20px;
|
30 | 29 | background-color: blue;
|
31 | 30 | }
|
32 | 31 | }
|
33 | 32 |
|
34 |
| -.outer { |
| 33 | +body { |
| 34 | + margin: 0; |
35 | 35 | }
|
36 | 36 |
|
37 | 37 | .sidebar {
|
38 |
| - top: 0; |
39 |
| - left: 0; |
40 |
| - background-color: #202020; |
| 38 | + background-color: #aa759f; |
41 | 39 | color: rgba(255,255,255,.5);
|
42 |
| - width: 100%; |
| 40 | + padding: 2em $side-pad-left; |
43 | 41 |
|
44 |
| - @include to('l') { |
45 |
| - position: fixed; |
46 |
| - text-align: center; |
47 |
| - padding: 2rem 1rem; |
| 42 | + @include to('m') { |
| 43 | + text-align: center; |
| 44 | + width: calc(#{$s-sidebar-width} - 2*#{$side-pad-left}); |
48 | 45 | }
|
49 |
| - @include from('l') { |
| 46 | + @include from('m') { |
50 | 47 | position: fixed;
|
| 48 | + top: 0; |
| 49 | + left: 0; |
| 50 | + bottom: 0; |
51 | 51 | height: 100%;
|
52 |
| - width: 18rem; |
53 | 52 | text-align: left;
|
54 |
| - } |
55 | 53 |
|
56 |
| - a { |
57 |
| - color: #fff; |
| 54 | + width: calc(#{$m-sidebar-width} - 2*#{$side-pad-left}); |
| 55 | + } |
| 56 | + @include from('l') { |
| 57 | + width: calc(#{$l-sidebar-width} - 2*#{$side-pad-left}); |
58 | 58 | }
|
59 | 59 |
|
| 60 | + |
| 61 | + |
| 62 | + a { color: #fff; } |
60 | 63 | }
|
61 | 64 |
|
62 |
| -/* About section */ |
63 | 65 | .sidebar-about h1 {
|
64 | 66 | color: #fff;
|
65 | 67 | margin-top: 0;
|
66 | 68 | font-family: "PT Sans", Arial, sans-serif;
|
67 |
| - font-size: 3.5rem; |
68 | 69 | font-weight: bold;
|
69 | 70 | line-height: 1.15;
|
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + @include to('s') { |
| 75 | + font-size: 1.5rem; |
| 76 | + } |
| 77 | + @include from('s') { |
| 78 | + font-size: 2.5rem; |
| 79 | + } |
| 80 | + @include from('m') { |
| 81 | + font-size: 3.0rem; |
| 82 | + } |
| 83 | + @include from('l') { |
| 84 | + font-size: 3.5rem; |
| 85 | + } |
70 | 86 | }
|
71 | 87 |
|
72 |
| -/* Sidebar nav */ |
73 | 88 | .sidebar-nav {
|
74 | 89 | margin-bottom: 1rem;
|
75 | 90 | }
|
@@ -109,29 +124,28 @@ a.sidebar-nav-item {
|
109 | 124 | }
|
110 | 125 |
|
111 | 126 | .content {
|
112 |
| - padding-top: 4rem; |
113 |
| - padding-bottom: 4rem; |
114 |
| - |
115 |
| - @include from('l') { |
116 |
| - margin-left: 20rem; |
117 |
| - margin-right: 2rem; |
118 |
| - } |
119 |
| - |
120 |
| - @include from('xl') { |
121 |
| - margin-left: 22rem; |
122 |
| - margin-right: 4rem; |
123 |
| - } |
| 127 | + @include to('m') { margin-left: 0; } |
| 128 | + @include from('m') { margin-left: #{$m-sidebar-width}; } |
| 129 | + @include from('l') { margin-left: #{$l-sidebar-width}; } |
124 | 130 | }
|
125 | 131 |
|
126 | 132 | .banner {
|
127 |
| - height: 20em; |
128 | 133 | background-color: #dfdfdf;
|
| 134 | + |
| 135 | + padding: 4rem 10% 4rem 10%; |
129 | 136 | }
|
130 | 137 |
|
131 | 138 | .mission-statement {
|
132 | 139 | //color: black;
|
133 | 140 | text-align: center;
|
134 | 141 | }
|
135 | 142 |
|
136 |
| -@import "theme"; |
| 143 | +.sidebar { |
| 144 | +} |
| 145 | +.content a, |
| 146 | +.related-posts li a:hover { |
| 147 | + color: #aa759f; |
| 148 | +} |
| 149 | + |
| 150 | +//@import "theme"; |
137 | 151 | //@import "index";
|
0 commit comments