|
10 | 10 | * </div> |
11 | 11 | */ |
12 | 12 |
|
| 13 | + |
| 14 | + |
| 15 | +/* Notice elements with figures */ |
| 16 | +.notice { |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + h2, h3 { |
| 21 | + margin-top: 0 !important; |
| 22 | + } |
| 23 | + |
| 24 | + figcaption { |
| 25 | + font-family: $body-font; |
| 26 | + font-size: 1.2em; // This will override the previous 1.3em |
| 27 | + } |
| 28 | + |
| 29 | + &--info { |
| 30 | + .btn.btn--info { |
| 31 | + color: #fff; |
| 32 | + } |
| 33 | + |
| 34 | + .archive__item-excerpt { |
| 35 | + font-size: 0.95em; |
| 36 | + } |
| 37 | + |
| 38 | + h2 { |
| 39 | + font-size: 1.5em; |
| 40 | + } |
| 41 | + |
| 42 | + h3 a, |
| 43 | + h2 a:visited { |
| 44 | + font-size: 1.5em; |
| 45 | + text-decoration: none; |
| 46 | + } |
| 47 | + } |
| 48 | +} |
| 49 | + |
| 50 | + |
13 | 51 | @mixin notice($notice-color) { |
14 | | - margin: 2em 0 !important; /* override*/ |
15 | | - padding: 1em; |
| 52 | + margin: 2rem 0 !important; /* override*/ |
| 53 | + padding: 3rem; |
16 | 54 | color: $text-color; |
17 | 55 | font-family: $global-font-family; |
18 | | - font-size: $type-size-6 !important; |
| 56 | + font-size: $type-size-4 !important; |
| 57 | + font-weight: 300!important; |
19 | 58 | text-indent: initial; /* override*/ |
20 | 59 | background-color: mix($background-color, $notice-color, $notice-background-mix); |
21 | 60 | border-radius: $border-radius; |
22 | | - box-shadow: 0 1px 1px rgba($notice-color, 0.25); |
| 61 | + box-shadow: 0 1px 1px rgba(darken($notice-color, 20%), 0.25); |
| 62 | + line-height: 1.7rem!important; |
| 63 | + |
| 64 | + // We might want a header like element in a notice but not an actual h4 etc |
| 65 | + // this style mimicks a header within a notice block. |
| 66 | + .header { |
| 67 | + font-size: 1.5rem!important; |
| 68 | + font-weight: 700; |
| 69 | + margin-bottom: 1rem; |
| 70 | + } |
23 | 71 |
|
24 | 72 | h4 { |
25 | | - margin-top: 0 !important; /* override*/ |
| 73 | + margin-top: 0 !important; |
26 | 74 | margin-bottom: 0.75em; |
27 | 75 | line-height: inherit; |
28 | 76 | } |
|
33 | 81 | font-size: 1.6em; |
34 | 82 | } |
35 | 83 |
|
| 84 | + p, li { |
| 85 | + font-size: $type-size-6!important; |
| 86 | + font-weight: 300; |
| 87 | + } |
| 88 | + |
36 | 89 | p { |
| 90 | + line-height: 1.6rem; |
| 91 | + |
37 | 92 | &:last-child { |
38 | 93 | margin-bottom: 0 !important; /* override*/ |
39 | 94 | } |
|
81 | 136 | @include notice($light-gray); |
82 | 137 | } |
83 | 138 |
|
84 | | -.notice .header { |
85 | | - font-size: 1.5rem!important; |
86 | | - font-weight: 700; |
87 | | - margin-bottom: 1rem; |
88 | | -} |
89 | 139 |
|
90 | 140 | /* Primary notice */ |
91 | 141 |
|
|
117 | 167 | @include notice($danger-color); |
118 | 168 | } |
119 | 169 |
|
120 | | -.notice-highlight { |
121 | | - background-color: $background-block; |
122 | | - padding: 1em; |
123 | | - |
124 | | - h2 { |
125 | | - margin-top: 1em; |
126 | | - } |
127 | | -} |
128 | | - |
129 | 170 | /* Quotes in notice blocks */ |
130 | 171 |
|
131 | 172 | .notice blockquote { |
|
134 | 175 | max-width: 100%; |
135 | 176 |
|
136 | 177 | &.highlight-quote { |
137 | | - margin: 7em .5em; |
| 178 | + margin: 3rem .5em; |
138 | 179 | padding: 0; |
139 | 180 | max-width: $medium; |
140 | 181 |
|
141 | 182 | p { |
142 | 183 | margin-bottom: 1rem; |
| 184 | + font-size: 1.5rem!important; |
143 | 185 | } |
144 | 186 | &::after { |
145 | 187 | margin: 2rem; |
|
151 | 193 | } |
152 | 194 | } |
153 | 195 |
|
154 | | -/* Notice elements with figures */ |
155 | | -.notice { |
156 | | - border-radius: 15px !important; |
157 | | - box-shadow: 0 1px 1px rgba(189, 193, 196, 0.25) !important; |
158 | | - padding: 3rem; |
159 | | - |
160 | | - font-size: 1.7rem !important; |
161 | | - font-weight: 700; |
162 | | - margin-bottom: 1rem; |
163 | | - |
164 | | - p, li { |
165 | | - font-size: 1.1rem!important; |
166 | | - } |
167 | | - |
168 | | - h2, h3 { |
169 | | - margin-top: 0 !important; |
170 | | - } |
171 | | - |
172 | | - figcaption { |
173 | | - font-family: $body-font; |
174 | | - font-size: 1.2em; // This will override the previous 1.3em |
175 | | - } |
176 | | - |
177 | | - &--info { |
178 | | - .btn.btn--info { |
179 | | - color: #fff; |
180 | | - } |
181 | | - |
182 | | - .archive__item-excerpt { |
183 | | - font-size: 0.95em; |
184 | | - } |
185 | | - |
186 | | - h2 { |
187 | | - font-size: 1.5em; |
188 | | - } |
189 | | - |
190 | | - h3 a, |
191 | | - h2 a:visited { |
192 | | - font-size: 1.5em; |
193 | | - text-decoration: none; |
194 | | - } |
195 | | - } |
196 | | -} |
197 | | - |
198 | 196 |
|
199 | 197 | /* max 480 px */ |
200 | 198 | @media screen and (max-width: 480px) { |
|
0 commit comments