1
1
mirror of https://github.com/primer/css.git synced 2024-11-29 14:14:26 +03:00

New reponsive layout/position utils

This commit is contained in:
Sophie Shepherd 2017-10-19 11:27:33 -05:00
parent 72e979b0fb
commit 1c9fbfa178

View File

@ -0,0 +1,13 @@
// Layout utilities
// stylelint-disable block-opening-brace-space-before, primer/selector-no-utility, comment-empty-line-before
// Responsive position utilities
@each $breakpoint in map-keys($breakpoints) {
@include breakpoint($breakpoint) {
/* Set position to relative */
.position-#{$breakpoint}-relative { position: relative !important; }
/* Set position to absolute */
.position-#{$breakpoint}-absolute { position: absolute !important; }
}
}