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,60 @@
|
|
1
|
+
+install(shared-collection-dropdown)
|
2
|
+
|
3
|
+
.dropdown-absolute,
|
4
|
+
.dropdown-static,
|
5
|
+
.dropdown-fixed
|
6
|
+
display: inline-flex
|
7
|
+
vertical-align: top
|
8
|
+
flex-direction: column
|
9
|
+
max-width: 100%
|
10
|
+
-ms-touch-action: manipulation
|
11
|
+
touch-action: manipulation
|
12
|
+
|
13
|
+
.dropdown-menu
|
14
|
+
display: none
|
15
|
+
|
16
|
+
.dropdown-active > .dropdown-menu
|
17
|
+
display: block
|
18
|
+
|
19
|
+
.dropdown-items
|
20
|
+
display: flex
|
21
|
+
flex-direction: column
|
22
|
+
min-width: 100%
|
23
|
+
|
24
|
+
.dropdown-items > *
|
25
|
+
flex: 0 0 auto
|
26
|
+
|
27
|
+
.dropdown-items .btn:not(.btn-ico):not(.btn-ico-top):not(.btn-ico-right),
|
28
|
+
.dropdown-items [class*=btn-]:not(.btn-ico):not(.btn-ico-top):not(.btn-ico-right) label
|
29
|
+
justify-content: flex-start
|
30
|
+
|
31
|
+
.dropdown-items .btn.btn-ico-right,
|
32
|
+
.dropdown-items [class*=btn-].btn-ico-right label
|
33
|
+
justify-content: space-between
|
34
|
+
|
35
|
+
+browser-edge
|
36
|
+
.dropdown-items input.btn:not(.btn-ico):not(.btn-ico-top):not(.btn-ico-right)
|
37
|
+
text-align: left
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
.dropdown-static .dropdown-menu
|
42
|
+
margin-left: $dropdown-static-menu-margin-left-rem
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
.dropdown-fixed.dropdown-active > .dropdown-menu
|
47
|
+
+overlay
|
48
|
+
|
49
|
+
.dropdown-fixed > .dropdown-menu > .dropdown-items
|
50
|
+
+overlay-body
|
51
|
+
margin-bottom: 0
|
52
|
+
overflow: visible
|
53
|
+
background: $dropdown-absolute-fixed-background
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
+_dropdown-absolute
|
58
|
+
|
59
|
+
+media-width($dropdown-width-breakpoint)
|
60
|
+
+_dropdown-absolute($dropdown-width-breakpoint)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
+install(shared-collection-form-button)
|
2
|
+
|
3
|
+
.fm-btn
|
4
|
+
display: flex
|
5
|
+
|
6
|
+
.fm-btn .fm
|
7
|
+
flex-basis: 100%
|
8
|
+
|
9
|
+
.fm-btn .fm input,
|
10
|
+
.fm-btn .fm select,
|
11
|
+
.fm-btn .fm textarea
|
12
|
+
border-right: none
|
13
|
+
border-top-right-radius: 0
|
14
|
+
border-bottom-right-radius: 0
|
15
|
+
|
16
|
+
.fm-btn .btn,
|
17
|
+
.fm-btn .btn-check,
|
18
|
+
.fm-btn .btn-radio,
|
19
|
+
.fm-btn .btn-file
|
20
|
+
flex-shrink: 0
|
21
|
+
order: 1
|
22
|
+
border-top-left-radius: 0
|
23
|
+
border-bottom-left-radius: 0
|
@@ -0,0 +1,21 @@
|
|
1
|
+
+install(shared-collection-form-dropdown)
|
2
|
+
|
3
|
+
.fm-dropdown.dropdown-absolute,
|
4
|
+
.fm-dropdown.dropdown-fixed
|
5
|
+
width: 100%
|
6
|
+
|
7
|
+
+media-width($dropdown-width-breakpoint)
|
8
|
+
|
9
|
+
.fm-dropdown.dropdown-absolute-#{$dropdown-width-breakpoint}:not(.dropdown-top)
|
10
|
+
|
11
|
+
> .dropdown-menu
|
12
|
+
order: -1
|
13
|
+
|
14
|
+
> .dropdown-menu > .dropdown-items
|
15
|
+
margin-top: $form-element-textfield-height-rem + $dropdown-absolute-drop-gap-rem
|
16
|
+
|
17
|
+
> .fm-small ~ .dropdown-menu > .dropdown-items
|
18
|
+
margin-top: $form-element-small-textfield-height-rem + $dropdown-absolute-drop-gap-rem
|
19
|
+
|
20
|
+
> .fm-large ~ .dropdown-menu > .dropdown-items
|
21
|
+
margin-top: $form-element-large-textfield-height-rem + $dropdown-absolute-drop-gap-rem
|
@@ -0,0 +1,48 @@
|
|
1
|
+
+install(shared-collection-form-group)
|
2
|
+
|
3
|
+
.fm-group > .grid
|
4
|
+
width: auto
|
5
|
+
padding-right: $grid-gutter-width-rem / 2
|
6
|
+
margin-right: - $grid-gutter-width-rem / 2
|
7
|
+
margin-left: - $grid-gutter-width-rem / 2
|
8
|
+
|
9
|
+
.fm-group > .grid > [class*=col-]
|
10
|
+
padding-right: 0
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
.fm-group .fm-label-nowrap.fm-label,
|
15
|
+
.fm-group .fm-label-wrap.fm-label
|
16
|
+
height: $form-element-textfield-height-rem
|
17
|
+
padding-top: 0
|
18
|
+
padding-bottom: 0
|
19
|
+
overflow: hidden
|
20
|
+
text-overflow: ellipsis
|
21
|
+
|
22
|
+
.fm-group .fm-label-nowrap.fm-label
|
23
|
+
line-height: $form-element-textfield-height-rem
|
24
|
+
white-space: nowrap
|
25
|
+
|
26
|
+
.fm-group .fm-label-small.fm-label-nowrap.fm-label
|
27
|
+
height: $form-element-small-textfield-height-rem
|
28
|
+
line-height: $form-element-small-textfield-height-rem
|
29
|
+
|
30
|
+
.fm-group .fm-label-large.fm-label-nowrap.fm-label
|
31
|
+
height: $form-element-large-textfield-height-rem
|
32
|
+
line-height: $form-element-large-textfield-height-rem
|
33
|
+
|
34
|
+
.fm-group .fm-label-wrap.fm-label
|
35
|
+
line-height: $form-element-textfield-height-rem / 2
|
36
|
+
|
37
|
+
.fm-group .fm-label-small.fm-label-wrap.fm-label
|
38
|
+
height: $form-element-small-textfield-height-rem
|
39
|
+
line-height: $form-element-small-textfield-height-rem / 2
|
40
|
+
|
41
|
+
.fm-group .fm-label-large.fm-label-wrap.fm-label
|
42
|
+
height: $form-element-large-textfield-height-rem
|
43
|
+
line-height: $form-element-large-textfield-height-rem / 2
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
.fm-group .fm
|
48
|
+
margin-bottom: $form-group-element-vertical-margin-rem
|
@@ -0,0 +1,71 @@
|
|
1
|
+
+install(shared-collection-form-icon)
|
2
|
+
|
3
|
+
.fm.fm-ico-left input,
|
4
|
+
.fm.fm-ico-left select[multiple],
|
5
|
+
.fm.fm-ico-left textarea
|
6
|
+
padding-left: $form-element-text-helvertical-padding-em * 2 + $form-element-icon-size-em
|
7
|
+
|
8
|
+
.fm.fm-ico-right input,
|
9
|
+
.fm.fm-ico-right select[multiple],
|
10
|
+
.fm.fm-ico-right textarea
|
11
|
+
padding-right: $form-element-text-helvertical-padding-em * 2 + $form-element-icon-size-em
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
.fm-select.fm-ico-right input,
|
16
|
+
.fm-file.fm-ico-right input,
|
17
|
+
.fm-search.fm-ico-right input
|
18
|
+
background: $form-element-background
|
19
|
+
|
20
|
+
.fm-select.fm-ico-right[data-error] input,
|
21
|
+
.fm-file.fm-ico-right[data-error] input,
|
22
|
+
.fm-search.fm-ico-right[data-error] input
|
23
|
+
background: form-error-background
|
24
|
+
|
25
|
+
.fm.fm-select.fm-ico-right .focus ~ input,
|
26
|
+
.fm.fm-select.fm-ico-right input.focus,
|
27
|
+
.fm.fm-file.fm-ico-right .focus ~ input,
|
28
|
+
.fm.fm-search.fm-ico-right input.focus
|
29
|
+
background: form-focus-background
|
30
|
+
|
31
|
+
.fm.fm-select[data-error].fm-ico-right .focus ~ input,
|
32
|
+
.fm.fm-select[data-error].fm-ico-right input.focus,
|
33
|
+
.fm.fm-file[data-error].fm-ico-right .focus ~ input,
|
34
|
+
.fm.fm-search[data-error].fm-ico-right input.focus
|
35
|
+
background: form-error-focus-background
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
.fm > .ico
|
40
|
+
margin-top: _form-icon-margin-top($form-element-textfield-height-rem, $form-element-typography-size-level)
|
41
|
+
font-size: $form-element-icon-size-em
|
42
|
+
color: $form-element-icon-color
|
43
|
+
fill: $form-element-icon-color
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
.fm.fm-ico-left > .ico
|
48
|
+
margin-left: $form-element-text-helvertical-padding-em / strip-unit($form-element-icon-size-em)
|
49
|
+
|
50
|
+
.fm.fm-ico-right > .ico
|
51
|
+
margin-right: $form-element-text-helvertical-padding-em / strip-unit($form-element-icon-size-em)
|
52
|
+
margin-left: auto
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
.fm-small.fm > .ico
|
57
|
+
margin-top: _form-icon-margin-top($form-element-small-textfield-height-rem, $form-element-small-typography-size-level)
|
58
|
+
|
59
|
+
.fm-large.fm > .ico
|
60
|
+
margin-top: _form-icon-margin-top($form-element-large-textfield-height-rem, $form-element-large-typography-size-level)
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
.fm[data-error] .ico
|
65
|
+
color: $form-element-error-icon-color
|
66
|
+
fill: $form-element-error-icon-color
|
67
|
+
|
68
|
+
.fm.fm-ico-left .focus ~ .ico,
|
69
|
+
.fm.fm-ico-right .focus ~ .ico
|
70
|
+
color: $form-element-focus-icon-color
|
71
|
+
fill: $form-element-focus-icon-color
|
@@ -0,0 +1,55 @@
|
|
1
|
+
+install(shared-collection-media)
|
2
|
+
|
3
|
+
.media
|
4
|
+
display: inline-block
|
5
|
+
vertical-align: top
|
6
|
+
max-width: 100%
|
7
|
+
|
8
|
+
.media img,
|
9
|
+
.media svg,
|
10
|
+
.media canvas,
|
11
|
+
.media video,
|
12
|
+
.media object,
|
13
|
+
.media embed,
|
14
|
+
[class*=media-content]
|
15
|
+
display: block
|
16
|
+
max-width: 100%
|
17
|
+
margin: auto
|
18
|
+
overflow: hidden
|
19
|
+
object-fit: cover
|
20
|
+
object-position: center
|
21
|
+
background-color: $media-background-color
|
22
|
+
background-position: center
|
23
|
+
background-size: cover
|
24
|
+
border-radius: $media-border-radius
|
25
|
+
|
26
|
+
[class*=media-content]
|
27
|
+
position: relative
|
28
|
+
width: 100%
|
29
|
+
padding-top: 100% / $media-content-aspect-ratio
|
30
|
+
|
31
|
+
.media [class*=media-content] > *
|
32
|
+
position: absolute
|
33
|
+
top: 0
|
34
|
+
right: 0
|
35
|
+
bottom: 0
|
36
|
+
left: 0
|
37
|
+
width: 100%
|
38
|
+
height: 100%
|
39
|
+
background-color: transparent
|
40
|
+
|
41
|
+
.media-content-1by1
|
42
|
+
padding-top: 100%
|
43
|
+
|
44
|
+
.media-description
|
45
|
+
text-align: center
|
46
|
+
color: $media-description-color
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
.media-contain.media img,
|
51
|
+
.media-contain.media svg,
|
52
|
+
.media-contain.media video,
|
53
|
+
.media-contain.media [class*=media-content]
|
54
|
+
object-fit: contain
|
55
|
+
background-size: contain
|
@@ -0,0 +1,12 @@
|
|
1
|
+
+install(shared-collection-modal)
|
2
|
+
|
3
|
+
.modal
|
4
|
+
padding: $modal-padding-rem
|
5
|
+
overflow: hidden
|
6
|
+
background: $modal-background
|
7
|
+
border-radius: $modal-border-radius
|
8
|
+
box-shadow: $modal-box-shadow
|
9
|
+
|
10
|
+
.overlay-body > .modal
|
11
|
+
max-width: $modal-in-overlay-max-width-px
|
12
|
+
min-width: $modal-in-overlay-min-width-px
|
@@ -0,0 +1,162 @@
|
|
1
|
+
+install(shared-collection-nav)
|
2
|
+
|
3
|
+
.nav-header,
|
4
|
+
.nav-aside
|
5
|
+
display: flex
|
6
|
+
align-items: center
|
7
|
+
width: 100%
|
8
|
+
padding: $nav-padding-rem
|
9
|
+
background: $nav-background
|
10
|
+
|
11
|
+
.nav-logo
|
12
|
+
flex: 0 0 auto
|
13
|
+
margin: $nav-logo-margin-rem
|
14
|
+
|
15
|
+
.nav-logo img,
|
16
|
+
.nav-logo svg
|
17
|
+
height: $nav-logo-image-height-rem
|
18
|
+
object-fit: contain
|
19
|
+
fill: $color-light
|
20
|
+
|
21
|
+
.nav-open
|
22
|
+
flex: 0 0 auto
|
23
|
+
margin: $nav-open-margin-rem
|
24
|
+
|
25
|
+
.nav-open.btn-text-light,
|
26
|
+
.nav-close.btn-text-light
|
27
|
+
color: $color-light
|
28
|
+
|
29
|
+
.nav-menu
|
30
|
+
position: fixed
|
31
|
+
top: 0
|
32
|
+
left: 0
|
33
|
+
z-index: $z-index-highest
|
34
|
+
flex-direction: column
|
35
|
+
width: 100%
|
36
|
+
height: 100%
|
37
|
+
overflow: auto
|
38
|
+
-webkit-overflow-scrolling: touch
|
39
|
+
background: $nav-background
|
40
|
+
|
41
|
+
.nav-menu.toggle-active
|
42
|
+
display: flex
|
43
|
+
|
44
|
+
.nav-close
|
45
|
+
flex: 0 0 auto
|
46
|
+
margin: $nav-close-margin-rem
|
47
|
+
|
48
|
+
.nav-search
|
49
|
+
flex: 0 0 auto
|
50
|
+
margin: $nav-search-margin-rem
|
51
|
+
|
52
|
+
.nav-items,
|
53
|
+
.nav-sub-items
|
54
|
+
display: flex
|
55
|
+
flex: 0 0 auto
|
56
|
+
flex-direction: column
|
57
|
+
|
58
|
+
.nav-items
|
59
|
+
margin: $nav-items-margin-rem
|
60
|
+
|
61
|
+
.nav-sub-items
|
62
|
+
margin: $nav-sub-items-margin-rem
|
63
|
+
|
64
|
+
.nav-items .btn:not(.btn-ico):not(.btn-ico-top):not(.btn-ico-right),
|
65
|
+
.nav-sub-items .btn:not(.btn-ico):not(.btn-ico-top):not(.btn-ico-right)
|
66
|
+
justify-content: flex-start
|
67
|
+
|
68
|
+
.nav-items .btn.btn-ico-right,
|
69
|
+
.nav-sub-items .btn.btn-ico-right
|
70
|
+
justify-content: space-between
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
.nav-header
|
75
|
+
box-shadow: $nav-header-box-shadow
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
.nav-aside
|
80
|
+
box-shadow: $nav-aside-box-shadow
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
+media-width($nav-width-breakpoint)
|
85
|
+
|
86
|
+
.nav-header,
|
87
|
+
.nav-aside
|
88
|
+
position: sticky
|
89
|
+
top: 0
|
90
|
+
|
91
|
+
.nav-open,
|
92
|
+
.nav-close
|
93
|
+
display: none
|
94
|
+
|
95
|
+
.nav-header .nav-menu,
|
96
|
+
.nav-aside .nav-menu
|
97
|
+
display: flex
|
98
|
+
position: relative
|
99
|
+
z-index: $z-index-normal
|
100
|
+
background: none
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
.nav-header
|
105
|
+
z-index: $z-index-highest
|
106
|
+
|
107
|
+
.nav-header .nav-items,
|
108
|
+
.nav-header .nav-sub-items
|
109
|
+
flex-direction: row
|
110
|
+
align-items: center
|
111
|
+
|
112
|
+
.nav-header .nav-menu
|
113
|
+
flex: 1 1 100%
|
114
|
+
flex-direction: row
|
115
|
+
flex-wrap: wrap
|
116
|
+
align-items: center
|
117
|
+
overflow: visible
|
118
|
+
|
119
|
+
.nav-header .nav-search
|
120
|
+
flex: 0 0 auto
|
121
|
+
order: 1
|
122
|
+
width: $nav-header-breakpoint-search-width-rem
|
123
|
+
margin: $nav-header-breakpoint-search-margin-rem
|
124
|
+
|
125
|
+
.nav-header .nav-items
|
126
|
+
margin: $nav-header-breakpoint-items-margin-rem
|
127
|
+
|
128
|
+
.nav-header .nav-sub-items
|
129
|
+
order: 2
|
130
|
+
margin: $nav-header-breakpoint-sub-items-margin-rem
|
131
|
+
|
132
|
+
.nav-header .dropdown-menu
|
133
|
+
margin-left: 0
|
134
|
+
|
135
|
+
.nav-header .dropdown-items:not([class*=dropdown-static])
|
136
|
+
background: $nav-header-breakpoint-dropdown-background
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
.nav-aside
|
141
|
+
z-index: $z-index-much-higher
|
142
|
+
flex-direction: column
|
143
|
+
width: $nav-aside-breakpoint-min-width-rem
|
144
|
+
max-width: $nav-aside-breakpoint-max-width-rem
|
145
|
+
min-width: $nav-aside-breakpoint-min-width-rem
|
146
|
+
height: 100vh
|
147
|
+
padding: $nav-aside-breakpoint-padding-rem
|
148
|
+
overflow: auto
|
149
|
+
-webkit-overflow-scrolling: touch
|
150
|
+
box-shadow: $nav-aside-breakpoint-box-shadow
|
151
|
+
|
152
|
+
.nav-aside .nav-logo
|
153
|
+
margin: $nav-aside-breakpoint-logo-margin-rem
|
154
|
+
|
155
|
+
.nav-aside .nav-logo img,
|
156
|
+
.nav-aside .nav-logo svg
|
157
|
+
width: $nav-aside-breakpoint-logo-image-width-rem
|
158
|
+
height: $nav-aside-breakpoint-logo-image-height-rem
|
159
|
+
|
160
|
+
.nav-aside .nav-menu
|
161
|
+
flex: 0 0 auto
|
162
|
+
height: auto
|