express_ui 0.5.0 → 0.5.1

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/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
@@ -1,7 +1,7 @@
1
1
  nav
2
2
  @include font-size(18px, 14px)
3
3
 
4
- a:link, a:visited
4
+ a:link, a:visited, a:link:not(.ae-btn)
5
5
  text-decoration: none
6
6
  display: block
7
7
  color: $body-color
@@ -30,6 +30,7 @@ nav
30
30
  @include button
31
31
 
32
32
  .ae-nav-main
33
+ @include hide-scrollbar
33
34
  overflow: scroll
34
35
  white-space: nowrap
35
36
  float: none
@@ -84,13 +85,17 @@ nav
84
85
  .ae-nav-mega-menu-content
85
86
  background: #fff
86
87
  padding: 1em
88
+ position: relative
89
+ z-index: 2
87
90
  @include box-shadow(0, 0px, 5px, 0, $border-light)
88
91
  @include border-radius(2px)
89
-
92
+ @include animate(1s)
93
+ opacity: 1
90
94
 
91
95
  [class*="ae-nav-mega-menu-list"]
92
96
  min-height: 140px
93
97
  overflow: scroll
98
+ @include hide-scrollbar
94
99
 
95
100
  .ae-nav-mega-menu-list-icons
96
101
  .ae-nav-mega-menu-item
@@ -0,0 +1,33 @@
1
+ // Browsers that support HTML5 progress element will ignore the html inside `progress` element. Whereas older browsers will ignore the `progress` element and instead render the html inside it.
2
+ progress:not(value)
3
+ background-color: rgba($border-dark, 0.5)
4
+
5
+ progress[value]
6
+ /* Get rid of the default appearance */
7
+ appearance: none
8
+
9
+ /* This unfortunately leaves a trail of border behind in Firefox and Opera. We can remove that by setting the border to none. */
10
+ border: none
11
+
12
+ /* Add dimensions */
13
+ width: 100%
14
+ height: 5px
15
+
16
+ /* Although firefox doesn't provide any additional pseudo class to style the progress element container, any style applied here works on the container. */
17
+ @include border-radius(4px)
18
+
19
+ /* Of all IE, only IE10 supports progress element that too partially. It only allows to change the background-color of the progress value using the 'color' attribute. */
20
+ color: $primary-color
21
+ position: relative
22
+ margin: 0.5em 0 0 0
23
+
24
+ progress[value]::-webkit-progress-bar
25
+ background-color: rgba($border-dark, 0.5)
26
+ @include border-radius(4px)
27
+
28
+ progress[value]::-webkit-progress-value
29
+ @include border-radius(4px)
30
+
31
+ progress[value]::-moz-progress-bar
32
+ background-color: $success
33
+ @include border-radius(4px)
@@ -25,7 +25,7 @@
25
25
  .ae-progress-heading
26
26
  max-width: 100px
27
27
  color: darken($gray-background, 15%)
28
-
28
+ @include font-size(32px, 20px)
29
29
 
30
30
  .ae-progress-points
31
31
  display: flex
@@ -82,6 +82,10 @@
82
82
  height: 3rem
83
83
  @include font-size(32px, 24px)
84
84
 
85
+ @include small-desktop
86
+ font-size: 2rem
87
+ line-height: 1.4 !important
88
+
85
89
  &.ae-progress-point-done
86
90
  .ae-progress-heading
87
91
  color: $body-color
@@ -33,6 +33,9 @@ table
33
33
  tr:nth-child(even)
34
34
  background: $dark-gray-background
35
35
 
36
+ .ae-table-valign
37
+ td, th
38
+ vertical-align: middle
36
39
  &.ae-table-unstyled
37
40
  thead
38
41
  th
@@ -54,6 +57,8 @@ table
54
57
 
55
58
  .ae-table-responsive
56
59
  overflow-x: scroll
60
+ overflow: visible
61
+ @include hide-scrollbar
57
62
 
58
63
  .ae-table-actions
59
64
  vertical-align: middle
@@ -0,0 +1,28 @@
1
+ .ae-detail-actions
2
+ position: absolute
3
+ left: 0
4
+ top: 0
5
+ z-index: 2
6
+ left: -1.3em
7
+ top: 4em
8
+ @include border-radius(20px)
9
+ @include flexbox
10
+ flex-direction: column
11
+ flex-wrap: nowrap
12
+ justify-content: flex-start
13
+ align-items: center
14
+ align-content: stretch
15
+
16
+ .ae-btn
17
+ margin: 1em 0 0 0
18
+
19
+ &:first-of-type
20
+ margin: 0
21
+
22
+ .ae-btn-border
23
+ border-color: rgba($border-dark, 0.4) !important
24
+
25
+ .my-bag-sidebar
26
+ .ae-detail-actions
27
+ top: 0.75em
28
+ left: -1.25em
@@ -0,0 +1,14 @@
1
+ .ae-dropdown
2
+ position: absolute
3
+ background: $gray-background
4
+ z-index: 2
5
+ @include box-shadow(0 5px, 10px, 0px, rgba($border-dark, 0.5))
6
+
7
+ .ae-close-dropdown
8
+ position: absolute
9
+ top: 0
10
+ right: 0.5em
11
+ @include font-size(38px, 34px)
12
+ padding: 0
13
+ top: 0.1em
14
+ cursor: pointer
@@ -6,7 +6,7 @@ header
6
6
  @include clearfix
7
7
 
8
8
  @include tablet
9
- padding: 0.5em 0
9
+ padding: 0.5em 1em
10
10
 
11
11
  @include tablet-max
12
12
  text-align: center
@@ -0,0 +1,41 @@
1
+ .ae-panel
2
+ background: #fff
3
+ margin: 2em auto
4
+ position: relative
5
+ @include border-radius(2px)
6
+ @include animate(1s)
7
+ border: 1px solid $border-light
8
+
9
+ &-header
10
+ background: $gray-background
11
+ padding:
12
+ right: 2em
13
+ left: 2em
14
+ bottom: 0.5em
15
+ position: relative
16
+ border-bottom: 1px solid $border-light
17
+ @include border-radius(2px 2px 0 0)
18
+
19
+ &-title
20
+ padding:
21
+ right: 1em
22
+ top: 0.5em
23
+ margin:
24
+ bottom: 0
25
+
26
+ &-content
27
+ padding: 2em
28
+ max-height: 500px
29
+ overflow: scroll
30
+
31
+ &-no-scroll
32
+ max-height: 100%
33
+ overflow: visible
34
+
35
+ &-footer
36
+ padding: 0 1em
37
+ overflow: hidden
38
+
39
+ @include tablet-max
40
+ width: 100%
41
+ display: block
@@ -0,0 +1,9 @@
1
+ .ae-popover
2
+ position: fixed
3
+ z-index: 3
4
+ right: 1em
5
+ background: #fff
6
+ overflow: scroll
7
+ border: 5px solid $gray-background
8
+ @include box-shadow(0 3px, 6px, 0px, rgba($border-dark, 0.1) !important)
9
+ @include border-radius(3px)
@@ -17,6 +17,7 @@
17
17
  background-color: $dark-gray-background
18
18
  padding-left: $container-padding
19
19
  padding-right: $container-padding
20
+ z-index: 1
20
21
 
21
22
  .ui-resizable-handle
22
23
  cursor: col-resize
@@ -35,6 +36,7 @@
35
36
  @include border-radius(2px)
36
37
 
37
38
  .ae-sidebar
39
+ @include hide-scrollbar
38
40
  word-wrap: inherit
39
41
  overflow-y: scroll
40
42
  letter-spacing: 0
@@ -42,6 +44,9 @@
42
44
  top: $container-padding
43
45
  bottom: $container-padding
44
46
 
47
+ a:link, a
48
+ color: $link-color
49
+
45
50
  nav .active
46
51
  a:link
47
52
  background: $primary-active-color
@@ -67,41 +72,40 @@
67
72
  a:link, a:visited
68
73
  color: #FFF
69
74
  text-decoration: none
70
- color: #FFF
71
75
 
72
76
  &:hover
73
77
  color: lighten($primary-color, 20%)
74
78
 
75
- ul
76
- li
77
- a:link
78
- display: block
79
- border-bottom: 1px solid rgba(#fff, 0.1)
80
- padding:
81
- left: 1.75em
82
- ul
83
- margin:
84
- top: 0
85
- bottom: 1em
86
- left: 1em
87
-
88
- li
89
- a:link
90
- padding:
91
- left: 1.75em
92
-
79
+ nav
80
+ ul
81
+ li
82
+ a:link
83
+ display: block
84
+ padding:
85
+ left: 1.75em
93
86
  ul
94
87
  margin:
95
- left: 0
88
+ top: 0
89
+ bottom: 1em
90
+ left: 1em
96
91
 
92
+ li
93
+ a:link
94
+ padding:
95
+ left: 1.75em
96
+
97
+ ul
98
+ margin:
99
+ left: 0
97
100
 
98
- &.active
99
- ul
100
- a:link
101
- background: transparent
102
101
 
103
- li.active
104
- background: $primary-active-color
102
+ &.active
103
+ ul
104
+ a:link
105
+ background: transparent
106
+
107
+ li.active
108
+ background: $primary-active-color
105
109
 
106
110
  .ae-sidebar-has-icons
107
111
  li
@@ -132,4 +136,8 @@
132
136
  .fa
133
137
  width: 0.5em
134
138
  margin:
135
- left: -0.75em
139
+ left: -0.75em
140
+
141
+ .ae-sidebar-no-margin
142
+ margin-left: -2.5em
143
+ margin-right: -2.5em
@@ -1,3 +1,7 @@
1
+ .ae-accordion-heading
2
+ @include font-size(22px, 22px)
3
+ text-transform: uppercase
4
+
1
5
  .ae-accordion-trigger
2
6
  background: $primary-color
3
7
  display: block
@@ -8,11 +12,11 @@
8
12
  &:not(.collapsed)
9
13
  @include border-radius(3px 3px 0 0 !important)
10
14
 
11
- &:not(.collapsed):after
15
+ &:not(.collapsed):after, [aria-expanded="false"]:after
12
16
  content: "\f106"
13
17
  @include icon-font
14
18
 
15
- &.collapsed:after
19
+ &.collapsed:after, [aria-expanded="true"]:after
16
20
  content: "\f107"
17
21
  @include icon-font
18
22
 
@@ -25,7 +29,7 @@
25
29
  font-size: 2em
26
30
 
27
31
  .ae-accordion-content
28
- padding: 0 1em 1em 1em
32
+ padding: 0 1em
29
33
  border: 1px solid $border-light
30
34
  border-top: 0
31
35
  overflow: hidden
@@ -36,15 +40,15 @@
36
40
  -moz-box-sizing: border-box
37
41
  -webkit-box-sizing: border-box
38
42
  @include easeInOut
43
+
39
44
  &.expanded
40
45
  height: auto
46
+ @include tablet
47
+ margin-bottom: 1em
48
+
49
+
41
50
  &.collapsed
42
51
  height: 0
43
- &.collapsed
44
- display: none
45
-
46
- @include tablet
47
- margin-bottom: 1em
48
52
 
49
53
  @include tablet-max
50
54
  margin-bottom: 0.5em
@@ -1,3 +1,12 @@
1
+ // Vertically centers the popups
2
+ .mfp-container
3
+ display: table
4
+
5
+ .mfp-content
6
+ display: table-cell
7
+ vertical-align: middle
8
+ position: relative
9
+
1
10
  // TODO: Adds fake transparent blocker behind popup. Should be removed once JS is active
2
11
  .ae-popup
3
12
  width: 60%
@@ -5,6 +14,8 @@
5
14
  margin: 2em auto
6
15
  padding: 1em
7
16
  position: relative
17
+ @include border-radius(6px)
18
+ @include animate(1s)
8
19
 
9
20
  .ae-popup-header
10
21
  padding:
@@ -13,6 +24,7 @@
13
24
  bottom: 1em
14
25
  position: relative
15
26
  border-bottom: 1px solid $border-light
27
+ @include border-radius(6px 6px 0 0)
16
28
 
17
29
  .ae-popup-title
18
30
  padding-right: 1em
@@ -25,18 +37,42 @@
25
37
 
26
38
  .ae-popup-content
27
39
  padding: 1em
28
- max-height: 300px
40
+ max-height: 500px
29
41
  overflow: scroll
30
42
 
31
43
  .ae-popup-footer
32
44
  padding: 0 1em
33
45
  overflow: hidden
34
46
 
47
+ .mfp-close
48
+ position: relative
49
+ width: auto
50
+ height: auto
51
+ line-height: 100%
52
+ font-size: inherit
53
+ @include body-font
54
+
35
55
  @include tablet-max
36
56
  width: 90% !important
37
57
 
38
- @include tablet
39
- height: 100%
58
+ .mfp-fade
59
+ transition: all 0.55s ease-out
60
+
61
+ .mfp-fade.mfp-bg.mfp-ready
62
+ opacity: 0.8
63
+
64
+ .mfp-fade.mfp-bg.mfp-removing
65
+ opacity: 0
66
+
67
+ .mfp-fade.mfp-wrap .mfp-content
68
+ opacity: 0
69
+ transition: all 0.55s ease-out
70
+
71
+ .mfp-fade.mfp-wrap.mfp-ready .mfp-content
72
+ opacity: 1
73
+
74
+ .mfp-fade.mfp-wrap.mfp-removing .mfp-content
75
+ opacity: 0
40
76
 
41
77
  .ae-popup-sm
42
78
  width: 40%