caboose-cms 0.9.229 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +5 -5
  2. data/app/assets/javascripts/caboose/admin.js +1 -1
  3. data/app/assets/javascripts/caboose/admin/application.js +20 -0
  4. data/app/assets/javascripts/caboose/admin_main.js +13 -3
  5. data/app/assets/javascripts/caboose/admin_media_index.js +158 -161
  6. data/app/assets/javascripts/caboose/application.js +7 -8
  7. data/app/assets/javascripts/caboose/block_content_controller_dragdrop.js +4 -60
  8. data/app/assets/javascripts/caboose/block_modal_controllers/block_dd_modal_controller.js +2 -3
  9. data/app/assets/javascripts/caboose/block_modal_controllers/media_modal_controller.js +6 -17
  10. data/app/assets/javascripts/caboose/model/all.js +1 -5
  11. data/app/assets/stylesheets/caboose/admin/_config.scss +102 -0
  12. data/app/assets/stylesheets/caboose/admin/application.css +11 -0
  13. data/app/assets/stylesheets/caboose/admin/component.css +183 -0
  14. data/app/assets/stylesheets/caboose/admin/froala.min.css +91 -0
  15. data/app/assets/stylesheets/caboose/admin/ie.scss +67 -0
  16. data/app/assets/stylesheets/caboose/admin/integrations/main.scss +6 -0
  17. data/app/assets/stylesheets/caboose/admin/integrations/shopify.scss +128 -0
  18. data/app/assets/stylesheets/caboose/admin/jquery-ui-subnav-theme.min.css +5 -0
  19. data/app/assets/stylesheets/caboose/admin/layout.scss +150 -0
  20. data/app/assets/stylesheets/caboose/admin/main.scss +34 -0
  21. data/app/assets/stylesheets/caboose/admin/modules/body.scss +176 -0
  22. data/app/assets/stylesheets/caboose/admin/modules/buttons.scss +120 -0
  23. data/app/assets/stylesheets/caboose/admin/modules/countdown.css +21 -0
  24. data/app/assets/stylesheets/caboose/admin/modules/crumbtrail.scss +80 -0
  25. data/app/assets/stylesheets/caboose/admin/modules/data_table.scss +92 -0
  26. data/app/assets/stylesheets/caboose/admin/modules/footer.scss +62 -0
  27. data/app/assets/stylesheets/caboose/admin/modules/forms.scss +72 -0
  28. data/app/assets/stylesheets/caboose/admin/modules/functions.scss +31 -0
  29. data/app/assets/stylesheets/caboose/admin/modules/grid.scss +108 -0
  30. data/app/assets/stylesheets/caboose/admin/modules/header.scss +77 -0
  31. data/app/assets/stylesheets/caboose/admin/modules/headings.scss +38 -0
  32. data/app/assets/stylesheets/caboose/admin/modules/main_nav.scss +73 -0
  33. data/app/assets/stylesheets/caboose/admin/modules/message_boxes.scss +55 -0
  34. data/app/assets/stylesheets/caboose/admin/modules/model_binder.scss +189 -0
  35. data/app/assets/stylesheets/caboose/admin/modules/navigation.scss +261 -0
  36. data/app/assets/stylesheets/caboose/admin/modules/order_bumps.scss +57 -0
  37. data/app/assets/stylesheets/caboose/admin/modules/pager.scss +34 -0
  38. data/app/assets/stylesheets/caboose/admin/modules/product_images.scss +21 -0
  39. data/app/assets/stylesheets/caboose/admin/modules/products.css +86 -0
  40. data/app/assets/stylesheets/caboose/admin/modules/search.scss +49 -0
  41. data/app/assets/stylesheets/caboose/admin/modules/selects.scss +12 -0
  42. data/app/assets/stylesheets/caboose/admin/modules/subnav_tabs.scss +34 -0
  43. data/app/assets/stylesheets/caboose/admin/modules/tabs.scss +140 -0
  44. data/app/assets/stylesheets/caboose/admin/page_edit/block_anchors.scss +48 -0
  45. data/app/assets/stylesheets/caboose/admin/page_edit/block_overlays.scss +182 -0
  46. data/app/assets/stylesheets/caboose/admin/page_edit/device_selector.scss +65 -0
  47. data/app/assets/stylesheets/caboose/admin/page_edit/froala.scss +81 -0
  48. data/app/assets/stylesheets/caboose/admin/page_edit/group_overlay.scss +115 -0
  49. data/app/assets/stylesheets/caboose/admin/page_edit/layout.scss +128 -0
  50. data/app/assets/stylesheets/caboose/admin/page_edit/main.scss +18 -0
  51. data/app/assets/stylesheets/caboose/admin/page_edit/modal.scss +11 -0
  52. data/app/assets/stylesheets/caboose/admin/page_edit/preview.scss +25 -0
  53. data/app/assets/stylesheets/caboose/admin/page_edit/publish.scss +25 -0
  54. data/app/assets/stylesheets/caboose/admin/page_edit/revisions.scss +58 -0
  55. data/app/assets/stylesheets/caboose/admin/page_edit/subnav.scss +273 -0
  56. data/app/assets/stylesheets/caboose/admin/page_edit/top_nav.scss +109 -0
  57. data/app/assets/stylesheets/caboose/admin/pages/assets_index.css +48 -0
  58. data/app/assets/stylesheets/caboose/admin/pages/block_edit_image.css.scss +386 -0
  59. data/app/assets/stylesheets/caboose/admin/pages/media_index.css.scss +300 -0
  60. data/app/assets/stylesheets/caboose/admin/pages/new_block.css +9 -0
  61. data/app/assets/stylesheets/caboose/admin/pages/page_edit.scss +960 -0
  62. data/app/assets/stylesheets/caboose/admin/pages/page_edit_content.scss +103 -0
  63. data/app/assets/stylesheets/caboose/admin/pages/pages_index.scss +79 -0
  64. data/app/assets/stylesheets/caboose/admin/pages/post_edit_content.css +46 -0
  65. data/app/assets/stylesheets/caboose/admin/print.css +3 -0
  66. data/app/assets/stylesheets/caboose/admin/slack.scss +51 -0
  67. data/app/assets/stylesheets/caboose/admin_block_edit_image.css.scss +1 -2
  68. data/app/assets/stylesheets/caboose/admin_edit_page_content_dragdrop.scss +15 -71
  69. data/app/assets/stylesheets/caboose/admin_main.css.scss +29 -25
  70. data/app/assets/stylesheets/caboose/admin_media_index.css.scss +5 -26
  71. data/app/assets/stylesheets/caboose/application.css +5 -11
  72. data/app/assets/stylesheets/caboose/login.scss +0 -1
  73. data/app/assets/stylesheets/caboose/modal_main.css +19 -21
  74. data/app/assets/stylesheets/caboose/model_binder.css +4 -13
  75. data/app/assets/stylesheets/caboose/page_bar_generator.css +1 -2
  76. data/app/controllers/caboose/admin_controller.rb +4 -3
  77. data/app/controllers/caboose/application_controller.rb +19 -16
  78. data/app/controllers/caboose/assets_controller.rb +65 -0
  79. data/app/controllers/caboose/block_types_controller.rb +6 -8
  80. data/app/controllers/caboose/cart_controller.rb +2 -2
  81. data/app/controllers/caboose/fonts_controller.rb +2 -139
  82. data/app/controllers/caboose/invoices_controller.rb +4 -5
  83. data/app/controllers/caboose/login_logs_controller.rb +7 -5
  84. data/app/controllers/caboose/media_categories_controller.rb +2 -16
  85. data/app/controllers/caboose/media_controller.rb +11 -14
  86. data/app/controllers/caboose/pages_controller.rb +42 -104
  87. data/app/controllers/caboose/posts_controller.rb +7 -53
  88. data/app/controllers/caboose/products_controller.rb +1 -1
  89. data/app/controllers/caboose/sites_controller.rb +6 -25
  90. data/app/controllers/caboose/sns_controller.rb +3 -3
  91. data/app/controllers/caboose/themes_controller.rb +0 -30
  92. data/app/controllers/caboose/users_controller.rb +10 -17
  93. data/app/controllers/caboose/variants_controller.rb +9 -9
  94. data/app/models/caboose/ab_variant.rb +1 -1
  95. data/app/models/caboose/asset.rb +23 -0
  96. data/app/models/caboose/asset_manager.rb +92 -0
  97. data/app/models/caboose/asset_manifest.rb +91 -0
  98. data/app/models/caboose/block.rb +24 -100
  99. data/app/models/caboose/block_cache.rb +105 -0
  100. data/app/models/caboose/block_cache_file.rb +22 -0
  101. data/app/models/caboose/block_cache_image.rb +53 -0
  102. data/app/models/caboose/block_type.rb +3 -4
  103. data/app/models/caboose/block_type_category.rb +2 -2
  104. data/app/models/caboose/block_type_parser.rb +1 -1
  105. data/app/models/caboose/block_type_source.rb +2 -2
  106. data/app/models/caboose/calendar_event_group.rb +2 -2
  107. data/app/models/caboose/category.rb +2 -2
  108. data/app/models/caboose/comment_routes.rb +8 -7
  109. data/app/models/caboose/core_plugin.rb +3 -4
  110. data/app/models/caboose/export.rb +1 -1
  111. data/app/models/caboose/font.rb +2 -7
  112. data/app/models/caboose/font_variant.rb +0 -12
  113. data/app/models/caboose/invoice.rb +14 -14
  114. data/app/models/caboose/line_item.rb +4 -4
  115. data/app/models/caboose/media.rb +4 -15
  116. data/app/models/caboose/media_category.rb +7 -5
  117. data/app/models/caboose/modification.rb +2 -2
  118. data/app/models/caboose/page.rb +54 -325
  119. data/app/models/caboose/page_bar_generator.rb +10 -20
  120. data/app/models/caboose/page_cache.rb +12 -0
  121. data/app/models/caboose/page_cacher.rb +137 -0
  122. data/app/models/caboose/post.rb +8 -108
  123. data/app/models/caboose/product.rb +5 -5
  124. data/app/models/caboose/product_image.rb +1 -1
  125. data/app/models/caboose/role.rb +2 -2
  126. data/app/models/caboose/schema.rb +72 -73
  127. data/app/models/caboose/site.rb +1 -203
  128. data/app/models/caboose/theme.rb +5 -70
  129. data/app/views/caboose/admin/_content.html.erb +44 -0
  130. data/app/views/caboose/admin/_fonts.html.erb +47 -0
  131. data/app/views/caboose/admin/_footer.html.erb +1 -0
  132. data/app/views/caboose/admin/_header.html.erb +12 -0
  133. data/app/views/caboose/admin/_icons.html.erb +6 -0
  134. data/app/views/caboose/admin/_mobile_navigation.html.erb +22 -0
  135. data/app/views/caboose/admin/_post.html.erb +74 -0
  136. data/app/views/caboose/admin/index.html.erb +33 -36
  137. data/app/views/caboose/block_types/admin_edit.html.erb +8 -6
  138. data/app/views/caboose/blocks/_file.html.erb +2 -2
  139. data/app/views/caboose/blocks/_ga.html.erb +2 -1
  140. data/app/views/caboose/blocks/_image.html.erb +0 -4
  141. data/app/views/caboose/blocks/_render_function.html.erb +4 -9
  142. data/app/views/caboose/fonts/admin_index.html.erb +10 -55
  143. data/app/views/caboose/invoices_mailer/customer_status_updated.html.erb +14 -5
  144. data/app/views/caboose/login_logs/admin_index_for_user.html.erb +1 -1
  145. data/app/views/caboose/media/admin_index.html.erb +24 -14
  146. data/app/views/caboose/my_account/index.html.erb +0 -1
  147. data/app/views/caboose/pages/_admin_header.html.erb +0 -5
  148. data/app/views/caboose/pages/admin_edit_content.html.erb +2 -6
  149. data/app/views/caboose/pages/admin_edit_general.html.erb +4 -32
  150. data/app/views/caboose/pages/admin_new_old.html.erb +46 -0
  151. data/app/views/caboose/pages/test.html.erb +64 -0
  152. data/app/views/caboose/posts/_admin_header.html.erb +0 -5
  153. data/app/views/caboose/posts/admin_delete_form.html.erb +1 -1
  154. data/app/views/caboose/posts/admin_edit_content.html.erb +2 -6
  155. data/app/views/caboose/products/admin_group_variants.html.erb +1 -1
  156. data/app/views/caboose/products/admin_sort.html copy.erb +1 -1
  157. data/app/views/caboose/sites/admin_edit.html.erb +0 -21
  158. data/app/views/caboose/themes/admin_edit.html.erb +3 -7
  159. data/app/views/caboose/users/_admin_header.html.erb +0 -4
  160. data/app/views/caboose/users/admin_edit_roles.html.erb +0 -1
  161. data/app/views/caboose/variants/admin_group.html.erb +1 -1
  162. data/app/views/layouts/caboose/admin.html.erb +2 -9
  163. data/app/views/layouts/caboose/application.html.erb +92 -62
  164. data/config/routes.rb +1 -4
  165. data/lib/caboose/version.rb +1 -1
  166. data/lib/tasks/caboose.rake +14 -3
  167. metadata +238 -57
  168. data/app/controllers/caboose/change_logs_controller.rb +0 -13
  169. data/app/models/caboose/change_log.rb +0 -97
  170. data/app/views/caboose/blocks/_cached_block.html.erb +0 -28
  171. data/app/views/caboose/change_logs/admin_index.html.erb +0 -65
  172. data/app/views/caboose/fonts/admin_family_edit.html.erb +0 -63
  173. data/app/views/caboose/fonts/admin_family_index.html.erb +0 -42
  174. data/app/views/caboose/fonts/admin_variant_edit.html.erb +0 -84
  175. data/app/views/caboose/pages/admin_change_logs.html.erb +0 -56
  176. data/app/views/caboose/pages/compiled_asset.css.erb +0 -0
  177. data/app/views/caboose/pages/compiled_asset.js.erb +0 -0
  178. data/app/views/caboose/posts/admin_change_logs.html.erb +0 -56
  179. data/app/views/caboose/sites/compiled_asset.css.erb +0 -0
  180. data/app/views/caboose/sites/compiled_asset.js.erb +0 -0
  181. data/app/views/caboose/themes/admin_error_log.html.erb +0 -9
  182. data/app/views/caboose/themes/admin_js.html.erb +0 -131
  183. data/app/views/caboose/users/admin_change_logs.html.erb +0 -63
  184. data/app/views/layouts/caboose/css.css.erb +0 -44
  185. data/app/views/layouts/caboose/footer_css.css.erb +0 -41
  186. data/app/views/layouts/caboose/footer_js.js.erb +0 -31
  187. data/app/views/layouts/caboose/js.js.erb +0 -34
@@ -0,0 +1,48 @@
1
+
2
+ #manifest {
3
+ position: absolute;
4
+ top: 0;
5
+ left: 0;
6
+ width: 280px;
7
+ height: 100px;
8
+ overflow-y: scroll;
9
+ }
10
+
11
+ #manifest ul {
12
+ list-style: none;
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ #manifest ul ul {
18
+ padding-left: 4px;
19
+ }
20
+
21
+ #manifest li {
22
+ list-style: none;
23
+ margin: 0;
24
+ padding: 0;
25
+ }
26
+
27
+ #manifest a {
28
+ display: block;
29
+ margin: 0;
30
+ padding: 4px 8px;
31
+ border: #999 1px solid;
32
+ background: #ccc;
33
+ }
34
+
35
+ #editor {
36
+ margin: 0;
37
+ padding-top: 20px;
38
+ padding-left: 280px;
39
+ }
40
+
41
+ #editor p {
42
+ margin-top: 0;
43
+ padding-top: 0;
44
+ }
45
+
46
+ #editor textarea {
47
+ margin: 0;
48
+ }
@@ -0,0 +1,386 @@
1
+
2
+ #detail_image {
3
+ float: right;
4
+ margin: 0;
5
+ width: 370px;
6
+ }
7
+
8
+ // #left_content {
9
+ // width: 200px;
10
+ // float: left;
11
+ // }
12
+
13
+ // #right_content {
14
+ // margin-left: 220px;
15
+ // max-height: 600px;
16
+ // overflow-y: scroll;
17
+ // }
18
+
19
+ // #categories {
20
+ // ul {
21
+ // list-style: none;
22
+ // margin: 0;
23
+ // padding: 0;
24
+
25
+ // li {
26
+ // list-style: none;
27
+ // margin: 0;
28
+ // padding: 0;
29
+
30
+ // a {
31
+ // display: block;
32
+ // margin: 0 0 2px 0;
33
+ // padding: 4px 8px;
34
+ // background: #ddd;
35
+ // border: #999 1px solid;
36
+ // color: #000;
37
+ // text-decoration: none;
38
+
39
+ // &:hover {
40
+ // background-color: #fff799;
41
+ // }
42
+ // }
43
+
44
+ // &.selected {
45
+ // & > a {
46
+ // font-weight: bold;
47
+ // background-color: #90dbf9;
48
+ // }
49
+ // }
50
+ // &.cat_hover {
51
+ // a {
52
+ // background-color: #fff799 !important;
53
+ // }
54
+ // }
55
+ // }
56
+ // }
57
+ // }
58
+
59
+ // #controls {
60
+ // #delete {
61
+ // p.delete_dropper {
62
+ // padding: 8px 8px;
63
+ // background: #ddd;
64
+ // border: #999 1px solid;
65
+ // color: #000;
66
+ // text-decoration: none;
67
+ // }
68
+ // &.hover {
69
+ // p.delete_dropper {
70
+ // background-color: #fff799 !important;
71
+ // }
72
+ // }
73
+ // }
74
+ // }
75
+
76
+ #uploader {
77
+ margin-bottom: 20px;
78
+ }
79
+
80
+ #cboxContent {
81
+ overflow-y: scroll;
82
+ }
83
+
84
+ // #media {
85
+
86
+ // ul.thumbnail_view {
87
+ // list-style: none;
88
+ // margin: 0 0 20px 0;
89
+ // padding: 0;
90
+
91
+ // li {
92
+ // position: relative;
93
+ // list-style: none;
94
+ // margin: 4px;
95
+ // padding: 0;
96
+ // display: inline-block;
97
+ // width: 150px;
98
+ // height: 150px;
99
+ // overflow: hidden;
100
+ // background-color: #666;
101
+ // background-position: center;
102
+ // background-size: contain;
103
+ // background-repeat: no-repeat;
104
+ // border: #666 4px solid;
105
+
106
+ // span.name {
107
+ // display: block;
108
+ // position: absolute;
109
+ // bottom: 4px;
110
+ // width: 150px;
111
+ // text-align: center;
112
+ // color: #fff;
113
+ // text-decoration: none !important;
114
+ // }
115
+ // &:hover {
116
+ // background-color: #fff799;
117
+ // border: #fff799 4px solid;
118
+ // span { background-color: #fff799; color: #000; }
119
+ // }
120
+ // &.selected {
121
+ // background-color: #90dbf9;
122
+ // border: #90dbf9 4px solid;
123
+ // span { background-color: #90dbf9; color: #000; }
124
+ // }
125
+ // }
126
+ // }
127
+
128
+ ul.list_view {
129
+ list-style: none;
130
+ margin: 0;
131
+ padding: 0;
132
+
133
+ li {
134
+ position: relative;
135
+ list-style: none;
136
+ margin: 4px;
137
+ padding: 4px 6px;
138
+ background-color: #e2e2e2;
139
+ background-position: center;
140
+ background-size: contain;
141
+ background-repeat: no-repeat;
142
+ border: #b5b5b5 1px solid;
143
+ border-radius: 2px;
144
+ cursor: pointer;
145
+ img {
146
+ display: none;
147
+ }
148
+ span.name {
149
+ display: block;
150
+ color: #292929;
151
+ font-size: 15px;
152
+ text-decoration: none !important;
153
+ }
154
+ &:hover {
155
+ background-color: #fffcdb;
156
+ span { background-color: #fffcdb; }
157
+ }
158
+ &.selected {
159
+ background-color: #d1f2ff;
160
+ span { background-color: #d1f2ff; }
161
+ }
162
+ }
163
+ }
164
+ //}
165
+
166
+
167
+
168
+
169
+
170
+
171
+ // #categories {
172
+ // ul {
173
+ // list-style: none;
174
+ // margin: 0;
175
+ // padding: 0;
176
+
177
+ // li {
178
+ // list-style: none;
179
+ // margin: 0;
180
+ // padding: 0;
181
+
182
+ // a {
183
+ // display: block;
184
+ // margin: 0 0 2px 0;
185
+ // padding: 4px 8px;
186
+ // font-size: 14px;
187
+ // line-height: 18px;
188
+ // background: #efefef;
189
+ // border: #c7c7c7 1px solid;
190
+ // color: #292929;
191
+ // text-decoration: none;
192
+ // &:focus {
193
+ // outline-width: 0;
194
+ // }
195
+ // &:hover {
196
+ // background-color: #fffcdb;
197
+ // }
198
+ // }
199
+
200
+ // &.selected {
201
+ // a {
202
+ // // font-weight: bold;
203
+ // background-color: #d1f2ff;
204
+ // }
205
+ // }
206
+ // &.cat_hover {
207
+ // a {
208
+ // background-color: #fffcdb !important;
209
+ // }
210
+ // }
211
+ // }
212
+ // }
213
+ // }
214
+
215
+ .caboose-btn {
216
+ background: #141516;
217
+ color: #f7f7f7;
218
+ text-align: center;
219
+ padding: 0 15px;
220
+ height: auto;
221
+ display: inline-block;
222
+ margin: 0 auto;
223
+ font-size: 15px;
224
+ line-height: 32px;
225
+ cursor: pointer;
226
+ border: 1px solid #fff;
227
+ -webkit-border-radius: 5px;
228
+ -moz-border-radius: 5px;
229
+ border-width: 0;
230
+ -webkit-appearance: none;
231
+ border-radius: 5px;
232
+ text-decoration: none;
233
+ margin-right: 8px;
234
+ }
235
+ .caboose-btn:focus {
236
+ outline-width: 0;
237
+ }
238
+ .caboose-btn:hover {
239
+ background: #4f4448;
240
+ }
241
+
242
+
243
+ #media {
244
+ ul.thumbnail_view {
245
+ list-style: none;
246
+ margin: 0 0 20px 0;
247
+ padding: 0;
248
+ display: -webkit-box;
249
+ display: -moz-box;
250
+ display: -ms-flexbox;
251
+ display: -webkit-flex;
252
+ display: flex;
253
+ -webkit-justify-content: space-between;
254
+ justify-content: space-between;
255
+ -webkit-align-items: stretch;
256
+ align-items: stretch;
257
+ flex-wrap: wrap;
258
+ li {
259
+ -webkit-box-flex: 0 1 150px;
260
+ -moz-box-flex: 0 1 150px;
261
+ -webkit-flex: 0 1 150px;
262
+ -ms-flex: 0 1 150px;
263
+ flex: 0 1 150px;
264
+ position: relative;
265
+ list-style: none;
266
+ margin: 0 10px 20px 0;
267
+ padding: 0 0 35px 0;
268
+ display: block;
269
+ overflow: hidden;
270
+ text-align: center;
271
+ // padding: 8px;
272
+ border: 1px solid #dadada;
273
+ &.png {
274
+ background-image: url('/assets/caboose/grid.png');
275
+ background-size: 16px;
276
+ background-color: #e4e4e4;
277
+ &.selected {
278
+ background-image: none;
279
+ }
280
+ }
281
+ &.empty {
282
+ background-color: #bdbdbd;
283
+ background-image: none;
284
+ }
285
+ .table {
286
+ display: table;
287
+ table-layout: fixed;
288
+ width: 100%;
289
+ height: 120px;
290
+ }
291
+
292
+ .table-cell {
293
+ display: table-cell;
294
+ vertical-align: middle;
295
+ width: 100%;
296
+ height: 100%;
297
+ }
298
+ img {
299
+ display: block;
300
+ margin: 0 auto 0 auto;
301
+ max-width: 100%;
302
+ max-height: 120px;
303
+ }
304
+ span.name {
305
+ display: block;
306
+ position: relative;
307
+ // top: 0;
308
+ // left: 0;
309
+ height: auto;
310
+ overflow: hidden;
311
+ width: 100%;
312
+ font-size: 12px;
313
+ text-align: center;
314
+ background: rgba(0,0,0,0.7);
315
+ padding: 3px;
316
+ color: #fff;
317
+ text-decoration: none !important;
318
+ }
319
+ .file-icon {
320
+ display: block;
321
+ width: 80px;
322
+ margin: 10px auto 0 auto;
323
+ }
324
+ .buttons {
325
+ margin-top: 10px;
326
+ // padding: 0 10px 6px 10px;
327
+ position: absolute;
328
+ left: 2%;
329
+ bottom: 3px;
330
+ width: 96%;
331
+ &::after {
332
+ content: ".";
333
+ visibility: hidden;
334
+ display: block;
335
+ height: 0;
336
+ clear: both;
337
+ }
338
+ }
339
+ a {
340
+ text-decoration: none;
341
+ cursor: pointer;
342
+ display: inline-block;
343
+ font-size: 11px;
344
+ text-align: center;
345
+ color: #000;
346
+ border-radius: 4px;
347
+ padding: 4px;
348
+ &:focus {
349
+ outline-width: 0;
350
+ }
351
+ &:first-of-type {
352
+ background: #516dbb;
353
+ color: #fff;
354
+ float: left;
355
+ &:hover {
356
+ background: shade(#516dbb, 10%);
357
+ }
358
+ }
359
+ &.dl {
360
+ // right: 8px;
361
+ left: initial;
362
+ float: right;
363
+ background: #51bd63;
364
+ color: #fff;
365
+ // width: 100%;
366
+ &:hover {
367
+ background: shade(#51bd63, 10%);
368
+ }
369
+ &.i {
370
+ width: auto;
371
+ }
372
+ }
373
+ }
374
+ &:hover {
375
+ background-image: none;
376
+ background-color: #fffcdb;
377
+ // span { background-color: #fffcdb; color: #000; }
378
+ }
379
+ &.selected {
380
+ background-color: #d1f2ff;
381
+ // border: #90dbf9 4px solid;
382
+ span { background-color: #90dbf9; color: #000; }
383
+ }
384
+ }
385
+ }
386
+ }
@@ -0,0 +1,300 @@
1
+ #admin_subnav_content {
2
+ &.hide-products {
3
+ #categories ul li.product-sub-li {
4
+ display: none;
5
+ }
6
+ #categories ul li.products-li a::after {
7
+ transform: rotate(180deg);
8
+ }
9
+ }
10
+ .new-category-link {
11
+ text-decoration: none;
12
+ display: block;
13
+ text-align: center;
14
+ img {
15
+ display: inline-block;
16
+ margin-bottom: 3px;
17
+ }
18
+ h4 {
19
+ font-size: 13px;
20
+ font-weight: normal;
21
+ margin-bottom: 0;
22
+ color: #4f5e73;
23
+ }
24
+ &:focus {
25
+ outline-width: 0;
26
+ }
27
+ &:hover {
28
+ h4 {
29
+ color: #d27f7e;
30
+ }
31
+ }
32
+ }
33
+ }
34
+
35
+ #uploader {
36
+ position: relative;
37
+ // bottom: 62px;
38
+ .btn {
39
+ margin-right: 8px;
40
+ background: #6797c4;
41
+ color: white;
42
+ font-size: 12px;
43
+ }
44
+ }
45
+
46
+ #categories {
47
+ ul {
48
+ list-style: none;
49
+ margin: 0;
50
+ padding: 0;
51
+ border-top: 4px solid #f7f7f7;
52
+ border-bottom: 4px solid #f7f7f7;
53
+ margin-top: 20px;
54
+ padding-top: 20px;
55
+ margin-bottom: 20px;
56
+ padding-bottom: 10px;
57
+ li {
58
+ list-style: none;
59
+ margin: 0;
60
+ padding: 0;
61
+ &.products-li a {
62
+ text-transform: uppercase;
63
+ background: #e6ffe1;
64
+ &::after {
65
+ content: "^";
66
+ position: absolute;
67
+ right: 10px;
68
+ top: 3px;
69
+ transition: transform 300ms ease;
70
+ }
71
+ }
72
+ &.product-sub-li {
73
+ // display: none;
74
+ }
75
+ a {
76
+ display: block;
77
+ margin: 0 0 5px 0;
78
+ padding: 6px 8px 6px 28px;
79
+ font-size: 14px;
80
+ line-height: 18px;
81
+ // background: #efefef;
82
+ // border: #c7c7c7 1px solid;
83
+ color: #292929;
84
+ text-decoration: none;
85
+ &:focus {
86
+ outline-width: 0;
87
+ }
88
+ &:hover {
89
+ background-color: #fffcdb;
90
+ }
91
+ background-image: url('/assets/folder_w_content.png');
92
+ background-size: 15px;
93
+ background-repeat: no-repeat;
94
+ background-position: 4px 8px;
95
+ &.empty {
96
+ background-image: url('/assets/folder_wo_content.png');
97
+ }
98
+ &.full {
99
+
100
+ }
101
+ }
102
+
103
+ &.selected {
104
+ a {
105
+ // font-weight: bold;
106
+ background-color: #e7edf5;
107
+ }
108
+ }
109
+ &.cat_hover {
110
+ a {
111
+ background-color: #fffcdb !important;
112
+ }
113
+ }
114
+ }
115
+ }
116
+ #new_cat_message {
117
+ p.note.warning {
118
+ background-color: transparent !important;
119
+ color: #4f5e73;
120
+ }
121
+ #new_cat_name {
122
+ display: block;
123
+ margin: 8px 0;
124
+ }
125
+ }
126
+ }
127
+
128
+ #controls {
129
+ #delete {
130
+ p.delete_dropper {
131
+ padding: 8px 8px;
132
+ background: #d07f7f;
133
+ // border: #f1cdcd 1px solid;
134
+ color: #fff;
135
+ text-decoration: none;
136
+ border-radius: 5px;
137
+ text-transform: uppercase;
138
+ font-size: 13px;
139
+ margin-top: 30px;
140
+ text-align: center;
141
+ }
142
+ &.hover {
143
+ p.delete_dropper {
144
+ background-color: shade(#d07f7f, 10%) !important;
145
+ }
146
+ }
147
+ }
148
+ }
149
+
150
+ #the_uploader {
151
+ margin-bottom: 20px;
152
+ padding-right: 20px;
153
+ }
154
+
155
+ #media {
156
+ padding-right: 2%;
157
+ ul {
158
+ list-style: none;
159
+ margin: 0 0 20px 0;
160
+ padding: 0;
161
+ display: -webkit-box;
162
+ display: -moz-box;
163
+ display: -ms-flexbox;
164
+ display: -webkit-flex;
165
+ display: flex;
166
+ -webkit-justify-content: space-between;
167
+ justify-content: space-between;
168
+ -webkit-align-items: stretch;
169
+ align-items: stretch;
170
+ flex-wrap: wrap;
171
+ li {
172
+ -webkit-box-flex: 0 1 150px;
173
+ -moz-box-flex: 0 1 150px;
174
+ -webkit-flex: 0 1 150px;
175
+ -ms-flex: 0 1 150px;
176
+ flex: 0 1 150px;
177
+ position: relative;
178
+ list-style: none;
179
+ margin: 0 10px 20px 0;
180
+ padding: 0 0 35px 0;
181
+ display: block;
182
+ overflow: hidden;
183
+ text-align: center;
184
+ // padding: 8px;
185
+ border: 1px solid #dadada;
186
+ z-index: 10;
187
+ &.png {
188
+ background-image: url('/assets/caboose/grid.png');
189
+ background-size: 16px;
190
+ background-color: #e4e4e4;
191
+ &.selected {
192
+ background-image: none;
193
+ }
194
+ }
195
+ &.empty {
196
+ background-color: #bdbdbd;
197
+ background-image: none;
198
+ }
199
+ .table {
200
+ display: table;
201
+ table-layout: fixed;
202
+ width: 100%;
203
+ height: 120px;
204
+ }
205
+
206
+ .table-cell {
207
+ display: table-cell;
208
+ vertical-align: middle;
209
+ width: 100%;
210
+ height: 100%;
211
+ }
212
+ img {
213
+ display: block;
214
+ margin: 0 auto 0 auto;
215
+ max-width: 100%;
216
+ max-height: 120px;
217
+ }
218
+ span.name {
219
+ display: block;
220
+ position: relative;
221
+ // top: 0;
222
+ // left: 0;
223
+ height: auto;
224
+ overflow: hidden;
225
+ width: 100%;
226
+ font-size: 12px;
227
+ text-align: center;
228
+ background: rgba(0,0,0,0.7);
229
+ padding: 3px;
230
+ color: #fff;
231
+ text-decoration: none !important;
232
+ }
233
+ .file-icon {
234
+ display: block;
235
+ width: 80px;
236
+ margin: 10px auto 0 auto;
237
+ }
238
+ .buttons {
239
+ margin-top: 10px;
240
+ // padding: 0 10px 6px 10px;
241
+ position: absolute;
242
+ left: 2%;
243
+ bottom: 3px;
244
+ width: 96%;
245
+ &::after {
246
+ content: ".";
247
+ visibility: hidden;
248
+ display: block;
249
+ height: 0;
250
+ clear: both;
251
+ }
252
+ }
253
+ a {
254
+ text-decoration: none;
255
+ cursor: pointer;
256
+ display: inline-block;
257
+ font-size: 11px;
258
+ text-align: center;
259
+ color: #000;
260
+ border-radius: 4px;
261
+ padding: 4px;
262
+ &:focus {
263
+ outline-width: 0;
264
+ }
265
+ &:first-of-type {
266
+ background: #516dbb;
267
+ color: #fff;
268
+ float: left;
269
+ &:hover {
270
+ background: shade(#516dbb, 10%);
271
+ }
272
+ }
273
+ &.dl {
274
+ // right: 8px;
275
+ left: initial;
276
+ float: right;
277
+ background: #51bd63;
278
+ color: #fff;
279
+ // width: 100%;
280
+ &:hover {
281
+ background: shade(#51bd63, 10%);
282
+ }
283
+ &.i {
284
+ width: auto;
285
+ }
286
+ }
287
+ }
288
+ &:hover {
289
+ background-image: none;
290
+ background-color: #fffcdb;
291
+ // span { background-color: #fffcdb; color: #000; }
292
+ }
293
+ &.selected {
294
+ background-color: #d1f2ff;
295
+ // border: #90dbf9 4px solid;
296
+ span { background-color: #90dbf9; color: #000; }
297
+ }
298
+ }
299
+ }
300
+ }