luda 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +5 -0
- data/assets/javascripts/luda-degradation.js +131 -0
- data/assets/javascripts/luda-degradation.js.map +1 -0
- data/assets/javascripts/luda-degradation.min.js +7 -0
- data/assets/javascripts/luda-degradation.min.js.map +1 -0
- data/assets/javascripts/luda-sprockets.js +11 -0
- data/assets/javascripts/luda.js +2024 -0
- data/assets/javascripts/luda.js.map +1 -0
- data/assets/javascripts/luda.min.js +7 -0
- data/assets/javascripts/luda.min.js.map +1 -0
- data/assets/javascripts/luda/behaviours/enter-click.js +38 -0
- data/assets/javascripts/luda/behaviours/focus.js +103 -0
- data/assets/javascripts/luda/behaviours/radio-tab.js +69 -0
- data/assets/javascripts/luda/behaviours/readonly.js +57 -0
- data/assets/javascripts/luda/behaviours/toggle.js +104 -0
- data/assets/javascripts/luda/collections/carousel.js +314 -0
- data/assets/javascripts/luda/collections/dropdown.js +269 -0
- data/assets/javascripts/luda/collections/form-dropdown.js +112 -0
- data/assets/javascripts/luda/collections/tab.js +117 -0
- data/assets/javascripts/luda/component.js +240 -0
- data/assets/javascripts/luda/constants.js +18 -0
- data/assets/javascripts/luda/degradation.js +125 -0
- data/assets/javascripts/luda/dom.js +81 -0
- data/assets/javascripts/luda/elements/form-file.js +104 -0
- data/assets/javascripts/luda/elements/form-select.js +212 -0
- data/assets/javascripts/luda/event.js +193 -0
- data/assets/javascripts/luda/index.js +20 -0
- data/assets/javascripts/luda/install.js +75 -0
- data/assets/javascripts/luda/singleton.js +77 -0
- data/assets/javascripts/luda/utilities.js +16 -0
- data/assets/stylesheets/luda/_core/_base.sass +430 -0
- data/assets/stylesheets/luda/_core/_functions.sass +240 -0
- data/assets/stylesheets/luda/_core/_variables.sass +710 -0
- data/assets/stylesheets/luda/_core/behaviours/_disabled.sass +12 -0
- data/assets/stylesheets/luda/_core/behaviours/_focus.sass +7 -0
- data/assets/stylesheets/luda/_core/behaviours/_readonly.sass +16 -0
- data/assets/stylesheets/luda/_core/behaviours/_toggle.sass +4 -0
- data/assets/stylesheets/luda/_core/collections/_alert.sass +24 -0
- data/assets/stylesheets/luda/_core/collections/_avatar.sass +117 -0
- data/assets/stylesheets/luda/_core/collections/_breadcrumb.sass +21 -0
- data/assets/stylesheets/luda/_core/collections/_button-group.sass +67 -0
- data/assets/stylesheets/luda/_core/collections/_button-icon.sass +46 -0
- data/assets/stylesheets/luda/_core/collections/_carousel.sass +132 -0
- data/assets/stylesheets/luda/_core/collections/_dropdown.sass +60 -0
- data/assets/stylesheets/luda/_core/collections/_form-button.sass +23 -0
- data/assets/stylesheets/luda/_core/collections/_form-dropdown.sass +21 -0
- data/assets/stylesheets/luda/_core/collections/_form-group.sass +48 -0
- data/assets/stylesheets/luda/_core/collections/_form-icon.sass +71 -0
- data/assets/stylesheets/luda/_core/collections/_media.sass +55 -0
- data/assets/stylesheets/luda/_core/collections/_modal.sass +12 -0
- data/assets/stylesheets/luda/_core/collections/_nav.sass +162 -0
- data/assets/stylesheets/luda/_core/collections/_tab.sass +18 -0
- data/assets/stylesheets/luda/_core/elements/_badge.sass +19 -0
- data/assets/stylesheets/luda/_core/elements/_baseline.sass +22 -0
- data/assets/stylesheets/luda/_core/elements/_button.sass +136 -0
- data/assets/stylesheets/luda/_core/elements/_container.sass +8 -0
- data/assets/stylesheets/luda/_core/elements/_grid.sass +55 -0
- data/assets/stylesheets/luda/_core/elements/_icon.sass +110 -0
- data/assets/stylesheets/luda/_core/elements/_overlay.sass +11 -0
- data/assets/stylesheets/luda/_core/elements/_progress.sass +31 -0
- data/assets/stylesheets/luda/_core/elements/_scrollbar.sass +21 -0
- data/assets/stylesheets/luda/_core/elements/_table.sass +102 -0
- data/assets/stylesheets/luda/_core/elements/_turbolinks-progress-bar.sass +5 -0
- data/assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass +105 -0
- data/assets/stylesheets/luda/_core/elements/form/_form-element.sass +83 -0
- data/assets/stylesheets/luda/_core/elements/form/_form-helper.sass +66 -0
- data/assets/stylesheets/luda/_core/elements/form/_form-label.sass +20 -0
- data/assets/stylesheets/luda/_core/elements/form/_form-range.sass +92 -0
- data/assets/stylesheets/luda/_core/elements/form/_form-row.sass +214 -0
- data/assets/stylesheets/luda/_core/elements/typography/_code.sass +27 -0
- data/assets/stylesheets/luda/_core/elements/typography/_link.sass +15 -0
- data/assets/stylesheets/luda/_core/elements/typography/_list.sass +14 -0
- data/assets/stylesheets/luda/_core/elements/typography/_mark.sass +7 -0
- data/assets/stylesheets/luda/_core/elements/typography/_quote.sass +68 -0
- data/assets/stylesheets/luda/_core/elements/typography/_sub-sup.sass +16 -0
- data/assets/stylesheets/luda/_core/elements/typography/_typography.sass +52 -0
- data/assets/stylesheets/luda/_core/mixins/_browser.sass +15 -0
- data/assets/stylesheets/luda/_core/mixins/_button.sass +90 -0
- data/assets/stylesheets/luda/_core/mixins/_dropdown.sass +40 -0
- data/assets/stylesheets/luda/_core/mixins/_focus.sass +3 -0
- data/assets/stylesheets/luda/_core/mixins/_form.sass +27 -0
- data/assets/stylesheets/luda/_core/mixins/_install.sass +7 -0
- data/assets/stylesheets/luda/_core/mixins/_media-query.sass +66 -0
- data/assets/stylesheets/luda/_core/mixins/_overlay.sass +14 -0
- data/assets/stylesheets/luda/_core/mixins/_sass-lint-fix.sass +3 -0
- data/assets/stylesheets/luda/_core/mixins/_typography.sass +40 -0
- data/assets/stylesheets/luda/_core/utilities/_align.sass +19 -0
- data/assets/stylesheets/luda/_core/utilities/_background.sass +88 -0
- data/assets/stylesheets/luda/_core/utilities/_color.sass +36 -0
- data/assets/stylesheets/luda/_core/utilities/_display.sass +40 -0
- data/assets/stylesheets/luda/_core/utilities/_flex.sass +114 -0
- data/assets/stylesheets/luda/_core/utilities/_float.sass +21 -0
- data/assets/stylesheets/luda/_core/utilities/_opacity.sass +19 -0
- data/assets/stylesheets/luda/_core/utilities/_overflow.sass +18 -0
- data/assets/stylesheets/luda/_core/utilities/_position.sass +48 -0
- data/assets/stylesheets/luda/_core/utilities/_shape.sass +62 -0
- data/assets/stylesheets/luda/_core/utilities/_size.sass +67 -0
- data/assets/stylesheets/luda/_core/utilities/_space.sass +227 -0
- data/assets/stylesheets/luda/_core/utilities/_text.sass +85 -0
- data/assets/stylesheets/luda/_core/utilities/_visibility.sass +11 -0
- data/assets/stylesheets/luda/_core/utilities/_z-index.sass +19 -0
- data/assets/stylesheets/luda/_default.sass +51 -0
- data/assets/stylesheets/luda/core/_base.sass +430 -0
- data/assets/stylesheets/luda/core/_functions.sass +240 -0
- data/assets/stylesheets/luda/core/_variables.sass +710 -0
- data/assets/stylesheets/luda/core/behaviours/_disabled.sass +12 -0
- data/assets/stylesheets/luda/core/behaviours/_focus.sass +7 -0
- data/assets/stylesheets/luda/core/behaviours/_readonly.sass +16 -0
- data/assets/stylesheets/luda/core/behaviours/_toggle.sass +4 -0
- data/assets/stylesheets/luda/core/collections/_alert.sass +24 -0
- data/assets/stylesheets/luda/core/collections/_avatar.sass +117 -0
- data/assets/stylesheets/luda/core/collections/_breadcrumb.sass +21 -0
- data/assets/stylesheets/luda/core/collections/_button-group.sass +67 -0
- data/assets/stylesheets/luda/core/collections/_button-icon.sass +46 -0
- data/assets/stylesheets/luda/core/collections/_carousel.sass +132 -0
- data/assets/stylesheets/luda/core/collections/_dropdown.sass +60 -0
- data/assets/stylesheets/luda/core/collections/_form-button.sass +23 -0
- data/assets/stylesheets/luda/core/collections/_form-dropdown.sass +21 -0
- data/assets/stylesheets/luda/core/collections/_form-group.sass +48 -0
- data/assets/stylesheets/luda/core/collections/_form-icon.sass +71 -0
- data/assets/stylesheets/luda/core/collections/_media.sass +55 -0
- data/assets/stylesheets/luda/core/collections/_modal.sass +12 -0
- data/assets/stylesheets/luda/core/collections/_nav.sass +162 -0
- data/assets/stylesheets/luda/core/collections/_tab.sass +18 -0
- data/assets/stylesheets/luda/core/elements/_badge.sass +19 -0
- data/assets/stylesheets/luda/core/elements/_baseline.sass +22 -0
- data/assets/stylesheets/luda/core/elements/_button.sass +136 -0
- data/assets/stylesheets/luda/core/elements/_container.sass +8 -0
- data/assets/stylesheets/luda/core/elements/_grid.sass +55 -0
- data/assets/stylesheets/luda/core/elements/_icon.sass +110 -0
- data/assets/stylesheets/luda/core/elements/_overlay.sass +11 -0
- data/assets/stylesheets/luda/core/elements/_progress.sass +31 -0
- data/assets/stylesheets/luda/core/elements/_scrollbar.sass +21 -0
- data/assets/stylesheets/luda/core/elements/_table.sass +102 -0
- data/assets/stylesheets/luda/core/elements/_turbolinks-progress-bar.sass +5 -0
- data/assets/stylesheets/luda/core/elements/form/_form-check-radio.sass +105 -0
- data/assets/stylesheets/luda/core/elements/form/_form-element.sass +83 -0
- data/assets/stylesheets/luda/core/elements/form/_form-helper.sass +66 -0
- data/assets/stylesheets/luda/core/elements/form/_form-label.sass +20 -0
- data/assets/stylesheets/luda/core/elements/form/_form-range.sass +92 -0
- data/assets/stylesheets/luda/core/elements/form/_form-row.sass +214 -0
- data/assets/stylesheets/luda/core/elements/typography/_code.sass +27 -0
- data/assets/stylesheets/luda/core/elements/typography/_link.sass +15 -0
- data/assets/stylesheets/luda/core/elements/typography/_list.sass +14 -0
- data/assets/stylesheets/luda/core/elements/typography/_mark.sass +7 -0
- data/assets/stylesheets/luda/core/elements/typography/_quote.sass +68 -0
- data/assets/stylesheets/luda/core/elements/typography/_sub-sup.sass +16 -0
- data/assets/stylesheets/luda/core/elements/typography/_typography.sass +52 -0
- data/assets/stylesheets/luda/core/mixins/_browser.sass +15 -0
- data/assets/stylesheets/luda/core/mixins/_button.sass +90 -0
- data/assets/stylesheets/luda/core/mixins/_dropdown.sass +40 -0
- data/assets/stylesheets/luda/core/mixins/_focus.sass +3 -0
- data/assets/stylesheets/luda/core/mixins/_form.sass +27 -0
- data/assets/stylesheets/luda/core/mixins/_install.sass +7 -0
- data/assets/stylesheets/luda/core/mixins/_media-query.sass +66 -0
- data/assets/stylesheets/luda/core/mixins/_overlay.sass +14 -0
- data/assets/stylesheets/luda/core/mixins/_sass-lint-fix.sass +3 -0
- data/assets/stylesheets/luda/core/mixins/_typography.sass +40 -0
- data/assets/stylesheets/luda/core/utilities/_align.sass +19 -0
- data/assets/stylesheets/luda/core/utilities/_background.sass +88 -0
- data/assets/stylesheets/luda/core/utilities/_color.sass +36 -0
- data/assets/stylesheets/luda/core/utilities/_display.sass +40 -0
- data/assets/stylesheets/luda/core/utilities/_flex.sass +114 -0
- data/assets/stylesheets/luda/core/utilities/_float.sass +21 -0
- data/assets/stylesheets/luda/core/utilities/_opacity.sass +19 -0
- data/assets/stylesheets/luda/core/utilities/_overflow.sass +18 -0
- data/assets/stylesheets/luda/core/utilities/_position.sass +48 -0
- data/assets/stylesheets/luda/core/utilities/_shape.sass +62 -0
- data/assets/stylesheets/luda/core/utilities/_size.sass +67 -0
- data/assets/stylesheets/luda/core/utilities/_space.sass +227 -0
- data/assets/stylesheets/luda/core/utilities/_text.sass +85 -0
- data/assets/stylesheets/luda/core/utilities/_visibility.sass +11 -0
- data/assets/stylesheets/luda/core/utilities/_z-index.sass +19 -0
- data/assets/stylesheets/luda/default/_banner.sass +7 -0
- data/assets/stylesheets/luda/default/_base.sass +6 -0
- data/assets/stylesheets/luda/default/_functions.sass +1 -0
- data/assets/stylesheets/luda/default/_mixins.sass +10 -0
- data/assets/stylesheets/luda/default/_variables.sass +1 -0
- data/assets/stylesheets/luda/default/behaviours/_disabled.sass +5 -0
- data/assets/stylesheets/luda/default/behaviours/_focus.sass +5 -0
- data/assets/stylesheets/luda/default/behaviours/_readonly.sass +5 -0
- data/assets/stylesheets/luda/default/behaviours/_toggle.sass +5 -0
- data/assets/stylesheets/luda/default/collections/_alert.sass +6 -0
- data/assets/stylesheets/luda/default/collections/_avatar.sass +7 -0
- data/assets/stylesheets/luda/default/collections/_breadcrumb.sass +6 -0
- data/assets/stylesheets/luda/default/collections/_button-group.sass +7 -0
- data/assets/stylesheets/luda/default/collections/_button-icon.sass +8 -0
- data/assets/stylesheets/luda/default/collections/_carousel.sass +7 -0
- data/assets/stylesheets/luda/default/collections/_dropdown.sass +8 -0
- data/assets/stylesheets/luda/default/collections/_form-button.sass +9 -0
- data/assets/stylesheets/luda/default/collections/_form-dropdown.sass +8 -0
- data/assets/stylesheets/luda/default/collections/_form-group.sass +11 -0
- data/assets/stylesheets/luda/default/collections/_form-icon.sass +8 -0
- data/assets/stylesheets/luda/default/collections/_media.sass +7 -0
- data/assets/stylesheets/luda/default/collections/_modal.sass +7 -0
- data/assets/stylesheets/luda/default/collections/_nav.sass +10 -0
- data/assets/stylesheets/luda/default/collections/_tab.sass +9 -0
- data/assets/stylesheets/luda/default/elements/_badge.sass +6 -0
- data/assets/stylesheets/luda/default/elements/_baseline.sass +6 -0
- data/assets/stylesheets/luda/default/elements/_button.sass +7 -0
- data/assets/stylesheets/luda/default/elements/_container.sass +6 -0
- data/assets/stylesheets/luda/default/elements/_form.sass +13 -0
- data/assets/stylesheets/luda/default/elements/_grid.sass +6 -0
- data/assets/stylesheets/luda/default/elements/_icon.sass +6 -0
- data/assets/stylesheets/luda/default/elements/_overlay.sass +6 -0
- data/assets/stylesheets/luda/default/elements/_progress.sass +6 -0
- data/assets/stylesheets/luda/default/elements/_scrollbar.sass +6 -0
- data/assets/stylesheets/luda/default/elements/_table.sass +6 -0
- data/assets/stylesheets/luda/default/elements/_turbolinks-progress-bar.sass +6 -0
- data/assets/stylesheets/luda/default/elements/_typography.sass +12 -0
- data/assets/stylesheets/luda/default/elements/form/_form-check-radio.sass +5 -0
- data/assets/stylesheets/luda/default/elements/form/_form-element.sass +5 -0
- data/assets/stylesheets/luda/default/elements/form/_form-helper.sass +5 -0
- data/assets/stylesheets/luda/default/elements/form/_form-label.sass +5 -0
- data/assets/stylesheets/luda/default/elements/form/_form-range.sass +5 -0
- data/assets/stylesheets/luda/default/elements/form/_form-row.sass +5 -0
- data/assets/stylesheets/luda/default/elements/typography/_code.sass +5 -0
- data/assets/stylesheets/luda/default/elements/typography/_link.sass +5 -0
- data/assets/stylesheets/luda/default/elements/typography/_list.sass +4 -0
- data/assets/stylesheets/luda/default/elements/typography/_mark.sass +5 -0
- data/assets/stylesheets/luda/default/elements/typography/_quote.sass +5 -0
- data/assets/stylesheets/luda/default/elements/typography/_sub-sup.sass +5 -0
- data/assets/stylesheets/luda/default/elements/typography/_typography.sass +5 -0
- data/assets/stylesheets/luda/default/index.sass +56 -0
- data/assets/stylesheets/luda/default/utilities/_align.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_background.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_color.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_display.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_flex.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_float.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_opacity.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_overflow.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_position.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_shape.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_size.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_space.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_text.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_visibility.sass +5 -0
- data/assets/stylesheets/luda/default/utilities/_z-index.sass +5 -0
- data/lib/luda.rb +72 -0
- data/lib/luda/config.rb +3 -0
- data/lib/luda/engine.rb +11 -0
- data/lib/luda/version.rb +3 -0
- metadata +302 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
=_dropdown-absolute($breakpoint: null)
|
2
|
+
|
3
|
+
$class-fix: if($breakpoint, "-#{$breakpoint}", null)
|
4
|
+
|
5
|
+
.dropdown-absolute#{$class-fix}.dropdown-active > .dropdown-menu
|
6
|
+
display: block
|
7
|
+
position: relative
|
8
|
+
z-index: $z-index-much-higher
|
9
|
+
margin: 0
|
10
|
+
overflow: visible
|
11
|
+
|
12
|
+
.dropdown-absolute#{$class-fix} > .dropdown-menu > .dropdown-items
|
13
|
+
position: absolute
|
14
|
+
max-height: $dropdown-absolute-max-height-rem
|
15
|
+
margin: $dropdown-absolute-drop-gap-rem 0 0
|
16
|
+
overflow: auto
|
17
|
+
-webkit-overflow-scrolling: touch
|
18
|
+
background: $dropdown-absolute-fixed-background
|
19
|
+
border-radius: $dropdown-absolute-border-radius
|
20
|
+
box-shadow: $dropdown-absolute-box-shadow
|
21
|
+
|
22
|
+
.dropdown-absolute#{$class-fix}.dropdown-top > .dropdown-menu,
|
23
|
+
.dropdown-absolute#{$class-fix}.dropdown-left > .dropdown-menu,
|
24
|
+
.dropdown-absolute#{$class-fix}.dropdown-right > .dropdown-menu
|
25
|
+
order: -1
|
26
|
+
|
27
|
+
.dropdown-absolute#{$class-fix}.dropdown-top > .dropdown-menu > .dropdown-items
|
28
|
+
bottom: 0
|
29
|
+
margin: 0 0 $dropdown-absolute-drop-gap-rem
|
30
|
+
|
31
|
+
.dropdown-absolute#{$class-fix}.dropdown-align-right > .dropdown-menu > .dropdown-items
|
32
|
+
right: 0
|
33
|
+
|
34
|
+
.dropdown-absolute#{$class-fix}.dropdown-right > .dropdown-menu > .dropdown-items
|
35
|
+
left: 100%
|
36
|
+
margin: 0 0 0 $dropdown-absolute-drop-gap-rem
|
37
|
+
|
38
|
+
.dropdown-absolute#{$class-fix}.dropdown-left > .dropdown-menu > .dropdown-items
|
39
|
+
right: 100%
|
40
|
+
margin: 0 $dropdown-absolute-drop-gap-rem 0 0
|
@@ -0,0 +1,27 @@
|
|
1
|
+
=form-checkbox-or-radio-background-icon($icon, $icon-color, $background)
|
2
|
+
background: url(svg-icon($icon, $icon-color)) center / contain no-repeat, $background
|
3
|
+
|
4
|
+
=form-row-background-icon($icon, $icon-color, $background)
|
5
|
+
background: url(svg-icon($icon, $icon-color)) right $form-element-text-helvertical-padding-em (center / $form-element-icon-size-em) no-repeat, $background
|
6
|
+
|
7
|
+
=_form-range-track-skin
|
8
|
+
background: $form-element-track-background
|
9
|
+
border-radius: $form-element-track-border-radius
|
10
|
+
|
11
|
+
=_form-range-thumb-styles
|
12
|
+
width: $form-element-thumb-width-em
|
13
|
+
height: $form-element-thumb-height-em
|
14
|
+
border: $form-element-border-style $form-element-border-width $form-element-thumb-border-color
|
15
|
+
background: $form-element-thumb-background
|
16
|
+
border-radius: $form-element-thumb-border-radius
|
17
|
+
box-shadow: $form-element-box-shadow
|
18
|
+
|
19
|
+
=_form-range-focus-thumb-skin
|
20
|
+
background: $form-element-focus-thumb-background
|
21
|
+
border-color: $form-element-focus-thumb-border-color
|
22
|
+
box-shadow: $form-element-focus-box-shadow
|
23
|
+
|
24
|
+
=_form-range-error-thumb-skin
|
25
|
+
background: $form-element-error-thumb-background
|
26
|
+
border-color: $form-element-error-thumb-border-color
|
27
|
+
box-shadow: $form-element-error-box-shadow
|
@@ -0,0 +1,66 @@
|
|
1
|
+
=_media-query($breakpoints, $breakpoint, $query-rule, $down-value: 0)
|
2
|
+
$breakpoint-value: map-get($breakpoints, $breakpoint)
|
3
|
+
$query-rule-min: null
|
4
|
+
$breakpoint-max-value: null
|
5
|
+
$query-rule-max: null
|
6
|
+
|
7
|
+
@if $breakpoint-value > 0
|
8
|
+
@if $query-rule == aspect-ratio
|
9
|
+
$query-rule-min: "(min-aspect-ratio:#{$breakpoint-value * 10000}/10000)"
|
10
|
+
@else
|
11
|
+
$query-rule-min: "(min-#{$query-rule}:#{$breakpoint-value})"
|
12
|
+
|
13
|
+
@if $down-value > 0
|
14
|
+
$breakpoints-keys: map-keys($breakpoints)
|
15
|
+
$breakpoints-values: map-values($breakpoints)
|
16
|
+
$breakpoint-index: index($breakpoints-keys, $breakpoint)
|
17
|
+
$breakpoint-max-value: null
|
18
|
+
@if $breakpoint-index < length($breakpoints-keys)
|
19
|
+
$breakpoint-max-value: nth($breakpoints-values, $breakpoint-index + 1) - $down-value
|
20
|
+
@else
|
21
|
+
$breakpoint-max-value: null
|
22
|
+
@if $breakpoint-max-value and $breakpoint-max-value > 0
|
23
|
+
@if $query-rule == aspect-ratio
|
24
|
+
$query-rule-max: "(max-aspect-ratio:#{$breakpoint-max-value * 10000}/10000)"
|
25
|
+
@else
|
26
|
+
$query-rule-max: "(max-#{$query-rule}:#{$breakpoint-max-value})"
|
27
|
+
|
28
|
+
@if $query-rule-min or $query-rule-max
|
29
|
+
@if $query-rule-min
|
30
|
+
@media #{$query-rule-min}
|
31
|
+
@if $query-rule-max
|
32
|
+
@media #{$query-rule-max}
|
33
|
+
@content
|
34
|
+
@else
|
35
|
+
// sass-lint:disable indentation
|
36
|
+
@content
|
37
|
+
// sass-lint:enable indentation
|
38
|
+
@else
|
39
|
+
@if $query-rule-max
|
40
|
+
@media #{$query-rule-max}
|
41
|
+
@content
|
42
|
+
@else
|
43
|
+
@content
|
44
|
+
@else
|
45
|
+
@content
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
=media-width($breakpoint, $only-breakpoint: false)
|
50
|
+
$down-value: if($only-breakpoint, 1, 0)
|
51
|
+
+_media-query($breakpoint-width-pxs, $breakpoint, width, $down-value)
|
52
|
+
@content
|
53
|
+
|
54
|
+
=media-resolution($breakpoint, $only-breakpoint: false)
|
55
|
+
$down-value: if($only-breakpoint, 9.6, 0)
|
56
|
+
+_media-query($breakpoint-resolutions, $breakpoint, resolution, $down-value)
|
57
|
+
@content
|
58
|
+
|
59
|
+
=media-aspect-ratio($breakpoint, $only-breakpoint: false)
|
60
|
+
$down-value: if($only-breakpoint, 0.0001, 0)
|
61
|
+
+_media-query($breakpoint-aspect-ratios, $breakpoint, aspect-ratio, $down-value)
|
62
|
+
@content
|
63
|
+
|
64
|
+
=media-print
|
65
|
+
@media print
|
66
|
+
@content
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=typo-level-vertical-padding($type-level, $baseline-offset)
|
2
|
+
padding-top: typo-padding-top($type-level, $baseline-offset)
|
3
|
+
padding-bottom: typo-padding-bottom($type-level, $baseline-offset)
|
4
|
+
|
5
|
+
=typo-level($type-level, $baseline-offset)
|
6
|
+
+typo-level-vertical-padding($type-level, $baseline-offset)
|
7
|
+
font-size: typo-size($type-level)
|
8
|
+
line-height: typo-line-height($type-level)
|
9
|
+
|
10
|
+
=typo-link($class: null, $color: null, $hover-color: null, $active-color: null)
|
11
|
+
a.link-#{$class}:not(.btn)
|
12
|
+
color: $color
|
13
|
+
|
14
|
+
a.link-#{$class}:not(.btn):hover
|
15
|
+
color: $hover-color
|
16
|
+
|
17
|
+
a.link-#{$class}:not(.btn):active
|
18
|
+
color: $active-color
|
19
|
+
|
20
|
+
=font-face($family: null, $style: normal, $weight: 400, $locals: null, $urls: null, $unicodes: null)
|
21
|
+
$src: null
|
22
|
+
@if $locals
|
23
|
+
@each $local in $locals
|
24
|
+
@if $src
|
25
|
+
$src: "#{$src}, local('#{$local}')"
|
26
|
+
@else
|
27
|
+
$src: "local('#{$local}')"
|
28
|
+
@if $urls
|
29
|
+
@each $format, $url in $urls
|
30
|
+
@if $src
|
31
|
+
$src: "#{$src}, url(#{$url}) format('#{$format}')"
|
32
|
+
@else
|
33
|
+
$src: "url(#{$url}) format('#{$format}')"
|
34
|
+
@at-root
|
35
|
+
@font-face
|
36
|
+
src: unquote($src)
|
37
|
+
font-family: $family
|
38
|
+
font-style: $style
|
39
|
+
font-weight: $weight
|
40
|
+
unicode-range: $unicodes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
+install(shared-utility-align)
|
2
|
+
|
3
|
+
.va-top
|
4
|
+
vertical-align: top !important
|
5
|
+
|
6
|
+
.va-middle
|
7
|
+
vertical-align: middle !important
|
8
|
+
|
9
|
+
.va-baseline
|
10
|
+
vertical-align: baseline !important
|
11
|
+
|
12
|
+
.va-bottom
|
13
|
+
vertical-align: bottom !important
|
14
|
+
|
15
|
+
.va-text-top
|
16
|
+
vertical-align: text-top !important
|
17
|
+
|
18
|
+
.va-text-bottom
|
19
|
+
vertical-align: text-bottom !important
|
@@ -0,0 +1,88 @@
|
|
1
|
+
+install(shared-utility-background)
|
2
|
+
|
3
|
+
.bc-primary
|
4
|
+
background-color: $background-color-primary !important
|
5
|
+
|
6
|
+
.bc-secondary
|
7
|
+
background-color: $background-color-secondary !important
|
8
|
+
|
9
|
+
.bc-danger
|
10
|
+
background-color: $background-color-danger !important
|
11
|
+
|
12
|
+
.bc-dark
|
13
|
+
background-color: $background-color-dark !important
|
14
|
+
|
15
|
+
.bc-light
|
16
|
+
background-color: $background-color-light !important
|
17
|
+
|
18
|
+
.bc-transparent
|
19
|
+
background-color: transparent !important
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
.b-emphasis
|
24
|
+
background: $background-emphasis !important
|
25
|
+
|
26
|
+
.b-main
|
27
|
+
background: $background-main !important
|
28
|
+
|
29
|
+
.b-muted
|
30
|
+
background: $background-muted !important
|
31
|
+
|
32
|
+
.b-inverse-emphasis
|
33
|
+
background: $background-inverse-emphasis !important
|
34
|
+
|
35
|
+
.b-inverse-main
|
36
|
+
background: $background-inverse-main !important
|
37
|
+
|
38
|
+
.b-inverse-muted
|
39
|
+
background: $background-inverse-muted !important
|
40
|
+
|
41
|
+
.b-none
|
42
|
+
background: none !important
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
.bp-c
|
47
|
+
background-position: center !important
|
48
|
+
|
49
|
+
.bp-rc
|
50
|
+
background-position: right center !important
|
51
|
+
|
52
|
+
.bp-lc
|
53
|
+
background-position: left center !important
|
54
|
+
|
55
|
+
.bp-ct
|
56
|
+
background-position: center top !important
|
57
|
+
|
58
|
+
.bp-cb
|
59
|
+
background-position: center bottom !important
|
60
|
+
|
61
|
+
.bp-lt
|
62
|
+
background-position: left top !important
|
63
|
+
|
64
|
+
.bp-lb
|
65
|
+
background-position: left bottom !important
|
66
|
+
|
67
|
+
.bp-rt
|
68
|
+
background-position: right top !important
|
69
|
+
|
70
|
+
.bp-rb
|
71
|
+
background-position: right bottom !important
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
.bs-cover
|
76
|
+
background-size: cover !important
|
77
|
+
|
78
|
+
.bs-contain
|
79
|
+
background-size: contain !important
|
80
|
+
|
81
|
+
.bs-auto
|
82
|
+
background-size: auto !important
|
83
|
+
|
84
|
+
.bs-100-auto
|
85
|
+
background-size: 100% auto !important
|
86
|
+
|
87
|
+
.bs-auto-100
|
88
|
+
background-size: auto 100% !important
|
@@ -0,0 +1,36 @@
|
|
1
|
+
+install(shared-utility-color)
|
2
|
+
|
3
|
+
.c-primary
|
4
|
+
color: $color-primary !important
|
5
|
+
|
6
|
+
.c-secondary
|
7
|
+
color: $color-secondary !important
|
8
|
+
|
9
|
+
.c-danger
|
10
|
+
color: $color-danger !important
|
11
|
+
|
12
|
+
.c-dark
|
13
|
+
color: $color-dark !important
|
14
|
+
|
15
|
+
.c-light
|
16
|
+
color: $color-light !important
|
17
|
+
|
18
|
+
.c-emphasis
|
19
|
+
color: $color-emphasis !important
|
20
|
+
|
21
|
+
.c-main
|
22
|
+
color: $color-main !important
|
23
|
+
|
24
|
+
.c-muted
|
25
|
+
color: $color-muted !important
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
.c-inverse-emphasis
|
30
|
+
color: $color-inverse-emphasis !important
|
31
|
+
|
32
|
+
.c-inverse-main
|
33
|
+
color: $color-inverse-main !important
|
34
|
+
|
35
|
+
.c-inverse-muted
|
36
|
+
color: $color-inverse-muted !important
|
@@ -0,0 +1,40 @@
|
|
1
|
+
+install(shared-utility-display)
|
2
|
+
|
3
|
+
@each $breakpoint in map-keys($breakpoint-width-pxs)
|
4
|
+
|
5
|
+
$class-fix: _responsive-class-fix($breakpoint)
|
6
|
+
|
7
|
+
+media-width($breakpoint)
|
8
|
+
|
9
|
+
.dis-inline#{$class-fix}
|
10
|
+
display: inline !important
|
11
|
+
|
12
|
+
.dis-inline-block#{$class-fix}
|
13
|
+
display: inline-block !important
|
14
|
+
|
15
|
+
.dis-block#{$class-fix}
|
16
|
+
display: block !important
|
17
|
+
|
18
|
+
.dis-table#{$class-fix}
|
19
|
+
display: table !important
|
20
|
+
|
21
|
+
.dis-table-cell#{$class-fix}
|
22
|
+
display: table-cell !important
|
23
|
+
|
24
|
+
.dis-table-row#{$class-fix}
|
25
|
+
display: table-row !important
|
26
|
+
|
27
|
+
.dis-flex#{$class-fix}
|
28
|
+
display: flex !important
|
29
|
+
|
30
|
+
.dis-inline-flex#{$class-fix}
|
31
|
+
display: inline-flex !important
|
32
|
+
|
33
|
+
.dis-none#{$class-fix}
|
34
|
+
display: none !important
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
+media-print
|
39
|
+
.dis-none-on-print
|
40
|
+
display: none !important
|
@@ -0,0 +1,114 @@
|
|
1
|
+
+install(shared-utility-flex)
|
2
|
+
|
3
|
+
@each $breakpoint in map-keys($breakpoint-width-pxs)
|
4
|
+
|
5
|
+
$class-fix: _responsive-class-fix($breakpoint)
|
6
|
+
|
7
|
+
+media-width($breakpoint)
|
8
|
+
|
9
|
+
.fw-wrap#{$class-fix}
|
10
|
+
flex-wrap: wrap !important
|
11
|
+
|
12
|
+
.fw-nowrap#{$class-fix}
|
13
|
+
flex-wrap: nowrap !important
|
14
|
+
|
15
|
+
.fw-wrap-reverse#{$class-fix}
|
16
|
+
flex-wrap: wrap-reverse !important
|
17
|
+
|
18
|
+
.fd-row#{$class-fix}
|
19
|
+
flex-direction: row !important
|
20
|
+
|
21
|
+
.fd-column#{$class-fix}
|
22
|
+
flex-direction: column !important
|
23
|
+
|
24
|
+
.fd-row-reverse#{$class-fix}
|
25
|
+
flex-direction: row-reverse !important
|
26
|
+
|
27
|
+
.fd-column-reverse#{$class-fix}
|
28
|
+
flex-direction: column-reverse !important
|
29
|
+
|
30
|
+
.jc-start#{$class-fix}
|
31
|
+
justify-content: flex-start !important
|
32
|
+
|
33
|
+
.jc-center#{$class-fix}
|
34
|
+
justify-content: center !important
|
35
|
+
|
36
|
+
.jc-end#{$class-fix}
|
37
|
+
justify-content: flex-end !important
|
38
|
+
|
39
|
+
.jc-between#{$class-fix}
|
40
|
+
justify-content: space-between !important
|
41
|
+
|
42
|
+
.jc-around#{$class-fix}
|
43
|
+
justify-content: space-around !important
|
44
|
+
|
45
|
+
.ac-start#{$class-fix}
|
46
|
+
align-content: flex-start !important
|
47
|
+
|
48
|
+
.ac-center#{$class-fix}
|
49
|
+
align-content: center !important
|
50
|
+
|
51
|
+
.ac-end#{$class-fix}
|
52
|
+
align-content: flex-end !important
|
53
|
+
|
54
|
+
.ac-between#{$class-fix}
|
55
|
+
align-content: space-between !important
|
56
|
+
|
57
|
+
.ac-around#{$class-fix}
|
58
|
+
align-content: space-around !important
|
59
|
+
|
60
|
+
.ai-start#{$class-fix}
|
61
|
+
align-items: flex-start !important
|
62
|
+
|
63
|
+
.ai-end#{$class-fix}
|
64
|
+
align-items: flex-end !important
|
65
|
+
|
66
|
+
.ai-center#{$class-fix}
|
67
|
+
align-items: center !important
|
68
|
+
|
69
|
+
.ai-baseline#{$class-fix}
|
70
|
+
align-items: baseline !important
|
71
|
+
|
72
|
+
.ai-stretch#{$class-fix}
|
73
|
+
align-items: stretch !important
|
74
|
+
|
75
|
+
.as-start#{$class-fix}
|
76
|
+
align-self: flex-start !important
|
77
|
+
|
78
|
+
.as-center#{$class-fix}
|
79
|
+
align-self: center !important
|
80
|
+
|
81
|
+
.as-baseline#{$class-fix}
|
82
|
+
align-self: baseline !important
|
83
|
+
|
84
|
+
.as-end#{$class-fix}
|
85
|
+
align-self: flex-end !important
|
86
|
+
|
87
|
+
.as-stretch#{$class-fix}
|
88
|
+
align-self: stretch !important
|
89
|
+
|
90
|
+
.fg-1#{$class-fix}
|
91
|
+
flex-grow: 1 !important
|
92
|
+
|
93
|
+
.fg-0#{$class-fix}
|
94
|
+
flex-grow: 0 !important
|
95
|
+
|
96
|
+
.fs-1#{$class-fix}
|
97
|
+
flex-shrink: 1 !important
|
98
|
+
|
99
|
+
.fs-0#{$class-fix}
|
100
|
+
flex-shrink: 0 !important
|
101
|
+
|
102
|
+
.flex-auto#{$class-fix}
|
103
|
+
flex: 1 1 auto !important
|
104
|
+
|
105
|
+
.od-0#{$class-fix}
|
106
|
+
order: 0 !important
|
107
|
+
|
108
|
+
@for $i from 1 through ceil($grid-columns / 2)
|
109
|
+
|
110
|
+
.od-#{$i}#{$class-fix}
|
111
|
+
order: $i !important
|
112
|
+
|
113
|
+
.on-#{$i}#{$class-fix}
|
114
|
+
order: - $i !important
|