express_ui 0.1.7 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/express_ui/application.js +46 -0
  3. data/app/assets/javascripts/express_ui/sidebar.js +6 -0
  4. data/app/assets/javascripts/express_ui/styleguide.js +9 -10
  5. data/app/assets/stylesheets/express_ui/application.css +3 -0
  6. data/app/assets/stylesheets/express_ui/atoms/_animations.sass +3 -0
  7. data/app/assets/stylesheets/express_ui/atoms/_buttons.sass +35 -28
  8. data/app/assets/stylesheets/express_ui/atoms/_headings.sass +5 -5
  9. data/app/assets/stylesheets/express_ui/atoms/_icons.sass +1 -1
  10. data/app/assets/stylesheets/express_ui/atoms/_typography.sass +6 -3
  11. data/app/assets/stylesheets/express_ui/atoms/_variables.sass +5 -1
  12. data/app/assets/stylesheets/express_ui/molecules/_container.sass +23 -0
  13. data/app/assets/stylesheets/express_ui/molecules/_form_groups.sass +30 -1
  14. data/app/assets/stylesheets/express_ui/molecules/_forms.sass +15 -8
  15. data/app/assets/stylesheets/express_ui/molecules/_nav.sass +29 -4
  16. data/app/assets/stylesheets/express_ui/molecules/_tables.sass +9 -18
  17. data/app/assets/stylesheets/express_ui/organisms/_header.sass +6 -2
  18. data/app/assets/stylesheets/express_ui/organisms/_sidebar.sass +2 -1
  19. data/app/assets/stylesheets/express_ui/scripts/_accordion.sass +39 -0
  20. data/app/assets/stylesheets/express_ui/scripts/_calendar.sass +35 -0
  21. data/app/assets/stylesheets/express_ui/scripts/_carousel.sass +43 -0
  22. data/app/assets/stylesheets/express_ui/scripts/_datepicker.sass +10 -0
  23. data/app/assets/stylesheets/express_ui/scripts/_popup.sass +48 -0
  24. data/app/assets/stylesheets/express_ui/scripts/_select.sass +12 -0
  25. data/app/assets/stylesheets/express_ui/scripts/_slider.sass +30 -0
  26. data/app/assets/stylesheets/express_ui/style.sass +19 -0
  27. data/app/assets/stylesheets/express_ui/styleguide.sass +0 -4
  28. data/app/assets/stylesheets/express_ui/templates/_content_sidebar.sass +2 -2
  29. data/app/components/code_demo.rb +2 -4
  30. data/app/controllers/express_ui/scripts_controller.rb +10 -0
  31. data/app/views/express_ui/molecules/_forms.html.erb +1 -1
  32. data/app/views/express_ui/molecules/_forms_select.html.erb +2 -2
  33. data/app/views/express_ui/molecules/_table.html.erb +0 -2
  34. data/app/views/express_ui/molecules/_table_with_filtering.html.erb +83 -54
  35. data/app/views/express_ui/scripts/_accordion.html.et +27 -0
  36. data/app/views/express_ui/scripts/_calendar.html.et +35 -0
  37. data/app/views/express_ui/scripts/_carousel.html.et +21 -0
  38. data/app/views/express_ui/scripts/_datepicker.html.et +37 -0
  39. data/app/views/express_ui/scripts/_popup.html.et +58 -0
  40. data/app/views/express_ui/scripts/_select.html.et +40 -0
  41. data/app/views/express_ui/scripts/_tabs.html.et +17 -0
  42. data/app/views/express_ui/scripts/index.html.erb +41 -0
  43. data/app/views/express_ui/shared/_header.html.erb +1 -0
  44. data/app/views/layouts/express_ui/_head.html.erb +3 -1
  45. data/config/routes.rb +1 -0
  46. data/lib/express_ui/engine.rb +5 -3
  47. data/lib/express_ui/version.rb +1 -1
  48. data/vendor/assets/javascripts/forms.js +39 -0
  49. data/vendor/assets/javascripts/ion.rangeSlider.js +2368 -0
  50. data/vendor/assets/javascripts/picker.date.js +1354 -0
  51. data/vendor/assets/javascripts/picker.js +1163 -0
  52. data/vendor/assets/stylesheets/classic.css +99 -0
  53. data/vendor/assets/stylesheets/default.css +4 -0
  54. data/vendor/assets/stylesheets/default.date.css +1 -0
  55. data/vendor/assets/stylesheets/ion.rangeSlider.css +146 -0
  56. data/vendor/assets/stylesheets/ion.rangeSlider.skinFlat.css +86 -0
  57. metadata +102 -20
  58. data/app/components/express_ui/table/express_table.rb +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6aa4f380be964035ee0c82b302506157877abb3d
4
- data.tar.gz: 83807a2e11dfb8869ecdd230178b837f0f4c0954
3
+ metadata.gz: 38f7fdbd6b91c8b15858ee9cca1a7df85f857c6d
4
+ data.tar.gz: 9c3f86b2257146e29e9416d47adc34c9ae12bb2c
5
5
  SHA512:
6
- metadata.gz: b2ff7280ae8d65dc0135e7ec8ee63d56c3f9f2986b0c2240b15e8c3c0f38ed8566e68fac88f9b854963559abfd3eeb0f8683b7ba1b028c017abcd85b473521d2
7
- data.tar.gz: a392efcc25ae1c19f4845c085225379ba0698556fc8a30eb73bd482745704ccd566c50fae0dabb4a3cebe5e2c6b7a541ba3f74552d987dfe5ab7e3e21e5cf3b1
6
+ metadata.gz: cc8489280f5068aa146edfbc03cb0686d14f4a1711e1c1859cbea77de925d460f7d43ecccc378c51b653e781e4027c4a3f1d3e9277798360f49c8c0e40ed12fe
7
+ data.tar.gz: 3a7cd9e7acfff95c3dccffb4d825709d0669dc348ccd342b4d6049276cd698f228991f1c66bc3e6891a7cabb0d7bde620c277f321aed9d1d75df3e341bf0b21d
@@ -1 +1,47 @@
1
+ //= require jquery
2
+ //= require jquery_ujs
1
3
  //= require_tree .
4
+ //= require magnific-popup
5
+ //= require select2
6
+ //= require moment
7
+ //= require fullcalendar
8
+ //= require picker
9
+ //= require picker.date
10
+ //= require forms
11
+ //= require ion.rangeSlider
12
+ //= require picker
13
+ //= require picker.date
14
+ //= require forms
15
+ //= require ion.rangeSlider
16
+
17
+ $(document).ready(function() {
18
+ $('.ae-popup-link').magnificPopup();
19
+ $('.ae-calendar').fullCalendar();
20
+ $('.ae-select').select2();
21
+ $('.ae-open-filter').click(function() {
22
+ $(this).parent().siblings( '.ae-table-filter' ).toggleClass('ae-hidden');
23
+ return false;
24
+ });
25
+ $('.ae-mega-menu-close').click(function() {
26
+ $(this).parents( '.ae-table-filter' ).toggleClass('ae-hidden');
27
+ return false;
28
+ });
29
+ $("#ae-double-slider").ionRangeSlider({
30
+ hide_min_max: true,
31
+ keyboard: true,
32
+ min: 0,
33
+ max: 5000,
34
+ from: 1000,
35
+ to: 4000,
36
+ type: 'double',
37
+ step: 1,
38
+ grid: true
39
+ });
40
+ $("#ae-single-slider").ionRangeSlider();
41
+ $('.ae-datepicker').pickadate({
42
+ weekdaysShort: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
43
+ showMonthsShort: true,
44
+ selectYears: true,
45
+ selectMonths: true
46
+ });
47
+ });
@@ -0,0 +1,6 @@
1
+ // TODO: Sidebar scripts in mobile that need to be moved to its proper JS folder
2
+ $(document).ready(function() {
3
+ $(".js-ae-show-left-sidebar").on("click", function() {
4
+ $(".js-ae-sidebar").toggle();
5
+ });
6
+ });
@@ -1,16 +1,8 @@
1
- //= require jquery
2
- //= require jquery_ujs
3
1
  //= require anchorific
4
2
  //= require resizable
5
3
 
6
-
7
4
  $(function() {
8
5
 
9
- // TODO: Sidebar scripts in mobile that need to be moved to its proper JS folder
10
- $('.js-ae-show-left-sidebar').on('click', function(){
11
- $('.js-ae-sidebar').toggle();
12
- });
13
-
14
6
  $('.ae-sidebar-right').resizable({
15
7
  handles: 'w',
16
8
  minWidth: 100,
@@ -26,7 +18,8 @@ $(function() {
26
18
  stop: function(event, ui){
27
19
  ui.element.css('left', '')
28
20
  }
29
- })
21
+ });
22
+
30
23
  $(".js-anchorific-content").anchorific({
31
24
  headers: ':header:not(.ae-demo-container :header, h4)'
32
25
  });
@@ -48,6 +41,11 @@ $(function() {
48
41
  return;
49
42
  }
50
43
 
44
+ // TODO: Sidebar scripts in mobile that need to be moved to its proper JS folder
45
+ if ($(window).width() < 768) {
46
+ $('.js-ae-sidebar').hide();
47
+ }
48
+
51
49
  $('html, body').animate({
52
50
  scrollTop: $('[id="' + $.attr($selectedLink.closest('a')[0], 'href').substr(1) + '"]').offset().top - $(".ae-header-fixed").height()
53
51
  }, 500);
@@ -80,7 +78,8 @@ $(function() {
80
78
  $parentContainer.find('.ae-tab.active-tab').removeClass('active-tab')
81
79
  $clickedTab.addClass('active-tab')
82
80
  $parentContainer.find('.ae-tab-content.active-tab').removeClass('active-tab')
83
- $parentContainer.find('#' + tabContent).addClass('active-tab')
81
+ $parentContainer.find('#' + tabContent).addClass('active-tab');
82
+ $('.ae-calendar').fullCalendar('render');
84
83
  });
85
84
  });
86
85
 
@@ -0,0 +1,3 @@
1
+ *= require magnific-popup
2
+ *= require fullcalendar
3
+ *= require select2
@@ -22,6 +22,9 @@
22
22
  &:hover
23
23
  @include easeInOut
24
24
 
25
+ .ae-hidden
26
+ display: none
27
+
25
28
  @keyframes fadeIn
26
29
  0%
27
30
  opacity: 0
@@ -6,10 +6,17 @@
6
6
  cursor: pointer
7
7
  text-align: center
8
8
 
9
- input[type="submit"]
10
- -webkit-appearance: none !important
9
+ @mixin btn-type($type)
10
+ background: $type
11
+ border: 1px solid $type
11
12
 
12
- .ae-btn, input[type="submit"]
13
+ &.ae-btn-border
14
+ color: $type !important
15
+
16
+ &:active, &:focus
17
+ @include box-shadow(inset, 2px, 2px, 2px, darken($type, 20%))
18
+
19
+ .ae-btn
13
20
  @include easeInOut
14
21
  @include button
15
22
  display: inline-block
@@ -30,6 +37,8 @@ input[type="submit"]
30
37
  @include box-shadow(inset, 2px, 2px, 2px, darken($secondary-color, 5%))
31
38
  outline-color: $primary-color
32
39
 
40
+ .ae-btn-block
41
+ display: block
33
42
 
34
43
  .ae-btn-default
35
44
  background-color: $secondary-color
@@ -40,34 +49,19 @@ input[type="submit"]
40
49
  @include box-shadow(inset, 2px, 2px, 2px, darken($secondary-color, 20%))
41
50
 
42
51
  .ae-btn-primary
43
- background-color: $primary-color
44
- border: 1px solid $primary-color
52
+ @include btn-type($primary-color)
45
53
  color: #fff !important
46
54
 
47
55
  *
48
56
  color: #fff !important
49
57
 
50
- &.ae-btn-border
51
- color: $primary-color !important
52
-
53
-
54
- &:active, &:focus
55
- @include box-shadow(inset, 2px, 2px, 2px, darken($primary-color, 20%))
56
-
57
58
  .ae-btn-secondary
58
- background-color: $secondary-color
59
- border: 1px solid $secondary-color
59
+ @include btn-type($secondary-color)
60
60
  color: #fff !important
61
61
 
62
62
  *
63
63
  color: #fff !important
64
64
 
65
- &.ae-btn-border
66
- color: $secondary-color !important
67
-
68
- &:active, &:focus
69
- @include box-shadow(inset, 2px, 2px, 2px, darken($secondary-color, 5%))
70
-
71
65
  .ae-btn-success
72
66
  background-color: $success
73
67
  border: 1px solid $success
@@ -90,26 +84,39 @@ input[type="submit"]
90
84
  &:active, &:focus
91
85
  @include box-shadow(inset, 2px, 2px, 2px, darken($cancelled, 20%))
92
86
 
87
+ .ae-btn-increment
88
+ cursor: pointer
89
+ min-width: 26px
90
+
91
+ .ae-selected
92
+ @include btn-type($primary-color)
93
+ color: #fff !important
94
+
95
+ *
96
+ color: #fff !important
93
97
 
94
98
  .ae-btn-sm
95
- padding-top: 0.25em !important
96
- padding-bottom: 0.25em !important
99
+ padding:
100
+ top: rem(8px)
101
+ bottom: rem(8px)
97
102
  @include font-size(16px, 16px)
98
103
  max-height: 30px
99
104
  line-height: 100%
100
105
 
101
106
  .ae-btn-md
102
- padding-top: 0.45em !important
103
- padding-bottom: 0.45em !important
107
+ padding:
108
+ top: rem(16px)
109
+ bottom: rem(16px)
104
110
  @include font-size(18px, 18px)
105
- max-height: 34px
111
+ max-height: 40px
106
112
  line-height: 100%
107
113
 
108
114
  .ae-btn-lg
109
- padding-top: 1em !important
110
- padding-bottom: 1em !important
115
+ padding:
116
+ top: rem(22px)
117
+ bottom: rem(22px)
111
118
  @include font-size(20px, 20px)
112
- max-height: 40px
119
+ max-height: 50px
113
120
  line-height: 100%
114
121
 
115
122
  .ae-btn-border
@@ -1,17 +1,17 @@
1
1
  @mixin h1
2
- @include font-size(32px, 24px)
2
+ @include font-size(32px, 32px)
3
3
 
4
4
  @mixin h2
5
- @include font-size(28px, 20px)
5
+ @include font-size(28px, 28px)
6
6
 
7
7
  @mixin h3
8
- @include font-size(22px, 18px)
8
+ @include font-size(24px, 24px)
9
9
 
10
10
  @mixin h4
11
- @include font-size(16px, 16px)
11
+ @include font-size(20px, 20px)
12
12
 
13
13
  @mixin h5
14
- @include font-size(13px, 13px)
14
+ @include font-size(16px, 16px)
15
15
 
16
16
  @mixin h6
17
17
  @include font-size(12px, 12px)
@@ -1,3 +1,3 @@
1
1
  .fa
2
- @include font-size(14px, 16px)
2
+ @include font-size(20px, 20px)
3
3
  color: $icon-color
@@ -6,6 +6,9 @@
6
6
  @mixin header-font
7
7
  font-family: 'Lato', sans-serif
8
8
 
9
+ @mixin icon-font
10
+ font-family: FontAwesome
11
+
9
12
  @function rem($size)
10
13
  $remSize: $size / 16px
11
14
  @return #{$remSize}rem
@@ -14,13 +17,13 @@
14
17
  font-size: rem($size)
15
18
 
16
19
  @include tablet
17
- font-size: rem($large_size)
20
+ font-size: rem($large_size*1.3)
18
21
 
19
22
  @include desktop
20
- font-size: rem($large_size/1.4)
23
+ font-size: rem($large_size*1.5)
21
24
 
22
25
  @mixin p
23
- @include font-size(18px, 14px)
26
+ @include font-size(18px, 24px)
24
27
  font-weight: normal
25
28
 
26
29
  .ae-u-text-left
@@ -20,6 +20,8 @@ $border-light: #eaeaea
20
20
 
21
21
  $body-color: #666
22
22
 
23
+ $body-background: #fff
24
+
23
25
  $heading-color: #333
24
26
 
25
27
  $link-color: $primary-color
@@ -48,7 +50,9 @@ $line-height: 14px
48
50
 
49
51
  $font-size-root: 62.5%
50
52
 
51
- $header-max-height: 3.5em
53
+ $header-height: 55px
54
+
55
+ $header-max-height: 60px
52
56
 
53
57
  $container-padding: 0.25em
54
58
  // Because all browsers have a default font-size of 16px, setting the font-size to 62.5% on the html element gives it a font-size of 10px (10 / 16 * 100 = 62.5)
@@ -29,4 +29,27 @@
29
29
  .ae-container-table-cell
30
30
  @include container-table-cell
31
31
 
32
+ .ae-grid
33
+ float: left
34
+
35
+ .ae-content
36
+ @include tablet-max
37
+ padding-left: 0.5em !important
38
+ padding-right: 0.5em !important
39
+ &-container
40
+ width: 100%
32
41
 
42
+ &-one-half
43
+ .ae-grid
44
+ width: (100%/2)
45
+ &-one-third
46
+ .ae-grid
47
+ width: (100%/3)
48
+ &-one-fourth
49
+ .ae-grid
50
+ width: (100%/4)
51
+
52
+ .ae-content
53
+ @include tablet-max
54
+ padding-left: 0.5em !important
55
+ padding-right: 0.5em !important
@@ -7,6 +7,9 @@
7
7
  @include tablet-max
8
8
  top: 34%
9
9
 
10
+ @include desktop
11
+ top: 30%
12
+
10
13
  .ae-form-horizontal
11
14
  @include tablet
12
15
  .ae-form-field
@@ -54,13 +57,35 @@
54
57
 
55
58
  .ae-actions
56
59
  width: auto
60
+ margin: 10px 0 10px 10px
61
+
62
+ .ae-btn
63
+ margin: 0
64
+
65
+ .ae-form-increment
66
+ display: flex
67
+ flex-flow: row nowrap
68
+ align-items: stretch
69
+
70
+ & + &
71
+ margin-top: 1em
72
+
73
+ .ae-form-field
74
+ position: relative
75
+
76
+ .ae-text-field
77
+ width: 70px
57
78
 
58
79
  .ae-actions
80
+ width: auto
59
81
  margin: 10px 0 10px 10px
60
82
 
61
83
  .ae-btn
62
84
  margin: 0
63
85
 
86
+ @include tablet-max
87
+ width: auto
88
+ display: inline-block
64
89
 
65
90
  .ae-search-form
66
91
  .ae-text-field
@@ -80,7 +105,11 @@
80
105
  position: relative
81
106
 
82
107
  .ae-text-field
83
- padding-left: 2em
108
+ padding-left: 3em
109
+
110
+ @include desktop
111
+ padding-left: 3em
112
+
84
113
 
85
114
  & > div
86
115
  width: auto
@@ -23,6 +23,12 @@ input[type="date"]
23
23
 
24
24
  .ae-form-field
25
25
 
26
+ .fa
27
+ @include font-size(28px, 28px)
28
+
29
+ @include desktop
30
+ font-size: 22px
31
+
26
32
  input[type="range"]
27
33
  @include box-shadow(0, 0, 0, 0)
28
34
 
@@ -75,24 +81,24 @@ input[type="date"]
75
81
 
76
82
  .ae-input-sm
77
83
  @include font-size(16px, 16px)
78
- padding: rem(3px)
84
+ padding: rem(5px)
79
85
 
80
86
  @include desktop
81
- padding: rem(2px)
87
+ padding: rem(6px)
82
88
 
83
89
  .ae-input-md
84
90
  @include font-size(18px, 18px)
85
- padding: rem(12px)
91
+ padding: rem(14px)
86
92
 
87
93
  @include desktop
88
- padding: rem(5px)
94
+ padding: rem(12px)
89
95
 
90
96
  .ae-input-lg
91
97
  @include font-size(20px, 20px)
92
- padding: rem(16px)
98
+ padding: rem(20px)
93
99
 
94
100
  @include desktop
95
- padding: rem(7px)
101
+ padding: rem(18px)
96
102
 
97
103
  label
98
104
  line-height: 1.4
@@ -125,9 +131,10 @@ label
125
131
  display: none
126
132
  &-label
127
133
  border: 1px solid $border-light
128
- border-radius: 20px
134
+ @include border-radius(20px)
129
135
  cursor: pointer
130
136
  display: block
137
+ padding: 0
131
138
  overflow: hidden
132
139
  &-inner
133
140
  display: block
@@ -155,7 +162,7 @@ label
155
162
  &-button
156
163
  background: #FFFFFF
157
164
  border: 1px solid $border-dark
158
- border-radius: 20px
165
+ @include border-radius(20px)
159
166
  bottom: 0
160
167
  display: block
161
168
  margin: 5px
@@ -30,12 +30,31 @@ nav
30
30
  @include button
31
31
 
32
32
  .ae-nav-main
33
+ overflow: scroll
34
+ white-space: nowrap
35
+ float: none
36
+
33
37
  @include tablet-max
38
+ background: $gray-background
39
+ border-top: 1px solid $border-light
40
+
41
+ .ae-list-inline .ae-nav-item
42
+ display: inline-block
34
43
  float: none
35
44
 
36
- .ae-list-inline .ae-nav-item
37
- display: inline-block
38
- float: none
45
+ @include tablet
46
+ text-align: right
47
+
48
+ .ae-nav-item
49
+ float: left
50
+
51
+ @include tablet-max
52
+ border-right: 1px solid $border-light
53
+ padding: 0.5em
54
+
55
+ .ae-nav-item.active
56
+ @include tablet-max
57
+ background: $body-background
39
58
 
40
59
  .ae-breadcrumbs
41
60
  .ae-nav-item
@@ -70,7 +89,7 @@ nav
70
89
 
71
90
 
72
91
  [class*="ae-nav-mega-menu-list"]
73
- max-height: 140px
92
+ min-height: 140px
74
93
  overflow: scroll
75
94
 
76
95
  .ae-nav-mega-menu-list-icons
@@ -84,6 +103,11 @@ nav
84
103
  padding: 0.5em
85
104
  text-align: left
86
105
 
106
+ &-inline
107
+ a:link
108
+ display: inline-block !important
109
+
110
+
87
111
  a:link
88
112
  display: block
89
113
 
@@ -92,4 +116,5 @@ nav
92
116
  vertical-align: middle
93
117
  margin-right: 1em
94
118
  margin-bottom: 0
119
+ margin-top: 0
95
120
  width: 25px
@@ -1,7 +1,6 @@
1
1
  table
2
2
  width: 100%
3
3
  box-shadow: none
4
- margin: 1em 0
5
4
  border-collapse: collapse
6
5
 
7
6
  .ae-table-fixed-width
@@ -15,7 +14,7 @@ table
15
14
  word-wrap: break-word
16
15
  text-align: left
17
16
  text-transform: uppercase
18
- @include font-size(10px, 12px)
17
+ @include font-size(20px, 20px)
19
18
  vertical-align: top
20
19
 
21
20
  a:link, a:visited
@@ -65,27 +64,19 @@ table
65
64
 
66
65
  .ae-table-filter
67
66
  background-color: $gray-background
67
+ animation: fadeIn 0.5s linear
68
68
 
69
- @include tablet
70
- display: flex
71
- flex-flow: row
72
- flex-wrap: nowrap
73
- justify-content: flex-start
74
- align-items: stretch
75
- align-content: stretch
76
-
77
- *
78
- display: flex
79
- flex-direction: row
80
- flex-wrap: nowrap
81
- justify-content: flex-start
82
- align-items: center
83
- align-content: stretch
69
+ .select2
70
+ width: 100% !important
84
71
 
85
72
  .ae-filter
86
- // border-right: 1px solid $border-light
87
73
  padding: 0 $container-padding*2
88
74
 
75
+ .ae-filter-heading
76
+ margin-top: 0
77
+ margin-bottom: 0
78
+ padding-top: 0
79
+
89
80
  & + table
90
81
  margin-top: 0
91
82
  border-top: 1px solid $border-light
@@ -1,5 +1,6 @@
1
1
  header
2
2
  background: $gray-background
3
+ height: $header-height
3
4
  max-height: $header-max-height
4
5
  @include box-shadow(0, 0, 3px, 0, rgba($border-dark, 0.5))
5
6
  @include clearfix
@@ -9,13 +10,16 @@ header
9
10
 
10
11
  @include tablet-max
11
12
  text-align: center
12
- height: $header-max-height*2
13
+ height: $header-max-height
13
14
  max-height: 100%
14
15
 
15
16
  .ae-logo
16
17
  float: left
17
18
  padding: 0.25em 0.5em
18
19
 
20
+ @include tablet
21
+ padding: 1em 0.5em
22
+
19
23
  img
20
24
  margin: 0
21
25
 
@@ -42,7 +46,7 @@ header
42
46
 
43
47
 
44
48
  & + [class*="ae-template-"], & + [class*="ae-template-master-"]
45
- margin-top: ($header-max-height/2.75)
49
+ margin-top: $header-height
46
50
 
47
51
  @include tablet-max
48
52
  z-index: 99
@@ -20,10 +20,11 @@
20
20
  @include tablet-max
21
21
  position: fixed
22
22
  left: 10px
23
- top: $header-max-height*2.2
23
+ top: $header-max-height
24
24
  right: 10px
25
25
  z-index: 99
26
26
  margin-right: 0
27
+ margin-top: 20px
27
28
 
28
29
  .ae-sidebar-left
29
30
  background-color: $primary-color
@@ -0,0 +1,39 @@
1
+ .ae-accordion-trigger
2
+ background: $primary-color
3
+ display: block
4
+ position: relative
5
+ text-align: left
6
+ margin-right: 0
7
+
8
+ &:not(.collapsed)
9
+ @include border-radius(3px 3px 0 0 !important)
10
+
11
+ &:not(.collapsed):after
12
+ content: "\f106"
13
+ @include icon-font
14
+
15
+ &.collapsed:after
16
+ content: "\f107"
17
+ @include icon-font
18
+
19
+ &:after
20
+ display: block
21
+ position: absolute
22
+ right: 16px
23
+ top: 50%
24
+ transform: translateY(-50%)
25
+ font-size: 2em
26
+
27
+ .ae-accordion-content
28
+ padding: 0 1em 1em 1em
29
+ border: 1px solid $border-light
30
+ border-top: 0
31
+
32
+ &.collapsed
33
+ display: none
34
+
35
+ @include tablet
36
+ margin-bottom: 1em
37
+
38
+ @include tablet-max
39
+ margin-bottom: 0.5em