luda 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/javascripts/luda-degradation.js +24 -9
- data/assets/javascripts/luda-degradation.js.map +1 -1
- data/assets/javascripts/luda-degradation.min.js +2 -2
- data/assets/javascripts/luda-degradation.min.js.map +1 -1
- data/assets/javascripts/luda-sprockets.js +9 -9
- data/assets/javascripts/luda.js +3 -3
- data/assets/javascripts/luda.js.map +1 -1
- data/assets/javascripts/luda.min.js +2 -2
- data/assets/javascripts/luda.min.js.map +1 -1
- data/assets/javascripts/luda/{behaviours → behaviors}/enter-click.js +0 -0
- data/assets/javascripts/luda/{behaviours → behaviors}/focus.js +0 -0
- data/assets/javascripts/luda/{behaviours → behaviors}/radio-tab.js +0 -0
- data/assets/javascripts/luda/{behaviours → behaviors}/readonly.js +0 -0
- data/assets/javascripts/luda/{behaviours → behaviors}/toggle.js +1 -1
- data/assets/javascripts/luda/degradation.js +23 -8
- data/assets/javascripts/luda/index.js +11 -11
- data/assets/javascripts/luda/install.js +1 -1
- data/assets/javascripts/luda/{collections → patterns}/carousel.js +0 -0
- data/assets/javascripts/luda/{collections → patterns}/dropdown.js +1 -1
- data/assets/javascripts/luda/{collections → patterns}/form-dropdown.js +4 -4
- data/assets/javascripts/luda/{collections → patterns}/tab.js +0 -0
- data/assets/stylesheets/luda/_core/_variables.sass +76 -60
- data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_disabled.sass +0 -0
- data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_focus.sass +0 -0
- data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_readonly.sass +1 -1
- data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_toggle.sass +0 -0
- data/assets/stylesheets/luda/_core/elements/_baseline.sass +2 -5
- data/assets/stylesheets/luda/_core/elements/_container.sass +1 -1
- data/assets/stylesheets/luda/_core/{collections → elements}/_media.sass +0 -4
- data/assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass +1 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_alert.sass +0 -0
- data/assets/stylesheets/luda/_core/patterns/_avatar.sass +121 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_breadcrumb.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_button-group.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_button-icon.sass +1 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_carousel.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_dropdown.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_form-button.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_form-dropdown.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_form-group.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_form-icon.sass +1 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_modal.sass +2 -2
- data/assets/stylesheets/luda/_core/{collections → patterns}/_nav.sass +3 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_tab.sass +0 -0
- data/assets/stylesheets/luda/_core/utilities/_background.sass +3 -0
- data/assets/stylesheets/luda/_core/utilities/_position.sass +3 -0
- data/assets/stylesheets/luda/_default.sass +19 -19
- data/assets/stylesheets/luda/default/_banner.sass +1 -1
- data/assets/stylesheets/luda/default/behaviors/_disabled.sass +5 -0
- data/assets/stylesheets/luda/default/behaviors/_focus.sass +5 -0
- data/assets/stylesheets/luda/default/behaviors/_readonly.sass +5 -0
- data/assets/stylesheets/luda/default/behaviors/_toggle.sass +5 -0
- data/assets/stylesheets/luda/default/elements/_button.sass +1 -1
- data/assets/stylesheets/luda/default/elements/_form.sass +2 -2
- data/assets/stylesheets/luda/default/elements/_media.sass +6 -0
- data/assets/stylesheets/luda/default/index.sass +19 -19
- data/assets/stylesheets/luda/default/patterns/_alert.sass +6 -0
- data/assets/stylesheets/luda/default/patterns/_avatar.sass +7 -0
- data/assets/stylesheets/luda/default/patterns/_breadcrumb.sass +6 -0
- data/assets/stylesheets/luda/default/patterns/_button-group.sass +7 -0
- data/assets/stylesheets/luda/default/patterns/_button-icon.sass +8 -0
- data/assets/stylesheets/luda/default/patterns/_carousel.sass +7 -0
- data/assets/stylesheets/luda/default/patterns/_dropdown.sass +8 -0
- data/assets/stylesheets/luda/default/{collections → patterns}/_form-button.sass +1 -1
- data/assets/stylesheets/luda/default/patterns/_form-dropdown.sass +8 -0
- data/assets/stylesheets/luda/default/{collections → patterns}/_form-group.sass +1 -1
- data/assets/stylesheets/luda/default/{collections → patterns}/_form-icon.sass +1 -1
- data/assets/stylesheets/luda/default/patterns/_modal.sass +7 -0
- data/assets/stylesheets/luda/default/{collections → patterns}/_nav.sass +1 -1
- data/assets/stylesheets/luda/default/{collections → patterns}/_tab.sass +1 -1
- data/lib/luda/version.rb +1 -1
- metadata +49 -49
- data/assets/stylesheets/luda/_core/collections/_avatar.sass +0 -117
- data/assets/stylesheets/luda/default/behaviours/_disabled.sass +0 -5
- data/assets/stylesheets/luda/default/behaviours/_focus.sass +0 -5
- data/assets/stylesheets/luda/default/behaviours/_readonly.sass +0 -5
- data/assets/stylesheets/luda/default/behaviours/_toggle.sass +0 -5
- data/assets/stylesheets/luda/default/collections/_alert.sass +0 -6
- data/assets/stylesheets/luda/default/collections/_avatar.sass +0 -7
- data/assets/stylesheets/luda/default/collections/_breadcrumb.sass +0 -6
- data/assets/stylesheets/luda/default/collections/_button-group.sass +0 -7
- data/assets/stylesheets/luda/default/collections/_button-icon.sass +0 -8
- data/assets/stylesheets/luda/default/collections/_carousel.sass +0 -7
- data/assets/stylesheets/luda/default/collections/_dropdown.sass +0 -8
- data/assets/stylesheets/luda/default/collections/_form-dropdown.sass +0 -8
- data/assets/stylesheets/luda/default/collections/_media.sass +0 -7
- data/assets/stylesheets/luda/default/collections/_modal.sass +0 -7
File without changes
|
File without changes
|
File without changes
|
@@ -1,12 +1,12 @@
|
|
1
1
|
+install(shared-element-baseline)
|
2
2
|
|
3
|
-
.baseline
|
3
|
+
.baseline
|
4
4
|
position: relative
|
5
5
|
|
6
6
|
$_baseline-gradient: linear-gradient(to bottom, #0ff 0, rgba(255, 255, 255, 0) 1px)
|
7
7
|
$_baseline-background: $_baseline-gradient left top / 100% 1rem repeat-y
|
8
8
|
|
9
|
-
.baseline
|
9
|
+
.baseline::after
|
10
10
|
display: block
|
11
11
|
position: absolute
|
12
12
|
top: 0
|
@@ -16,7 +16,4 @@
|
|
16
16
|
z-index: $z-index-highest
|
17
17
|
pointer-events: none
|
18
18
|
content: ""
|
19
|
-
background: $_baseline-background
|
20
|
-
|
21
|
-
.baseline-background
|
22
19
|
background: $_baseline-background
|
File without changes
|
@@ -0,0 +1,121 @@
|
|
1
|
+
+install(shared-collection-avatar)
|
2
|
+
|
3
|
+
.avatar-x,
|
4
|
+
.avatar-y
|
5
|
+
display: inline-flex
|
6
|
+
align-items: center
|
7
|
+
|
8
|
+
.avatar-x .media,
|
9
|
+
.avatar-y .media
|
10
|
+
flex: 0 0 auto
|
11
|
+
width: $avatar-image-size-rem
|
12
|
+
height: $avatar-image-size-rem
|
13
|
+
background-color: $avatar-background-color
|
14
|
+
background-image: if($avatar-default-image, url($avatar-default-image), null)
|
15
|
+
background-position: center
|
16
|
+
background-size: $avatar-default-image-background-size
|
17
|
+
border-radius: $avatar-image-border-radius
|
18
|
+
|
19
|
+
.avatar-x .media img,
|
20
|
+
.avatar-y .media img
|
21
|
+
width: 100%
|
22
|
+
height: 100%
|
23
|
+
background: none
|
24
|
+
border-radius: $avatar-image-border-radius
|
25
|
+
|
26
|
+
.avatar-info
|
27
|
+
flex: 0 0 auto
|
28
|
+
height: $avatar-info-height-rem
|
29
|
+
|
30
|
+
.avatar-name,
|
31
|
+
.avatar-description
|
32
|
+
padding: 0
|
33
|
+
line-height: $avatar-info-height-rem / 2 - $avatar-info-padding-top-rem / 2
|
34
|
+
white-space: nowrap
|
35
|
+
|
36
|
+
.avatar-name
|
37
|
+
font-size: typo-size($avatar-name-typography-size-level)
|
38
|
+
color: $avatar-name-color
|
39
|
+
|
40
|
+
.avatar-description
|
41
|
+
font-size: typo-size($avatar-description-typography-size-level)
|
42
|
+
color: $avatar-description-color
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
.avatar-x .avatar-info
|
47
|
+
display: flex
|
48
|
+
flex-direction: column
|
49
|
+
justify-content: center
|
50
|
+
padding-left: $avatar-info-padding-left-rem
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
.avatar-y
|
55
|
+
flex-direction: column
|
56
|
+
|
57
|
+
.avatar-y .avatar-info
|
58
|
+
padding-top: $avatar-info-padding-top-rem
|
59
|
+
text-align: center
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
.avatar-large.avatar-x .media,
|
64
|
+
.avatar-large.avatar-y .media
|
65
|
+
width: $avatar-large-image-size-rem
|
66
|
+
height: $avatar-large-image-size-rem
|
67
|
+
|
68
|
+
.avatar-large.avatar-x .avatar-info,
|
69
|
+
.avatar-large.avatar-y .avatar-info
|
70
|
+
height: $avatar-large-info-height-rem
|
71
|
+
|
72
|
+
.avatar-large.avatar-y .avatar-info
|
73
|
+
padding-top: $avatar-large-info-padding-top-rem
|
74
|
+
|
75
|
+
.avatar-large.avatar-x .avatar-info
|
76
|
+
padding-left: $avatar-large-info-padding-left-rem
|
77
|
+
|
78
|
+
.avatar-large .avatar-name,
|
79
|
+
.avatar-large .avatar-description
|
80
|
+
$line-height-changed: $avatar-large-info-height-rem or $avatar-large-info-padding-top-rem
|
81
|
+
$description-height-rem: existing($avatar-large-info-height-rem, $avatar-info-height-rem)
|
82
|
+
$description-padding-top-rem: existing($avatar-large-info-padding-top-rem, $avatar-info-padding-top-rem)
|
83
|
+
$line-height: if($line-height-changed, $description-height-rem / 2 - $description-padding-top-rem / 2, null)
|
84
|
+
line-height: $line-height
|
85
|
+
|
86
|
+
.avatar-large .avatar-name
|
87
|
+
font-size: typo-size($avatar-large-name-typography-size-level)
|
88
|
+
|
89
|
+
.avatar-large .avatar-description
|
90
|
+
font-size: typo-size($avatar-large-description-typography-size-level)
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
.avatar-small.avatar-x .media,
|
95
|
+
.avatar-small.avatar-y .media
|
96
|
+
width: $avatar-small-image-size-rem
|
97
|
+
height: $avatar-small-image-size-rem
|
98
|
+
|
99
|
+
.avatar-small.avatar-x .avatar-info,
|
100
|
+
.avatar-small.avatar-y .avatar-info
|
101
|
+
height: $avatar-small-info-height-rem
|
102
|
+
|
103
|
+
.avatar-small.avatar-y .avatar-info
|
104
|
+
padding-top: $avatar-small-info-padding-top-rem
|
105
|
+
|
106
|
+
.avatar-small.avatar-x .avatar-info
|
107
|
+
padding-left: $avatar-small-info-padding-left-rem
|
108
|
+
|
109
|
+
.avatar-small .avatar-name,
|
110
|
+
.avatar-small .avatar-description
|
111
|
+
$line-height-changed: $avatar-small-info-height-rem or $avatar-small-info-padding-top-rem
|
112
|
+
$description-height-rem: existing($avatar-small-info-height-rem, $avatar-info-height-rem)
|
113
|
+
$description-padding-top-rem: existing($avatar-small-info-padding-top-rem, $avatar-info-padding-top-rem)
|
114
|
+
$line-height: if($line-height-changed, $description-height-rem / 2 - $description-padding-top-rem / 2, null)
|
115
|
+
line-height: $line-height
|
116
|
+
|
117
|
+
.avatar-small .avatar-name
|
118
|
+
font-size: typo-size($avatar-small-name-typography-size-level)
|
119
|
+
|
120
|
+
.avatar-small .avatar-description
|
121
|
+
font-size: typo-size($avatar-small-description-typography-size-level)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -83,10 +83,13 @@
|
|
83
83
|
|
84
84
|
+media-width($nav-width-breakpoint)
|
85
85
|
|
86
|
+
// sass-lint:disable no-duplicate-properties
|
86
87
|
.nav-header,
|
87
88
|
.nav-aside
|
89
|
+
position: -webkit-sticky
|
88
90
|
position: sticky
|
89
91
|
top: 0
|
92
|
+
// sass-lint:enable no-duplicate-properties
|
90
93
|
|
91
94
|
.nav-open,
|
92
95
|
.nav-close
|
File without changes
|
@@ -6,12 +6,15 @@
|
|
6
6
|
.rel
|
7
7
|
position: relative !important
|
8
8
|
|
9
|
+
// sass-lint:disable no-duplicate-properties
|
9
10
|
.sti,
|
10
11
|
.sti-t,
|
11
12
|
.sti-l,
|
12
13
|
.sti-b,
|
13
14
|
.sti-r
|
15
|
+
position: -webkit-sticky !important
|
14
16
|
position: sticky !important
|
17
|
+
// sass-lint:enable no-duplicate-properties
|
15
18
|
|
16
19
|
.fix,
|
17
20
|
.fix-t,
|
@@ -2,15 +2,16 @@
|
|
2
2
|
@import luda/default/variables
|
3
3
|
@import luda/default/mixins
|
4
4
|
@import luda/default/base
|
5
|
-
@import luda/default/
|
6
|
-
@import luda/default/
|
7
|
-
@import luda/default/
|
8
|
-
@import luda/default/
|
5
|
+
@import luda/default/behaviors/readonly
|
6
|
+
@import luda/default/behaviors/disabled
|
7
|
+
@import luda/default/behaviors/focus
|
8
|
+
@import luda/default/behaviors/toggle
|
9
9
|
@import luda/default/elements/typography
|
10
10
|
@import luda/default/elements/form
|
11
11
|
@import luda/default/elements/container
|
12
12
|
@import luda/default/elements/grid
|
13
13
|
@import luda/default/elements/button
|
14
|
+
@import luda/default/elements/media
|
14
15
|
@import luda/default/elements/table
|
15
16
|
@import luda/default/elements/overlay
|
16
17
|
@import luda/default/elements/icon
|
@@ -19,21 +20,20 @@
|
|
19
20
|
@import luda/default/elements/scrollbar
|
20
21
|
@import luda/default/elements/turbolinks-progress-bar
|
21
22
|
@import luda/default/elements/baseline
|
22
|
-
@import luda/default/
|
23
|
-
@import luda/default/
|
24
|
-
@import luda/default/
|
25
|
-
@import luda/default/
|
26
|
-
@import luda/default/
|
27
|
-
@import luda/default/
|
28
|
-
@import luda/default/
|
29
|
-
@import luda/default/
|
30
|
-
@import luda/default/
|
31
|
-
@import luda/default/
|
32
|
-
@import luda/default/
|
33
|
-
@import luda/default/
|
34
|
-
@import luda/default/
|
35
|
-
@import luda/default/
|
36
|
-
@import luda/default/collections/nav
|
23
|
+
@import luda/default/patterns/avatar
|
24
|
+
@import luda/default/patterns/breadcrumb
|
25
|
+
@import luda/default/patterns/alert
|
26
|
+
@import luda/default/patterns/modal
|
27
|
+
@import luda/default/patterns/dropdown
|
28
|
+
@import luda/default/patterns/button-icon
|
29
|
+
@import luda/default/patterns/button-group
|
30
|
+
@import luda/default/patterns/form-icon
|
31
|
+
@import luda/default/patterns/form-button
|
32
|
+
@import luda/default/patterns/form-group
|
33
|
+
@import luda/default/patterns/form-dropdown
|
34
|
+
@import luda/default/patterns/carousel
|
35
|
+
@import luda/default/patterns/tab
|
36
|
+
@import luda/default/patterns/nav
|
37
37
|
@import luda/default/utilities/display
|
38
38
|
@import luda/default/utilities/flex
|
39
39
|
@import luda/default/utilities/float
|
@@ -4,16 +4,17 @@
|
|
4
4
|
|
5
5
|
@import base
|
6
6
|
|
7
|
-
@import
|
8
|
-
@import
|
9
|
-
@import
|
10
|
-
@import
|
7
|
+
@import behaviors/readonly
|
8
|
+
@import behaviors/disabled
|
9
|
+
@import behaviors/focus
|
10
|
+
@import behaviors/toggle
|
11
11
|
|
12
12
|
@import elements/typography
|
13
13
|
@import elements/form
|
14
14
|
@import elements/container
|
15
15
|
@import elements/grid
|
16
16
|
@import elements/button
|
17
|
+
@import elements/media
|
17
18
|
@import elements/table
|
18
19
|
@import elements/overlay
|
19
20
|
@import elements/icon
|
@@ -23,21 +24,20 @@
|
|
23
24
|
@import elements/turbolinks-progress-bar
|
24
25
|
@import elements/baseline
|
25
26
|
|
26
|
-
@import
|
27
|
-
@import
|
28
|
-
@import
|
29
|
-
@import
|
30
|
-
@import
|
31
|
-
@import
|
32
|
-
@import
|
33
|
-
@import
|
34
|
-
@import
|
35
|
-
@import
|
36
|
-
@import
|
37
|
-
@import
|
38
|
-
@import
|
39
|
-
@import
|
40
|
-
@import collections/nav
|
27
|
+
@import patterns/avatar
|
28
|
+
@import patterns/breadcrumb
|
29
|
+
@import patterns/alert
|
30
|
+
@import patterns/modal
|
31
|
+
@import patterns/dropdown
|
32
|
+
@import patterns/button-icon
|
33
|
+
@import patterns/button-group
|
34
|
+
@import patterns/form-icon
|
35
|
+
@import patterns/form-button
|
36
|
+
@import patterns/form-group
|
37
|
+
@import patterns/form-dropdown
|
38
|
+
@import patterns/carousel
|
39
|
+
@import patterns/tab
|
40
|
+
@import patterns/nav
|
41
41
|
|
42
42
|
@import utilities/display
|
43
43
|
@import utilities/flex
|