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:
parent
72e979b0fb
commit
1c9fbfa178
13
modules/primer-marketing-utilities/lib/layout.scss
Normal file
13
modules/primer-marketing-utilities/lib/layout.scss
Normal 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; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user