2016-05-17 15:26:22 +02:00
|
|
|
// Width and height
|
2016-02-17 05:21:27 +01:00
|
|
|
|
|
|
|
.w-100 { width: 100% !important; }
|
2016-05-17 15:26:22 +02:00
|
|
|
.h-100 { height: 100% !important; }
|
2016-02-17 05:21:27 +01:00
|
|
|
|
2015-11-06 07:17:34 +01:00
|
|
|
// Margin and Padding
|
2015-06-01 10:19:02 +02:00
|
|
|
|
2016-09-09 07:15:34 +02:00
|
|
|
.mx-auto {
|
2015-11-06 07:17:34 +01:00
|
|
|
margin-right: auto !important;
|
|
|
|
margin-left: auto !important;
|
|
|
|
}
|
2015-06-01 10:19:02 +02:00
|
|
|
|
2015-11-06 07:17:34 +01:00
|
|
|
@each $prop, $abbrev in (margin: m, padding: p) {
|
|
|
|
@each $size, $lengths in $spacers {
|
|
|
|
$length-x: map-get($lengths, x);
|
|
|
|
$length-y: map-get($lengths, y);
|
|
|
|
|
2016-09-09 07:15:34 +02:00
|
|
|
.#{$abbrev}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides
|
|
|
|
.#{$abbrev}t-#{$size} { #{$prop}-top: $length-y !important; }
|
|
|
|
.#{$abbrev}r-#{$size} { #{$prop}-right: $length-x !important; }
|
|
|
|
.#{$abbrev}b-#{$size} { #{$prop}-bottom: $length-y !important; }
|
|
|
|
.#{$abbrev}l-#{$size} { #{$prop}-left: $length-x !important; }
|
2015-11-06 07:17:34 +01:00
|
|
|
|
|
|
|
// Axes
|
2016-09-09 07:15:34 +02:00
|
|
|
.#{$abbrev}x-#{$size} {
|
2015-11-06 07:17:34 +01:00
|
|
|
#{$prop}-right: $length-x !important;
|
|
|
|
#{$prop}-left: $length-x !important;
|
|
|
|
}
|
2016-09-09 07:15:34 +02:00
|
|
|
.#{$abbrev}y-#{$size} {
|
2015-11-06 07:17:34 +01:00
|
|
|
#{$prop}-top: $length-y !important;
|
|
|
|
#{$prop}-bottom: $length-y !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-06-01 10:19:02 +02:00
|
|
|
|
|
|
|
// Positioning
|
2015-08-14 09:36:26 +02:00
|
|
|
|
2015-06-01 10:19:02 +02:00
|
|
|
.pos-f-t {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: $zindex-navbar-fixed;
|
|
|
|
}
|