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,18 @@
|
|
1
|
+
+install(shared-collection-tab)
|
2
|
+
|
3
|
+
.tab-indicators
|
4
|
+
overflow: auto
|
5
|
+
-webkit-overflow-scrolling: touch
|
6
|
+
|
7
|
+
.tab-panes
|
8
|
+
padding-top: $tab-panes-padding-top-rem
|
9
|
+
padding-bottom: $tab-panes-padding-bottom-rem
|
10
|
+
overflow: auto
|
11
|
+
-webkit-overflow-scrolling: touch
|
12
|
+
background: $tab-panes-background
|
13
|
+
|
14
|
+
.tab-pane
|
15
|
+
display: none
|
16
|
+
|
17
|
+
.tab-pane-active.tab-pane
|
18
|
+
display: block
|
@@ -0,0 +1,19 @@
|
|
1
|
+
+install(shared-element-badge)
|
2
|
+
|
3
|
+
.badge,
|
4
|
+
.badge-baseline
|
5
|
+
display: inline-flex
|
6
|
+
position: relative
|
7
|
+
left: $badge-offset-left-em
|
8
|
+
align-items: center
|
9
|
+
min-width: $badge-height-em
|
10
|
+
height: $badge-height-em
|
11
|
+
padding: $badge-padding-em
|
12
|
+
font-size: 1em / $typography-size-scale-ratio
|
13
|
+
white-space: nowrap
|
14
|
+
color: $badge-color
|
15
|
+
background: $badge-background
|
16
|
+
border-radius: 9999px
|
17
|
+
|
18
|
+
.badge
|
19
|
+
top: $badge-offset-top-em
|
@@ -0,0 +1,22 @@
|
|
1
|
+
+install(shared-element-baseline)
|
2
|
+
|
3
|
+
.baseline-overlay
|
4
|
+
position: relative
|
5
|
+
|
6
|
+
$_baseline-gradient: linear-gradient(to bottom, #0ff 0, rgba(255, 255, 255, 0) 1px)
|
7
|
+
$_baseline-background: $_baseline-gradient left top / 100% 1rem repeat-y
|
8
|
+
|
9
|
+
.baseline-overlay::after
|
10
|
+
display: block
|
11
|
+
position: absolute
|
12
|
+
top: 0
|
13
|
+
right: 0
|
14
|
+
bottom: 0
|
15
|
+
left: 0
|
16
|
+
z-index: $z-index-highest
|
17
|
+
pointer-events: none
|
18
|
+
content: ""
|
19
|
+
background: $_baseline-background
|
20
|
+
|
21
|
+
.baseline-background
|
22
|
+
background: $_baseline-background
|
@@ -0,0 +1,136 @@
|
|
1
|
+
+install(shared-element-button)
|
2
|
+
|
3
|
+
.btn,
|
4
|
+
.btn-check,
|
5
|
+
.btn-radio,
|
6
|
+
.btn-file
|
7
|
+
-webkit-appearance: none
|
8
|
+
-moz-appearance: none
|
9
|
+
appearance: none
|
10
|
+
display: inline-flex
|
11
|
+
vertical-align: top
|
12
|
+
flex: 0 0 auto
|
13
|
+
max-width: 100%
|
14
|
+
min-width: $button-height-rem
|
15
|
+
height: $button-height-rem
|
16
|
+
font-size: typo-size($button-typography-size-level)
|
17
|
+
line-height: normal
|
18
|
+
white-space: nowrap
|
19
|
+
cursor: pointer
|
20
|
+
-ms-touch-action: manipulation
|
21
|
+
touch-action: manipulation
|
22
|
+
-webkit-user-select: none
|
23
|
+
-moz-user-select: none
|
24
|
+
-ms-user-select: none
|
25
|
+
user-select: none
|
26
|
+
text-decoration: none
|
27
|
+
background: none
|
28
|
+
|
29
|
+
+browser-edge
|
30
|
+
input.btn
|
31
|
+
display: inline-block
|
32
|
+
text-align: center
|
33
|
+
|
34
|
+
.btn,
|
35
|
+
.btn-check label,
|
36
|
+
.btn-radio label,
|
37
|
+
.btn-file label
|
38
|
+
align-items: center
|
39
|
+
justify-content: center
|
40
|
+
padding: 0 $button-helvertical-padding-em
|
41
|
+
border: $button-border-style $button-border-width
|
42
|
+
overflow: hidden
|
43
|
+
border-radius: existing($button-border-radius, 0)
|
44
|
+
|
45
|
+
.btn-check label,
|
46
|
+
.btn-radio label,
|
47
|
+
.btn-file label
|
48
|
+
display: flex
|
49
|
+
width: 100%
|
50
|
+
height: inherit
|
51
|
+
// pointer-events: none
|
52
|
+
|
53
|
+
.btn > *,
|
54
|
+
.btn-check label > *,
|
55
|
+
.btn-radio label > *,
|
56
|
+
.btn-file label > *
|
57
|
+
flex: 0 0 auto
|
58
|
+
|
59
|
+
.btn-check input,
|
60
|
+
.btn-radio input,
|
61
|
+
.btn-file input
|
62
|
+
-webkit-appearance: none
|
63
|
+
-moz-appearance: none
|
64
|
+
appearance: none
|
65
|
+
width: 0.001px
|
66
|
+
min-width: 100%
|
67
|
+
// height: 0.001px
|
68
|
+
height: 100%
|
69
|
+
margin-right: -100%
|
70
|
+
overflow: hidden
|
71
|
+
cursor: pointer
|
72
|
+
opacity: 0
|
73
|
+
|
74
|
+
.btn-check input[disabled],
|
75
|
+
.btn-radio input[disabled],
|
76
|
+
.btn-file input[disabled]
|
77
|
+
opacity: 0
|
78
|
+
|
79
|
+
// remove webkit file upload button to prevent cursor change when hover
|
80
|
+
.btn-file ::-webkit-file-upload-button
|
81
|
+
display: none
|
82
|
+
|
83
|
+
.btn:-moz-focusring
|
84
|
+
outline: none
|
85
|
+
|
86
|
+
.btn.focus,
|
87
|
+
.btn-check input.focus ~ label,
|
88
|
+
.btn-radio input.focus ~ label,
|
89
|
+
.btn-file input.focus ~ label
|
90
|
+
+_focus
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
.btn-fluid.btn,
|
95
|
+
.btn-fluid.btn-check,
|
96
|
+
.btn-fluid.btn-radio,
|
97
|
+
.btn-fluid.btn-file
|
98
|
+
display: flex
|
99
|
+
flex: 1 1 auto
|
100
|
+
width: 100%
|
101
|
+
|
102
|
+
.btn-small.btn,
|
103
|
+
.btn-small.btn-check,
|
104
|
+
.btn-small.btn-radio,
|
105
|
+
.btn-small.btn-file
|
106
|
+
min-width: $button-small-height-rem
|
107
|
+
height: $button-small-height-rem
|
108
|
+
font-size: typo-size($button-small-typography-size-level)
|
109
|
+
|
110
|
+
.btn-large.btn,
|
111
|
+
.btn-large.btn-check,
|
112
|
+
.btn-large.btn-radio,
|
113
|
+
.btn-large.btn-file
|
114
|
+
min-width: $button-large-height-rem
|
115
|
+
height: $button-large-height-rem
|
116
|
+
font-size: typo-size($button-large-typography-size-level)
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
+button-solid(primary, $button-primary-color, $button-primary-hover-color, $button-primary-active-color, $button-primary-background, $button-primary-hover-background, $button-primary-active-background, $button-primary-border-color, $button-primary-hover-border-color, $button-primary-active-border-color, $button-primary-box-shadow, $button-primary-hover-box-shadow, $button-primary-active-box-shadow)
|
121
|
+
+button-solid(secondary, $button-secondary-color, $button-secondary-hover-color, $button-secondary-active-color, $button-secondary-background, $button-secondary-hover-background, $button-secondary-active-background, $button-secondary-border-color, $button-secondary-hover-border-color, $button-secondary-active-border-color, $button-secondary-box-shadow, $button-secondary-hover-box-shadow, $button-secondary-active-box-shadow)
|
122
|
+
+button-solid(danger, $button-danger-color, $button-danger-hover-color, $button-danger-active-color, $button-danger-background, $button-danger-hover-background, $button-danger-active-background, $button-danger-border-color, $button-danger-hover-border-color, $button-danger-active-border-color, $button-danger-box-shadow, $button-danger-hover-box-shadow, $button-danger-active-box-shadow)
|
123
|
+
+button-solid(dark, $button-dark-color, $button-dark-hover-color, $button-dark-active-color, $button-dark-background, $button-dark-hover-background, $button-dark-active-background, $button-dark-border-color, $button-dark-hover-border-color, $button-dark-active-border-color, $button-dark-box-shadow, $button-dark-hover-box-shadow, $button-dark-active-box-shadow)
|
124
|
+
+button-solid(light, $button-light-color, $button-light-hover-color, $button-light-active-color, $button-light-background, $button-light-hover-background, $button-light-active-background, $button-light-border-color, $button-light-hover-border-color, $button-light-active-border-color, $button-light-box-shadow, $button-light-hover-box-shadow, $button-light-active-box-shadow)
|
125
|
+
|
126
|
+
+button-hollow(primary, $button-hollow-primary-color, $button-hollow-primary-hover-color, $button-hollow-primary-active-color, $button-hollow-primary-hover-background, $button-hollow-primary-active-background, $button-hollow-primary-border-color, $button-hollow-primary-hover-border-color, $button-hollow-primary-active-border-color, $button-hollow-primary-box-shadow, $button-hollow-primary-hover-box-shadow, $button-hollow-primary-active-box-shadow)
|
127
|
+
+button-hollow(secondary, $button-hollow-secondary-color, $button-hollow-secondary-hover-color, $button-hollow-secondary-active-color, $button-hollow-secondary-hover-background, $button-hollow-secondary-active-background, $button-hollow-secondary-border-color, $button-hollow-secondary-hover-border-color, $button-hollow-secondary-active-border-color, $button-hollow-secondary-box-shadow, $button-hollow-secondary-hover-box-shadow, $button-hollow-secondary-active-box-shadow)
|
128
|
+
+button-hollow(danger, $button-hollow-danger-color, $button-hollow-danger-hover-color, $button-hollow-danger-active-color, $button-hollow-danger-hover-background, $button-hollow-danger-active-background, $button-hollow-danger-border-color, $button-hollow-danger-hover-border-color, $button-hollow-danger-active-border-color, $button-hollow-danger-box-shadow, $button-hollow-danger-hover-box-shadow, $button-hollow-danger-active-box-shadow)
|
129
|
+
+button-hollow(dark, $button-hollow-dark-color, $button-hollow-dark-hover-color, $button-hollow-dark-active-color, $button-hollow-dark-hover-background, $button-hollow-dark-active-background, $button-hollow-dark-border-color, $button-hollow-dark-hover-border-color, $button-hollow-dark-active-border-color, $button-hollow-dark-box-shadow, $button-hollow-dark-hover-box-shadow, $button-hollow-dark-active-box-shadow)
|
130
|
+
+button-hollow(light, $button-hollow-light-color, $button-hollow-light-hover-color, $button-hollow-light-active-color, $button-hollow-light-hover-background, $button-hollow-light-active-background, $button-hollow-light-border-color, $button-hollow-light-hover-border-color, $button-hollow-light-active-border-color, $button-hollow-light-box-shadow, $button-hollow-light-hover-box-shadow, $button-hollow-light-active-box-shadow)
|
131
|
+
|
132
|
+
+button-text(primary, $button-text-primary-color, $button-text-primary-hover-color, $button-text-primary-active-color, $button-text-primary-text-shadow, $button-text-primary-hover-text-shadow, $button-text-primary-active-text-shadow)
|
133
|
+
+button-text(secondary, $button-text-secondary-color, $button-text-secondary-hover-color, $button-text-secondary-active-color, $button-text-secondary-text-shadow, $button-text-secondary-hover-text-shadow, $button-text-secondary-active-text-shadow)
|
134
|
+
+button-text(danger, $button-text-danger-color, $button-text-danger-hover-color, $button-text-danger-active-color, $button-text-danger-text-shadow, $button-text-danger-hover-text-shadow, $button-text-danger-active-text-shadow)
|
135
|
+
+button-text(dark, $button-text-dark-color, $button-text-dark-hover-color, $button-text-dark-active-color, $button-text-dark-text-shadow, $button-text-dark-hover-text-shadow, $button-text-dark-active-text-shadow)
|
136
|
+
+button-text(light, $button-text-light-color, $button-text-light-hover-color, $button-text-light-active-color, $button-text-light-text-shadow, $button-text-light-hover-text-shadow, $button-text-light-active-text-shadow)
|
@@ -0,0 +1,55 @@
|
|
1
|
+
+install(shared-element-grid)
|
2
|
+
|
3
|
+
.grid,
|
4
|
+
.grid-edge
|
5
|
+
display: flex
|
6
|
+
flex-wrap: wrap
|
7
|
+
align-items: flex-start
|
8
|
+
width: 100%
|
9
|
+
|
10
|
+
[class*=col-]
|
11
|
+
flex-grow: 0
|
12
|
+
flex-shrink: 0
|
13
|
+
|
14
|
+
.col-auto
|
15
|
+
flex-basis: 0
|
16
|
+
flex-grow: 1
|
17
|
+
flex-shrink: 1
|
18
|
+
max-width: 100%
|
19
|
+
min-width: 1px
|
20
|
+
|
21
|
+
.grid > [class*=col-]
|
22
|
+
padding-right: $grid-gutter-width-rem / 2
|
23
|
+
padding-left: $grid-gutter-width-rem / 2
|
24
|
+
|
25
|
+
.grid [class*=col-] .grid
|
26
|
+
width: auto
|
27
|
+
margin-right: - $grid-gutter-width-rem / 2
|
28
|
+
margin-left: - $grid-gutter-width-rem / 2
|
29
|
+
|
30
|
+
.grid .grid-edge > [class*=col-] > .grid
|
31
|
+
margin-right: 0
|
32
|
+
margin-left: 0
|
33
|
+
|
34
|
+
.grid-edge.container
|
35
|
+
padding: 0
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
@each $breakpoint in map-keys($breakpoint-width-pxs)
|
40
|
+
$class-fix: _responsive-class-fix($breakpoint)
|
41
|
+
|
42
|
+
+media-width($breakpoint)
|
43
|
+
|
44
|
+
@for $count from 1 through $grid-columns
|
45
|
+
$column-width: $count / $grid-columns * 100%
|
46
|
+
|
47
|
+
.col-#{$count}#{$class-fix}
|
48
|
+
flex-basis: $column-width
|
49
|
+
max-width: $column-width
|
50
|
+
|
51
|
+
@for $count from 1 to $grid-columns
|
52
|
+
$margin-left: $count / $grid-columns * 100%
|
53
|
+
|
54
|
+
.offset-#{$count}#{$class-fix}
|
55
|
+
margin-left: $margin-left
|
@@ -0,0 +1,110 @@
|
|
1
|
+
+install(shared-element-icon)
|
2
|
+
|
3
|
+
.ico
|
4
|
+
display: inline-block
|
5
|
+
vertical-align: text-top
|
6
|
+
position: relative
|
7
|
+
width: 1em
|
8
|
+
height: 1em
|
9
|
+
font-size: $icon-size-em
|
10
|
+
line-height: normal
|
11
|
+
overflow: hidden
|
12
|
+
-webkit-user-select: none
|
13
|
+
-moz-user-select: none
|
14
|
+
-ms-user-select: none
|
15
|
+
user-select: none
|
16
|
+
object-fit: contain
|
17
|
+
object-position: center
|
18
|
+
font-style: normal
|
19
|
+
background-position: center
|
20
|
+
background-size: contain
|
21
|
+
|
22
|
+
+browser-firefox
|
23
|
+
.ico
|
24
|
+
line-height: $icon-firefox-line-height
|
25
|
+
|
26
|
+
.ico::before,
|
27
|
+
.ico::after
|
28
|
+
display: block
|
29
|
+
position: absolute
|
30
|
+
top: 50%
|
31
|
+
left: 50%
|
32
|
+
transform: translate(-50%, -50%)
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
.ico-left::before,
|
37
|
+
.ico-right::before,
|
38
|
+
.ico-up::before,
|
39
|
+
.ico-down::before
|
40
|
+
width: 0.6em
|
41
|
+
height: 0.6em
|
42
|
+
border: $icon-stroke-width solid
|
43
|
+
border-right: none
|
44
|
+
border-bottom: none
|
45
|
+
content: ''
|
46
|
+
|
47
|
+
.ico-left::before
|
48
|
+
transform: translate(-25%, -50%) rotate(-45deg)
|
49
|
+
|
50
|
+
.ico-right::before
|
51
|
+
transform: translate(-75%, -50%) rotate(135deg)
|
52
|
+
|
53
|
+
.ico-up::before
|
54
|
+
transform: translate(-50%, -25%) rotate(45deg)
|
55
|
+
|
56
|
+
.ico-down::before
|
57
|
+
transform: translate(-50%, -75%) rotate(225deg)
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
.ico-plus::before,
|
62
|
+
.ico-plus::after,
|
63
|
+
.ico-cross::before,
|
64
|
+
.ico-cross::after
|
65
|
+
content: ''
|
66
|
+
background: currentColor
|
67
|
+
|
68
|
+
.ico-plus::before,
|
69
|
+
.ico-cross::before
|
70
|
+
width: 0.9em
|
71
|
+
height: $icon-stroke-width
|
72
|
+
|
73
|
+
.ico-plus::after,
|
74
|
+
.ico-cross::after
|
75
|
+
width: $icon-stroke-width
|
76
|
+
height: 0.9em
|
77
|
+
|
78
|
+
.ico-cross::before,
|
79
|
+
.ico-cross::after
|
80
|
+
transform: translate(-50%, -50%) rotate(45deg)
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
.ico-menu::before
|
85
|
+
width: 0.9em
|
86
|
+
height: $icon-stroke-width
|
87
|
+
content: ''
|
88
|
+
background: currentColor
|
89
|
+
box-shadow: 0 -0.35em, 0 0.35em
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
.ico-search::before
|
94
|
+
top: 5%
|
95
|
+
left: 5%
|
96
|
+
width: 0.75em
|
97
|
+
height: 0.75em
|
98
|
+
border: $icon-stroke-width solid
|
99
|
+
content: ''
|
100
|
+
border-radius: 50%
|
101
|
+
transform: translate(0, 0) rotate(45deg)
|
102
|
+
|
103
|
+
.ico-search::after
|
104
|
+
top: 80%
|
105
|
+
left: 80%
|
106
|
+
width: 0.4em
|
107
|
+
height: $icon-stroke-width
|
108
|
+
content: ''
|
109
|
+
background: currentColor
|
110
|
+
transform: translate(-50%, -50%) rotate(45deg)
|
@@ -0,0 +1,31 @@
|
|
1
|
+
+install(shared-element-progress)
|
2
|
+
|
3
|
+
.progress
|
4
|
+
display: flex
|
5
|
+
height: $progress-height-rem
|
6
|
+
background: $progress-background
|
7
|
+
border-radius: $progress-border-radius
|
8
|
+
|
9
|
+
.progress-bar
|
10
|
+
display: flex
|
11
|
+
align-items: center
|
12
|
+
justify-content: flex-end
|
13
|
+
min-width: $progress-bar-min-width-em
|
14
|
+
height: 100%
|
15
|
+
padding: $progress-bar-padding
|
16
|
+
font-size: typo-size($progress-bar-typography-size-level)
|
17
|
+
white-space: nowrap
|
18
|
+
overflow: hidden
|
19
|
+
color: $progress-bar-color
|
20
|
+
background: $progress-bar-background
|
21
|
+
border-radius: $progress-border-radius
|
22
|
+
|
23
|
+
@if $progress-border-radius and $progress-border-radius != 0
|
24
|
+
|
25
|
+
.progress-bar:not(:first-child)
|
26
|
+
border-top-left-radius: 0
|
27
|
+
border-bottom-left-radius: 0
|
28
|
+
|
29
|
+
.progress-bar:not(:last-child)
|
30
|
+
border-top-right-radius: 0
|
31
|
+
border-bottom-right-radius: 0
|
@@ -0,0 +1,21 @@
|
|
1
|
+
+install(shared-element-scrollbar)
|
2
|
+
|
3
|
+
+media-width($scrollbar-width-breakpoint)
|
4
|
+
|
5
|
+
html
|
6
|
+
-ms-overflow-style: $scrollbar-ie-edge-overflow-style
|
7
|
+
|
8
|
+
+browser-chrome-and-opera
|
9
|
+
|
10
|
+
+media-width($scrollbar-width-breakpoint)
|
11
|
+
|
12
|
+
html
|
13
|
+
overflow: overlay
|
14
|
+
|
15
|
+
::-webkit-scrollbar
|
16
|
+
width: $scrollbar-breakpoint-vertical-width-rem
|
17
|
+
height: $scrollbar-breakpoint-horizontal-height-rem
|
18
|
+
|
19
|
+
::-webkit-scrollbar-thumb
|
20
|
+
background: $scrollbar-thumb-background
|
21
|
+
border-radius: $scrollbar-thumb-border-radius
|