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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a560320aa93759dfc68ade128da3dd6de81dc343
4
- data.tar.gz: 18d262f3704412aad30f3611d7d54b84fc0b2bf0
3
+ metadata.gz: 8913b21afad54bd5cc9015c73b6f5bfa13f5a9ab
4
+ data.tar.gz: 89e55b1ee3d853a3b7f29e4db468b3ed8bbe889c
5
5
  SHA512:
6
- metadata.gz: a04c4cebac311a0dd1aeb2fd3ce202101e2cd9772a9c6a9a394e92ff6a0f7aa1b5ddf7d1b42b473452289813971a8f2e2f991986d1f256087577aa515eb239d8
7
- data.tar.gz: d0b7cf41f2a1c825ed9272809b3ee916f02535847a438f5411ec5449db63bfcfbcdb89ecfb736272b15212127a2f0e5765476ef243c68ea9daed108b546ca759
6
+ metadata.gz: 8d664564a78cf43a13d73e1cf337cff8eeebab7f767bc7d53f69e197954ee175726b23a57ce1c6c843e8f13b4c3eaf1e758a552214966b33d6af9310d56941d5
7
+ data.tar.gz: 5f40242582960d8b20063a421f8a7240f9129a1ed97d07b842836503e929911a606a2b4bf07e28017214fbb4673bc4bdb713c354675751bfb98b3549ce7d5f49
@@ -1,6 +1,4 @@
1
1
  //= require jquery
2
- //= require jquery_ujs
3
- //= require_tree .
4
2
  //= require magnific-popup
5
3
  //= require select2
6
4
  //= require moment
@@ -15,39 +13,39 @@
15
13
  //= require ion.rangeSlider
16
14
  //= require quickaccord
17
15
 
18
- $(document).ready(function() {
19
- $('.ae-popup-link').magnificPopup();
20
- $('.ae-calendar').fullCalendar();
21
- $('.ae-select').select2();
22
- $('.ae-accordion-trigger').QuickAccord();
23
- $('.ae-open-mega-menu').click(function() {
24
- $(this).siblings( '.ae-nav-mega-menu-content' ).toggleClass('ae-hidden');
25
- return false;
26
- });
27
- $('.ae-open-filter').click(function() {
28
- $(this).parent().siblings( '.ae-table-filter' ).toggleClass('ae-hidden');
29
- return false;
30
- });
31
- $('.ae-mega-menu-close').click(function() {
32
- $(this).parents( '.ae-table-filter' ).toggleClass('ae-hidden');
33
- return false;
34
- });
35
- $("#ae-double-slider").ionRangeSlider({
36
- hide_min_max: true,
37
- keyboard: true,
38
- min: 0,
39
- max: 5000,
40
- from: 1000,
41
- to: 4000,
42
- type: 'double',
43
- step: 1,
44
- grid: true
45
- });
46
- $("#ae-single-slider").ionRangeSlider();
47
- $('.ae-datepicker').pickadate({
48
- weekdaysShort: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
49
- showMonthsShort: true,
50
- selectYears: true,
51
- selectMonths: true
52
- });
53
- });
16
+ // $(document).ready(function() {
17
+ // $('.ae-popup-link').magnificPopup();
18
+ // $('.ae-calendar').fullCalendar();
19
+ // $('.ae-select').select2();
20
+ // $('.ae-accordion-trigger').QuickAccord();
21
+ // $('.ae-open-mega-menu').click(function() {
22
+ // $(this).siblings( '.ae-nav-mega-menu-content' ).toggleClass('ae-hidden');
23
+ // return false;
24
+ // });
25
+ // $('.ae-open-filter').click(function() {
26
+ // $(this).parent().siblings( '.ae-table-filter' ).toggleClass('ae-hidden');
27
+ // return false;
28
+ // });
29
+ // $('.ae-mega-menu-close').click(function() {
30
+ // $(this).parents( '.ae-table-filter' ).toggleClass('ae-hidden');
31
+ // return false;
32
+ // });
33
+ // $("#ae-double-slider").ionRangeSlider({
34
+ // hide_min_max: true,
35
+ // keyboard: true,
36
+ // min: 0,
37
+ // max: 5000,
38
+ // from: 1000,
39
+ // to: 4000,
40
+ // type: 'double',
41
+ // step: 1,
42
+ // grid: true
43
+ // });
44
+ // $("#ae-single-slider").ionRangeSlider();
45
+ // $('.ae-datepicker').pickadate({
46
+ // weekdaysShort: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
47
+ // showMonthsShort: true,
48
+ // selectYears: true,
49
+ // selectMonths: true
50
+ // });
51
+ // });
@@ -13,6 +13,7 @@
13
13
  @import "atoms/reset"
14
14
  @import "atoms/images"
15
15
  @import "atoms/icons"
16
+ @import "atoms/utilities"
16
17
  @import "molecules/tabs"
17
18
  @import "molecules/button_group"
18
19
  @import "molecules/container"
@@ -20,12 +21,17 @@
20
21
  @import "molecules/form_groups"
21
22
  @import "molecules/flash_messages"
22
23
  @import "molecules/nav"
24
+ @import "molecules/progress_bar"
23
25
  @import "molecules/progress_indicator"
24
26
  @import "molecules/tables"
25
27
  @import "molecules/lists"
28
+ @import "organisms/popovers"
29
+ @import "organisms/detail"
30
+ @import "organisms/dropdown"
26
31
  @import "organisms/header"
27
32
  @import "organisms/footer"
28
33
  @import "organisms/sidebar"
34
+ @import "organisms/panels"
29
35
  @import "templates/full_width"
30
36
  @import "templates/half_width"
31
37
  @import "templates/content_sidebar"
@@ -13,6 +13,10 @@
13
13
  .ae-hidden
14
14
  display: none
15
15
 
16
+ .ae-invisible
17
+ visibility: hidden
18
+ height: 0
19
+
16
20
  @keyframes fadeIn
17
21
  0%
18
22
  opacity: 0
@@ -19,6 +19,11 @@
19
19
  @include box-shadow(inset, 2px, 2px, 2px, darken($secondary-color, 5%))
20
20
  outline-color: $primary-color
21
21
 
22
+ .ae-btn-auto
23
+ padding:
24
+ left: 0.5em !important
25
+ right: 0.5em !important
26
+
22
27
  .ae-btn-block
23
28
  display: block
24
29
 
@@ -35,14 +40,14 @@
35
40
  color: #fff !important
36
41
 
37
42
  *
38
- color: #fff !important
43
+ color: #fff
39
44
 
40
45
  .ae-btn-secondary
41
46
  @include btn-type($secondary-color)
42
47
  color: #fff !important
43
48
 
44
49
  *
45
- color: #fff !important
50
+ color: #fff
46
51
 
47
52
  .ae-btn-success
48
53
  background-color: $success
@@ -79,24 +84,24 @@
79
84
 
80
85
  .ae-btn-sm
81
86
  padding:
82
- top: rem(8px)
83
- bottom: rem(8px)
87
+ top: rem(8px) !important
88
+ bottom: rem(8px) !important
84
89
  @include font-size(16px, 16px)
85
90
  max-height: 30px
86
91
  line-height: 100%
87
92
 
88
93
  .ae-btn-md
89
94
  padding:
90
- top: rem(16px)
91
- bottom: rem(16px)
95
+ top: rem(16px) !important
96
+ bottom: rem(16px) !important
92
97
  @include font-size(18px, 18px)
93
98
  max-height: 40px
94
99
  line-height: 100%
95
100
 
96
101
  .ae-btn-lg
97
102
  padding:
98
- top: rem(22px)
99
- bottom: rem(22px)
103
+ top: rem(22px) !important
104
+ bottom: rem(22px) !important
100
105
  @include font-size(20px, 20px)
101
106
  max-height: 50px
102
107
  line-height: 100%
@@ -111,9 +116,58 @@
111
116
 
112
117
  .ae-btn-disabled, button:disabled
113
118
  background-color: lighten($secondary-color, 30%)
114
- color: #ccc
119
+ color: #ccc !important
115
120
  cursor: not-allowed
116
121
  border-color: lighten($secondary-color, 30%)
117
122
 
118
123
  &:hover
119
124
  box-shadow: none
125
+
126
+ [class*="ae-btn-icon"]
127
+ position: relative
128
+ text-align: left
129
+
130
+ span:first-of-type
131
+ position: absolute
132
+ top: 0
133
+
134
+ &.ae-btn-md
135
+ span:first-of-type
136
+ padding: 0.7em 0.6em
137
+
138
+ &.ae-btn-lg
139
+ span:first-of-type
140
+ padding: 0.55em 1em
141
+
142
+ .ae-btn-icon-right
143
+ text-align: left
144
+
145
+ &.ae-btn-md
146
+ padding-right: 4em
147
+
148
+ &.ae-btn-lg
149
+ padding-left: 1em
150
+ padding-right: 4em
151
+
152
+ span:first-of-type
153
+ right: 0
154
+ margin-left: 1em
155
+ border-left: 1px solid rgba(255, 255, 255, 0.2)
156
+
157
+ &.ae-btn-border
158
+ span:first-of-type
159
+ border-left: 1px solid $body-color
160
+
161
+ .ae-btn-icon-left
162
+ text-align: left
163
+
164
+ &.ae-btn-md
165
+ padding-left: 4em
166
+
167
+ &.ae-btn-lg
168
+ padding-left: 5em
169
+
170
+ span:first-of-type
171
+ left: 0
172
+ margin-right: 1em
173
+ border-right: 1px solid rgba(255, 255, 255, 0.2)
@@ -1,3 +1,22 @@
1
+ // Some icons can be merged with another icon, i.e., "Add To My Bag" wherein a plus icon will need to be beside a bag icon.
2
+ .ae-secondary-icon, .fa + .fa
3
+ margin-left: -0.25em
4
+ position: relative
5
+ top: 0.25em
6
+ color: $icon-color !important
7
+
8
+ a:link, a
9
+ .fa
10
+ color: $primary-color
11
+
1
12
  .fa
2
13
  @include font-size(20px, 20px)
3
- color: $icon-color
14
+ color: $icon-color
15
+
16
+ .ae-btn-primary .fa.ae-text
17
+ &-success
18
+ color: lighten($success, 15%) !important
19
+ &-cancelled
20
+ color: $cancelled !important
21
+ &-lighter
22
+ color: $body-lighter !important
@@ -3,10 +3,13 @@
3
3
  margin: 0
4
4
  padding: 0
5
5
 
6
+ html
7
+ height: auto
8
+
6
9
  html, body
7
10
  line-height: 1.4
8
- height: 100%
9
11
  min-height: 100%
10
12
 
11
13
  body
12
- width: 100%
14
+ width: 100%
15
+ height: 100%
@@ -13,10 +13,10 @@
13
13
  text-align: justify
14
14
 
15
15
  .ae-u-float-right
16
- float: right
16
+ float: right !important
17
17
 
18
18
  .ae-u-float-left
19
- float: left
19
+ float: left !important
20
20
 
21
21
  .ae-code-block
22
22
  white-space: pre-wrap
@@ -50,9 +50,6 @@ button
50
50
  @include p
51
51
  @include body-font
52
52
 
53
- em
54
- @include p
55
-
56
53
  a:link
57
54
  color: $link-color
58
55
 
@@ -64,6 +61,7 @@ a:hover
64
61
 
65
62
  .ae-status
66
63
  @include status
64
+ text-align: center
67
65
 
68
66
  &-success
69
67
  @include status-success
@@ -79,9 +77,16 @@ a:hover
79
77
 
80
78
  .ae-text
81
79
  &-success
82
- color: $success !important
80
+ color: darken($success, 40%) !important
81
+ .fa
82
+ color: darken($success, 40%) !important
83
+
83
84
  &-cancelled
84
85
  color: $cancelled !important
86
+ .fa
87
+ color: $cancelled !important
88
+ &-lighter
89
+ color: $body-lighter !important
85
90
 
86
91
  .ae-badge
87
92
  @include badge
@@ -0,0 +1,5 @@
1
+ .ae-u-margin-tb-20
2
+ margin: 20px 0
3
+
4
+ .ae-u-margin-tb-30
5
+ margin: 30px 0
@@ -5,11 +5,11 @@
5
5
  // II. Mixins
6
6
 
7
7
  // I. Variables
8
- $primary-color: #6699CC
9
- $primary-active-color: #477db0
10
- $secondary-color: #999999
8
+ $primary-color: #000
9
+ $primary-active-color: #D0011B
10
+ $secondary-color: #858585
11
11
  $sidebar-caret-icon: #ffffff
12
- $success: #3c763d
12
+ $success: #8AFF71
13
13
  $cancelled: #a94442
14
14
  $pending: #faf2cc
15
15
  $deleted: lighten($secondary-color, 30%)
@@ -18,7 +18,7 @@ $border-light: #eaeaea
18
18
  $body-color: #666
19
19
  $body-background: #fff
20
20
  $heading-color: #333
21
- $link-color: $primary-color
21
+ $link-color: #D0011B
22
22
  $body-lighter: #999
23
23
  $icon-color: #333
24
24
  $smartphone: 480px
@@ -27,7 +27,7 @@ $laptop: 1024px
27
27
  $desktop: 1440px
28
28
  $gray-background: #F7F7F7
29
29
  $thead-color: #888
30
- $dark-gray-background: rgba(#ccc, 0.1)
30
+ $dark-gray-background: #CCC
31
31
  $container: 960px
32
32
  $line-height: 14px
33
33
  $font-size-root: 62.5%
@@ -67,7 +67,7 @@ $container-padding: 0.25em
67
67
  &:before, &:after
68
68
  content: ""
69
69
  display: table
70
-
70
+ clear: both
71
71
 
72
72
  @mixin easeInOut
73
73
  -moz-transition: all 0.3s ease-in-out
@@ -165,12 +165,11 @@ $container-padding: 0.25em
165
165
  @include tablet
166
166
  display: none !important
167
167
 
168
-
169
168
  @mixin body-font
170
- font-family: 'Lato', sans-serif
169
+ font-family: 'Roboto', Helvetica, Arial, sans-serif
171
170
 
172
171
  @mixin header-font
173
- font-family: 'Lato', sans-serif
172
+ font-family: 'Roboto', Helvetica, Arial, sans-serif
174
173
 
175
174
  @mixin icon-font
176
175
  font-family: FontAwesome
@@ -265,10 +264,10 @@ $container-padding: 0.25em
265
264
  top: 30%
266
265
 
267
266
  @mixin input
268
- border: 1px solid $border-dark
267
+ border: 1px solid rgba($border-dark, 0.5)
269
268
  width: 100%
270
269
  @include border-radius(3px)
271
- @include box-shadow(inset, 2px, 2px, 2px, lighten($border-dark, 20%))
270
+ @include box-shadow(inset, 2px, 2px, 2px, lighten($border-dark, 40%))
272
271
  outline: none
273
272
  @include easeInOut
274
273
  margin: 10px 0
@@ -302,4 +301,67 @@ $container-padding: 0.25em
302
301
  right: $width
303
302
 
304
303
  .ae-sidebar-right
305
- width: $width
304
+ width: $width
305
+
306
+ // New mixins added for Express UI below
307
+
308
+ $xsmall-desktop: 1024px
309
+ $small-desktop: 1280px
310
+
311
+ // browser prefixes for flexbox container
312
+ @mixin flexbox
313
+ display: -webkit-box
314
+ display: -moz-box
315
+ display: -ms-flexbox
316
+ display: -webkit-flex
317
+ display: flex
318
+
319
+ @mixin flex-row
320
+ @include flexbox
321
+ flex-direction: row
322
+ flex-wrap: nowrap
323
+ justify-content: space-between
324
+ align-items: center
325
+ align-content: stretch
326
+
327
+ @mixin small-desktop
328
+ @media only screen and (min-width: $small-desktop + 1)
329
+ @content
330
+
331
+ @mixin small-desktop-max
332
+ @media only screen and (max-width: $small-desktop)
333
+ @content
334
+
335
+ @mixin xsmall-desktop
336
+ @media only screen and (min-width: $xsmall-desktop + 1)
337
+ @content
338
+
339
+ @mixin xsmall-desktop-max
340
+ @media only screen and (max-width: $xsmall-desktop)
341
+ @content
342
+
343
+ @mixin hide-scrollbar
344
+ @include tablet
345
+ &::-webkit-scrollbar
346
+ width: 0px
347
+ &::-webkit-scrollbar:vertical
348
+ width: 0px
349
+ &::-webkit-scrollbar-track-piece
350
+ background-color: transparent
351
+
352
+ @mixin section-dark
353
+ p, h1, h2, h3, h4, h5, h6, ul, dl, span, div, label
354
+ color: #fff
355
+
356
+ a:link, a, a:visited, .ae-link
357
+ color: darken(#fff, 40%)
358
+
359
+ .fa
360
+ color: #fff
361
+
362
+ a:hover
363
+ color: $body-lighter
364
+
365
+ .ae-btn
366
+ &:hover
367
+ box-shadow: none !important