Major overhaul to the theme and now functioning.
This commit is contained in:
Generated
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
@use 'sass:list'
|
||||
@use '../settings'
|
||||
@use '../tools'
|
||||
|
||||
@if (settings.$utilities != false and list.length(settings.$utilities) > 0)
|
||||
@include tools.layer('utilities')
|
||||
@each $size, $media_query in settings.$display-breakpoints
|
||||
.hidden
|
||||
&-#{$size}
|
||||
@media #{$media_query}
|
||||
display: none !important
|
||||
Generated
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
@use 'sass:list';
|
||||
@use '../tools';
|
||||
@use '../settings';
|
||||
|
||||
@if (settings.$utilities != false and list.length(settings.$utilities) > 0) {
|
||||
@include tools.layer('utilities') {
|
||||
$z: 24;
|
||||
@while $z >= 0 {
|
||||
.elevation-#{$z} {
|
||||
@include tools.elevation($z, $important: true);
|
||||
}
|
||||
|
||||
$z: $z - 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
Vendored
+44
@@ -0,0 +1,44 @@
|
||||
@use 'sass:string'
|
||||
@use 'sass:map'
|
||||
@use 'sass:meta'
|
||||
@use '../settings'
|
||||
@use '../tools'
|
||||
@use './display'
|
||||
@use './elevation'
|
||||
@use './pointer-events'
|
||||
@use './screenreaders'
|
||||
|
||||
@include tools.layer('utilities')
|
||||
@each $breakpoint in map.keys(settings.$grid-breakpoints)
|
||||
// Generate media query if needed
|
||||
@include tools.media-breakpoint-up($breakpoint)
|
||||
$infix: tools.breakpoint-infix($breakpoint, settings.$grid-breakpoints)
|
||||
|
||||
// Loop over each utility property
|
||||
@each $key, $utility in settings.$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 string.slice($key, -4) == ':ltr'
|
||||
@if meta.type-of($utility) == "map" and (map.get($utility, responsive) or $infix == "")
|
||||
@include tools.generate-utility($utility, $infix, 'ltr')
|
||||
@else if string.slice($key, -4) == ':rtl'
|
||||
@if meta.type-of($utility) == "map" and (map.get($utility, responsive) or $infix == "")
|
||||
@include tools.generate-utility($utility, $infix, 'rtl')
|
||||
@else
|
||||
@if meta.type-of($utility) == "map" and (map.get($utility, responsive) or $infix == "")
|
||||
@include tools.generate-utility($utility, $infix, 'bidi')
|
||||
|
||||
// Print utilities
|
||||
@media print
|
||||
@each $key, $utility in settings.$utilities
|
||||
// The utility can be disabled with `false`, thus check if the utility is a map first
|
||||
// Then check if the utility needs print styles
|
||||
@if string.slice($key, -4) == ':ltr'
|
||||
@if meta.type-of($utility) == "map" and map.get($utility, print) == true
|
||||
@include tools.generate-utility($utility, "-print", 'ltr')
|
||||
@else if string.slice($key, -4) == ':rtl'
|
||||
@if meta.type-of($utility) == "map" and map.get($utility, print) == true
|
||||
@include tools.generate-utility($utility, "-print", 'rtl')
|
||||
@else
|
||||
@if meta.type-of($utility) == "map" and map.get($utility, print) == true
|
||||
@include tools.generate-utility($utility, "-print", 'bidi')
|
||||
Generated
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
@use 'sass:list'
|
||||
@use '../settings'
|
||||
@use '../tools'
|
||||
|
||||
@if (settings.$utilities != false and list.length(settings.$utilities) > 0)
|
||||
@include tools.layer('utilities')
|
||||
.pointer-events-none
|
||||
pointer-events: none !important
|
||||
|
||||
.pointer-events-auto
|
||||
pointer-events: auto !important
|
||||
|
||||
.pointer-pass-through
|
||||
pointer-events: none !important
|
||||
> *
|
||||
pointer-events: auto !important
|
||||
Generated
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
// Source: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
||||
@use 'sass:list'
|
||||
@use '../settings'
|
||||
@use '../tools'
|
||||
|
||||
@if (settings.$utilities != false and list.length(settings.$utilities) > 0)
|
||||
@include tools.layer('utilities')
|
||||
.d-sr-only,
|
||||
.d-sr-only-focusable:not(:focus)
|
||||
border: 0 !important
|
||||
clip: rect(0, 0, 0, 0) !important
|
||||
height: 1px !important
|
||||
margin: -1px !important // Fix for https://github.com/twbs/bootstrap/issues/25686
|
||||
overflow: hidden !important
|
||||
padding: 0 !important
|
||||
position: absolute !important
|
||||
white-space: nowrap !important
|
||||
width: 1px !important
|
||||
Reference in New Issue
Block a user