Last active
August 12, 2022 10:50
-
-
Save mistergraphx/6d4f9e9f8b802538dddc8a423c6f655e to your computer and use it in GitHub Desktop.
Bootstrap utilities generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Utility generator | |
// Used to generate utilities & print utilities | |
@mixin generate-utility($utility, $infix, $is-rfs-media-query: false) { | |
$values: map-get($utility, values); | |
// If the values are a list or string, convert it into a map | |
@if type-of($values) == "string" or type-of(nth($values, 1)) != "list" { | |
$values: zip($values, $values); | |
} | |
@each $key, $value in $values { | |
$properties: map-get($utility, property); | |
// Multiple properties are possible, for example with vertical or horizontal margins or paddings | |
@if type-of($properties) == "string" { | |
$properties: append((), $properties); | |
} | |
// Use custom class if present | |
$property-class: if(map-has-key($utility, class), map-get($utility, class), nth($properties, 1)); | |
$property-class: if($property-class == null, "", $property-class); | |
// Use custom CSS variable name if present, otherwise default to `class` | |
$css-variable-name: if(map-has-key($utility, css-variable-name), map-get($utility, css-variable-name), map-get($utility, class)); | |
// State params to generate pseudo-classes | |
$state: if(map-has-key($utility, state), map-get($utility, state), ()); | |
$infix: if($property-class == "" and str-slice($infix, 1, 1) == "-", str-slice($infix, 2), $infix); | |
// Don't prefix if value key is null (eg. with shadow class) | |
$property-class-modifier: if($key, if($property-class == "" and $infix == "", "", "-") + $key, ""); | |
@if map-get($utility, rfs) { | |
// Inside the media query | |
@if $is-rfs-media-query { | |
$val: rfs-value($value); | |
// Do not render anything if fluid and non fluid values are the same | |
$value: if($val == rfs-fluid-value($value), null, $val); | |
} | |
@else { | |
$value: rfs-fluid-value($value); | |
} | |
} | |
$is-css-var: map-get($utility, css-var); | |
$is-local-vars: map-get($utility, local-vars); | |
$is-rtl: map-get($utility, rtl); | |
@if $value != null { | |
@if $is-rtl == false { | |
/* rtl:begin:remove */ | |
} | |
@if $is-css-var { | |
.#{$property-class + $infix + $property-class-modifier} { | |
--#{$prefix}#{$css-variable-name}: #{$value}; | |
} | |
@each $pseudo in $state { | |
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} { | |
--#{$prefix}#{$css-variable-name}: #{$value}; | |
} | |
} | |
} @else { | |
.#{$property-class + $infix + $property-class-modifier} { | |
@each $property in $properties { | |
@if $is-local-vars { | |
@each $local-var, $variable in $is-local-vars { | |
--#{$prefix}#{$local-var}: #{$variable}; | |
} | |
} | |
#{$property}: $value if($enable-important-utilities, !important, null); | |
} | |
} | |
@each $pseudo in $state { | |
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} { | |
@each $property in $properties { | |
@if $is-local-vars { | |
@each $local-var, $variable in $is-local-vars { | |
--#{$prefix}#{$local-var}: #{$variable}; | |
} | |
} | |
#{$property}: $value if($enable-important-utilities, !important, null); | |
} | |
} | |
} | |
} | |
@if $is-rtl == false { | |
/* rtl:end:remove */ | |
} | |
} | |
} | |
} | |
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint. | |
// Makes the @content apply to the given breakpoint and wider. | |
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) { | |
$min: breakpoint-min($name, $breakpoints); | |
@if $min { | |
@media (min-width: $min) { | |
@content; | |
} | |
} @else { | |
@content; | |
} | |
} | |
// Minimum breakpoint width. Null for the smallest (first) breakpoint. | |
// | |
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) | |
// 576px | |
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) { | |
$min: map-get($breakpoints, $name); | |
@return if($min != 0, $min, null); | |
} | |
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front. | |
// Useful for making responsive utilities. | |
// | |
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) | |
// "" (Returns a blank string) | |
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) | |
// "-sm" | |
@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) { | |
@return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}"); | |
} | |
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint. | |
// Makes the @content apply to the given breakpoint and wider. | |
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) { | |
$min: breakpoint-min($name, $breakpoints); | |
@if $min { | |
@media (min-width: $min) { | |
@content; | |
} | |
} @else { | |
@content; | |
} | |
} | |
// Internal Bootstrap function to turn maps into its negative variant. | |
// It prefixes the keys with `n` and makes the value negative. | |
@function negativify-map($map) { | |
$result: (); | |
@each $key, $value in $map { | |
@if $key != 0 { | |
$result: map-merge($result, ("n" + $key: (-$value))); | |
} | |
} | |
@return $result; | |
} | |
// VARIABLES | |
$enable-important-utilities: true; | |
$enable-negative-margins: true; | |
// Spacings | |
$spacer-tiny: 0.5rem !default; | |
$spacer-tiny-plus: 0.7rem !default; | |
$spacer-small: 1rem !default; | |
$spacer-small-plus: 1.5rem !default; | |
$spacer-medium: 2rem !default; | |
$spacer-medium-plus: 3rem !default; | |
$spacer-large: 4rem !default; | |
$spacer-large-plus: 6rem !default; | |
$spacer-extra-large: 8rem !default; | |
$spacer-extra-large-plus: 12rem !default; | |
$spacer-ultra-large: 16rem !default; | |
$spacer-ultra-large-plus: 20rem !default; | |
$spacer: 1rem; | |
$spacers: ( | |
0: 0, | |
1: $spacer * .25, | |
2: $spacer * .5, | |
3: $spacer, | |
4: $spacer * 1.5, | |
5: $spacer * 3, | |
); | |
$negative-spacers: if($enable-negative-margins, negativify-map($spacers), null); | |
$utilities: ( | |
"margin": ( | |
responsive: true, | |
property: margin, | |
class: m, | |
values: map-merge($spacers, (auto: auto)) | |
), | |
"margin-x": ( | |
responsive: true, | |
property: margin-right margin-left, | |
class: mx, | |
values: map-merge($spacers, (auto: auto)) | |
), | |
"margin-y": ( | |
responsive: true, | |
property: margin-top margin-bottom, | |
class: my, | |
values: map-merge($spacers, (auto: auto)) | |
), | |
"margin-top": ( | |
responsive: true, | |
property: margin-top, | |
class: mt, | |
values: map-merge($spacers, (auto: auto)) | |
), | |
"margin-end": ( | |
responsive: true, | |
property: margin-right, | |
class: mr, | |
values: map-merge($spacers, (auto: auto)) | |
), | |
"margin-bottom": ( | |
responsive: true, | |
property: margin-bottom, | |
class: mb, | |
values: map-merge($spacers, (auto: auto)) | |
), | |
"margin-start": ( | |
responsive: true, | |
property: margin-left, | |
class: ms, | |
values: map-merge($spacers, (auto: auto)) | |
), | |
// Negative margin utilities | |
"negative-margin-top": ( | |
responsive: true, | |
property: margin-top, | |
class: mt, | |
values: $negative-spacers | |
), | |
"negative-margin-end": ( | |
responsive: true, | |
property: margin-right, | |
class: mr, | |
values: $negative-spacers | |
), | |
"negative-margin-bottom": ( | |
responsive: true, | |
property: margin-bottom, | |
class: mb, | |
values: $negative-spacers | |
), | |
"negative-margin-start": ( | |
responsive: true, | |
property: margin-left, | |
class: ml, | |
values: $negative-spacers | |
), | |
// Padding utilities | |
"padding": ( | |
responsive: true, | |
property: padding, | |
class: p, | |
values: $spacers | |
), | |
"padding-x": ( | |
responsive: true, | |
property: padding-right padding-left, | |
class: px, | |
values: $spacers | |
), | |
"padding-y": ( | |
responsive: true, | |
property: padding-top padding-bottom, | |
class: py, | |
values: $spacers | |
), | |
"padding-top": ( | |
responsive: true, | |
property: padding-top, | |
class: pt, | |
values: $spacers | |
), | |
"padding-end": ( | |
responsive: true, | |
property: padding-right, | |
class: pe, | |
values: $spacers | |
), | |
"padding-bottom": ( | |
responsive: true, | |
property: padding-bottom, | |
class: pb, | |
values: $spacers | |
), | |
"padding-start": ( | |
responsive: true, | |
property: padding-left, | |
class: ps, | |
values: $spacers | |
), | |
); | |
$grid-breakpoints:( | |
'sm': 320px, | |
'md': 480px | |
); | |
// GENERATE | |
// Generate utilities | |
// Loop over each utility property | |
@each $key, $utility in $utilities { | |
$infix: ""; | |
@if type-of($utility) == "map"{ | |
@include generate-utility($utility, $infix); | |
} | |
} | |
// Generate responsive utilities | |
// Loop over each breakpoint | |
@each $breakpoint in map-keys($grid-breakpoints) { | |
// Generate media query if needed | |
@include media-breakpoint-up($breakpoint) { | |
$infix: breakpoint-infix($breakpoint, $grid-breakpoints); | |
// Loop over each utility property | |
@each $key, $utility in $utilities { | |
// The utility can be disabled with `false`, thus check if the utility is a map first | |
// Only proceed if responsive media queries are enabled or if it's the base media query | |
@if type-of($utility) == "map" and (map-get($utility, responsive) or $infix == "") { | |
@include generate-utility($utility, $infix); | |
} | |
} | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.m-0 { | |
margin: 0 !important; | |
} | |
.m-1 { | |
margin: 0.25rem !important; | |
} | |
.m-2 { | |
margin: 0.5rem !important; | |
} | |
.m-3 { | |
margin: 1rem !important; | |
} | |
.m-4 { | |
margin: 1.5rem !important; | |
} | |
.m-5 { | |
margin: 3rem !important; | |
} | |
.m-auto { | |
margin: auto !important; | |
} | |
.mx-0 { | |
margin-right: 0 !important; | |
margin-left: 0 !important; | |
} | |
.mx-1 { | |
margin-right: 0.25rem !important; | |
margin-left: 0.25rem !important; | |
} | |
.mx-2 { | |
margin-right: 0.5rem !important; | |
margin-left: 0.5rem !important; | |
} | |
.mx-3 { | |
margin-right: 1rem !important; | |
margin-left: 1rem !important; | |
} | |
.mx-4 { | |
margin-right: 1.5rem !important; | |
margin-left: 1.5rem !important; | |
} | |
.mx-5 { | |
margin-right: 3rem !important; | |
margin-left: 3rem !important; | |
} | |
.mx-auto { | |
margin-right: auto !important; | |
margin-left: auto !important; | |
} | |
.my-0 { | |
margin-top: 0 !important; | |
margin-bottom: 0 !important; | |
} | |
.my-1 { | |
margin-top: 0.25rem !important; | |
margin-bottom: 0.25rem !important; | |
} | |
.my-2 { | |
margin-top: 0.5rem !important; | |
margin-bottom: 0.5rem !important; | |
} | |
.my-3 { | |
margin-top: 1rem !important; | |
margin-bottom: 1rem !important; | |
} | |
.my-4 { | |
margin-top: 1.5rem !important; | |
margin-bottom: 1.5rem !important; | |
} | |
.my-5 { | |
margin-top: 3rem !important; | |
margin-bottom: 3rem !important; | |
} | |
.my-auto { | |
margin-top: auto !important; | |
margin-bottom: auto !important; | |
} | |
.mt-0 { | |
margin-top: 0 !important; | |
} | |
.mt-1 { | |
margin-top: 0.25rem !important; | |
} | |
.mt-2 { | |
margin-top: 0.5rem !important; | |
} | |
.mt-3 { | |
margin-top: 1rem !important; | |
} | |
.mt-4 { | |
margin-top: 1.5rem !important; | |
} | |
.mt-5 { | |
margin-top: 3rem !important; | |
} | |
.mt-auto { | |
margin-top: auto !important; | |
} | |
.mr-0 { | |
margin-right: 0 !important; | |
} | |
.mr-1 { | |
margin-right: 0.25rem !important; | |
} | |
.mr-2 { | |
margin-right: 0.5rem !important; | |
} | |
.mr-3 { | |
margin-right: 1rem !important; | |
} | |
.mr-4 { | |
margin-right: 1.5rem !important; | |
} | |
.mr-5 { | |
margin-right: 3rem !important; | |
} | |
.mr-auto { | |
margin-right: auto !important; | |
} | |
.mb-0 { | |
margin-bottom: 0 !important; | |
} | |
.mb-1 { | |
margin-bottom: 0.25rem !important; | |
} | |
.mb-2 { | |
margin-bottom: 0.5rem !important; | |
} | |
.mb-3 { | |
margin-bottom: 1rem !important; | |
} | |
.mb-4 { | |
margin-bottom: 1.5rem !important; | |
} | |
.mb-5 { | |
margin-bottom: 3rem !important; | |
} | |
.mb-auto { | |
margin-bottom: auto !important; | |
} | |
.ms-0 { | |
margin-left: 0 !important; | |
} | |
.ms-1 { | |
margin-left: 0.25rem !important; | |
} | |
.ms-2 { | |
margin-left: 0.5rem !important; | |
} | |
.ms-3 { | |
margin-left: 1rem !important; | |
} | |
.ms-4 { | |
margin-left: 1.5rem !important; | |
} | |
.ms-5 { | |
margin-left: 3rem !important; | |
} | |
.ms-auto { | |
margin-left: auto !important; | |
} | |
.mt-n1 { | |
margin-top: -0.25rem !important; | |
} | |
.mt-n2 { | |
margin-top: -0.5rem !important; | |
} | |
.mt-n3 { | |
margin-top: -1rem !important; | |
} | |
.mt-n4 { | |
margin-top: -1.5rem !important; | |
} | |
.mt-n5 { | |
margin-top: -3rem !important; | |
} | |
.mr-n1 { | |
margin-right: -0.25rem !important; | |
} | |
.mr-n2 { | |
margin-right: -0.5rem !important; | |
} | |
.mr-n3 { | |
margin-right: -1rem !important; | |
} | |
.mr-n4 { | |
margin-right: -1.5rem !important; | |
} | |
.mr-n5 { | |
margin-right: -3rem !important; | |
} | |
.mb-n1 { | |
margin-bottom: -0.25rem !important; | |
} | |
.mb-n2 { | |
margin-bottom: -0.5rem !important; | |
} | |
.mb-n3 { | |
margin-bottom: -1rem !important; | |
} | |
.mb-n4 { | |
margin-bottom: -1.5rem !important; | |
} | |
.mb-n5 { | |
margin-bottom: -3rem !important; | |
} | |
.ml-n1 { | |
margin-left: -0.25rem !important; | |
} | |
.ml-n2 { | |
margin-left: -0.5rem !important; | |
} | |
.ml-n3 { | |
margin-left: -1rem !important; | |
} | |
.ml-n4 { | |
margin-left: -1.5rem !important; | |
} | |
.ml-n5 { | |
margin-left: -3rem !important; | |
} | |
.p-0 { | |
padding: 0 !important; | |
} | |
.p-1 { | |
padding: 0.25rem !important; | |
} | |
.p-2 { | |
padding: 0.5rem !important; | |
} | |
.p-3 { | |
padding: 1rem !important; | |
} | |
.p-4 { | |
padding: 1.5rem !important; | |
} | |
.p-5 { | |
padding: 3rem !important; | |
} | |
.px-0 { | |
padding-right: 0 !important; | |
padding-left: 0 !important; | |
} | |
.px-1 { | |
padding-right: 0.25rem !important; | |
padding-left: 0.25rem !important; | |
} | |
.px-2 { | |
padding-right: 0.5rem !important; | |
padding-left: 0.5rem !important; | |
} | |
.px-3 { | |
padding-right: 1rem !important; | |
padding-left: 1rem !important; | |
} | |
.px-4 { | |
padding-right: 1.5rem !important; | |
padding-left: 1.5rem !important; | |
} | |
.px-5 { | |
padding-right: 3rem !important; | |
padding-left: 3rem !important; | |
} | |
.py-0 { | |
padding-top: 0 !important; | |
padding-bottom: 0 !important; | |
} | |
.py-1 { | |
padding-top: 0.25rem !important; | |
padding-bottom: 0.25rem !important; | |
} | |
.py-2 { | |
padding-top: 0.5rem !important; | |
padding-bottom: 0.5rem !important; | |
} | |
.py-3 { | |
padding-top: 1rem !important; | |
padding-bottom: 1rem !important; | |
} | |
.py-4 { | |
padding-top: 1.5rem !important; | |
padding-bottom: 1.5rem !important; | |
} | |
.py-5 { | |
padding-top: 3rem !important; | |
padding-bottom: 3rem !important; | |
} | |
.pt-0 { | |
padding-top: 0 !important; | |
} | |
.pt-1 { | |
padding-top: 0.25rem !important; | |
} | |
.pt-2 { | |
padding-top: 0.5rem !important; | |
} | |
.pt-3 { | |
padding-top: 1rem !important; | |
} | |
.pt-4 { | |
padding-top: 1.5rem !important; | |
} | |
.pt-5 { | |
padding-top: 3rem !important; | |
} | |
.pe-0 { | |
padding-right: 0 !important; | |
} | |
.pe-1 { | |
padding-right: 0.25rem !important; | |
} | |
.pe-2 { | |
padding-right: 0.5rem !important; | |
} | |
.pe-3 { | |
padding-right: 1rem !important; | |
} | |
.pe-4 { | |
padding-right: 1.5rem !important; | |
} | |
.pe-5 { | |
padding-right: 3rem !important; | |
} | |
.pb-0 { | |
padding-bottom: 0 !important; | |
} | |
.pb-1 { | |
padding-bottom: 0.25rem !important; | |
} | |
.pb-2 { | |
padding-bottom: 0.5rem !important; | |
} | |
.pb-3 { | |
padding-bottom: 1rem !important; | |
} | |
.pb-4 { | |
padding-bottom: 1.5rem !important; | |
} | |
.pb-5 { | |
padding-bottom: 3rem !important; | |
} | |
.ps-0 { | |
padding-left: 0 !important; | |
} | |
.ps-1 { | |
padding-left: 0.25rem !important; | |
} | |
.ps-2 { | |
padding-left: 0.5rem !important; | |
} | |
.ps-3 { | |
padding-left: 1rem !important; | |
} | |
.ps-4 { | |
padding-left: 1.5rem !important; | |
} | |
.ps-5 { | |
padding-left: 3rem !important; | |
} | |
@media (min-width: 320px) { | |
.m-sm-0 { | |
margin: 0 !important; | |
} | |
.m-sm-1 { | |
margin: 0.25rem !important; | |
} | |
.m-sm-2 { | |
margin: 0.5rem !important; | |
} | |
.m-sm-3 { | |
margin: 1rem !important; | |
} | |
.m-sm-4 { | |
margin: 1.5rem !important; | |
} | |
.m-sm-5 { | |
margin: 3rem !important; | |
} | |
.m-sm-auto { | |
margin: auto !important; | |
} | |
.mx-sm-0 { | |
margin-right: 0 !important; | |
margin-left: 0 !important; | |
} | |
.mx-sm-1 { | |
margin-right: 0.25rem !important; | |
margin-left: 0.25rem !important; | |
} | |
.mx-sm-2 { | |
margin-right: 0.5rem !important; | |
margin-left: 0.5rem !important; | |
} | |
.mx-sm-3 { | |
margin-right: 1rem !important; | |
margin-left: 1rem !important; | |
} | |
.mx-sm-4 { | |
margin-right: 1.5rem !important; | |
margin-left: 1.5rem !important; | |
} | |
.mx-sm-5 { | |
margin-right: 3rem !important; | |
margin-left: 3rem !important; | |
} | |
.mx-sm-auto { | |
margin-right: auto !important; | |
margin-left: auto !important; | |
} | |
.my-sm-0 { | |
margin-top: 0 !important; | |
margin-bottom: 0 !important; | |
} | |
.my-sm-1 { | |
margin-top: 0.25rem !important; | |
margin-bottom: 0.25rem !important; | |
} | |
.my-sm-2 { | |
margin-top: 0.5rem !important; | |
margin-bottom: 0.5rem !important; | |
} | |
.my-sm-3 { | |
margin-top: 1rem !important; | |
margin-bottom: 1rem !important; | |
} | |
.my-sm-4 { | |
margin-top: 1.5rem !important; | |
margin-bottom: 1.5rem !important; | |
} | |
.my-sm-5 { | |
margin-top: 3rem !important; | |
margin-bottom: 3rem !important; | |
} | |
.my-sm-auto { | |
margin-top: auto !important; | |
margin-bottom: auto !important; | |
} | |
.mt-sm-0 { | |
margin-top: 0 !important; | |
} | |
.mt-sm-1 { | |
margin-top: 0.25rem !important; | |
} | |
.mt-sm-2 { | |
margin-top: 0.5rem !important; | |
} | |
.mt-sm-3 { | |
margin-top: 1rem !important; | |
} | |
.mt-sm-4 { | |
margin-top: 1.5rem !important; | |
} | |
.mt-sm-5 { | |
margin-top: 3rem !important; | |
} | |
.mt-sm-auto { | |
margin-top: auto !important; | |
} | |
.mr-sm-0 { | |
margin-right: 0 !important; | |
} | |
.mr-sm-1 { | |
margin-right: 0.25rem !important; | |
} | |
.mr-sm-2 { | |
margin-right: 0.5rem !important; | |
} | |
.mr-sm-3 { | |
margin-right: 1rem !important; | |
} | |
.mr-sm-4 { | |
margin-right: 1.5rem !important; | |
} | |
.mr-sm-5 { | |
margin-right: 3rem !important; | |
} | |
.mr-sm-auto { | |
margin-right: auto !important; | |
} | |
.mb-sm-0 { | |
margin-bottom: 0 !important; | |
} | |
.mb-sm-1 { | |
margin-bottom: 0.25rem !important; | |
} | |
.mb-sm-2 { | |
margin-bottom: 0.5rem !important; | |
} | |
.mb-sm-3 { | |
margin-bottom: 1rem !important; | |
} | |
.mb-sm-4 { | |
margin-bottom: 1.5rem !important; | |
} | |
.mb-sm-5 { | |
margin-bottom: 3rem !important; | |
} | |
.mb-sm-auto { | |
margin-bottom: auto !important; | |
} | |
.ms-sm-0 { | |
margin-left: 0 !important; | |
} | |
.ms-sm-1 { | |
margin-left: 0.25rem !important; | |
} | |
.ms-sm-2 { | |
margin-left: 0.5rem !important; | |
} | |
.ms-sm-3 { | |
margin-left: 1rem !important; | |
} | |
.ms-sm-4 { | |
margin-left: 1.5rem !important; | |
} | |
.ms-sm-5 { | |
margin-left: 3rem !important; | |
} | |
.ms-sm-auto { | |
margin-left: auto !important; | |
} | |
.mt-sm-n1 { | |
margin-top: -0.25rem !important; | |
} | |
.mt-sm-n2 { | |
margin-top: -0.5rem !important; | |
} | |
.mt-sm-n3 { | |
margin-top: -1rem !important; | |
} | |
.mt-sm-n4 { | |
margin-top: -1.5rem !important; | |
} | |
.mt-sm-n5 { | |
margin-top: -3rem !important; | |
} | |
.mr-sm-n1 { | |
margin-right: -0.25rem !important; | |
} | |
.mr-sm-n2 { | |
margin-right: -0.5rem !important; | |
} | |
.mr-sm-n3 { | |
margin-right: -1rem !important; | |
} | |
.mr-sm-n4 { | |
margin-right: -1.5rem !important; | |
} | |
.mr-sm-n5 { | |
margin-right: -3rem !important; | |
} | |
.mb-sm-n1 { | |
margin-bottom: -0.25rem !important; | |
} | |
.mb-sm-n2 { | |
margin-bottom: -0.5rem !important; | |
} | |
.mb-sm-n3 { | |
margin-bottom: -1rem !important; | |
} | |
.mb-sm-n4 { | |
margin-bottom: -1.5rem !important; | |
} | |
.mb-sm-n5 { | |
margin-bottom: -3rem !important; | |
} | |
.ml-sm-n1 { | |
margin-left: -0.25rem !important; | |
} | |
.ml-sm-n2 { | |
margin-left: -0.5rem !important; | |
} | |
.ml-sm-n3 { | |
margin-left: -1rem !important; | |
} | |
.ml-sm-n4 { | |
margin-left: -1.5rem !important; | |
} | |
.ml-sm-n5 { | |
margin-left: -3rem !important; | |
} | |
.p-sm-0 { | |
padding: 0 !important; | |
} | |
.p-sm-1 { | |
padding: 0.25rem !important; | |
} | |
.p-sm-2 { | |
padding: 0.5rem !important; | |
} | |
.p-sm-3 { | |
padding: 1rem !important; | |
} | |
.p-sm-4 { | |
padding: 1.5rem !important; | |
} | |
.p-sm-5 { | |
padding: 3rem !important; | |
} | |
.px-sm-0 { | |
padding-right: 0 !important; | |
padding-left: 0 !important; | |
} | |
.px-sm-1 { | |
padding-right: 0.25rem !important; | |
padding-left: 0.25rem !important; | |
} | |
.px-sm-2 { | |
padding-right: 0.5rem !important; | |
padding-left: 0.5rem !important; | |
} | |
.px-sm-3 { | |
padding-right: 1rem !important; | |
padding-left: 1rem !important; | |
} | |
.px-sm-4 { | |
padding-right: 1.5rem !important; | |
padding-left: 1.5rem !important; | |
} | |
.px-sm-5 { | |
padding-right: 3rem !important; | |
padding-left: 3rem !important; | |
} | |
.py-sm-0 { | |
padding-top: 0 !important; | |
padding-bottom: 0 !important; | |
} | |
.py-sm-1 { | |
padding-top: 0.25rem !important; | |
padding-bottom: 0.25rem !important; | |
} | |
.py-sm-2 { | |
padding-top: 0.5rem !important; | |
padding-bottom: 0.5rem !important; | |
} | |
.py-sm-3 { | |
padding-top: 1rem !important; | |
padding-bottom: 1rem !important; | |
} | |
.py-sm-4 { | |
padding-top: 1.5rem !important; | |
padding-bottom: 1.5rem !important; | |
} | |
.py-sm-5 { | |
padding-top: 3rem !important; | |
padding-bottom: 3rem !important; | |
} | |
.pt-sm-0 { | |
padding-top: 0 !important; | |
} | |
.pt-sm-1 { | |
padding-top: 0.25rem !important; | |
} | |
.pt-sm-2 { | |
padding-top: 0.5rem !important; | |
} | |
.pt-sm-3 { | |
padding-top: 1rem !important; | |
} | |
.pt-sm-4 { | |
padding-top: 1.5rem !important; | |
} | |
.pt-sm-5 { | |
padding-top: 3rem !important; | |
} | |
.pe-sm-0 { | |
padding-right: 0 !important; | |
} | |
.pe-sm-1 { | |
padding-right: 0.25rem !important; | |
} | |
.pe-sm-2 { | |
padding-right: 0.5rem !important; | |
} | |
.pe-sm-3 { | |
padding-right: 1rem !important; | |
} | |
.pe-sm-4 { | |
padding-right: 1.5rem !important; | |
} | |
.pe-sm-5 { | |
padding-right: 3rem !important; | |
} | |
.pb-sm-0 { | |
padding-bottom: 0 !important; | |
} | |
.pb-sm-1 { | |
padding-bottom: 0.25rem !important; | |
} | |
.pb-sm-2 { | |
padding-bottom: 0.5rem !important; | |
} | |
.pb-sm-3 { | |
padding-bottom: 1rem !important; | |
} | |
.pb-sm-4 { | |
padding-bottom: 1.5rem !important; | |
} | |
.pb-sm-5 { | |
padding-bottom: 3rem !important; | |
} | |
.ps-sm-0 { | |
padding-left: 0 !important; | |
} | |
.ps-sm-1 { | |
padding-left: 0.25rem !important; | |
} | |
.ps-sm-2 { | |
padding-left: 0.5rem !important; | |
} | |
.ps-sm-3 { | |
padding-left: 1rem !important; | |
} | |
.ps-sm-4 { | |
padding-left: 1.5rem !important; | |
} | |
.ps-sm-5 { | |
padding-left: 3rem !important; | |
} | |
} | |
@media (min-width: 480px) { | |
.m-md-0 { | |
margin: 0 !important; | |
} | |
.m-md-1 { | |
margin: 0.25rem !important; | |
} | |
.m-md-2 { | |
margin: 0.5rem !important; | |
} | |
.m-md-3 { | |
margin: 1rem !important; | |
} | |
.m-md-4 { | |
margin: 1.5rem !important; | |
} | |
.m-md-5 { | |
margin: 3rem !important; | |
} | |
.m-md-auto { | |
margin: auto !important; | |
} | |
.mx-md-0 { | |
margin-right: 0 !important; | |
margin-left: 0 !important; | |
} | |
.mx-md-1 { | |
margin-right: 0.25rem !important; | |
margin-left: 0.25rem !important; | |
} | |
.mx-md-2 { | |
margin-right: 0.5rem !important; | |
margin-left: 0.5rem !important; | |
} | |
.mx-md-3 { | |
margin-right: 1rem !important; | |
margin-left: 1rem !important; | |
} | |
.mx-md-4 { | |
margin-right: 1.5rem !important; | |
margin-left: 1.5rem !important; | |
} | |
.mx-md-5 { | |
margin-right: 3rem !important; | |
margin-left: 3rem !important; | |
} | |
.mx-md-auto { | |
margin-right: auto !important; | |
margin-left: auto !important; | |
} | |
.my-md-0 { | |
margin-top: 0 !important; | |
margin-bottom: 0 !important; | |
} | |
.my-md-1 { | |
margin-top: 0.25rem !important; | |
margin-bottom: 0.25rem !important; | |
} | |
.my-md-2 { | |
margin-top: 0.5rem !important; | |
margin-bottom: 0.5rem !important; | |
} | |
.my-md-3 { | |
margin-top: 1rem !important; | |
margin-bottom: 1rem !important; | |
} | |
.my-md-4 { | |
margin-top: 1.5rem !important; | |
margin-bottom: 1.5rem !important; | |
} | |
.my-md-5 { | |
margin-top: 3rem !important; | |
margin-bottom: 3rem !important; | |
} | |
.my-md-auto { | |
margin-top: auto !important; | |
margin-bottom: auto !important; | |
} | |
.mt-md-0 { | |
margin-top: 0 !important; | |
} | |
.mt-md-1 { | |
margin-top: 0.25rem !important; | |
} | |
.mt-md-2 { | |
margin-top: 0.5rem !important; | |
} | |
.mt-md-3 { | |
margin-top: 1rem !important; | |
} | |
.mt-md-4 { | |
margin-top: 1.5rem !important; | |
} | |
.mt-md-5 { | |
margin-top: 3rem !important; | |
} | |
.mt-md-auto { | |
margin-top: auto !important; | |
} | |
.mr-md-0 { | |
margin-right: 0 !important; | |
} | |
.mr-md-1 { | |
margin-right: 0.25rem !important; | |
} | |
.mr-md-2 { | |
margin-right: 0.5rem !important; | |
} | |
.mr-md-3 { | |
margin-right: 1rem !important; | |
} | |
.mr-md-4 { | |
margin-right: 1.5rem !important; | |
} | |
.mr-md-5 { | |
margin-right: 3rem !important; | |
} | |
.mr-md-auto { | |
margin-right: auto !important; | |
} | |
.mb-md-0 { | |
margin-bottom: 0 !important; | |
} | |
.mb-md-1 { | |
margin-bottom: 0.25rem !important; | |
} | |
.mb-md-2 { | |
margin-bottom: 0.5rem !important; | |
} | |
.mb-md-3 { | |
margin-bottom: 1rem !important; | |
} | |
.mb-md-4 { | |
margin-bottom: 1.5rem !important; | |
} | |
.mb-md-5 { | |
margin-bottom: 3rem !important; | |
} | |
.mb-md-auto { | |
margin-bottom: auto !important; | |
} | |
.ms-md-0 { | |
margin-left: 0 !important; | |
} | |
.ms-md-1 { | |
margin-left: 0.25rem !important; | |
} | |
.ms-md-2 { | |
margin-left: 0.5rem !important; | |
} | |
.ms-md-3 { | |
margin-left: 1rem !important; | |
} | |
.ms-md-4 { | |
margin-left: 1.5rem !important; | |
} | |
.ms-md-5 { | |
margin-left: 3rem !important; | |
} | |
.ms-md-auto { | |
margin-left: auto !important; | |
} | |
.mt-md-n1 { | |
margin-top: -0.25rem !important; | |
} | |
.mt-md-n2 { | |
margin-top: -0.5rem !important; | |
} | |
.mt-md-n3 { | |
margin-top: -1rem !important; | |
} | |
.mt-md-n4 { | |
margin-top: -1.5rem !important; | |
} | |
.mt-md-n5 { | |
margin-top: -3rem !important; | |
} | |
.mr-md-n1 { | |
margin-right: -0.25rem !important; | |
} | |
.mr-md-n2 { | |
margin-right: -0.5rem !important; | |
} | |
.mr-md-n3 { | |
margin-right: -1rem !important; | |
} | |
.mr-md-n4 { | |
margin-right: -1.5rem !important; | |
} | |
.mr-md-n5 { | |
margin-right: -3rem !important; | |
} | |
.mb-md-n1 { | |
margin-bottom: -0.25rem !important; | |
} | |
.mb-md-n2 { | |
margin-bottom: -0.5rem !important; | |
} | |
.mb-md-n3 { | |
margin-bottom: -1rem !important; | |
} | |
.mb-md-n4 { | |
margin-bottom: -1.5rem !important; | |
} | |
.mb-md-n5 { | |
margin-bottom: -3rem !important; | |
} | |
.ml-md-n1 { | |
margin-left: -0.25rem !important; | |
} | |
.ml-md-n2 { | |
margin-left: -0.5rem !important; | |
} | |
.ml-md-n3 { | |
margin-left: -1rem !important; | |
} | |
.ml-md-n4 { | |
margin-left: -1.5rem !important; | |
} | |
.ml-md-n5 { | |
margin-left: -3rem !important; | |
} | |
.p-md-0 { | |
padding: 0 !important; | |
} | |
.p-md-1 { | |
padding: 0.25rem !important; | |
} | |
.p-md-2 { | |
padding: 0.5rem !important; | |
} | |
.p-md-3 { | |
padding: 1rem !important; | |
} | |
.p-md-4 { | |
padding: 1.5rem !important; | |
} | |
.p-md-5 { | |
padding: 3rem !important; | |
} | |
.px-md-0 { | |
padding-right: 0 !important; | |
padding-left: 0 !important; | |
} | |
.px-md-1 { | |
padding-right: 0.25rem !important; | |
padding-left: 0.25rem !important; | |
} | |
.px-md-2 { | |
padding-right: 0.5rem !important; | |
padding-left: 0.5rem !important; | |
} | |
.px-md-3 { | |
padding-right: 1rem !important; | |
padding-left: 1rem !important; | |
} | |
.px-md-4 { | |
padding-right: 1.5rem !important; | |
padding-left: 1.5rem !important; | |
} | |
.px-md-5 { | |
padding-right: 3rem !important; | |
padding-left: 3rem !important; | |
} | |
.py-md-0 { | |
padding-top: 0 !important; | |
padding-bottom: 0 !important; | |
} | |
.py-md-1 { | |
padding-top: 0.25rem !important; | |
padding-bottom: 0.25rem !important; | |
} | |
.py-md-2 { | |
padding-top: 0.5rem !important; | |
padding-bottom: 0.5rem !important; | |
} | |
.py-md-3 { | |
padding-top: 1rem !important; | |
padding-bottom: 1rem !important; | |
} | |
.py-md-4 { | |
padding-top: 1.5rem !important; | |
padding-bottom: 1.5rem !important; | |
} | |
.py-md-5 { | |
padding-top: 3rem !important; | |
padding-bottom: 3rem !important; | |
} | |
.pt-md-0 { | |
padding-top: 0 !important; | |
} | |
.pt-md-1 { | |
padding-top: 0.25rem !important; | |
} | |
.pt-md-2 { | |
padding-top: 0.5rem !important; | |
} | |
.pt-md-3 { | |
padding-top: 1rem !important; | |
} | |
.pt-md-4 { | |
padding-top: 1.5rem !important; | |
} | |
.pt-md-5 { | |
padding-top: 3rem !important; | |
} | |
.pe-md-0 { | |
padding-right: 0 !important; | |
} | |
.pe-md-1 { | |
padding-right: 0.25rem !important; | |
} | |
.pe-md-2 { | |
padding-right: 0.5rem !important; | |
} | |
.pe-md-3 { | |
padding-right: 1rem !important; | |
} | |
.pe-md-4 { | |
padding-right: 1.5rem !important; | |
} | |
.pe-md-5 { | |
padding-right: 3rem !important; | |
} | |
.pb-md-0 { | |
padding-bottom: 0 !important; | |
} | |
.pb-md-1 { | |
padding-bottom: 0.25rem !important; | |
} | |
.pb-md-2 { | |
padding-bottom: 0.5rem !important; | |
} | |
.pb-md-3 { | |
padding-bottom: 1rem !important; | |
} | |
.pb-md-4 { | |
padding-bottom: 1.5rem !important; | |
} | |
.pb-md-5 { | |
padding-bottom: 3rem !important; | |
} | |
.ps-md-0 { | |
padding-left: 0 !important; | |
} | |
.ps-md-1 { | |
padding-left: 0.25rem !important; | |
} | |
.ps-md-2 { | |
padding-left: 0.5rem !important; | |
} | |
.ps-md-3 { | |
padding-left: 1rem !important; | |
} | |
.ps-md-4 { | |
padding-left: 1.5rem !important; | |
} | |
.ps-md-5 { | |
padding-left: 3rem !important; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sass": { | |
"compiler": "dart-sass/1.32.12", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment