spina 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spina might be problematic. Click here for more details.

Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -4
  3. data/app/assets/fonts/spina/ics_spina.eot +0 -0
  4. data/app/assets/fonts/spina/ics_spina.svg +356 -0
  5. data/app/assets/fonts/spina/ics_spina.ttf +0 -0
  6. data/app/assets/fonts/spina/ics_spina.woff +0 -0
  7. data/app/assets/icons/spina/barchart.svg +10 -0
  8. data/app/assets/icons/spina/bars.svg +1 -0
  9. data/app/assets/icons/spina/bold.svg +1 -0
  10. data/app/assets/icons/spina/brush.svg +10 -0
  11. data/app/assets/icons/spina/camera.svg +10 -0
  12. data/app/assets/icons/spina/caret-down.svg +1 -0
  13. data/app/assets/icons/spina/caret-left.svg +1 -0
  14. data/app/assets/icons/spina/caret-right.svg +1 -0
  15. data/app/assets/icons/spina/caret-up.svg +1 -0
  16. data/app/assets/icons/spina/cart.svg +10 -0
  17. data/app/assets/icons/spina/chart-outline.svg +10 -0
  18. data/app/assets/icons/spina/check.svg +10 -0
  19. data/app/assets/icons/spina/chevron-down.svg +1 -0
  20. data/app/assets/icons/spina/chevron-left.svg +1 -0
  21. data/app/assets/icons/spina/chevron-right.svg +1 -0
  22. data/app/assets/icons/spina/chevron-up.svg +1 -0
  23. data/app/assets/icons/spina/code.svg +1 -0
  24. data/app/assets/icons/spina/cog-outline.svg +10 -0
  25. data/app/assets/icons/spina/cog.svg +10 -0
  26. data/app/assets/icons/spina/comment.svg +1 -0
  27. data/app/assets/icons/spina/cross.svg +10 -0
  28. data/app/assets/icons/spina/customer-outline.svg +10 -0
  29. data/app/assets/icons/spina/document.svg +10 -0
  30. data/app/assets/icons/spina/dots.svg +10 -0
  31. data/app/assets/icons/spina/exclamation.svg +13 -0
  32. data/app/assets/icons/spina/eye.svg +1 -0
  33. data/app/assets/icons/spina/filter.svg +10 -0
  34. data/app/assets/icons/spina/home.svg +1 -0
  35. data/app/assets/icons/spina/image.svg +10 -0
  36. data/app/assets/icons/spina/inbox-outline.svg +10 -0
  37. data/app/assets/icons/spina/info.svg +13 -0
  38. data/app/assets/icons/spina/italic.svg +1 -0
  39. data/app/assets/icons/spina/large-check.svg +10 -0
  40. data/app/assets/icons/spina/link.svg +1 -0
  41. data/app/assets/icons/spina/list-ul.svg +1 -0
  42. data/app/assets/icons/spina/mail-outline.svg +10 -0
  43. data/app/assets/icons/spina/mail.svg +10 -0
  44. data/app/assets/icons/spina/media-library.svg +10 -0
  45. data/app/assets/icons/spina/megaphone.svg +10 -0
  46. data/app/assets/icons/spina/min.svg +14 -0
  47. data/app/assets/icons/spina/pages.svg +10 -0
  48. data/app/assets/icons/spina/pencil-outline.svg +10 -0
  49. data/app/assets/icons/spina/pencil.svg +16 -0
  50. data/app/assets/icons/spina/picture-o.svg +1 -0
  51. data/app/assets/icons/spina/plus.svg +10 -0
  52. data/app/assets/icons/spina/power-off.svg +10 -0
  53. data/app/assets/icons/spina/preview/icons_spina-preview.html +1043 -0
  54. data/app/assets/icons/spina/preview/ics_spina-preview.html +1043 -0
  55. data/app/assets/icons/spina/preview.svg +10 -0
  56. data/app/assets/icons/spina/product-outline.svg +10 -0
  57. data/app/assets/icons/spina/random.svg +10 -0
  58. data/app/assets/icons/spina/refresh.svg +13 -0
  59. data/app/assets/icons/spina/search.svg +10 -0
  60. data/app/assets/icons/spina/shop.svg +12 -0
  61. data/app/assets/icons/spina/social-outline.svg +10 -0
  62. data/app/assets/icons/spina/trash.svg +10 -0
  63. data/app/assets/icons/spina/upload-outline.svg +14 -0
  64. data/app/assets/icons/spina/users-outline.svg +10 -0
  65. data/app/assets/images/spina/arrow-left.png +0 -0
  66. data/app/assets/images/spina/arrow-right.png +0 -0
  67. data/app/assets/images/spina/danger-zone-ribbon.png +0 -0
  68. data/app/assets/images/spina/datepicker.png +0 -0
  69. data/app/assets/images/spina/divider.png +0 -0
  70. data/app/assets/images/spina/marker.png +0 -0
  71. data/app/assets/images/spina/mask.png +0 -0
  72. data/app/assets/images/spina/spina.png +0 -0
  73. data/app/assets/images/spina/spina_small.png +0 -0
  74. data/app/assets/images/spina/wheel.png +0 -0
  75. data/app/assets/javascripts/spina/admin/{account.js.coffee → account.coffee} +0 -0
  76. data/app/assets/javascripts/spina/admin/application.coffee.erb +152 -0
  77. data/app/assets/javascripts/spina/admin/{confirm_delete.js.coffee.erb → confirm_delete.coffee.erb} +0 -0
  78. data/app/assets/javascripts/spina/admin/dropdown.coffee +75 -0
  79. data/app/assets/javascripts/spina/admin/forms.coffee +7 -0
  80. data/app/assets/javascripts/spina/admin/galleryselect.coffee +20 -0
  81. data/app/assets/javascripts/spina/admin/{spina.infinite_scroll.coffee → infinite_scroll.coffee} +1 -0
  82. data/app/assets/javascripts/spina/admin/modal.coffee +54 -0
  83. data/app/assets/javascripts/spina/admin/navigation.coffee +38 -0
  84. data/app/assets/javascripts/spina/admin/notifications.coffee +7 -0
  85. data/app/assets/javascripts/spina/admin/{pages.js.coffee.erb → pages.coffee.erb} +11 -2
  86. data/app/assets/javascripts/spina/admin/switch.coffee +43 -0
  87. data/app/assets/javascripts/spina/admin/tabs.coffee +13 -0
  88. data/app/assets/javascripts/spina/admin/{spina.trix.js.coffee.erb → trix.coffee.erb} +26 -25
  89. data/app/assets/javascripts/spina/admin/uploads.coffee +35 -0
  90. data/app/assets/stylesheets/spina/_admin_editing.sass +25 -0
  91. data/app/assets/stylesheets/spina/_buttons.sass +367 -0
  92. data/app/assets/stylesheets/spina/_cards.sass +54 -0
  93. data/app/assets/stylesheets/spina/_configuration.sass +15 -0
  94. data/app/assets/stylesheets/spina/_custom_animations.sass +61 -0
  95. data/app/assets/stylesheets/spina/_farbtastic.sass +37 -0
  96. data/app/assets/stylesheets/spina/_fonts.sass +18 -0
  97. data/app/assets/stylesheets/spina/_forms.sass +806 -0
  98. data/app/assets/stylesheets/spina/_gallery.sass +249 -0
  99. data/app/assets/stylesheets/spina/_ics_spina.scss +60 -0
  100. data/app/assets/stylesheets/spina/_labels.sass +30 -0
  101. data/app/assets/stylesheets/spina/_login.sass +46 -0
  102. data/app/assets/stylesheets/spina/_modal.sass +162 -0
  103. data/app/assets/stylesheets/spina/_notifications.sass +62 -0
  104. data/app/assets/stylesheets/spina/_sortable_lists.sass +177 -0
  105. data/app/assets/stylesheets/spina/_tables.sass +301 -0
  106. data/app/assets/stylesheets/spina/_trix.sass +99 -0
  107. data/app/assets/stylesheets/spina/_wizard.sass +122 -0
  108. data/app/assets/stylesheets/spina/_wysihtml5.sass +79 -0
  109. data/app/assets/stylesheets/spina/application.sass +0 -1
  110. data/app/assets/stylesheets/spina/wysihtml5_textarea.sass +14 -0
  111. data/app/assets/stylesheets/spina.sass +564 -0
  112. data/app/controllers/concerns/spina/frontend.rb +59 -0
  113. data/app/controllers/spina/admin/navigations_controller.rb +60 -0
  114. data/app/controllers/spina/admin/pages_controller.rb +7 -6
  115. data/app/controllers/spina/admin/photos_controller.rb +18 -7
  116. data/app/controllers/spina/application_controller.rb +2 -2
  117. data/app/controllers/spina/pages_controller.rb +4 -49
  118. data/app/helpers/spina/admin/pages_helper.rb +12 -7
  119. data/app/helpers/spina/application_helper.rb +0 -29
  120. data/app/models/concerns/spina/part.rb +1 -1
  121. data/app/models/spina/navigation.rb +11 -0
  122. data/app/models/spina/navigation_item.rb +17 -0
  123. data/app/models/spina/page.rb +11 -0
  124. data/app/models/spina/page_part.rb +1 -1
  125. data/app/models/spina/photo_collection.rb +6 -1
  126. data/app/models/spina/structure.rb +4 -0
  127. data/app/models/spina/structure_item.rb +5 -1
  128. data/app/models/spina/structure_part.rb +16 -3
  129. data/app/views/layouts/spina/admin/admin.html.haml +8 -1
  130. data/app/views/layouts/spina/admin/pages.html.haml +30 -0
  131. data/app/views/spina/admin/accounts/_form.html.haml +1 -1
  132. data/app/views/spina/admin/accounts/analytics.html.haml +1 -1
  133. data/app/views/spina/admin/accounts/social.html.haml +1 -1
  134. data/app/views/spina/admin/accounts/style.html.haml +1 -1
  135. data/app/views/spina/admin/navigations/_navigation_item_nested_list.html.haml +7 -0
  136. data/app/views/spina/admin/navigations/_page.html.haml +8 -0
  137. data/app/views/spina/admin/navigations/edit.html.haml +22 -0
  138. data/app/views/spina/admin/navigations/show.html.haml +7 -0
  139. data/app/views/spina/admin/page_partables/attachment_collections/_form.html.haml +1 -1
  140. data/app/views/spina/admin/page_partables/attachments/_form.html.haml +1 -1
  141. data/app/views/spina/admin/page_partables/photo_collections/_form.html.haml +1 -1
  142. data/app/views/spina/admin/page_partables/photos/_form.html.haml +1 -1
  143. data/app/views/spina/admin/page_partables/structures/_form.html.haml +1 -1
  144. data/app/views/spina/admin/pages/_form.html.haml +12 -5
  145. data/app/views/spina/admin/pages/_page.html.haml +12 -18
  146. data/app/views/spina/admin/pages/_page_nested_list.html.haml +7 -0
  147. data/app/views/spina/admin/pages/create.js.coffee +0 -0
  148. data/app/views/spina/admin/pages/index.html.haml +24 -42
  149. data/app/views/spina/admin/pages/update.js.coffee +1 -3
  150. data/app/views/spina/admin/photos/_photo.html.haml +2 -0
  151. data/app/views/spina/admin/photos/_photo_collection_select.html.haml +1 -1
  152. data/app/views/spina/admin/photos/_photo_select.html.haml +2 -2
  153. data/app/views/spina/admin/photos/_wysihtml5_select.html.haml +1 -1
  154. data/app/views/spina/admin/photos/create_multiple.js.erb +4 -0
  155. data/app/views/spina/admin/photos/index.html.haml +1 -1
  156. data/app/views/spina/admin/photos/single_picker_infinite_scroll.js.erb +1 -1
  157. data/app/views/spina/admin/sessions/new.html.haml +8 -5
  158. data/app/views/spina/admin/shared/_notifications.html.haml +3 -1
  159. data/app/views/spina/admin/shared/_primary_navigation.html.haml +4 -3
  160. data/app/views/spina/admin/shared/_rich_text_field.html.haml +16 -16
  161. data/app/views/spina/admin/structure_items/_fields.html.haml +7 -8
  162. data/app/views/spina/admin/structure_partables/photo_collections/_form.html.haml +14 -0
  163. data/app/views/spina/admin/structure_partables/photos/_form.html.haml +1 -1
  164. data/app/views/spina/shared/_google_site_verification.html.haml +1 -0
  165. data/config/fontcustom.yml +95 -0
  166. data/config/locales/en.yml +11 -0
  167. data/config/locales/nl.yml +13 -3
  168. data/config/locales/pt-BR.yml +11 -1
  169. data/config/routes.rb +14 -8
  170. data/db/migrate/1_create_spina_tables.rb +0 -7
  171. data/db/migrate/2_create_spina_translation_tables.rb +26 -7
  172. data/db/migrate/3_create_spina_navigations.rb +21 -0
  173. data/lib/generators/spina/templates/config/initializers/carrierwave.rb +1 -1
  174. data/lib/spina/engine.rb +1 -2
  175. data/lib/spina/fontcustom/_ics_spina.scss +5 -0
  176. data/lib/spina/version.rb +1 -1
  177. data/lib/spina.rb +3 -1
  178. metadata +146 -45
  179. data/app/assets/images/spina/admin/logo@2x.png +0 -0
  180. data/app/assets/javascripts/spina/admin/application.js +0 -10
  181. data/app/assets/javascripts/spina/admin/spina.scaffold.coffee +0 -15
  182. data/app/assets/javascripts/spina/application.js +0 -15
  183. data/app/assets/stylesheets/spina/_mixins.scss +0 -34
@@ -0,0 +1,806 @@
1
+ // Horizontal form
2
+ .horizontal-form
3
+ .horizontal-form-group
4
+ border-bottom: 1px solid #eee
5
+ margin: 0 -20px
6
+ padding: 20px 20px
7
+ @include display(flex)
8
+
9
+ &:first-child
10
+ margin-top: -20px
11
+
12
+ &:last-child
13
+ border-bottom: none
14
+ margin-bottom: -20px
15
+
16
+ .horizontal-form-label
17
+ color: #333
18
+ font-size: 13px
19
+ font-weight: 600
20
+ line-height: 18px
21
+ padding-right: 20px
22
+ width: 240px
23
+ @include justify-content(center)
24
+ @include display(flex)
25
+ @include flex-direction(column)
26
+
27
+ small
28
+ color: #666
29
+ display: block
30
+ font-size: 13px
31
+ font-weight: normal
32
+
33
+ .horizontal-form-content
34
+ @include flex(1)
35
+ @include align-self(flex-start)
36
+
37
+ .image
38
+ border-radius: 5px
39
+ display: inline-block
40
+ height: 120px
41
+ overflow: hidden
42
+ width: 120px
43
+
44
+ img
45
+ display: block
46
+ height: 100%
47
+ width: 100%
48
+
49
+ // Sidebar form
50
+ .sidebar-form
51
+ margin: 0 auto
52
+ max-width: 960px
53
+ @include display(flex)
54
+
55
+ .sidebar-form-content
56
+ @include flex(1)
57
+
58
+ .well
59
+ margin-right: 20px
60
+ padding-bottom: 0
61
+ padding-top: 0
62
+
63
+ .sidebar-form-sidebar
64
+ width: 320px
65
+
66
+ .sidebar-form-group
67
+ border-bottom: 1px solid #eee
68
+ margin: 0 -20px
69
+ padding: 0 20px
70
+ @include display(flex)
71
+
72
+ &:last-child
73
+ border-bottom: none
74
+
75
+ .sidebar-form-label
76
+ color: #333
77
+ font-size: 14px
78
+ font-weight: 600
79
+ line-height: 50px
80
+ width: 180px
81
+
82
+ .sidebar-form-control
83
+ margin-right: -20px
84
+ position: relative
85
+ @include flex(1)
86
+
87
+ .switch
88
+ margin: 10px
89
+
90
+ #{$all-text-inputs}, textarea, .text-input
91
+ background: none
92
+ border: none
93
+ border-radius: 0
94
+ box-shadow: none
95
+
96
+ &:disabled
97
+ background: none
98
+
99
+ &[data-form-append]:after
100
+ content: attr(data-form-append)
101
+ font-size: 14px
102
+ font-weight: 600
103
+ line-height: 50px
104
+ padding: 0 20px
105
+ position: absolute
106
+ right: 0
107
+ top: 0
108
+
109
+ trix-toolbar
110
+ margin-top: 20px
111
+
112
+ trix-editor.text-input
113
+ padding-left: 0
114
+
115
+ #{$all-text-inputs}
116
+ height: 50px
117
+
118
+ .sidebar-form-images
119
+ margin-top: 25px
120
+
121
+ &:after
122
+ clear: both
123
+ content: " "
124
+ display: block
125
+
126
+ .sidebar-form-image
127
+ background: #ededf2
128
+ border: 1px solid #e5e5ea
129
+ border-radius: 2px
130
+ display: inline-block
131
+ margin-bottom: 10px
132
+ margin-right: 10px
133
+ position: relative
134
+ width: 100px
135
+
136
+ > img
137
+ border-radius: 2px
138
+ display: block
139
+ width: 100%
140
+
141
+ .sidebar-form-image-overlay
142
+ background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5))
143
+ content: " "
144
+ display: block
145
+ height: 25%
146
+ left: 0
147
+ opacity: 0
148
+ position: absolute
149
+ top: 75%
150
+ width: 100%
151
+ @include transition(opacity .2s ease)
152
+
153
+ &:hover .sidebar-form-image-overlay
154
+ opacity: 1
155
+
156
+ &:first-child
157
+ width: 320px
158
+
159
+ &:nth-child(3n + 1)
160
+ margin-right: 0
161
+
162
+ a
163
+ opacity: .5
164
+ padding: 6px
165
+ position: relative
166
+ z-index: 1
167
+ @include transition(opacity .2s ease)
168
+
169
+ a img:first-child
170
+ display: block
171
+
172
+ a img:last-child
173
+ display: none
174
+
175
+ input[type="checkbox"]:checked + a img:first-child
176
+ display: none
177
+
178
+ input[type="checkbox"]:checked + a img:last-child
179
+ display: block
180
+
181
+ input[type="checkbox"]:checked + a
182
+ opacity: 1
183
+
184
+ &:first-child a
185
+ padding: 10px
186
+
187
+ &:hover a
188
+ opacity: 1
189
+
190
+ &:not(:first-child) a img
191
+ height: 75%
192
+ width: 75%
193
+
194
+ .sidebar-form-image-dropzone
195
+ background: #ededf2
196
+ border: 1px solid #c3c3c3
197
+ border-radius: 3px
198
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15)
199
+ color: #666
200
+ cursor: pointer
201
+ font-size: 13px
202
+ margin-bottom: 25px
203
+ padding: 12px
204
+ width: 100%
205
+
206
+ &:hover
207
+ background: shade(#ededf2, 2.5%)
208
+
209
+ &::-webkit-file-upload-button
210
+ background: none
211
+ border: none
212
+ color: #666
213
+ cursor: pointer
214
+ font-size: 13px
215
+ font-weight: 500
216
+
217
+ // Form groups
218
+ .form-group
219
+ margin-bottom: 20px
220
+
221
+ // Labels
222
+ .form-label
223
+ color: #333
224
+ font-size: 14px
225
+ font-weight: 600
226
+ line-height: 28px
227
+
228
+ .form-control
229
+ position: relative
230
+
231
+ .form-control[data-form-prepend] input
232
+ padding-left: 28px
233
+
234
+ .form-control[data-form-prepend]:before
235
+ color: #333
236
+ content: attr(data-form-prepend)
237
+ font-size: 14px
238
+ font-weight: 600
239
+ left: 0
240
+ line-height: 39px
241
+ padding: 0 12px
242
+ position: absolute
243
+ top: 0
244
+
245
+ .form-control[data-form-append]:after
246
+ color: #333
247
+ content: attr(data-form-append)
248
+ font-size: 14px
249
+ font-weight: 600
250
+ line-height: 39px
251
+ padding: 0 12px
252
+ position: absolute
253
+ right: 0
254
+ top: 0
255
+
256
+ // Form checkbox
257
+
258
+ .form-checkbox
259
+ label
260
+ display: block
261
+ font-size: 13px
262
+ font-weight: 600
263
+ line-height: 20px
264
+ position: relative
265
+
266
+ input[type="checkbox"]
267
+ display: none
268
+
269
+ input[type="checkbox"] + label:before
270
+ background: transparent
271
+ border: 1px dashed shade(#e6e6ec, 20%)
272
+ border-radius: 3px
273
+ content: " "
274
+ display: inline-block
275
+ height: 20px
276
+ margin-right: 10px
277
+ vertical-align: middle
278
+ width: 20px
279
+ @include transition(all .2s ease)
280
+
281
+ input[type="checkbox"]:checked + label:before
282
+ background: tint($primary-color, 10%)
283
+ border-color: transparent
284
+
285
+ input[type="checkbox"] + label:after
286
+ color: #fff
287
+ font-size: 10px
288
+ height: 20px
289
+ left: 0px
290
+ line-height: 20px
291
+ position: absolute
292
+ text-align: center
293
+ top: 0px
294
+ vertical-align: middle
295
+ width: 20px
296
+ @extend .icon, .icon-large-check:before
297
+ @include transform(scale(0))
298
+ @include transition(all .2s ease)
299
+
300
+ input[type="checkbox"]:checked + label:after
301
+ @include transform(scale(1))
302
+
303
+ // Input groups
304
+ .input-group
305
+ @include display(flex)
306
+
307
+ #{$all-text-inputs}, .text-input, .select-dropdown
308
+ @include flex(1)
309
+
310
+ &:not(:first-child)
311
+ border-bottom-left-radius: 0
312
+ border-top-left-radius: 0
313
+
314
+ &:not(:last-child)
315
+ border-bottom-right-radius: 0
316
+ border-top-right-radius: 0
317
+ border-right: none
318
+
319
+ // Inputs
320
+
321
+ #{$all-text-inputs}, textarea, .text-input
322
+ border: 1px solid #c3c3c3
323
+ border-radius: 3px
324
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .16)
325
+ color: #333
326
+ font-size: 14px
327
+ padding: 10px
328
+ width: 100%
329
+ @include transition(border .2s ease)
330
+
331
+ &.input-mini
332
+ width: 75px
333
+
334
+ &.input-small
335
+ width: 100px
336
+
337
+ &.input-medium
338
+ width: 200px
339
+
340
+ &.input-large
341
+ width: 300px
342
+
343
+ &.input-rounded
344
+ border-radius: 20px
345
+
346
+ &:after
347
+ content: " "
348
+ display: block
349
+ height: 10px
350
+ position: absolute
351
+ top: 0px
352
+ right: 0px
353
+ width: 10px
354
+
355
+ &.input-search:after
356
+ content: " "
357
+ display: block
358
+ height: 10px
359
+ width: 10px
360
+
361
+ &:disabled
362
+ background: #ededf2
363
+
364
+ #{$all-text-inputs-focus}, textarea:focus, .text-input:focus
365
+ border-color: $primary-color
366
+ outline: none
367
+
368
+ textarea
369
+ min-height: 120px
370
+ resize: vertical
371
+
372
+ fieldset
373
+ border: none
374
+ padding: 0
375
+
376
+ // Errors
377
+
378
+ .field_with_errors
379
+ #{$all-text-inputs}, textarea
380
+ border: 1px solid $error-color
381
+
382
+ #{$all-text-inputs-focus}, textarea:focus
383
+ border: 1px solid $danger-color
384
+
385
+ // Search input
386
+
387
+ .search-input
388
+ display: inline-block
389
+ position: relative
390
+
391
+ input
392
+ padding-left: 30px
393
+ padding-right: 28px
394
+
395
+ .search-input:before, .clear-input
396
+ color: #999
397
+ @extend .icon, .icon-search
398
+ display: block
399
+ font-size: 13px
400
+ font-weight: 400
401
+ left: 11px
402
+ position: absolute
403
+ top: 13px
404
+
405
+ .clear-input
406
+ color: #ccc
407
+ display: none
408
+ left: auto
409
+ padding: 10px 9px
410
+ right: 0
411
+ top: 0
412
+
413
+ &:before
414
+ display: none
415
+
416
+ .clear-input:hover
417
+ color: #999
418
+
419
+ input.datepicker
420
+ background: url(asset-path('spina/datepicker.png')) no-repeat center right
421
+
422
+ // Switch
423
+
424
+ .switch
425
+ background: #e9e9e9
426
+ border-radius: 23px
427
+ display: block
428
+ height: 29px
429
+ margin-bottom: 0
430
+ padding: 3px
431
+ position: relative
432
+ width: 46px
433
+ @include transition(background .4s ease)
434
+
435
+ .knob
436
+ background: #fff
437
+ border-radius: 23px
438
+ box-shadow: 0 2px 5px rgba(0, 0, 0, .3)
439
+ display: inline-block
440
+ height: 23px
441
+ position: absolute
442
+ width: 23px
443
+
444
+ &.activated, &.active
445
+ background: $success-color
446
+
447
+ &.active .knob
448
+ @include transform(translate3d(17px, 0, 0))
449
+
450
+ // Checkboxes
451
+
452
+ .checkbox, .radio
453
+ display: inline-block
454
+
455
+ input[type="checkbox"], input[type="radio"]
456
+ display: none
457
+
458
+ label
459
+ color: #333
460
+ cursor: pointer
461
+ display: inline-block
462
+ font-size: 14px
463
+ font-weight: 600
464
+ height: 16px
465
+ padding-left: 24px
466
+ position: relative
467
+ white-space: nowrap
468
+ width: 16px
469
+
470
+ label:before
471
+ background: #fff
472
+ border: 1px solid #c3c3c3
473
+ border-radius: 4px
474
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .16)
475
+ content: ""
476
+ display: inline-block
477
+ height: 14px
478
+ left: 0
479
+ margin-right: 10px
480
+ position: absolute
481
+ top: 0
482
+ width: 14px
483
+
484
+ label:after
485
+ content: "j"
486
+ color: #666
487
+ font-family: $icon-font
488
+ font-size: 16px
489
+ font-weight: normal
490
+ left: 2px
491
+ line-height: 18px
492
+ text-align: center
493
+ top: -2px
494
+ opacity: 0
495
+ position: absolute
496
+ @include transition(opacity .1s ease)
497
+
498
+ input[type="checkbox"]:checked + label:after, input[type="radio"]:checked + label:after
499
+ opacity: 1
500
+
501
+ .radio
502
+ margin: 6px 0
503
+
504
+ label:before
505
+ border-radius: 8px
506
+
507
+ // Select boxes
508
+
509
+ .select-dropdown
510
+ background: #fff
511
+ border: 1px solid #c3c3c3
512
+ border-radius: 3px
513
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .16)
514
+ display: inline-block
515
+ font-family: $font-family
516
+ line-height: 28px
517
+ margin: 0
518
+ overflow: hidden
519
+ padding: 0
520
+ position: relative
521
+ @extend .icon, .icon-caret-down
522
+ @include transition(border .2s ease)
523
+
524
+ &:hover
525
+ // background: #f5f5f5
526
+ border: 1px solid $primary-color
527
+
528
+ &:before
529
+ color: #666
530
+ font-size: 14px
531
+ font-weight: normal
532
+ line-height: 28px
533
+ position: absolute
534
+ right: 8px
535
+ top: 5px
536
+ z-index: 1
537
+
538
+ select
539
+ background-color: transparent
540
+ background-image: none
541
+ border: none
542
+ box-shadow: none
543
+ color: #666
544
+ cursor: pointer
545
+ display: inline-block
546
+ font-family: $font-family
547
+ font-size: 13px
548
+ font-weight: 600
549
+ line-height: 16px
550
+ margin: 0
551
+ outline: none
552
+ padding: 11px 36px 11px 10px
553
+ position: relative
554
+ width: 115%
555
+ z-index: 2
556
+ @include appearance(none)
557
+
558
+ // Structure form
559
+
560
+ .structure-form
561
+ margin-left: -20px
562
+ position: relative
563
+ @include display(flex)
564
+
565
+ .structure-form-menu
566
+ box-sizing: content-box
567
+ min-width: 260px
568
+
569
+ label
570
+ display: block
571
+ font-size: 13px
572
+ padding: 12px 20px
573
+ text-transform: none
574
+
575
+ ul
576
+ border-right: 1px solid #ddd
577
+ position: relative
578
+
579
+ ul:before, ul:after
580
+ content: " "
581
+ height: 40px
582
+ position: absolute
583
+ right: -1px
584
+ top: -40px
585
+ width: 1px
586
+ @include linear-gradient(rgba(255, 255, 255, 0), #ddd)
587
+
588
+ ul:after
589
+ bottom: -40px
590
+ top: auto
591
+ @include linear-gradient(bottom, rgba(255, 255, 255, 0), #ddd)
592
+
593
+ ul li
594
+ overflow: hidden
595
+
596
+ ul li .structure-item-remove
597
+ color: #999
598
+ float: right
599
+
600
+ ul li a, ul li.sortable-placeholder
601
+ color: #333
602
+ cursor: pointer
603
+ display: block
604
+ font-weight: 600
605
+ font-size: 13px
606
+ height: 50px
607
+ line-height: 50px
608
+ outline: none
609
+ padding-left: 20px
610
+
611
+ &:hover
612
+ background: #f9f9f9
613
+
614
+ i
615
+ color: #ddd
616
+ font-size: 16px
617
+ margin-right: 8px
618
+ vertical-align: middle
619
+
620
+ ul li.sortable-placeholder
621
+ background: #f9f9f9
622
+
623
+ ul li.active a
624
+ color: $primary-color
625
+
626
+ ul li.active
627
+ margin-right: -1px
628
+ position: relative
629
+
630
+ a
631
+ background: #fff
632
+
633
+ &:before
634
+ border-bottom: 1px solid #ddd
635
+ border-bottom-right-radius: 3px
636
+ border-right: 1px solid #ddd
637
+ content: " "
638
+ height: 10px
639
+ position: absolute
640
+ right: 0px
641
+ top: -10px
642
+ width: 100%
643
+
644
+ &:after
645
+ bottom: -10px
646
+ border-right: 1px solid #ddd
647
+ border-top: 1px solid #d5d5d5
648
+ border-top-right-radius: 3px
649
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075)
650
+ content: " "
651
+ height: 10px
652
+ right: 0px
653
+ position: absolute
654
+ width: 100%
655
+
656
+ .structure-form-content
657
+ padding-left: 12px
658
+ width: 100%
659
+
660
+ .structure-form-pane
661
+ display: none
662
+
663
+ &.active
664
+ display: block
665
+
666
+ .add_structure
667
+ float: right
668
+ margin-top: 12px
669
+ outline: none
670
+
671
+ .structure-form-part
672
+ padding: 5px 0
673
+
674
+ // Custom file input
675
+
676
+ .new_document
677
+ line-height: 52px
678
+
679
+ .customfile
680
+ cursor: pointer
681
+ height: 100%
682
+ overflow: hidden
683
+ position: relative
684
+ text-align: left
685
+ width: 100%
686
+
687
+ &:before
688
+ color: #bbb
689
+ display: block
690
+ font-weight: 400
691
+ padding: 6px 0
692
+ @extend .icon, .icon-upload-outline:before
693
+ font-size: 28px
694
+ vertical-align: middle
695
+ @include transition(color .2s ease)
696
+
697
+ &:after
698
+ color: #bbb
699
+ @extend .icon, .icon-refresh:before
700
+ display: none
701
+ font-size: 36px
702
+ @include animation("rotate" 2s linear infinite)
703
+
704
+ .customfile.loading
705
+ &:before
706
+ display: none
707
+
708
+ &:after
709
+ display: block
710
+
711
+ .customfile:hover:before
712
+ color: #333
713
+
714
+ .customfile-feedback
715
+ display: none
716
+
717
+ .customfile-input
718
+ background: transparent
719
+ border: 0
720
+ cursor: pointer !important
721
+ display: block
722
+ height: 100%
723
+ left: -100% !important
724
+ opacity: 0
725
+ position: absolute
726
+ top: 0 !important
727
+ width: 200%
728
+ z-index: 9
729
+
730
+ .customfile-button
731
+ display: none
732
+
733
+ .media_picker
734
+ background: #f9f9f9
735
+ border: 1px solid #d5d5d5
736
+ border-radius: 3px
737
+ box-shadow: inset 0 2px 2px rgba(0, 0, 0, .1)
738
+ color: #333
739
+ display: block
740
+ margin-top: 2px
741
+ min-height: 70px
742
+ padding: 15px
743
+ position: relative
744
+
745
+ .image
746
+ @include transition(all .3s ease)
747
+
748
+ &:hover .button
749
+ background: tint(#efefef, 20%)
750
+
751
+ &:active .button
752
+ background: shade(#efefef, 10%)
753
+
754
+ &:before
755
+ background: rgba(255, 255, 255, .5)
756
+ content: ""
757
+ height: 100%
758
+ left: 0
759
+ opacity: 0
760
+ position: absolute
761
+ text-align: center
762
+ top: 0
763
+ width: 100%
764
+ @include transition(opacity .2s ease)
765
+
766
+ .placeholder
767
+ color: #666
768
+ font-size: 13px
769
+ font-weight: 600
770
+ line-height: 36px
771
+ margin-bottom: 2px
772
+ position: absolute
773
+ right: 15px
774
+
775
+ span
776
+ border: 1px solid #ddd
777
+ margin-top: -5px
778
+ margin-right: -5px
779
+
780
+ span:before
781
+ display: inline-block
782
+ margin-right: 6px
783
+ vertical-align: middle
784
+
785
+ .media_picker:hover .image
786
+ box-shadow: 0 0 20px rgba(0, 0, 0, .2)
787
+
788
+ ul.sortable-grid
789
+ margin: -8px
790
+
791
+ .image, .sortable-placeholder
792
+ border-radius: 5px
793
+ cursor: move
794
+ display: block
795
+ float: left
796
+ height: 120px
797
+ margin: 8px
798
+ overflow: hidden
799
+ width: 120px
800
+ @include transition(box-shadow .3s ease)
801
+
802
+ &:hover
803
+ box-shadow: 0 0 20px rgba(0, 0, 0, .2)
804
+
805
+ .sortable-placeholder
806
+ background: #f5f5f5