Skip to content

Commit 61be08a

Browse files
committed
Add helper classes for adding top/bottom margin
1 parent e617bef commit 61be08a

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

stylesheets/site-structure.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,17 @@ ul + p, ol + p {
144144
// Font size on large buttons
145145
.xl-button-text {
146146
font-size: 22px;
147-
}
147+
}
148+
149+
// thanks http://stackoverflow.com/a/32490429/1976323
150+
$margins: (xs: 0.5rem, sm: 1rem, md: 1.5rem, lg: 2rem, xl: 2.5rem);
151+
152+
@each $name, $value in $margins {
153+
.margin-top-#{$name} {
154+
margin-top: $value;
155+
}
156+
157+
.margin-bottom-#{$name} {
158+
margin-bottom: $value;
159+
}
160+
}

0 commit comments

Comments
 (0)