spina 1.2.0 → 2.0.0.alpha

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 (142) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/spina/favicon.png +0 -0
  3. data/app/assets/javascripts/spina/admin/application.js +1 -2
  4. data/app/assets/javascripts/spina/admin/controllers/attachment_picker_controller.js +15 -0
  5. data/app/assets/javascripts/spina/admin/controllers/image_form_controller.js +5 -4
  6. data/app/assets/javascripts/spina/admin/controllers/infinite_scroll_controller.js +20 -22
  7. data/app/assets/javascripts/spina/admin/controllers/media_picker_controller.js +171 -0
  8. data/app/assets/javascripts/spina/admin/controllers/modal_controller.js +18 -0
  9. data/app/assets/javascripts/spina/admin/controllers/repeater_form_controller.js +38 -0
  10. data/app/assets/javascripts/spina/admin/media_gallery.coffee +0 -3
  11. data/app/assets/javascripts/spina/admin/notifications.coffee +1 -1
  12. data/app/assets/javascripts/spina/admin/pages.coffee.erb +3 -20
  13. data/app/assets/javascripts/spina/admin/scaffold.coffee +0 -3
  14. data/app/assets/javascripts/spina/admin/trix.coffee.erb +14 -18
  15. data/app/assets/stylesheets/spina.sass +10 -8
  16. data/app/assets/stylesheets/spina/_buttons.sass +57 -31
  17. data/app/assets/stylesheets/spina/_forms.sass +59 -73
  18. data/app/assets/stylesheets/spina/_gallery.sass +18 -2
  19. data/app/assets/stylesheets/spina/_media_picker.sass +133 -0
  20. data/app/assets/stylesheets/spina/_modal.sass +35 -2
  21. data/app/assets/stylesheets/spina/_notifications.sass +20 -14
  22. data/app/assets/stylesheets/spina/_pages.sass +131 -0
  23. data/app/assets/stylesheets/spina/_sortable_lists.sass +14 -8
  24. data/app/assets/stylesheets/spina/_trix_custom.sass +1 -1
  25. data/app/controllers/concerns/spina/frontend.rb +9 -0
  26. data/app/controllers/spina/admin/accounts_controller.rb +9 -13
  27. data/app/controllers/spina/admin/attachments_controller.rb +0 -22
  28. data/app/controllers/spina/admin/images_controller.rb +1 -1
  29. data/app/controllers/spina/admin/media_picker_controller.rb +18 -19
  30. data/app/controllers/spina/admin/pages_controller.rb +1 -5
  31. data/app/controllers/spina/admin/resources_controller.rb +9 -4
  32. data/app/controllers/spina/application_controller.rb +1 -1
  33. data/app/helpers/spina/admin/pages_helper.rb +22 -20
  34. data/app/helpers/spina/{files_helper.rb → attachments_helper.rb} +1 -1
  35. data/app/helpers/spina/images_helper.rb +6 -0
  36. data/app/helpers/spina/pages_helper.rb +23 -4
  37. data/app/models/concerns/spina/partable.rb +19 -7
  38. data/app/models/concerns/spina/translated_content.rb +19 -0
  39. data/app/models/spina/account.rb +3 -10
  40. data/app/models/spina/attachment.rb +0 -4
  41. data/app/models/spina/current.rb +1 -0
  42. data/app/models/spina/image.rb +0 -4
  43. data/app/models/spina/page.rb +7 -15
  44. data/app/models/spina/parts/attachment.rb +17 -0
  45. data/app/models/spina/parts/base.rb +12 -0
  46. data/app/models/spina/parts/image.rb +30 -0
  47. data/app/models/spina/parts/image_collection.rb +23 -0
  48. data/app/models/spina/parts/line.rb +7 -0
  49. data/app/models/spina/parts/option.rb +13 -0
  50. data/app/models/spina/parts/repeater.rb +10 -0
  51. data/app/models/spina/parts/repeater_content.rb +15 -0
  52. data/app/models/spina/parts/text.rb +7 -0
  53. data/app/models/spina/resource.rb +4 -0
  54. data/app/presenters/spina/content_presenter.rb +58 -0
  55. data/app/presenters/spina/menu_presenter.rb +2 -1
  56. data/app/views/layouts/spina/admin/admin.html.haml +3 -4
  57. data/app/views/layouts/spina/admin/pages.html.haml +5 -4
  58. data/app/views/spina/admin/accounts/_form.html.haml +13 -7
  59. data/app/views/spina/admin/accounts/analytics.html.haml +5 -3
  60. data/app/views/spina/admin/accounts/style.html.haml +26 -21
  61. data/app/views/spina/admin/images/index.html.haml +7 -5
  62. data/app/views/spina/admin/media_folders/show.html.haml +2 -2
  63. data/app/views/spina/admin/media_picker/_image.html.haml +3 -0
  64. data/app/views/spina/admin/media_picker/_media_picker.html.haml +32 -0
  65. data/app/views/spina/admin/media_picker/_media_picker_grid.html.haml +25 -0
  66. data/app/views/spina/admin/media_picker/infinite_scroll.js.erb +4 -4
  67. data/app/views/spina/admin/media_picker/select.js.erb +2 -0
  68. data/app/views/spina/admin/media_picker/show.html.haml +1 -0
  69. data/app/views/spina/admin/media_picker/show.js.erb +1 -1
  70. data/app/views/spina/admin/pages/_form.html.haml +9 -7
  71. data/app/views/spina/admin/pages/_form_advanced.html.haml +5 -5
  72. data/app/views/spina/admin/pages/_form_page_content.html.haml +14 -13
  73. data/app/views/spina/admin/pages/_form_page_seo.html.haml +9 -5
  74. data/app/views/spina/admin/pages/_page.html.haml +5 -3
  75. data/app/views/spina/admin/pages/_page_nested_list.html.haml +2 -3
  76. data/app/views/spina/admin/pages/index.html.haml +5 -4
  77. data/app/views/spina/admin/parts/attachments/_form.html.haml +6 -0
  78. data/app/views/spina/admin/parts/image_collections/_fields.html.haml +7 -0
  79. data/app/views/spina/admin/parts/image_collections/_form.html.haml +12 -0
  80. data/app/views/spina/admin/parts/images/_form.html.haml +18 -0
  81. data/app/views/spina/admin/parts/lines/_form.html.haml +2 -0
  82. data/app/views/spina/admin/parts/options/_form.html.haml +3 -0
  83. data/app/views/spina/admin/parts/repeaters/_fields.html.haml +15 -0
  84. data/app/views/spina/admin/parts/repeaters/_form.html.haml +18 -0
  85. data/app/views/spina/admin/parts/texts/_form.html.haml +6 -0
  86. data/app/views/spina/admin/resources/edit.html.haml +28 -5
  87. data/app/views/spina/admin/resources/show.html.haml +5 -2
  88. data/app/views/spina/admin/shared/_notifications.html.haml +4 -4
  89. data/db/migrate/12_add_url_title_to_spina_page_translations.rb +1 -1
  90. data/db/migrate/13_add_json_attributes_to_spina_accounts.rb +5 -0
  91. data/db/migrate/14_add_json_attributes_to_spina_pages.rb +5 -0
  92. data/db/migrate/15_add_slug_to_spina_resources.rb +5 -0
  93. data/lib/generators/spina/templates/app/views/demo/pages/demo.html.haml +13 -21
  94. data/lib/generators/spina/templates/app/views/demo/pages/homepage.html.haml +1 -1
  95. data/lib/generators/spina/templates/config/initializers/themes/default.rb +4 -4
  96. data/lib/generators/spina/templates/config/initializers/themes/demo.rb +32 -44
  97. data/lib/spina.rb +2 -0
  98. data/lib/spina/attr_json_spina_parts_model.rb +29 -0
  99. data/lib/spina/engine.rb +13 -2
  100. data/lib/spina/part.rb +19 -0
  101. data/lib/spina/theme.rb +1 -1
  102. data/lib/spina/version.rb +1 -1
  103. data/vendor/assets/javascripts/spina/sortable.js +2 -2
  104. metadata +54 -42
  105. data/app/assets/javascripts/spina/admin/account.coffee +0 -16
  106. data/app/models/concerns/spina/image_collectable.rb +0 -23
  107. data/app/models/concerns/spina/optionable.rb +0 -12
  108. data/app/models/concerns/spina/part.rb +0 -38
  109. data/app/models/spina/attachment_collection.rb +0 -20
  110. data/app/models/spina/image_collection.rb +0 -23
  111. data/app/models/spina/image_collections_image.rb +0 -6
  112. data/app/models/spina/layout_part.rb +0 -22
  113. data/app/models/spina/line.rb +0 -10
  114. data/app/models/spina/option.rb +0 -17
  115. data/app/models/spina/page_part.rb +0 -22
  116. data/app/models/spina/structure.rb +0 -14
  117. data/app/models/spina/structure_item.rb +0 -22
  118. data/app/models/spina/structure_part.rb +0 -20
  119. data/app/models/spina/text.rb +0 -10
  120. data/app/views/dummy/show.html.haml +0 -1
  121. data/app/views/spina/admin/attachments/_attachment_collection.html.haml +0 -2
  122. data/app/views/spina/admin/attachments/_select.html.haml +0 -17
  123. data/app/views/spina/admin/attachments/_select_collection.html.haml +0 -18
  124. data/app/views/spina/admin/attachments/insert.js.erb +0 -5
  125. data/app/views/spina/admin/attachments/insert_collection.js.coffee +0 -7
  126. data/app/views/spina/admin/attachments/select.js.erb +0 -2
  127. data/app/views/spina/admin/attachments/select_collection.js.erb +0 -2
  128. data/app/views/spina/admin/image_collections/_image_collection.html.haml +0 -5
  129. data/app/views/spina/admin/layout_partables/lines/_form.html.haml +0 -2
  130. data/app/views/spina/admin/partables/attachment_collections/_form.html.haml +0 -14
  131. data/app/views/spina/admin/partables/attachments/_form.html.haml +0 -13
  132. data/app/views/spina/admin/partables/image_collections/_form.html.haml +0 -16
  133. data/app/views/spina/admin/partables/images/_form.html.haml +0 -21
  134. data/app/views/spina/admin/partables/lines/_form.html.haml +0 -5
  135. data/app/views/spina/admin/partables/options/_form.html.haml +0 -7
  136. data/app/views/spina/admin/partables/photo_collections/_form.html.haml +0 -4
  137. data/app/views/spina/admin/partables/photos/_form.html.haml +0 -4
  138. data/app/views/spina/admin/partables/structures/_form.html.haml +0 -21
  139. data/app/views/spina/admin/partables/texts/_form.html.haml +0 -8
  140. data/app/views/spina/admin/structure_items/_fields.html.haml +0 -15
  141. data/app/views/spina/admin/structure_partables/attachment_collections/_form.html.haml +0 -14
  142. data/app/views/spina/admin/structure_partables/attachments/_form.html.haml +0 -13
@@ -29,6 +29,8 @@
29
29
  @import spina/trix_custom
30
30
  @import spina/wizard
31
31
  @import spina/notifications
32
+ @import spina/pages
33
+ @import spina/media_picker
32
34
 
33
35
 
34
36
  html
@@ -267,12 +269,12 @@ nav#secondary
267
269
  small
268
270
  display: block
269
271
  font-size: 12px
270
- font-weight: 400
272
+ font-weight: 500
271
273
 
272
274
  &.permanent-notice-info
273
- background: #eef6fe
274
- border-color: #def
275
- color: #12659b
275
+ background: lighten($primary-color-light, 33%)
276
+ border-color: lighten($primary-color-light, 28%)
277
+ color: $primary-color
276
278
 
277
279
  p
278
280
  color: inherit
@@ -427,7 +429,7 @@ section#main
427
429
  margin-left: 12px
428
430
  vertical-align: middle
429
431
 
430
- a
432
+ & > a:not(.button)
431
433
  color: #999
432
434
 
433
435
  &:hover
@@ -445,9 +447,9 @@ section#main
445
447
 
446
448
  .well
447
449
  background: #fff
448
- border: 1px solid #eee
449
- border-radius: 3px
450
- margin: 24px -20px
450
+ border-radius: 6px
451
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
452
+ margin: 24px -15px
451
453
  padding: 20px
452
454
 
453
455
  hr.divider
@@ -6,17 +6,17 @@ button, input[type="submit"], input[type="button"]
6
6
 
7
7
  .button
8
8
  background: #efefef
9
- border-radius: 3px
9
+ border-radius: 6px
10
10
  color: #444
11
11
  display: inline-block
12
12
  font-size: 14px
13
13
  font-weight: 600
14
- line-height: 20px
14
+ line-height: 18px
15
15
  margin: 0 4px 4px 0
16
16
  outline: none
17
17
  padding: 8px 16px
18
18
  text-decoration: none
19
- transition: all .3s ease
19
+ transition: all .2s ease
20
20
 
21
21
  &:hover
22
22
  background: shade(#efefef, 5%)
@@ -31,12 +31,34 @@ button, input[type="submit"], input[type="button"]
31
31
  &:focus
32
32
  outline: none
33
33
 
34
+ &.button-default
35
+ background: white
36
+ border: 1px solid #ddd
37
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
38
+
39
+ &:hover
40
+ background: #f5f5f5
41
+ border: 1px solid #ccc
42
+ box-shadow: 0 1px 2px rgba(0, 0, 0, .1)
43
+
44
+ &:active
45
+ background: #eee
46
+ border: 1px solid #c9c9c9
47
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1)
48
+
34
49
  &.button-primary
35
50
  background: $primary-color
51
+ border: 1px solid darken($primary-color, 5%)
52
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .1)
36
53
  color: #fff
37
54
 
38
55
  &:hover
39
- background: shade($primary-color, 10%)
56
+ background: shade($primary-color, 15%)
57
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .2)
58
+
59
+ &:active
60
+ background: shade($primary-color, 25%)
61
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .4)
40
62
 
41
63
  &.button-shaded:hover
42
64
  background: $primary-color
@@ -46,16 +68,23 @@ button, input[type="submit"], input[type="button"]
46
68
 
47
69
  &.button-success
48
70
  background: $success-color
71
+ border-color: $success-color
72
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .1)
49
73
  color: #fff
50
74
 
51
75
  &:hover
52
- background: tint($success-color, 20%)
76
+ background: darken($success-color, 10%)
77
+ border-color: darken($success-color, 15%)
78
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .2)
79
+
80
+ &:active
81
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .4)
53
82
 
54
83
  &.button-shaded:hover
55
84
  background: $success-color
56
85
 
57
86
  &:active, &.button-active, &.button-shaded, &.button-shaded:active
58
- background: shade($success-color, 10%)
87
+ background: darken($success-color, 10%)
59
88
 
60
89
  &.button-danger
61
90
  color: $danger-color
@@ -64,6 +93,10 @@ button, input[type="submit"], input[type="button"]
64
93
  display: block
65
94
  text-align: center
66
95
 
96
+ &.button-white
97
+ background: white
98
+ border: 1px solid #ccc
99
+
67
100
  &.button-link
68
101
  background: none
69
102
  font-weight: 600
@@ -76,7 +109,6 @@ button, input[type="submit"], input[type="button"]
76
109
 
77
110
  i.icon
78
111
  margin-right: 8px
79
- margin-top: -2px
80
112
 
81
113
  &.icon-only
82
114
  &:before, i.icon
@@ -86,18 +118,18 @@ button, input[type="submit"], input[type="button"]
86
118
  margin-right: 4px
87
119
 
88
120
  &.button-large
89
- border-radius: 4px
121
+ border-radius: 6px
90
122
  padding: 11px 18px
91
123
 
92
124
  &:before
93
125
  margin-right: 10px
94
126
 
95
127
  &.button-small
96
- font-size: 13px
128
+ font-size: 12px
97
129
  padding: 6px 12px
98
130
 
99
131
  i.icon
100
- margin-right: 4px
132
+ margin-right: 6px
101
133
 
102
134
  &.button-mini
103
135
  font-size: 12px
@@ -126,6 +158,12 @@ button, input[type="submit"], input[type="button"]
126
158
  animation: rotate 3.0s linear infinite
127
159
  display: inline-block
128
160
 
161
+ // Aligning button content
162
+ .button-content
163
+ align-items: center
164
+ display: flex
165
+ justify-content: center
166
+
129
167
  @keyframes rotate
130
168
  from
131
169
  transform: rotate(0deg)
@@ -144,10 +182,13 @@ button, input[type="submit"], input[type="button"]
144
182
  margin-right: 0
145
183
 
146
184
  .button:first-child
147
- border-radius: 3px 0 0 3px
185
+ border-top-left-radius: 3px
186
+ border-bottom-left-radius: 3px
148
187
 
149
188
  .button:last-child
150
- border-radius: 0 3px 3px 0
189
+ border-left: none
190
+ border-top-right-radius: 3px
191
+ border-bottom-right-radius: 3px
151
192
 
152
193
  &:after
153
194
  clear: both
@@ -201,7 +242,7 @@ button, input[type="submit"], input[type="button"]
201
242
  ul, .sliding-dropdown
202
243
  background: #fff
203
244
  border: 1px solid #ccc
204
- border-radius: 3px
245
+ border-radius: 6px
205
246
  box-shadow: 0 5px 20px rgba(0, 0, 0, .15)
206
247
  display: none
207
248
  list-style: none
@@ -323,35 +364,20 @@ button, input[type="submit"], input[type="button"]
323
364
  .slide
324
365
  display: none
325
366
  text-align: center
367
+ padding-bottom: 15px
326
368
 
327
369
  &.active
328
370
  display: block
329
371
 
330
372
  p
331
373
  color: #333
332
- font-size: 14px
333
- font-weight: 400
374
+ font-size: 13px
375
+ font-weight: 500
334
376
  margin: 16px
335
377
 
336
378
  p.muted
337
379
  color: #999
338
380
 
339
- .button
340
- border-top-left-radius: 0
341
- border-top-right-radius: 0
342
- margin: -1px
343
- width: 300px
344
-
345
- &.button-primary
346
- background: lighten($primary-color, 40%)
347
- border: 1px solid lighten($primary-color, 30%)
348
- color: $primary-color
349
-
350
- &:hover
351
- background: $primary-color
352
- border: 1px solid $primary-color
353
- color: #fff
354
-
355
381
  .slide-dots
356
382
  margin: 12px
357
383
  text-align: center
@@ -1,10 +1,10 @@
1
1
  // Horizontal form
2
2
  .horizontal-form
3
3
  .horizontal-form-group
4
- border-bottom: 1px solid #eee
4
+ border-bottom: 1px solid #e5e5e5
5
5
  display: flex
6
- margin: 0 -20px
7
- padding: 20px 20px
6
+ margin: 0 -40px
7
+ padding: 20px 40px
8
8
 
9
9
  &:first-child
10
10
  margin-top: -20px
@@ -466,7 +466,7 @@ input.datepicker
466
466
  // Switch
467
467
 
468
468
  .switch
469
- background: #e9e9e9
469
+ background: #d9d9ec
470
470
  border-radius: 23px
471
471
  display: block
472
472
  height: 29px
@@ -477,17 +477,25 @@ input.datepicker
477
477
  width: 46px
478
478
 
479
479
  .knob
480
- background: #fff
480
+ background: #f5f5f5
481
481
  border-radius: 23px
482
- box-shadow: 0 2px 5px rgba(0, 0, 0, .3)
482
+ box-shadow: 0 3px 10px rgba(0, 0, 0, .1)
483
483
  display: inline-block
484
484
  height: 23px
485
485
  position: absolute
486
+ transition: all .2s ease
486
487
  width: 23px
487
488
 
489
+ &:hover .knob
490
+ background: #fff
491
+ box-shadow: 0 3px 10px rgba(0, 0, 0, .2)
492
+
488
493
  &.activated, &.active
489
494
  background: $success-color
490
495
 
496
+ .knob
497
+ background: #fff
498
+
491
499
  &.active .knob
492
500
  transform: translate3d(17px, 0, 0)
493
501
 
@@ -514,7 +522,7 @@ input.datepicker
514
522
  label:before
515
523
  background: #fff
516
524
  border: 1px solid #c3c3c3
517
- border-radius: 4px
525
+ border-radius: 6px
518
526
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .16)
519
527
  content: ""
520
528
  display: inline-block
@@ -552,17 +560,17 @@ input.datepicker
552
560
 
553
561
  .select-dropdown
554
562
  background: #fff
555
- border: 1px solid #c3c3c3
556
- border-radius: 3px
557
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, .16)
563
+ border: 1px solid #e2e2e2
564
+ border-radius: 6px
565
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
558
566
  display: inline-block
559
567
  font-family: $font-family
560
- line-height: 28px
568
+ line-height: 32px
561
569
  margin: 0
562
570
  overflow: hidden
563
571
  padding: 0
564
572
  position: relative
565
- transition: border .2s ease
573
+ transition: all .2s ease
566
574
  white-space: nowrap
567
575
  @extend .icon, .icon-caret-down
568
576
 
@@ -583,17 +591,21 @@ input.datepicker
583
591
  margin-right: -4px
584
592
  padding: 0 11px
585
593
 
586
- &:after
587
- content: ":"
588
-
589
594
  &:hover
590
- border: 1px solid $primary-color
595
+ background: #f5f5f5
596
+ border: 1px solid #ccc
597
+ box-shadow: 0 1px 2px rgba(0, 0, 0, .1)
598
+
599
+ &:active
600
+ background: #eee
601
+ border: 1px solid #c9c9c9
602
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1)
591
603
 
592
604
  &:before
593
605
  color: #666
594
606
  font-size: 14px
595
607
  font-weight: normal
596
- line-height: 28px
608
+ line-height: 32px
597
609
  position: absolute
598
610
  right: 8px
599
611
  top: 5px
@@ -606,14 +618,14 @@ input.datepicker
606
618
  box-shadow: none
607
619
  color: #666
608
620
  cursor: pointer
609
- display: inline-block
621
+ display: block
610
622
  font-family: $font-family
611
- font-size: 13px
612
- font-weight: 600
613
- line-height: 16px
623
+ font-size: 14px
624
+ font-weight: 500
625
+ height: 42px
614
626
  margin: 0
615
627
  outline: none
616
- padding: 11px 36px 11px 10px
628
+ padding: 13px 36px 13px 15px
617
629
  position: relative
618
630
  width: 115%
619
631
  z-index: 2
@@ -623,12 +635,12 @@ input.datepicker
623
635
 
624
636
  .structure-form
625
637
  display: flex
626
- margin-left: -20px
627
638
  position: relative
628
639
 
629
640
  .structure-form-menu
630
641
  box-sizing: content-box
631
642
  min-width: 260px
643
+ width: 260px
632
644
 
633
645
  label
634
646
  display: block
@@ -637,23 +649,9 @@ input.datepicker
637
649
  text-transform: none
638
650
 
639
651
  ul
640
- border-right: 1px solid #ddd
652
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
641
653
  position: relative
642
654
 
643
- ul:before, ul:after
644
- background: linear-gradient(rgba(255, 255, 255, 0), #ddd)
645
- content: " "
646
- height: 40px
647
- position: absolute
648
- right: -1px
649
- top: -40px
650
- width: 1px
651
-
652
- ul:after
653
- background: linear-gradient(#ddd, rgba(255, 255, 255, 0))
654
- bottom: -40px
655
- top: auto
656
-
657
655
  ul li
658
656
  overflow: hidden
659
657
 
@@ -661,14 +659,29 @@ input.datepicker
661
659
  color: #999
662
660
  float: right
663
661
 
662
+ ul li a
663
+ background: rgba(255, 255, 255, .4)
664
+ border: 1px solid #e6e6e6
665
+
666
+ ul li:not(:last-child) a
667
+ border-bottom: none
668
+
669
+ ul li:first-child a
670
+ border-top-left-radius: 4px
671
+ border-top-right-radius: 4px
672
+
673
+ ul li:last-child a
674
+ border-bottom-left-radius: 4px
675
+ border-bottom-right-radius: 4px
676
+
664
677
  ul li a, ul li.sortable-placeholder
665
- color: #333
678
+ color: #444
666
679
  cursor: pointer
667
680
  display: block
668
681
  font-weight: 600
669
682
  font-size: 13px
670
- height: 50px
671
- line-height: 50px
683
+ height: 44px
684
+ line-height: 44px
672
685
  outline: none
673
686
  padding-left: 20px
674
687
 
@@ -685,40 +698,13 @@ input.datepicker
685
698
  background: #f9f9f9
686
699
 
687
700
  ul li.active a
701
+ background: white
688
702
  color: $primary-color
689
703
 
690
- ul li.active
691
- margin-right: -1px
692
- position: relative
693
-
694
- a
695
- background: #fff
696
-
697
- &:before
698
- border-bottom: 1px solid #ddd
699
- border-bottom-right-radius: 3px
700
- border-right: 1px solid #ddd
701
- content: " "
702
- height: 10px
703
- position: absolute
704
- right: 0px
705
- top: -10px
706
- width: 100%
707
-
708
- &:after
709
- bottom: -10px
710
- border-right: 1px solid #ddd
711
- border-top: 1px solid #d5d5d5
712
- border-top-right-radius: 3px
713
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075)
714
- content: " "
715
- height: 10px
716
- right: 0px
717
- position: absolute
718
- width: 100%
719
-
720
704
  .structure-form-content
721
- padding-left: 12px
705
+ box-sizing: border-box
706
+ margin-top: -29px
707
+ padding-left: 15px
722
708
  width: 100%
723
709
 
724
710
  .structure-form-pane
@@ -841,7 +827,7 @@ input.datepicker
841
827
  background: #f9f9f9
842
828
  border: 1px solid #d5d5d5
843
829
  border-radius: 3px
844
- box-shadow: inset 0 2px 2px rgba(0, 0, 0, .1)
830
+ box-shadow: inset 0 2px 6px rgba(0, 0, 0, .1)
845
831
  color: #333
846
832
  display: block
847
833
  margin-top: 2px