Skip to content

Commit 94758a7

Browse files
committed
Add vertical alignment modifiers
1 parent 74b8b91 commit 94758a7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

csswizardry-grids.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,25 @@ $class-type: unquote(".");
306306
}
307307

308308

309+
/**
310+
* Align grid cells vertically (`.grid--middle` or `.grid--bottom`). Extends
311+
* `.grid`.
312+
*/
313+
#{$class-type}grid--middle{
314+
315+
> #{$class-type}grid__item{
316+
vertical-align:middle;
317+
}
318+
}
319+
320+
#{$class-type}grid--bottom{
321+
322+
> #{$class-type}grid__item{
323+
vertical-align:bottom;
324+
}
325+
}
326+
327+
309328

310329

311330

0 commit comments

Comments
 (0)