Add responsive classes for centering elements with margin auto
This commit is contained in:
parent
34ad08414f
commit
7d0d9eb66b
1 changed files with 27 additions and 0 deletions
|
@ -2,8 +2,14 @@
|
|||
|
||||
UTILITIES
|
||||
|
||||
Media Query Extensions:
|
||||
-ns = not-small
|
||||
-m = medium
|
||||
-l = large
|
||||
|
||||
*/
|
||||
|
||||
/* Equivalent to .overflow-y-scroll */
|
||||
.overflow-container {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
@ -12,3 +18,24 @@
|
|||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (--breakpoint-not-small){
|
||||
.center-ns {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (--breakpoint-medium){
|
||||
.center-m {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (--breakpoint-large){
|
||||
.center-l {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue