2016-05-17 13:26:22 +00:00
|
|
|
// Width and height
|
2016-02-17 04:21:27 +00:00
|
|
|
|
2016-12-23 00:37:18 +00:00
|
|
|
.w-25 { width: 25% !important; }
|
|
|
|
.w-50 { width: 50% !important; }
|
|
|
|
.w-75 { width: 75% !important; }
|
2016-02-17 04:21:27 +00:00
|
|
|
.w-100 { width: 100% !important; }
|
2016-12-23 00:37:18 +00:00
|
|
|
|
|
|
|
.h-25 { height: 25% !important; }
|
|
|
|
.h-50 { height: 50% !important; }
|
|
|
|
.h-75 { height: 75% !important; }
|
2016-05-17 13:26:22 +00:00
|
|
|
.h-100 { height: 100% !important; }
|
2016-02-17 04:21:27 +00:00
|
|
|
|
2016-11-28 00:31:31 +00:00
|
|
|
.mw-100 { max-width: 100% !important; }
|
|
|
|
.mh-100 { max-height: 100% !important; }
|
|
|
|
|
2015-11-06 06:17:34 +00:00
|
|
|
// Margin and Padding
|
2015-06-01 08:19:02 +00:00
|
|
|
|
2016-11-01 04:13:05 +00:00
|
|
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
|
@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);
|
|
|
|
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
2016-11-28 21:23:59 +00:00
|
|
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
|
|
|
|
|
|
.#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length-y $length-x !important; }
|
|
|
|
.#{$abbrev}t#{$infix}-#{$size} { #{$prop}-top: $length-y !important; }
|
|
|
|
.#{$abbrev}r#{$infix}-#{$size} { #{$prop}-right: $length-x !important; }
|
|
|
|
.#{$abbrev}b#{$infix}-#{$size} { #{$prop}-bottom: $length-y !important; }
|
|
|
|
.#{$abbrev}l#{$infix}-#{$size} { #{$prop}-left: $length-x !important; }
|
|
|
|
.#{$abbrev}x#{$infix}-#{$size} {
|
|
|
|
#{$prop}-right: $length-x !important;
|
|
|
|
#{$prop}-left: $length-x !important;
|
|
|
|
}
|
|
|
|
.#{$abbrev}y#{$infix}-#{$size} {
|
|
|
|
#{$prop}-top: $length-y !important;
|
|
|
|
#{$prop}-bottom: $length-y !important;
|
2016-11-01 04:13:05 +00:00
|
|
|
}
|
|
|
|
}
|
2015-11-06 06:17:34 +00:00
|
|
|
}
|
|
|
|
}
|
2016-12-25 02:11:43 +00:00
|
|
|
|
|
|
|
// Some special margin utils
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
|
|
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
2016-12-25 02:52:45 +00:00
|
|
|
.m#{$infix}-auto { margin: auto !important; }
|
2016-12-25 02:11:43 +00:00
|
|
|
.mx#{$infix}-auto {
|
|
|
|
margin-right: auto !important;
|
|
|
|
margin-left: auto !important;
|
|
|
|
}
|
2016-12-25 02:52:45 +00:00
|
|
|
.my#{$infix}-auto {
|
|
|
|
margin-top: auto !important;
|
|
|
|
margin-bottom: auto !important;
|
|
|
|
}
|
2016-12-25 02:11:43 +00:00
|
|
|
.mt#{$infix}-auto { margin-top: auto !important; }
|
|
|
|
.mr#{$infix}-auto { margin-right: auto !important; }
|
|
|
|
.mb#{$infix}-auto { margin-bottom: auto !important; }
|
|
|
|
.ml#{$infix}-auto { margin-left: auto !important; }
|
|
|
|
}
|
2015-11-06 06:17:34 +00:00
|
|
|
}
|
2015-06-01 08:19:02 +00:00
|
|
|
|
|
|
|
// Positioning
|
2015-08-14 07:36:26 +00:00
|
|
|
|
2015-06-01 08:19:02 +00:00
|
|
|
.pos-f-t {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: $zindex-navbar-fixed;
|
|
|
|
}
|