|
6 | 6 | margin-bottom: 2em;
|
7 | 7 |
|
8 | 8 | @include breakpoint($medium) {
|
9 |
| - @include span(12 of 12); |
| 9 | + width: span(12 of 12); |
10 | 10 | }
|
11 | 11 |
|
12 | 12 | @include breakpoint($large) {
|
13 |
| - @include span(10 of 12 last); |
14 |
| - @include prefix(0.5 of 12); |
| 13 | + float: right; |
| 14 | + padding-left: gutter(0.5 of 12); |
| 15 | + width: span(10 of 12); |
15 | 16 | }
|
16 | 17 |
|
17 | 18 | a {
|
|
108 | 109 | .grid__item {
|
109 | 110 | margin-bottom: 2em;
|
110 | 111 |
|
| 112 | + @include breakpoint($small) { |
| 113 | + float: left; |
| 114 | + width: span(5 of 10); |
| 115 | + |
| 116 | + &:nth-child(2n+1) { |
| 117 | + clear: both; |
| 118 | + margin-left: 0; |
| 119 | + } |
| 120 | + |
| 121 | + &:nth-child(2n+2) { |
| 122 | + clear: none; |
| 123 | + margin-left: gutter(of 10); |
| 124 | + } |
| 125 | + } |
| 126 | + |
| 127 | + @include breakpoint($medium) { |
| 128 | + margin-left: 0; /* override margin*/ |
| 129 | + margin-right: 0; /* override margin*/ |
| 130 | + width: span(3 of 12); |
| 131 | + |
| 132 | + &:nth-child(2n+1) { |
| 133 | + clear: none; |
| 134 | + } |
| 135 | + |
| 136 | + &:nth-child(4n+1) { |
| 137 | + clear: both; |
| 138 | + } |
| 139 | + |
| 140 | + &:nth-child(4n+2) { |
| 141 | + clear: none; |
| 142 | + margin-left: gutter(1 of 12); |
| 143 | + } |
| 144 | + |
| 145 | + &:nth-child(4n+3) { |
| 146 | + clear: none; |
| 147 | + margin-left: gutter(1 of 12); |
| 148 | + } |
| 149 | + |
| 150 | + &:nth-child(4n+4) { |
| 151 | + clear: none; |
| 152 | + margin-left: gutter(1 of 12); |
| 153 | + } |
| 154 | + } |
| 155 | + |
111 | 156 | .page__meta {
|
112 | 157 | margin: 0 0 4px;
|
113 | 158 | }
|
|
119 | 164 |
|
120 | 165 | .archive__item-excerpt {
|
121 | 166 | display: none;
|
122 |
| - } |
123 | 167 |
|
124 |
| - @include breakpoint($small) { |
125 |
| - @include gallery(5 of 10); |
126 |
| - .archive__item-teaser { |
127 |
| - max-height: 200px; |
| 168 | + @include breakpoint($medium) { |
| 169 | + display: block; |
| 170 | + font-size: $type-size-6; |
128 | 171 | }
|
129 | 172 | }
|
130 | 173 |
|
131 |
| - @include breakpoint($medium) { |
132 |
| - margin-left: 0; /* reset before mixin does its thing*/ |
133 |
| - margin-right: 0; /* reset before mixin does its thing*/ |
134 |
| - @include gallery(2.5 of 10); |
| 174 | + .archive__item-teaser { |
135 | 175 |
|
136 |
| - .archive__item-teaser { |
137 |
| - max-height: 120px; |
| 176 | + @include breakpoint($small) { |
| 177 | + max-height: 200px; |
138 | 178 | }
|
139 | 179 |
|
140 |
| - .archive__item-excerpt { |
141 |
| - display: block; |
142 |
| - font-size: $type-size-6; |
| 180 | + @include breakpoint($medium) { |
| 181 | + max-height: 120px; |
143 | 182 | }
|
144 | 183 | }
|
145 | 184 | }
|
|
160 | 199 | font-size: 1.25rem;
|
161 | 200 |
|
162 | 201 | @include breakpoint($small) {
|
| 202 | + float: left; |
163 | 203 | margin-bottom: 0;
|
164 |
| - @include gallery(4 of 12); |
| 204 | + width: span(4 of 12); |
| 205 | + |
| 206 | + &:nth-child(3n+1) { |
| 207 | + clear: both; |
| 208 | + margin-left: 0; |
| 209 | + } |
| 210 | + |
| 211 | + &:nth-child(3n+2) { |
| 212 | + clear: none; |
| 213 | + margin-left: gutter(of 12); |
| 214 | + } |
| 215 | + |
| 216 | + &:nth-child(3n+3) { |
| 217 | + clear: none; |
| 218 | + margin-left: gutter(of 12); |
| 219 | + } |
165 | 220 |
|
166 | 221 | .feature__item-teaser {
|
167 | 222 | max-height: 200px;
|
|
170 | 225 | }
|
171 | 226 |
|
172 | 227 | &--left {
|
173 |
| - @include full(); |
| 228 | + float: left; |
| 229 | + margin-left: 0; |
| 230 | + margin-right: 0; |
| 231 | + width: 100%; |
| 232 | + clear: both; |
174 | 233 | font-size: 1.25rem;
|
175 | 234 |
|
176 | 235 | .archive__item-teaser {
|
177 | 236 | margin-bottom: 2em;
|
178 | 237 | }
|
179 | 238 |
|
180 | 239 | @include breakpoint($small) {
|
| 240 | + |
181 | 241 | .archive__item-teaser {
|
182 |
| - @include span(5 of 12); |
| 242 | + float: left; |
| 243 | + width: span(5 of 12); |
183 | 244 | }
|
184 | 245 |
|
185 | 246 | .archive__item-body {
|
186 |
| - @include span(7 of 12 last); |
187 |
| - @include prefix(0.5 of 12); |
188 |
| - @include suffix(1 of 12); |
| 247 | + float: right; |
| 248 | + padding-left: gutter(0.5 of 12); |
| 249 | + padding-right: gutter(1 of 12); |
| 250 | + width: span(7 of 12); |
189 | 251 | }
|
190 | 252 | }
|
191 | 253 | }
|
192 | 254 |
|
193 | 255 | &--right {
|
194 |
| - @include full(); |
| 256 | + float: left; |
| 257 | + margin-left: 0; |
| 258 | + margin-right: 0; |
| 259 | + width: 100%; |
| 260 | + clear: both; |
195 | 261 | font-size: 1.25rem;
|
196 | 262 |
|
197 | 263 | .archive__item-teaser {
|
|
202 | 268 | text-align: right;
|
203 | 269 |
|
204 | 270 | .archive__item-teaser {
|
205 |
| - @include span(5 of 12 rtl); |
| 271 | + float: right; |
| 272 | + width: span(5 of 12); |
206 | 273 | }
|
207 | 274 |
|
208 | 275 | .archive__item-body {
|
209 |
| - @include span(7 of 12 last rtl); |
210 |
| - @include prefix(0.5 of 12); |
211 |
| - @include suffix(1 of 12); |
| 276 | + float: right; |
| 277 | + width: span(7 of 12); |
| 278 | + padding-left: gutter(0.5 of 12); |
| 279 | + padding-right: gutter(1 of 12); |
212 | 280 | }
|
213 | 281 | }
|
214 | 282 | }
|
215 | 283 |
|
216 | 284 | &--center {
|
217 |
| - @include full(); |
| 285 | + float: left; |
| 286 | + margin-left: 0; |
| 287 | + margin-right: 0; |
| 288 | + width: 100%; |
| 289 | + clear: both; |
218 | 290 | font-size: 1.25rem;
|
219 | 291 |
|
220 | 292 | .archive__item-teaser {
|
|
0 commit comments