alchemy_cms 4.1.2 → 4.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/Bug_report.md +0 -5
  3. data/.rubocop.yml +4 -1
  4. data/.travis.yml +3 -3
  5. data/CHANGELOG.md +29 -10
  6. data/Gemfile +5 -7
  7. data/README.md +114 -62
  8. data/Rakefile +2 -2
  9. data/alchemy_cms.gemspec +5 -5
  10. data/app/assets/images/alchemy/icon.svg +1 -1
  11. data/app/assets/javascripts/alchemy/admin.js +2 -0
  12. data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +0 -24
  13. data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +11 -9
  14. data/app/assets/javascripts/alchemy/alchemy.dragndrop.js.coffee +7 -24
  15. data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +9 -8
  16. data/app/assets/javascripts/alchemy/alchemy.fixed_elements.js +38 -0
  17. data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +2 -4
  18. data/app/assets/javascripts/alchemy/alchemy.translations.js.coffee +1 -1
  19. data/app/assets/stylesheets/alchemy/_mixins.scss +2 -1
  20. data/app/assets/stylesheets/alchemy/_variables.scss +7 -2
  21. data/app/assets/stylesheets/alchemy/admin.scss +2 -1
  22. data/app/assets/stylesheets/alchemy/archive.scss +18 -4
  23. data/app/assets/stylesheets/alchemy/buttons.scss +1 -1
  24. data/app/assets/stylesheets/alchemy/dialogs.scss +1 -1
  25. data/app/assets/stylesheets/alchemy/elements.scss +154 -90
  26. data/app/assets/stylesheets/alchemy/filter_field.scss +30 -0
  27. data/app/assets/stylesheets/alchemy/flatpickr.scss +839 -0
  28. data/app/assets/stylesheets/alchemy/forms.scss +5 -1
  29. data/app/assets/stylesheets/alchemy/frame.scss +6 -14
  30. data/app/assets/stylesheets/alchemy/navigation.scss +109 -98
  31. data/app/assets/stylesheets/alchemy/search.scss +11 -29
  32. data/app/assets/stylesheets/alchemy/tables.scss +0 -23
  33. data/app/assets/stylesheets/alchemy/tags.scss +4 -27
  34. data/app/assets/stylesheets/alchemy/toolbar.scss +12 -2
  35. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +4 -33
  36. data/app/controllers/alchemy/admin/attachments_controller.rb +1 -12
  37. data/app/controllers/alchemy/admin/contents_controller.rb +2 -24
  38. data/app/controllers/alchemy/admin/elements_controller.rb +11 -49
  39. data/app/controllers/alchemy/admin/pages_controller.rb +1 -1
  40. data/app/controllers/alchemy/admin/pictures_controller.rb +1 -14
  41. data/app/controllers/alchemy/api/contents_controller.rb +1 -1
  42. data/app/controllers/alchemy/api/elements_controller.rb +1 -1
  43. data/app/controllers/alchemy/api/pages_controller.rb +1 -1
  44. data/app/controllers/concerns/alchemy/admin/archive_overlay.rb +20 -0
  45. data/app/helpers/alchemy/admin/base_helper.rb +8 -18
  46. data/app/helpers/alchemy/admin/elements_helper.rb +55 -85
  47. data/app/helpers/alchemy/admin/pictures_helper.rb +0 -23
  48. data/app/helpers/alchemy/elements_helper.rb +80 -120
  49. data/app/helpers/alchemy/pages_helper.rb +5 -24
  50. data/app/models/alchemy/content.rb +0 -1
  51. data/app/models/alchemy/content/factory.rb +33 -57
  52. data/app/models/alchemy/element.rb +46 -66
  53. data/app/models/alchemy/element/element_contents.rb +2 -2
  54. data/app/models/alchemy/page.rb +34 -4
  55. data/app/models/alchemy/page/page_elements.rb +30 -122
  56. data/app/serializers/alchemy/attachment_serializer.rb +0 -2
  57. data/app/serializers/alchemy/content_serializer.rb +0 -2
  58. data/app/serializers/alchemy/element_serializer.rb +0 -3
  59. data/app/serializers/alchemy/essence_boolean_serializer.rb +0 -2
  60. data/app/serializers/alchemy/essence_date_serializer.rb +0 -2
  61. data/app/serializers/alchemy/essence_file_serializer.rb +0 -2
  62. data/app/serializers/alchemy/essence_html_serializer.rb +0 -2
  63. data/app/serializers/alchemy/essence_link_serializer.rb +0 -2
  64. data/app/serializers/alchemy/essence_picture_serializer.rb +0 -2
  65. data/app/serializers/alchemy/essence_richtext_serializer.rb +0 -2
  66. data/app/serializers/alchemy/essence_select_serializer.rb +0 -2
  67. data/app/serializers/alchemy/essence_text_serializer.rb +0 -2
  68. data/app/serializers/alchemy/legacy_element_serializer.rb +0 -3
  69. data/app/serializers/alchemy/page_serializer.rb +2 -8
  70. data/app/serializers/alchemy/page_tree_serializer.rb +1 -1
  71. data/app/serializers/alchemy/picture_serializer.rb +0 -2
  72. data/app/views/alchemy/admin/clipboard/index.html.erb +2 -2
  73. data/app/views/alchemy/admin/clipboard/insert.js.erb +9 -12
  74. data/app/views/alchemy/admin/contents/create.js.erb +4 -30
  75. data/app/views/alchemy/admin/elements/_element.html.erb +27 -12
  76. data/app/views/alchemy/admin/elements/_element_toolbar.html.erb +1 -1
  77. data/app/views/alchemy/admin/elements/_new_element_form.html.erb +0 -10
  78. data/app/views/alchemy/admin/elements/create.js.erb +12 -12
  79. data/app/views/alchemy/admin/elements/fold.js.erb +1 -1
  80. data/app/views/alchemy/admin/elements/index.html.erb +20 -19
  81. data/app/views/alchemy/admin/elements/publish.js.erb +5 -0
  82. data/app/views/alchemy/admin/elements/trash.js.erb +4 -1
  83. data/app/views/alchemy/admin/essence_pictures/assign.js.erb +0 -7
  84. data/app/views/alchemy/admin/essence_pictures/destroy.js.erb +0 -22
  85. data/app/views/alchemy/admin/pages/_publication_fields.html.erb +2 -4
  86. data/app/views/alchemy/admin/pages/edit.html.erb +1 -1
  87. data/app/views/alchemy/admin/pages/index.html.erb +14 -10
  88. data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +1 -1
  89. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +1 -1
  90. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +7 -5
  91. data/app/views/alchemy/admin/partials/_routes.html.erb +0 -1
  92. data/app/views/alchemy/admin/partials/_search_form.html.erb +6 -4
  93. data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +6 -3
  94. data/app/views/alchemy/admin/pictures/index.html.erb +1 -1
  95. data/app/views/alchemy/admin/trash/index.html.erb +8 -7
  96. data/app/views/alchemy/elements/_editor_not_found.html.erb +1 -1
  97. data/app/views/alchemy/essences/_essence_picture_editor.html.erb +4 -19
  98. data/app/views/layouts/alchemy/admin.html.erb +1 -0
  99. data/bin/rspec +0 -5
  100. data/config/alchemy/config.yml +3 -0
  101. data/config/brakeman.ignore +1 -1
  102. data/config/locales/alchemy.en.yml +6 -12
  103. data/config/routes.rb +1 -5
  104. data/db/migrate/20180226123013_alchemy_four_point_zero.rb +0 -29
  105. data/db/migrate/20180519204655_add_fixed_to_alchemy_elements.rb +6 -0
  106. data/lib/alchemy/admin/locale.rb +1 -1
  107. data/lib/alchemy/cache_digests/template_tracker.rb +4 -27
  108. data/lib/alchemy/elements_finder.rb +111 -0
  109. data/lib/alchemy/errors.rb +0 -4
  110. data/lib/alchemy/modules.rb +49 -18
  111. data/lib/alchemy/tasks/tidy.rb +3 -40
  112. data/lib/alchemy/test_support/controller_requests.rb +1 -1
  113. data/lib/alchemy/test_support/essence_shared_examples.rb +1 -1
  114. data/lib/alchemy/test_support/factories/attachment_factory.rb +5 -3
  115. data/lib/alchemy/test_support/factories/content_factory.rb +4 -4
  116. data/lib/alchemy/test_support/factories/dummy_user_factory.rb +5 -5
  117. data/lib/alchemy/test_support/factories/element_factory.rb +12 -7
  118. data/lib/alchemy/test_support/factories/essence_text_factory.rb +1 -1
  119. data/lib/alchemy/test_support/factories/language_factory.rb +13 -13
  120. data/lib/alchemy/test_support/factories/page_factory.rb +18 -17
  121. data/lib/alchemy/test_support/factories/picture_factory.rb +6 -4
  122. data/lib/alchemy/test_support/factories/site_factory.rb +6 -6
  123. data/lib/alchemy/tinymce.rb +1 -1
  124. data/lib/alchemy/upgrader/four_point_two.rb +68 -0
  125. data/lib/alchemy/upgrader/tasks/cells_migration.rb +41 -0
  126. data/lib/alchemy/upgrader/tasks/cells_upgrader.rb +146 -0
  127. data/lib/alchemy/upgrader/tasks/picture_gallery_migration.rb +65 -0
  128. data/lib/alchemy/upgrader/tasks/picture_gallery_upgrader.rb +195 -0
  129. data/lib/alchemy/version.rb +1 -1
  130. data/lib/alchemy_cms.rb +1 -0
  131. data/lib/rails/generators/alchemy/elements/elements_generator.rb +1 -0
  132. data/lib/rails/generators/alchemy/elements/templates/editor.html.erb +0 -3
  133. data/lib/rails/generators/alchemy/elements/templates/editor.html.haml +0 -3
  134. data/lib/rails/generators/alchemy/elements/templates/editor.html.slim +0 -3
  135. data/lib/rails/generators/alchemy/elements/templates/view.html.erb +3 -14
  136. data/lib/rails/generators/alchemy/elements/templates/view.html.haml +3 -10
  137. data/lib/rails/generators/alchemy/elements/templates/view.html.slim +3 -10
  138. data/lib/tasks/alchemy/tidy.rake +1 -23
  139. data/lib/tasks/alchemy/upgrade.rake +44 -1
  140. data/vendor/assets/javascripts/flatpickr/flatpickr.min.js +2 -0
  141. data/vendor/assets/javascripts/tinymce/license.txt +0 -0
  142. data/vendor/assets/javascripts/tinymce/tinymce.min.js +2 -2
  143. metadata +25 -31
  144. data/app/assets/stylesheets/alchemy/jquery.datetimepicker.scss +0 -478
  145. data/app/models/alchemy/cell.rb +0 -95
  146. data/app/models/alchemy/page/page_cells.rb +0 -69
  147. data/app/serializers/alchemy/cell_serializer.rb +0 -19
  148. data/app/views/alchemy/admin/contents/new.html.erb +0 -11
  149. data/app/views/alchemy/admin/contents/order.js.erb +0 -3
  150. data/app/views/alchemy/admin/elements/_add_picture.html.erb +0 -14
  151. data/app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb +0 -24
  152. data/bin/spring +0 -16
  153. data/lib/alchemy/test_support/factories/cell_factory.rb +0 -9
  154. data/vendor/assets/javascripts/date-formatter.js +0 -161
  155. data/vendor/assets/javascripts/jquery_plugins/jquery.datetimepicker.full.min.js +0 -2
@@ -160,10 +160,14 @@ form {
160
160
 
161
161
  .control_group {
162
162
  width: $form-right-width;
163
- padding-top: 0.6em;
163
+ padding-top: $default-margin;
164
164
  float: right;
165
165
  }
166
166
 
167
+ .check_boxes .control_group {
168
+ padding-top: 0.6em;
169
+ }
170
+
167
171
  .input .hint {
168
172
  @include form-hint;
169
173
  margin-left: $form-left-width;
@@ -82,24 +82,16 @@ div#overlay_text_box {
82
82
  }
83
83
 
84
84
  #main_content {
85
- padding: 84px 8px 8px $main-menu-width + 10px;
85
+ padding-top: 84px;
86
+ padding-right: 8px;
87
+ padding-bottom: 8px;
88
+ padding-left: $collapsed-main-menu-width + 8px;
86
89
  z-index: 0;
87
90
  width: 100%;
88
91
  height: 100%;
89
- }
90
-
91
- #archive_all {
92
- height: 100%;
93
-
94
- &.with_tag_filter {
95
92
 
96
- table {
97
- padding-right: 242px;
98
- }
99
-
100
- > .info {
101
- margin-right: 242px;
102
- }
93
+ @media screen and (min-width: $large-screen-break-point) {
94
+ padding-left: $main-menu-width + 8px;
103
95
  }
104
96
  }
105
97
 
@@ -1,15 +1,17 @@
1
1
  #top_menu {
2
2
  position: fixed;
3
3
  top: 0;
4
- margin-left: $main-menu-width;
5
- padding-right: $main-menu-width;
4
+ margin-left: $collapsed-main-menu-width;
5
+ padding-right: $collapsed-main-menu-width;
6
6
  z-index: 20;
7
7
  width: 100%;
8
8
  @extend .disable-user-select;
9
9
 
10
- .collapsed-menu & {
11
- margin-left: $collapsed-main-menu-width;
12
- padding-right: $collapsed-main-menu-width;
10
+ @media screen and (min-width: $large-screen-break-point) {
11
+ body:not(.collapsed-menu) & {
12
+ margin-left: $main-menu-width;
13
+ padding-right: $main-menu-width;
14
+ }
13
15
  }
14
16
  }
15
17
 
@@ -19,68 +21,27 @@
19
21
  position: fixed;
20
22
  top: 0;
21
23
  left: 0;
22
- width: $main-menu-width;
24
+ width: $collapsed-main-menu-width;
23
25
  background-color: $main-menu-bg-color;
24
26
  @extend .disable-user-select;
25
27
 
26
- .collapsed-menu & {
27
- width: $collapsed-main-menu-width;
28
-
29
- .main_navi_entry.has_sub_navigation label {
30
- display: none;
31
- }
32
-
33
- label {
34
- visibility: hidden;
35
- opacity: 0;
36
- background-color: $main-menu-active-bg-color;
37
- transition: opacity $transition-duration $transition-easing;
38
- }
39
-
40
- .main_navi_entry:not(.has_sub_navigation),
41
- #logout {
42
-
43
- &:hover label {
44
- visibility: visible;
45
- opacity: 1;
46
- }
47
-
48
- label {
49
- position: absolute;
50
- top: 0;
51
- left: $collapsed-main-menu-width - 1;
52
- width: $main-menu-width + 1;
53
- padding-left: 4*$default-padding;
54
- }
28
+ @media screen and (min-width: $large-screen-break-point) {
29
+ body:not(.collapsed-menu) & {
30
+ width: $main-menu-width;
55
31
  }
56
32
  }
57
-
58
- label {
59
- vertical-align: middle;
60
- padding-left: $default-padding;
61
- cursor: pointer;
62
- @include truncate($main-menu-entry-max-width);
63
- }
64
-
65
- img, .icon {
66
- width: 24px;
67
- }
68
-
69
- img {
70
- border-style: none;
71
- height: 24px;
72
- vertical-align: -0.6em;
73
- }
74
-
75
- .icon {
76
- vertical-align: -0.15em;
77
- color: inherit;
78
- }
79
33
  }
80
34
 
81
35
  #main_navi {
36
+ max-height: 100vh;
82
37
  padding-top: 28px;
83
38
  padding-bottom: 80px;
39
+
40
+ @media screen and (max-width: $medium-screen-break-point) {
41
+ overflow-x: hidden;
42
+ overflow-y: auto;
43
+ -webkit-overflow-scrolling: touch;
44
+ }
84
45
  }
85
46
 
86
47
  .main_navi_entry {
@@ -94,14 +55,10 @@
94
55
  &:hover {
95
56
  background-color: $main-menu-active-bg-color;
96
57
 
97
- &:not(.active),
98
- .collapsed-menu & {
99
-
100
- .sub_navigation {
101
- visibility: visible;
102
- opacity: 1;
103
- background-color: $main-menu-active-bg-color;
104
- }
58
+ .sub_navigation {
59
+ visibility: visible;
60
+ opacity: 1;
61
+ background-color: $main-menu-active-bg-color;
105
62
  }
106
63
  }
107
64
 
@@ -123,6 +80,64 @@
123
80
  }
124
81
  }
125
82
 
83
+ label {
84
+ position: absolute;
85
+ top: 0;
86
+ left: $collapsed-main-menu-width - 1;
87
+ width: auto;
88
+ padding-left: 4*$default-padding;
89
+ padding-right: 4*$default-padding;
90
+ visibility: hidden;
91
+ opacity: 0;
92
+ background-color: $main-menu-active-bg-color;
93
+ transition: opacity $transition-duration $transition-easing;
94
+ vertical-align: middle;
95
+ cursor: pointer;
96
+ @include truncate($collapsed-main-menu-entry-max-width, $wrap: nowrap);
97
+
98
+ @media screen and (min-width: $large-screen-break-point) {
99
+ body:not(.collapsed-menu) & {
100
+ position: static;
101
+ visibility: visible;
102
+ max-width: $main-menu-entry-max-width;
103
+ opacity: 1;
104
+ padding-left: $default-padding;
105
+ background-color: transparent;
106
+ }
107
+ }
108
+ }
109
+
110
+ &.has_sub_navigation label {
111
+ display: none;
112
+
113
+ @media screen and (min-width: $large-screen-break-point) {
114
+ body:not(.collapsed-menu) & {
115
+ display: inline-block;
116
+ }
117
+ }
118
+ }
119
+
120
+ &:hover label {
121
+ visibility: visible;
122
+ opacity: 1;
123
+ }
124
+
125
+ img, .icon {
126
+ display: inline-block;
127
+ width: 24px;
128
+ }
129
+
130
+ img {
131
+ border-style: none;
132
+ height: 24px;
133
+ vertical-align: -0.6em;
134
+ }
135
+
136
+ .icon {
137
+ vertical-align: -0.15em;
138
+ color: inherit;
139
+ }
140
+
126
141
  a {
127
142
  display: block;
128
143
  padding-left: 3 * $default-padding;
@@ -140,47 +155,17 @@
140
155
  }
141
156
  }
142
157
 
143
- body:not(.collapsed-menu) {
144
-
145
- .subnavi_tab a {
146
- padding-top: 1px;
147
- }
148
-
149
- .main_navi_entry.active {
150
-
151
- .sub_navigation {
152
- position: static;
153
- visibility: visible;
154
- opacity: 1;
155
- width: auto;
156
- }
157
-
158
- .subnavi_tab {
159
- line-height: 24px;
160
-
161
- a {
162
- padding: 8px 4px 8px 44px;
163
- }
164
- }
165
- }
166
- }
167
-
168
158
  .sub_navigation {
169
159
  position: absolute;
170
- width: $main-menu-width;
171
- left: $main-menu-width;
160
+ width: auto;
161
+ left: $collapsed-main-menu-width;
172
162
  top: 0;
173
163
  visibility: hidden;
174
164
  opacity: 0;
175
165
  transition: opacity $transition-duration $transition-easing;
176
-
177
- .collapsed-menu & {
178
- left: $collapsed-main-menu-width;
179
- }
180
166
  }
181
167
 
182
168
  .subnavi_tab {
183
-
184
169
  &:first-of-type {
185
170
  border-left: 1px solid $main-menu-active-bg-color;
186
171
  margin-left: -1px;
@@ -188,9 +173,10 @@ body:not(.collapsed-menu) {
188
173
 
189
174
  a {
190
175
  padding-left: 4*$default-padding;
176
+ padding-right: 4*$default-padding;
191
177
  background-color: transparent;
192
178
  transition: background-color $transition-duration $transition-easing;
193
- @include truncate($main-menu-width, $display: block);
179
+ @include truncate($main-menu-width, $display: block, $wrap: nowrap);
194
180
  }
195
181
 
196
182
  &.active a, a:hover {
@@ -198,6 +184,31 @@ body:not(.collapsed-menu) {
198
184
  }
199
185
  }
200
186
 
187
+ @media screen and (min-width: $large-screen-break-point) {
188
+ body:not(.collapsed-menu) {
189
+ .sub_navigation {
190
+ left: $main-menu-width;
191
+ }
192
+
193
+ .main_navi_entry.active {
194
+ .sub_navigation {
195
+ position: static;
196
+ visibility: visible;
197
+ opacity: 1;
198
+ width: auto;
199
+ }
200
+
201
+ .subnavi_tab {
202
+ line-height: 24px;
203
+
204
+ a {
205
+ padding: 8px 4px 8px 44px;
206
+ }
207
+ }
208
+ }
209
+ }
210
+ }
211
+
201
212
  .locked_page {
202
213
  position: relative;
203
214
  float: left;
@@ -4,39 +4,20 @@
4
4
  height: 29px;
5
5
  }
6
6
 
7
- .search_field,
8
- .js_filter_field_box {
7
+ .search_field {
9
8
  .fa-search {
10
9
  position: absolute;
11
10
  left: 8px;
12
11
  top: 9px;
13
12
  }
14
- }
15
-
16
- .js_filter_field_box {
17
- position: absolute;
18
- right: 4px;
19
- top: 8px;
20
-
21
- .js_filter_field {
22
- width: 220px;
23
- text-align: left;
24
- border-radius: $default-border-radius;
25
- padding: 3px 24px 3px 28px;
26
- height: 29px;
27
- margin: 0;
28
- }
29
13
 
30
14
  label {
31
- font-size: $small-font-size;
32
15
  display: block;
33
- text-align: center;
34
- padding-top: 3px;
16
+ height: inherit;
35
17
  }
36
18
  }
37
19
 
38
- .search_field_clear,
39
- .js_filter_field_clear {
20
+ .search_field_clear {
40
21
  display: none;
41
22
  position: absolute;
42
23
  top: 7px;
@@ -50,8 +31,7 @@
50
31
  #toolbar,
51
32
  #overlay_toolbar {
52
33
 
53
- .search_form,
54
- .js_filter_field_box {
34
+ .search_form {
55
35
  position: absolute;
56
36
  top: 0;
57
37
  right: 0;
@@ -63,7 +43,7 @@
63
43
  }
64
44
 
65
45
  .search_input_field {
66
- width: 150px;
46
+ width: 0;
67
47
  height: inherit;
68
48
  border: none;
69
49
  background-color: transparentize($form-field-background-color, 0.25);
@@ -77,6 +57,10 @@
77
57
  box-shadow: none;
78
58
  -webkit-appearance: none;
79
59
 
60
+ @media screen and (min-width: $medium-screen-break-point) {
61
+ width: 150px;
62
+ }
63
+
80
64
  &:focus {
81
65
  width: 250px;
82
66
  background-color: $form-field-background-color;
@@ -88,13 +72,11 @@
88
72
  }
89
73
  }
90
74
 
91
- .search_field .icon,
92
- .js_filter_field_box .icon {
75
+ .search_field .icon {
93
76
  top: 18px;
94
77
  }
95
78
 
96
- .search_field_clear,
97
- .js_filter_field_clear {
79
+ .search_field_clear {
98
80
  top: 16px;
99
81
  }
100
82
  }
@@ -186,26 +186,3 @@ td#user_roles {
186
186
  min-width: 40%;
187
187
  }
188
188
  }
189
-
190
- .resources-table-wrapper {
191
- padding-top: 50px;
192
-
193
- table {
194
- padding-bottom: 60px;
195
- }
196
- }
197
-
198
- .resources-header {
199
- position: fixed;
200
- width: 100%;
201
- top: $top-menu-height;
202
- left: $main-menu-width + 9px;
203
- z-index: 2;
204
- margin: 0 -8px;
205
- padding: 8px 16px;
206
- background-color: $light-gray;
207
-
208
- > h2, > h3 {
209
- margin-bottom: 0;
210
- }
211
- }
@@ -23,7 +23,6 @@
23
23
  transition: background-color $transition-duration;
24
24
 
25
25
  input {
26
- width: 200px;
27
26
  background-color: transparentize($white, 0.25);
28
27
 
29
28
  &:focus {
@@ -34,14 +33,10 @@
34
33
  label { display: none }
35
34
  }
36
35
 
37
- .js_filter_field_clear {
38
- right: 4px;
39
- }
40
-
41
36
  ul {
42
37
  list-style-type: none;
43
38
  padding: 0;
44
- margin: 40px 0 4px 0;
39
+ margin: 44px 0 4px 0;
45
40
  height: 100%;
46
41
  width: 200px;
47
42
  overflow-x: hidden;
@@ -112,8 +107,9 @@
112
107
  }
113
108
 
114
109
  #tags_tag_list {
115
- text-align: left;
116
- padding-top: 5px;
110
+ .js_filter_field_box {
111
+ margin-top: 0;
112
+ }
117
113
 
118
114
  ul.tags {
119
115
  max-height: 10em;
@@ -146,25 +142,6 @@
146
142
  }
147
143
  }
148
144
  }
149
-
150
- .js_filter_field_box {
151
- position: relative;
152
- top: 0;
153
- right: 0;
154
- margin: 0;
155
-
156
- .js_filter_field {
157
- width: 100%;
158
- }
159
-
160
- label {
161
- display: none
162
- }
163
- }
164
-
165
- .js_filter_field_clear {
166
- right: 4px;
167
- }
168
145
  }
169
146
 
170
147
  .tag_list, .autocomplete_tag_list {