2019-05-13 17:04:06 -04:00
|
|
|
// stylelint-disable primer/selector-no-utility, primer/no-override
|
2017-03-24 09:47:37 -04:00
|
|
|
//
|
2017-03-26 21:09:19 -04:00
|
|
|
// Utility classes for layout
|
2017-03-24 09:47:37 -04:00
|
|
|
//
|
|
|
|
|
2017-03-26 21:09:19 -04:00
|
|
|
// Display
|
|
|
|
|
2020-04-24 11:44:37 -04:00
|
|
|
.d-block {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
.d-flex {
|
|
|
|
display: flex !important;
|
|
|
|
}
|
|
|
|
.d-inline {
|
|
|
|
display: inline !important;
|
|
|
|
}
|
|
|
|
.d-inline-block {
|
|
|
|
display: inline-block !important;
|
|
|
|
}
|
|
|
|
.d-none {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2017-03-24 09:47:37 -04:00
|
|
|
|
|
|
|
@each $media-query in map-keys($media-queries) {
|
|
|
|
@for $i from 1 through length($spacers) {
|
|
|
|
@include mq($media-query) {
|
|
|
|
$size: #{map-get($spacers, sp-#{$i - 1})};
|
|
|
|
$scale: #{$i - 1};
|
|
|
|
|
|
|
|
// .d-sm-block, .d-md-none, .d-lg-inline
|
2020-04-24 11:44:37 -04:00
|
|
|
.d-#{$media-query}-block {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
.d-#{$media-query}-flex {
|
|
|
|
display: flex !important;
|
|
|
|
}
|
|
|
|
.d-#{$media-query}-inline {
|
|
|
|
display: inline !important;
|
|
|
|
}
|
|
|
|
.d-#{$media-query}-inline-block {
|
|
|
|
display: inline-block !important;
|
|
|
|
}
|
|
|
|
.d-#{$media-query}-none {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2017-03-24 09:47:37 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-03-26 21:09:19 -04:00
|
|
|
|
2020-05-01 15:32:42 -04:00
|
|
|
// Horizontal alignment
|
|
|
|
|
|
|
|
.float-left {
|
|
|
|
float: left !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.float-right {
|
|
|
|
float: right !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex-justify-start {
|
|
|
|
justify-content: flex-start !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex-justify-end {
|
|
|
|
justify-content: flex-end !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex-justify-between {
|
|
|
|
justify-content: space-between !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex-justify-around {
|
|
|
|
justify-content: space-around !important;
|
|
|
|
}
|
|
|
|
|
2017-03-26 21:09:19 -04:00
|
|
|
// Vertical alignment
|
|
|
|
|
2020-04-24 11:44:37 -04:00
|
|
|
.v-align-baseline {
|
|
|
|
vertical-align: baseline !important;
|
|
|
|
}
|
|
|
|
.v-align-bottom {
|
|
|
|
vertical-align: bottom !important;
|
|
|
|
}
|
|
|
|
.v-align-middle {
|
|
|
|
vertical-align: middle !important;
|
|
|
|
}
|
|
|
|
.v-align-text-bottom {
|
|
|
|
vertical-align: text-bottom !important;
|
|
|
|
}
|
|
|
|
.v-align-text-top {
|
|
|
|
vertical-align: text-top !important;
|
|
|
|
}
|
|
|
|
.v-align-top {
|
|
|
|
vertical-align: top !important;
|
|
|
|
}
|