luda 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/luda-degradation.js +24 -9
  3. data/assets/javascripts/luda-degradation.js.map +1 -1
  4. data/assets/javascripts/luda-degradation.min.js +2 -2
  5. data/assets/javascripts/luda-degradation.min.js.map +1 -1
  6. data/assets/javascripts/luda-sprockets.js +9 -9
  7. data/assets/javascripts/luda.js +3 -3
  8. data/assets/javascripts/luda.js.map +1 -1
  9. data/assets/javascripts/luda.min.js +2 -2
  10. data/assets/javascripts/luda.min.js.map +1 -1
  11. data/assets/javascripts/luda/{behaviours → behaviors}/enter-click.js +0 -0
  12. data/assets/javascripts/luda/{behaviours → behaviors}/focus.js +0 -0
  13. data/assets/javascripts/luda/{behaviours → behaviors}/radio-tab.js +0 -0
  14. data/assets/javascripts/luda/{behaviours → behaviors}/readonly.js +0 -0
  15. data/assets/javascripts/luda/{behaviours → behaviors}/toggle.js +1 -1
  16. data/assets/javascripts/luda/degradation.js +23 -8
  17. data/assets/javascripts/luda/index.js +11 -11
  18. data/assets/javascripts/luda/install.js +1 -1
  19. data/assets/javascripts/luda/{collections → patterns}/carousel.js +0 -0
  20. data/assets/javascripts/luda/{collections → patterns}/dropdown.js +1 -1
  21. data/assets/javascripts/luda/{collections → patterns}/form-dropdown.js +4 -4
  22. data/assets/javascripts/luda/{collections → patterns}/tab.js +0 -0
  23. data/assets/stylesheets/luda/_core/_variables.sass +76 -60
  24. data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_disabled.sass +0 -0
  25. data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_focus.sass +0 -0
  26. data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_readonly.sass +1 -1
  27. data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_toggle.sass +0 -0
  28. data/assets/stylesheets/luda/_core/elements/_baseline.sass +2 -5
  29. data/assets/stylesheets/luda/_core/elements/_container.sass +1 -1
  30. data/assets/stylesheets/luda/_core/{collections → elements}/_media.sass +0 -4
  31. data/assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass +1 -0
  32. data/assets/stylesheets/luda/_core/{collections → patterns}/_alert.sass +0 -0
  33. data/assets/stylesheets/luda/_core/patterns/_avatar.sass +121 -0
  34. data/assets/stylesheets/luda/_core/{collections → patterns}/_breadcrumb.sass +0 -0
  35. data/assets/stylesheets/luda/_core/{collections → patterns}/_button-group.sass +0 -0
  36. data/assets/stylesheets/luda/_core/{collections → patterns}/_button-icon.sass +1 -0
  37. data/assets/stylesheets/luda/_core/{collections → patterns}/_carousel.sass +0 -0
  38. data/assets/stylesheets/luda/_core/{collections → patterns}/_dropdown.sass +0 -0
  39. data/assets/stylesheets/luda/_core/{collections → patterns}/_form-button.sass +0 -0
  40. data/assets/stylesheets/luda/_core/{collections → patterns}/_form-dropdown.sass +0 -0
  41. data/assets/stylesheets/luda/_core/{collections → patterns}/_form-group.sass +0 -0
  42. data/assets/stylesheets/luda/_core/{collections → patterns}/_form-icon.sass +1 -0
  43. data/assets/stylesheets/luda/_core/{collections → patterns}/_modal.sass +2 -2
  44. data/assets/stylesheets/luda/_core/{collections → patterns}/_nav.sass +3 -0
  45. data/assets/stylesheets/luda/_core/{collections → patterns}/_tab.sass +0 -0
  46. data/assets/stylesheets/luda/_core/utilities/_background.sass +3 -0
  47. data/assets/stylesheets/luda/_core/utilities/_position.sass +3 -0
  48. data/assets/stylesheets/luda/_default.sass +19 -19
  49. data/assets/stylesheets/luda/default/_banner.sass +1 -1
  50. data/assets/stylesheets/luda/default/behaviors/_disabled.sass +5 -0
  51. data/assets/stylesheets/luda/default/behaviors/_focus.sass +5 -0
  52. data/assets/stylesheets/luda/default/behaviors/_readonly.sass +5 -0
  53. data/assets/stylesheets/luda/default/behaviors/_toggle.sass +5 -0
  54. data/assets/stylesheets/luda/default/elements/_button.sass +1 -1
  55. data/assets/stylesheets/luda/default/elements/_form.sass +2 -2
  56. data/assets/stylesheets/luda/default/elements/_media.sass +6 -0
  57. data/assets/stylesheets/luda/default/index.sass +19 -19
  58. data/assets/stylesheets/luda/default/patterns/_alert.sass +6 -0
  59. data/assets/stylesheets/luda/default/patterns/_avatar.sass +7 -0
  60. data/assets/stylesheets/luda/default/patterns/_breadcrumb.sass +6 -0
  61. data/assets/stylesheets/luda/default/patterns/_button-group.sass +7 -0
  62. data/assets/stylesheets/luda/default/patterns/_button-icon.sass +8 -0
  63. data/assets/stylesheets/luda/default/patterns/_carousel.sass +7 -0
  64. data/assets/stylesheets/luda/default/patterns/_dropdown.sass +8 -0
  65. data/assets/stylesheets/luda/default/{collections → patterns}/_form-button.sass +1 -1
  66. data/assets/stylesheets/luda/default/patterns/_form-dropdown.sass +8 -0
  67. data/assets/stylesheets/luda/default/{collections → patterns}/_form-group.sass +1 -1
  68. data/assets/stylesheets/luda/default/{collections → patterns}/_form-icon.sass +1 -1
  69. data/assets/stylesheets/luda/default/patterns/_modal.sass +7 -0
  70. data/assets/stylesheets/luda/default/{collections → patterns}/_nav.sass +1 -1
  71. data/assets/stylesheets/luda/default/{collections → patterns}/_tab.sass +1 -1
  72. data/lib/luda/version.rb +1 -1
  73. metadata +49 -49
  74. data/assets/stylesheets/luda/_core/collections/_avatar.sass +0 -117
  75. data/assets/stylesheets/luda/default/behaviours/_disabled.sass +0 -5
  76. data/assets/stylesheets/luda/default/behaviours/_focus.sass +0 -5
  77. data/assets/stylesheets/luda/default/behaviours/_readonly.sass +0 -5
  78. data/assets/stylesheets/luda/default/behaviours/_toggle.sass +0 -5
  79. data/assets/stylesheets/luda/default/collections/_alert.sass +0 -6
  80. data/assets/stylesheets/luda/default/collections/_avatar.sass +0 -7
  81. data/assets/stylesheets/luda/default/collections/_breadcrumb.sass +0 -6
  82. data/assets/stylesheets/luda/default/collections/_button-group.sass +0 -7
  83. data/assets/stylesheets/luda/default/collections/_button-icon.sass +0 -8
  84. data/assets/stylesheets/luda/default/collections/_carousel.sass +0 -7
  85. data/assets/stylesheets/luda/default/collections/_dropdown.sass +0 -8
  86. data/assets/stylesheets/luda/default/collections/_form-dropdown.sass +0 -8
  87. data/assets/stylesheets/luda/default/collections/_media.sass +0 -7
  88. data/assets/stylesheets/luda/default/collections/_modal.sass +0 -7
@@ -7,7 +7,7 @@
7
7
  -ms-user-select: none
8
8
  user-select: none
9
9
 
10
- [data-readonly]
10
+ [data-readonly]:not([data-readonly=false])
11
11
  cursor: default
12
12
  pointer-events: none
13
13
  -webkit-user-select: none
@@ -1,12 +1,12 @@
1
1
  +install(shared-element-baseline)
2
2
 
3
- .baseline-overlay
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-overlay::after
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
@@ -1,7 +1,7 @@
1
1
  +install(shared-element-container)
2
2
 
3
3
  .container
4
- max-width: $container-max-width-px
4
+ max-width: $container-max-width-rem
5
5
  min-width: 0
6
6
  padding: $container-padding-rem
7
7
  margin-right: auto
@@ -41,10 +41,6 @@
41
41
  .media-content-1by1
42
42
  padding-top: 100%
43
43
 
44
- .media-description
45
- text-align: center
46
- color: $media-description-color
47
-
48
44
 
49
45
 
50
46
  .media-contain.media img,
@@ -2,6 +2,7 @@
2
2
 
3
3
  .fm-check label,
4
4
  .fm-radio label
5
+ flex: 0 1 auto
5
6
  padding-left: $form-element-checkfield-height-em + 0.4em
6
7
  line-height: typo-line-height($form-element-typography-size-level)
7
8
  overflow: hidden
@@ -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)
@@ -8,6 +8,7 @@
8
8
  [class*=btn-]:not([class*=btn-text]).btn-ico-right .ico,
9
9
  [class*=btn-]:not([class*=btn-text]).btn-ico-top .ico
10
10
  font-size: $button-icon-size-em
11
+ pointer-events: none
11
12
 
12
13
 
13
14
 
@@ -40,6 +40,7 @@
40
40
  .fm > .ico
41
41
  margin-top: _form-icon-margin-top($form-element-textfield-height-rem, $form-element-typography-size-level)
42
42
  font-size: $form-element-icon-size-em
43
+ pointer-events: none
43
44
  color: $form-element-icon-color
44
45
  fill: $form-element-icon-color
45
46
 
@@ -8,5 +8,5 @@
8
8
  box-shadow: $modal-box-shadow
9
9
 
10
10
  .overlay-body > .modal
11
- max-width: $modal-in-overlay-max-width-px
12
- min-width: $modal-in-overlay-min-width-px
11
+ max-width: $modal-in-overlay-max-width-rem
12
+ min-width: $modal-in-overlay-min-width-rem
@@ -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
@@ -15,6 +15,9 @@
15
15
  .bc-light
16
16
  background-color: $background-color-light !important
17
17
 
18
+ .bc-muted
19
+ background-color: $background-color-muted !important
20
+
18
21
  .bc-transparent
19
22
  background-color: transparent !important
20
23
 
@@ -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/behaviours/readonly
6
- @import luda/default/behaviours/disabled
7
- @import luda/default/behaviours/focus
8
- @import luda/default/behaviours/toggle
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/collections/media
23
- @import luda/default/collections/avatar
24
- @import luda/default/collections/breadcrumb
25
- @import luda/default/collections/alert
26
- @import luda/default/collections/modal
27
- @import luda/default/collections/dropdown
28
- @import luda/default/collections/button-icon
29
- @import luda/default/collections/button-group
30
- @import luda/default/collections/form-icon
31
- @import luda/default/collections/form-button
32
- @import luda/default/collections/form-group
33
- @import luda/default/collections/form-dropdown
34
- @import luda/default/collections/carousel
35
- @import luda/default/collections/tab
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
@@ -1,7 +1,7 @@
1
1
  // sass-lint:disable no-empty-rulesets
2
2
  +install(banner)
3
3
  /*!
4
- * Luda 0.1.7 | Theme default | https://luda.dev
4
+ * Luda 0.1.8 | Theme default | https://luda.dev
5
5
  * Copyright 2018 oatw | https://oatw.blog
6
6
  * MIT license | http://opensource.org/licenses/MIT
7
7
  */
@@ -0,0 +1,5 @@
1
+ @import '../../_core/behaviors/disabled'
2
+
3
+
4
+
5
+ +install(behaviour-disabled)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/behaviors/focus'
2
+
3
+
4
+
5
+ +install(behaviour-focus)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/behaviors/readonly'
2
+
3
+
4
+
5
+ +install(behaviour-readonly)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/behaviors/toggle'
2
+
3
+
4
+
5
+ +install(behaviour-toggle)
@@ -1,5 +1,5 @@
1
1
  @import '../base'
2
- @import '../behaviours/disabled'
2
+ @import '../behaviors/disabled'
3
3
  @import '../../_core/elements/button'
4
4
 
5
5
 
@@ -1,6 +1,6 @@
1
1
  @import '../base'
2
- @import '../behaviours/readonly'
3
- @import '../behaviours/disabled'
2
+ @import '../behaviors/readonly'
3
+ @import '../behaviors/disabled'
4
4
  @import form/form-label
5
5
  @import form/form-helper
6
6
  @import form/form-element
@@ -0,0 +1,6 @@
1
+ @import '../base'
2
+ @import '../../_core/elements/media'
3
+
4
+
5
+
6
+ +install(collection-media)
@@ -4,16 +4,17 @@
4
4
 
5
5
  @import base
6
6
 
7
- @import behaviours/readonly
8
- @import behaviours/disabled
9
- @import behaviours/focus
10
- @import behaviours/toggle
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 collections/media
27
- @import collections/avatar
28
- @import collections/breadcrumb
29
- @import collections/alert
30
- @import collections/modal
31
- @import collections/dropdown
32
- @import collections/button-icon
33
- @import collections/button-group
34
- @import collections/form-icon
35
- @import collections/form-button
36
- @import collections/form-group
37
- @import collections/form-dropdown
38
- @import collections/carousel
39
- @import collections/tab
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