express_ui 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/express_ui/application.js +36 -38
  3. data/app/assets/stylesheets/express_ui/application.sass +6 -0
  4. data/app/assets/stylesheets/express_ui/atoms/_animations.sass +4 -0
  5. data/app/assets/stylesheets/express_ui/atoms/_buttons.sass +63 -9
  6. data/app/assets/stylesheets/express_ui/atoms/_icons.sass +20 -1
  7. data/app/assets/stylesheets/express_ui/atoms/_reset.sass +5 -2
  8. data/app/assets/stylesheets/express_ui/atoms/_typography.sass +11 -6
  9. data/app/assets/stylesheets/express_ui/atoms/_utilities.sass +5 -0
  10. data/app/assets/stylesheets/express_ui/mixins/_express_ui.sass +75 -13
  11. data/app/assets/stylesheets/express_ui/molecules/_button_group.sass +17 -0
  12. data/app/assets/stylesheets/express_ui/molecules/_container.sass +57 -6
  13. data/app/assets/stylesheets/express_ui/molecules/_flash_messages.sass +42 -12
  14. data/app/assets/stylesheets/express_ui/molecules/_form_groups.sass +75 -6
  15. data/app/assets/stylesheets/express_ui/molecules/_forms.sass +38 -4
  16. data/app/assets/stylesheets/express_ui/molecules/_lists.sass +44 -8
  17. data/app/assets/stylesheets/express_ui/molecules/_nav.sass +7 -2
  18. data/app/assets/stylesheets/express_ui/molecules/_progress_bar.sass +33 -0
  19. data/app/assets/stylesheets/express_ui/molecules/_progress_indicator.sass +5 -1
  20. data/app/assets/stylesheets/express_ui/molecules/_tables.sass +5 -0
  21. data/app/assets/stylesheets/express_ui/organisms/_detail.sass +28 -0
  22. data/app/assets/stylesheets/express_ui/organisms/_dropdown.sass +14 -0
  23. data/app/assets/stylesheets/express_ui/organisms/_header.sass +1 -1
  24. data/app/assets/stylesheets/express_ui/organisms/_panels.sass +41 -0
  25. data/app/assets/stylesheets/express_ui/organisms/_popovers.sass +9 -0
  26. data/app/assets/stylesheets/express_ui/organisms/_sidebar.sass +35 -27
  27. data/app/assets/stylesheets/express_ui/scripts/_accordion.sass +12 -8
  28. data/app/assets/stylesheets/express_ui/scripts/_popup.sass +39 -3
  29. data/app/assets/stylesheets/express_ui/templates/_content_sidebar.sass +0 -1
  30. data/app/assets/stylesheets/express_ui/templates/_full_width.sass +9 -0
  31. data/app/assets/stylesheets/express_ui/templates/_master_detail.sass +53 -1
  32. data/app/controllers/express_ui/uicomponents_controller.rb +3 -0
  33. data/app/helpers/express_ui/application_helper.rb +1 -0
  34. data/app/helpers/express_ui/checks_for_testing.rb +13 -0
  35. data/app/views/express_ui/molecules/_lists.html.erb +0 -0
  36. data/app/views/express_ui/shared/_header.html.erb +0 -1
  37. data/app/views/express_ui/styleguide/index.html.erb +0 -6
  38. data/app/views/express_ui/templates/master_detail_fixed.html.erb +24 -24
  39. data/app/views/layouts/express_ui/_doctype_html.html.erb +9 -0
  40. data/app/views/layouts/express_ui/_head.html.erb +1 -7
  41. data/app/views/layouts/express_ui/content_and_sidebar.html.erb +24 -10
  42. data/app/views/layouts/express_ui/content_and_sidebar_fixed.html.erb +25 -10
  43. data/app/views/layouts/express_ui/full_width.html.erb +10 -6
  44. data/app/views/layouts/express_ui/half_width.html.erb +2 -2
  45. data/app/views/layouts/express_ui/master_detail.html.html.erb +9 -5
  46. data/app/views/layouts/express_ui/master_detail_fixed.html.erb +17 -11
  47. data/app/views/layouts/express_ui/master_detail_sidebar.html.erb +30 -0
  48. data/app/views/layouts/express_ui/styleguide.html.erb +2 -6
  49. data/lib/express_ui/engine.rb +0 -2
  50. data/lib/express_ui/version.rb +1 -1
  51. metadata +15 -56
  52. data/app/components/code_demo.rb +0 -29
  53. data/app/components/component_docitem.rb +0 -140
  54. data/app/components/component_example.rb +0 -100
  55. data/app/components/express_ui/panel.rb +0 -37
  56. data/app/components/express_ui/unordered_list.rb +0 -29
  57. data/app/views/express_ui/molecules/_lists.html.et +0 -65
  58. data/app/views/express_ui/molecules/_nav_mega_menu.html.et +0 -94
  59. data/app/views/express_ui/molecules/_nav_menu.html.et +0 -17
  60. data/app/views/express_ui/molecules/_progress_indicator.html.et +0 -56
  61. data/app/views/express_ui/scripts/_accordion.html.et +0 -69
  62. data/app/views/express_ui/scripts/_calendar.html.et +0 -35
  63. data/app/views/express_ui/scripts/_carousel.html.et +0 -21
  64. data/app/views/express_ui/scripts/_datepicker.html.et +0 -37
  65. data/app/views/express_ui/scripts/_popup.html.et +0 -58
  66. data/app/views/express_ui/scripts/_select.html.et +0 -27
  67. data/app/views/express_ui/scripts/_slider.html.et +0 -58
  68. data/app/views/express_ui/scripts/_tabs.html.et +0 -17
  69. data/app/views/express_ui/scripts/index.html.erb +0 -46
  70. data/app/views/express_ui/uicomponents/_buttons.html.et +0 -10
  71. data/app/views/express_ui/uicomponents/_flash_message.html.et +0 -19
  72. data/app/views/express_ui/uicomponents/_forms.html.et +0 -118
  73. data/app/views/express_ui/uicomponents/_heading.html.et +0 -24
  74. data/app/views/express_ui/uicomponents/_icons.html.et +0 -35
  75. data/app/views/express_ui/uicomponents/_layout.html.et +0 -47
  76. data/app/views/express_ui/uicomponents/_lists.html.et +0 -49
  77. data/app/views/express_ui/uicomponents/_nav.html.et +0 -18
  78. data/app/views/express_ui/uicomponents/_pages.html.erb +0 -30
  79. data/app/views/express_ui/uicomponents/_panels.html.et +0 -14
  80. data/app/views/express_ui/uicomponents/_popup.html.et +0 -19
  81. data/app/views/express_ui/uicomponents/_register.html.erb +0 -14
  82. data/app/views/express_ui/uicomponents/_sidebar.html.et +0 -8
  83. data/app/views/express_ui/uicomponents/_table.html.et +0 -11
  84. data/app/views/express_ui/uicomponents/_widget_box.html.et +0 -14
  85. data/app/views/express_ui/uicomponents/examples/_panel.html.et +0 -9
  86. data/app/views/express_ui/uicomponents/examples/_unordered_list.html.et +0 -5
  87. data/app/views/express_ui/uicomponents/examples/_unordered_list_with_ids.html.et +0 -5
  88. data/app/views/express_ui/uicomponents/index.html.et +0 -52
@@ -12,6 +12,23 @@
12
12
  .ae-btn-group-right
13
13
  text-align: right
14
14
 
15
+ // Buttons in this group have no spaces among them
16
+ .ae-btn-group-collapsed
17
+ .ae-btn:first-child
18
+ @include border-radius(4px 0 0 4px)
19
+ margin-right: 0
20
+
21
+ .ae-btn
22
+ @include border-radius(0)
23
+ margin-right: 0
24
+ position: relative
25
+
26
+ .ae-btn:nth-child(n+2)
27
+ margin-left: -1px
28
+
29
+ .ae-btn:last-child
30
+ @include border-radius(0 4px 4px 0)
31
+
15
32
  .ae-btn-group-justified
16
33
  @include tablet-max
17
34
  .ae-btn
@@ -27,24 +27,75 @@
27
27
  .ae-grid
28
28
  float: left
29
29
 
30
+ &:last-of-type
31
+ margin-right: 0 !important
32
+
30
33
  .ae-content
31
34
  @include tablet-max
32
35
  padding-left: 0.5em !important
33
36
  padding-right: 0.5em !important
37
+
34
38
  &-container
35
39
  width: 100%
40
+ @include clearfix
36
41
 
37
- &-one-half
38
42
  .ae-grid
39
- width: (100%/2)
43
+ padding:
44
+ bottom: 1em
45
+ &-center
46
+ .ae-grid
47
+ margin-left: auto !important
48
+ margin-right: auto !important
49
+ float: none
50
+
51
+ &-one-half
52
+ @include clearfix
53
+ @include tablet
54
+ .ae-grid
55
+ width: 48%
56
+ margin-right: 2%
57
+
40
58
  &-one-third
59
+ @include clearfix
41
60
  .ae-grid
42
- width: (100%/3)
61
+ width: 32%
62
+ margin-right: 2%
63
+
43
64
  &-one-fourth
44
- .ae-grid
45
- width: (100%/4)
65
+ @include clearfix
66
+ @include tablet
67
+ .ae-grid
68
+ width: 22%
69
+ margin-right: 2%
70
+
71
+ .ae-fixed-grid-height
72
+ display: table
73
+ border-collapse: separate
74
+ border-spacing: 10px 0
75
+
76
+ &:before, &:after
77
+ display: none
78
+
79
+ .ae-grid
80
+ display: table-cell
81
+ float: none
82
+ margin-right: 0
83
+ height: 100%
84
+
85
+ [class*="ae-content-"]
86
+ overflow: visible
46
87
 
47
88
  .ae-content
48
89
  @include tablet-max
49
90
  padding-left: 0.5em !important
50
- padding-right: 0.5em !important
91
+ padding-right: 0.5em !important
92
+
93
+ .ae-overflow
94
+ overflow-y: scroll
95
+
96
+ .ae-bordered
97
+ border-top: 1px solid $border-light
98
+ border-bottom: 1px solid $border-light
99
+
100
+ .ae-grid:not(:last-of-type)
101
+ border-right: 1px solid $border-light
@@ -1,5 +1,5 @@
1
1
  .ae-alert
2
- padding: 0.5rem
2
+ padding: 1em
3
3
  position: relative
4
4
 
5
5
  p
@@ -7,30 +7,38 @@
7
7
  margin-bottom: 0
8
8
 
9
9
  & + &
10
- margin-top: 0.25rem
10
+ margin-top: 1em
11
11
 
12
12
  .ae-alert-action
13
13
  position: absolute
14
- top: 0.5
15
- right: 0.5rem
14
+ top: 0.5em
15
+ right: 0.5em
16
16
  text-decoration: none
17
- @include font-size(12px, 16px)
17
+ @include font-size(22px, 28px)
18
18
 
19
19
  &-success
20
- background: lighten($success, 50%)ƒ
20
+ background: $success
21
21
  border: 1px solid $success
22
22
  color: $success
23
23
 
24
- a:link, a:visited, a .fa
25
- color: lighten($success, 10%)
26
- font-weight: bold
24
+ p
25
+ color: darken($success, 50%) !important
26
+
27
+ a:link, a:visited, a .fa, .fa
28
+ color: darken($success, 40%)
29
+
30
+ .ae-alert-action
31
+ color: darken($success, 50%)
27
32
 
28
33
  &-error
29
34
  background: lighten($cancelled, 30%)
30
35
  border: 1px solid $cancelled
31
36
  color: $cancelled
32
37
 
33
- a:link, a:visited, a .fa
38
+ p
39
+ color: $cancelled !important
40
+
41
+ a:link, a:visited, a .fa, .ae-alert-action, .fa
34
42
  color: $cancelled
35
43
  font-weight: bold
36
44
 
@@ -39,7 +47,10 @@
39
47
  border: 1px solid darken($pending, 50%)
40
48
  color: darken($pending, 50%)
41
49
 
42
- a:link, a:visited, a .fa
50
+ p
51
+ color: darken($pending, 50%) !important
52
+
53
+ a:link, a:visited, a .fa, .ae-alert-action, .fa
43
54
  color: darken($pending, 50%)
44
55
  font-weight: bold
45
56
 
@@ -48,10 +59,29 @@
48
59
  border: 1px solid darken($primary-color, 20%)
49
60
  color: darken($primary-color, 10%)
50
61
 
51
- a:link, a:visited, a .fa
62
+ p
63
+ color: darken($primary-color, 10%) !important
64
+
65
+ a:link, a:visited, a .fa, .ae-alert-action, .fa
66
+
52
67
  color: darken($primary-color, 20%)
53
68
  font-weight: bold
54
69
 
55
70
  @include tablet-max
56
71
  p
57
72
  padding-right: 1em
73
+
74
+ .ae-alert-close
75
+ @include font-size(30px, 30px)
76
+ font-weight: normal !important
77
+
78
+ .ae-alert-fixed
79
+ position: fixed
80
+ bottom: 0
81
+ width: 100%
82
+ left: 0
83
+ right: 0
84
+ border: 0
85
+ text-align: center
86
+ z-index: 99
87
+ padding: 1.5em 0
@@ -16,14 +16,21 @@
16
16
  margin-top: 1em
17
17
 
18
18
  .ae-form-inline
19
+ @include tablet
20
+ .ae-field
21
+ width: auto
22
+ display: inline-block
23
+
19
24
  .ae-form-field
20
- input
25
+ display: flex
26
+
27
+ input, select
21
28
  width: auto
22
29
  min-width: 100px
23
30
 
24
- label
25
- min-width: 30%
26
- margin: 0.5em 1em 0.5em 0
31
+ label:first-child, .ae-label:first-child
32
+ width: 30%
33
+ margin: 1em 1em 1em 0
27
34
  display: inline-block
28
35
 
29
36
  & + &
@@ -91,14 +98,17 @@
91
98
 
92
99
  .ae-form-field.ae-has-icon
93
100
  position: relative
101
+ overflow: visible
94
102
 
95
103
  .ae-text-field
96
104
  padding-left: 3em
97
105
 
106
+ .ae-text-field:not([type="hidden"]) + .ae-text-field
107
+ padding-left: 0.75em !important
108
+
98
109
  @include desktop
99
110
  padding-left: 3em
100
111
 
101
-
102
112
  & > div
103
113
  width: auto
104
114
  display: inline-block
@@ -110,7 +120,6 @@
110
120
  &:focus > .fa
111
121
  color: $primary-color
112
122
 
113
-
114
123
  & > div
115
124
  position: relative
116
125
 
@@ -127,3 +136,63 @@
127
136
  @include tablet-max
128
137
  form, input
129
138
  width: 100%
139
+
140
+
141
+ .ae-form-floating-label
142
+ position: relative
143
+
144
+ .ae-text-field
145
+ color: $body-color
146
+ padding:
147
+ left: 1em
148
+ right: 1em
149
+
150
+ .ae-label, label
151
+ color: $body-lighter !important
152
+
153
+ .ae-input-md
154
+ @include font-size(18px, 18px)
155
+ padding:
156
+ top: 1.2em
157
+ bottom: 0.5em
158
+ left: 1em
159
+ right: 1em
160
+
161
+ &.ae-has-icon
162
+
163
+ .ae-text-field
164
+ padding-left: 1em
165
+
166
+ .fa-check, .fa-error
167
+ top: 2.6em
168
+ right: 0.75em
169
+ left: auto
170
+
171
+ .ae-input-lg
172
+ @include font-size(20px, 20px)
173
+ padding:
174
+ top: 1.6em
175
+ bottom: 0.75em
176
+
177
+ label
178
+ @include font-size(28px, 24px)
179
+ display: inline-block
180
+ position: absolute
181
+ left: 1em
182
+ top: 2.5em
183
+ transition: all 150ms ease-in
184
+ text-transform: none
185
+ margin:
186
+ bottom: 0 !important
187
+ top: 0 !important
188
+
189
+
190
+ label.ae-floating-label
191
+ transform: translateY(0.75em)
192
+ margin-left: 0.5em
193
+ top: 2.4em
194
+ @include font-size(15px, 15px)
195
+ cursor: text
196
+
197
+ @include tablet-max
198
+ top: 3em
@@ -6,6 +6,11 @@ input[type="date"]
6
6
  -moz-appearance: none
7
7
  -webkit-text-size-adjust: none
8
8
 
9
+ input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill
10
+ -webkit-box-shadow: 0 0 0 100px #fff inset !important
11
+ background-color: #fff !important
12
+ -webkit-animation-name: autofill
13
+
9
14
  .ae-form-field
10
15
 
11
16
  .fa
@@ -57,12 +62,14 @@ input[type="date"]
57
62
  & ~ label:before
58
63
  content: "\f096"
59
64
  font-size: 15px
65
+ top: 1px
66
+ position: relative
60
67
 
61
68
  &:checked ~ label:before
62
69
  content: "\f14a"
63
- top: -1px
70
+ top: 0px
64
71
  position: relative
65
- font-size: 14px
72
+ font-size: 15px
66
73
 
67
74
  .ae-input-sm
68
75
  @include font-size(16px, 16px)
@@ -85,7 +92,7 @@ input[type="date"]
85
92
  @include desktop
86
93
  padding: rem(18px)
87
94
 
88
- label
95
+ label, .ae-label
89
96
  line-height: 1.4
90
97
  @include p
91
98
  padding-right: 0.5em
@@ -111,16 +118,21 @@ label
111
118
  -webkit-user-select: none
112
119
  -moz-user-select: none
113
120
  -ms-user-select: none
121
+ margin-right: 1em
114
122
 
115
123
  &-checkbox
116
124
  display: none
125
+
117
126
  &-label
118
127
  border: 1px solid $border-light
119
128
  @include border-radius(20px)
120
129
  cursor: pointer
121
130
  display: block
122
- padding: 0
131
+ padding: 0 !important
123
132
  overflow: hidden
133
+ position: relative
134
+ width: 100%
135
+
124
136
  &-inner
125
137
  display: block
126
138
  margin-left: -100%
@@ -162,3 +174,25 @@ label
162
174
 
163
175
  &-checkbox:checked + &-label &-button
164
176
  right: 0
177
+
178
+ & + label
179
+ line-height: 2
180
+
181
+ .ae-input-success
182
+ .fa, .ae-text-field
183
+ color: $success !important
184
+
185
+ .ae-input-error
186
+ .fa, .ae-text-field
187
+ color: $cancelled !important
188
+
189
+ .ae-required
190
+ label:first-child, .ae-label:first-child
191
+ position: relative
192
+ &:after
193
+ content: " *"
194
+ color: $cancelled
195
+ right: 0
196
+ position: absolute
197
+ top: 0
198
+ @include font-size(26px, 26px)
@@ -26,22 +26,35 @@ ul
26
26
  width: auto
27
27
  float: left
28
28
 
29
+ &.ae-list-item
30
+ border-bottom: 0
31
+
32
+ a, a:link
33
+ display: inline
34
+
35
+ &:first-child, &:last-child
36
+ margin-top: 0
37
+ margin-bottom: 0
38
+
29
39
  &:after
30
40
  content: " "
31
41
  display: block
32
42
  clear: both
33
43
 
34
44
  .ae-list-flex
35
- display: flex
36
- flex-direction: row
37
- flex-wrap: nowrap
38
- justify-content: space-between
39
- align-items: stretch
40
- align-content: stretch
45
+ &:before, &:after
46
+ display: none
41
47
 
42
48
  li
43
- flex: 1
44
- padding: 0 0.8em
49
+ &:before, &:after
50
+ display: none
51
+
52
+ @include flexbox
53
+ flex-direction: row
54
+ flex-wrap: nowrap
55
+ justify-content: space-between
56
+ align-items: flex-start
57
+ align-content: stretch
45
58
 
46
59
  .ae-list-block
47
60
  li
@@ -57,6 +70,7 @@ dl
57
70
  margin-bottom: 1em
58
71
 
59
72
  dt, dd
73
+ @include p
60
74
  vertical-align: top
61
75
  padding:
62
76
  top: 0.5em
@@ -72,6 +86,7 @@ dl
72
86
 
73
87
  dt
74
88
  width: 30%
89
+ margin-right: 1em
75
90
 
76
91
  dd
77
92
  width: 65%
@@ -84,6 +99,27 @@ dl
84
99
  text-align: left
85
100
  margin-left: 1rem
86
101
 
102
+ // Any list item that is styled with a padding
103
+ .ae-list-item
104
+ // padding: 0 1em
105
+ @include font-size(18px, 18px)
106
+ border-bottom: 1px solid $border-light
107
+
108
+ a:link, a
109
+ display: block
110
+ padding: 1em 0.5em
111
+ @include animate(0.5s)
112
+
113
+ &:hover a
114
+ background: darken($gray-background, 10%)
115
+
116
+ &:first-child
117
+ margin-top: 0.5em
118
+
119
+ &:last-child
120
+ margin-bottom: 0.5em
121
+ border-bottom: 0
122
+
87
123
  .ae-list-description
88
124
  .ae-li-title
89
125
  font-weight: bold