spina 1.1.1 → 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.
- checksums.yaml +4 -4
- data/README.md +23 -244
- data/app/assets/fonts/spina/Metropolis-Black.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-BlackItalic.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-Bold.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-BoldItalic.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-ExtraBold.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-ExtraBoldItalic.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-ExtraLight.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-ExtraLightItalic.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-Light.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-LightItalic.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-Medium.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-MediumItalic.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-Regular.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-RegularItalic.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-SemiBold.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-SemiBoldItalic.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-Thin.woff2 +0 -0
- data/app/assets/fonts/spina/Metropolis-ThinItalic.woff2 +0 -0
- data/app/assets/fonts/spina/ics_spina.eot +0 -0
- data/app/assets/fonts/spina/ics_spina.svg +285 -267
- data/app/assets/fonts/spina/ics_spina.ttf +0 -0
- data/app/assets/fonts/spina/ics_spina.woff +0 -0
- data/app/assets/fonts/spina/ics_spina.woff2 +0 -0
- data/app/assets/icons/spina/bold.svg +1 -1
- data/app/assets/icons/spina/code.svg +1 -1
- data/app/assets/icons/spina/image.svg +1 -10
- data/app/assets/icons/spina/indent.svg +1 -0
- data/app/assets/icons/spina/italic.svg +1 -1
- data/app/assets/icons/spina/link.svg +1 -1
- data/app/assets/icons/spina/list-ol.svg +1 -0
- data/app/assets/icons/spina/list.svg +1 -0
- data/app/assets/icons/spina/outdent.svg +1 -0
- data/app/assets/icons/spina/preview/ics_spina-preview.html +121 -1
- data/app/assets/icons/spina/quote-right.svg +1 -0
- data/app/assets/icons/spina/redo.svg +1 -0
- data/app/assets/icons/spina/strikethrough.svg +1 -0
- data/app/assets/icons/spina/undo.svg +1 -0
- data/app/assets/images/spina/favicon.png +0 -0
- data/app/assets/javascripts/spina/admin/application.js +1 -2
- data/app/assets/javascripts/spina/admin/controllers/attachment_picker_controller.js +15 -0
- data/app/assets/javascripts/spina/admin/controllers/image_form_controller.js +5 -4
- data/app/assets/javascripts/spina/admin/controllers/infinite_scroll_controller.js +20 -22
- data/app/assets/javascripts/spina/admin/controllers/media_picker_controller.js +171 -0
- data/app/assets/javascripts/spina/admin/controllers/modal_controller.js +18 -0
- data/app/assets/javascripts/spina/admin/controllers/repeater_form_controller.js +38 -0
- data/app/assets/javascripts/spina/admin/media_gallery.coffee +0 -3
- data/app/assets/javascripts/spina/admin/notifications.coffee +1 -1
- data/app/assets/javascripts/spina/admin/pages.coffee.erb +3 -20
- data/app/assets/javascripts/spina/admin/scaffold.coffee +0 -3
- data/app/assets/javascripts/spina/admin/trix.coffee.erb +14 -18
- data/app/assets/stylesheets/spina.sass +10 -10
- data/app/assets/stylesheets/spina/_buttons.sass +58 -32
- data/app/assets/stylesheets/spina/_configuration.sass.erb +2 -2
- data/app/assets/stylesheets/spina/_fonts.sass +32 -0
- data/app/assets/stylesheets/spina/_forms.sass +65 -76
- data/app/assets/stylesheets/spina/_gallery.sass +22 -4
- data/app/assets/stylesheets/spina/_ics_spina.scss +8 -0
- data/app/assets/stylesheets/spina/_media_picker.sass +133 -0
- data/app/assets/stylesheets/spina/_modal.sass +35 -2
- data/app/assets/stylesheets/spina/_notifications.sass +20 -14
- data/app/assets/stylesheets/spina/_pages.sass +131 -0
- data/app/assets/stylesheets/spina/_sortable_lists.sass +14 -8
- data/app/assets/stylesheets/spina/_tables.sass +7 -4
- data/app/assets/stylesheets/spina/_trix_custom.sass +15 -28
- data/app/controllers/concerns/spina/frontend.rb +9 -0
- data/app/controllers/spina/admin/accounts_controller.rb +9 -13
- data/app/controllers/spina/admin/attachments_controller.rb +0 -22
- data/app/controllers/spina/admin/images_controller.rb +1 -1
- data/app/controllers/spina/admin/media_folders_controller.rb +10 -0
- data/app/controllers/spina/admin/media_picker_controller.rb +18 -19
- data/app/controllers/spina/admin/pages_controller.rb +3 -7
- data/app/controllers/spina/admin/resources_controller.rb +9 -4
- data/app/controllers/spina/application_controller.rb +1 -1
- data/app/helpers/spina/admin/pages_helper.rb +22 -20
- data/app/helpers/spina/{files_helper.rb → attachments_helper.rb} +1 -1
- data/app/helpers/spina/images_helper.rb +14 -0
- data/app/helpers/spina/pages_helper.rb +23 -4
- data/app/models/concerns/spina/partable.rb +19 -7
- data/app/models/concerns/spina/translated_content.rb +19 -0
- data/app/models/spina/account.rb +3 -10
- data/app/models/spina/attachment.rb +0 -4
- data/app/models/spina/current.rb +1 -0
- data/app/models/spina/image.rb +0 -4
- data/app/models/spina/page.rb +19 -20
- data/app/models/spina/parts/attachment.rb +17 -0
- data/app/models/spina/parts/base.rb +12 -0
- data/app/models/spina/parts/image.rb +30 -0
- data/app/models/spina/parts/image_collection.rb +23 -0
- data/app/models/spina/parts/line.rb +7 -0
- data/app/models/spina/parts/option.rb +13 -0
- data/app/models/spina/parts/repeater.rb +10 -0
- data/app/models/spina/parts/repeater_content.rb +15 -0
- data/app/models/spina/parts/text.rb +7 -0
- data/app/models/spina/resource.rb +4 -12
- data/app/presenters/spina/content_presenter.rb +58 -0
- data/app/presenters/spina/menu_presenter.rb +2 -1
- data/app/views/layouts/spina/admin/admin.html.haml +3 -4
- data/app/views/layouts/spina/admin/pages.html.haml +5 -4
- data/app/views/spina/admin/accounts/_form.html.haml +13 -7
- data/app/views/spina/admin/accounts/analytics.html.haml +5 -3
- data/app/views/spina/admin/accounts/style.html.haml +26 -21
- data/app/views/spina/admin/images/index.html.haml +7 -5
- data/app/views/spina/admin/media_folders/_form.html.haml +5 -2
- data/app/views/spina/admin/media_folders/edit.js.erb +1 -0
- data/app/views/spina/admin/media_folders/show.html.haml +2 -1
- data/app/views/spina/admin/media_picker/_image.html.haml +3 -0
- data/app/views/spina/admin/media_picker/_media_picker.html.haml +32 -0
- data/app/views/spina/admin/media_picker/_media_picker_grid.html.haml +25 -0
- data/app/views/spina/admin/media_picker/infinite_scroll.js.erb +4 -4
- data/app/views/spina/admin/media_picker/select.js.erb +2 -0
- data/app/views/spina/admin/media_picker/show.html.haml +1 -0
- data/app/views/spina/admin/media_picker/show.js.erb +1 -1
- data/app/views/spina/admin/pages/_form.html.haml +10 -8
- data/app/views/spina/admin/pages/_form_advanced.html.haml +19 -17
- data/app/views/spina/admin/pages/_form_page_content.html.haml +14 -13
- data/app/views/spina/admin/pages/_form_page_seo.html.haml +15 -4
- data/app/views/spina/admin/pages/_page.html.haml +5 -3
- data/app/views/spina/admin/pages/_page_nested_list.html.haml +2 -3
- data/app/views/spina/admin/pages/index.html.haml +5 -4
- data/app/views/spina/admin/parts/attachments/_form.html.haml +6 -0
- data/app/views/spina/admin/parts/image_collections/_fields.html.haml +7 -0
- data/app/views/spina/admin/parts/image_collections/_form.html.haml +12 -0
- data/app/views/spina/admin/parts/images/_form.html.haml +18 -0
- data/app/views/spina/admin/parts/lines/_form.html.haml +2 -0
- data/app/views/spina/admin/parts/options/_form.html.haml +3 -0
- data/app/views/spina/admin/parts/repeaters/_fields.html.haml +15 -0
- data/app/views/spina/admin/parts/repeaters/_form.html.haml +18 -0
- data/app/views/spina/admin/parts/texts/_form.html.haml +6 -0
- data/app/views/spina/admin/resources/edit.html.haml +28 -12
- data/app/views/spina/admin/resources/show.html.haml +6 -3
- data/app/views/spina/admin/shared/_notifications.html.haml +4 -4
- data/config/locales/TH.yml +220 -205
- data/config/locales/bg.yml +219 -211
- data/config/locales/de.yml +218 -190
- data/config/locales/en.yml +218 -208
- data/config/locales/es.yml +219 -206
- data/config/locales/fr.yml +219 -190
- data/config/locales/id.yml +219 -189
- data/config/locales/it.yml +225 -152
- data/config/locales/nl.yml +220 -197
- data/config/locales/pl.yml +218 -185
- data/config/locales/pt-BR.yml +218 -205
- data/config/locales/ro.yml +258 -225
- data/config/locales/ru.yml +231 -171
- data/config/locales/sv.yml +218 -183
- data/config/locales/tr.yml +224 -151
- data/config/locales/zh-CN.yml +225 -175
- data/db/migrate/11_create_spina_resources.rb +0 -2
- data/db/migrate/12_add_url_title_to_spina_page_translations.rb +5 -0
- data/db/migrate/13_add_json_attributes_to_spina_accounts.rb +5 -0
- data/db/migrate/14_add_json_attributes_to_spina_pages.rb +5 -0
- data/db/migrate/15_add_slug_to_spina_resources.rb +5 -0
- data/lib/generators/spina/templates/app/views/demo/pages/demo.html.haml +13 -21
- data/lib/generators/spina/templates/app/views/demo/pages/homepage.html.haml +1 -1
- data/lib/generators/spina/templates/config/initializers/themes/default.rb +4 -4
- data/lib/generators/spina/templates/config/initializers/themes/demo.rb +32 -44
- data/lib/spina.rb +2 -0
- data/lib/spina/attr_json_spina_parts_model.rb +29 -0
- data/lib/spina/engine.rb +13 -3
- data/lib/spina/part.rb +19 -0
- data/lib/spina/theme.rb +1 -1
- data/lib/spina/version.rb +1 -1
- data/vendor/assets/javascripts/spina/sortable.js +2 -2
- metadata +71 -45
- data/app/assets/javascripts/spina/admin/account.coffee +0 -16
- data/app/models/concerns/spina/image_collectable.rb +0 -23
- data/app/models/concerns/spina/optionable.rb +0 -12
- data/app/models/concerns/spina/part.rb +0 -38
- data/app/models/spina/attachment_collection.rb +0 -20
- data/app/models/spina/image_collection.rb +0 -23
- data/app/models/spina/image_collections_image.rb +0 -6
- data/app/models/spina/layout_part.rb +0 -22
- data/app/models/spina/line.rb +0 -10
- data/app/models/spina/option.rb +0 -17
- data/app/models/spina/page_part.rb +0 -22
- data/app/models/spina/structure.rb +0 -14
- data/app/models/spina/structure_item.rb +0 -22
- data/app/models/spina/structure_part.rb +0 -20
- data/app/models/spina/text.rb +0 -10
- data/app/views/dummy/show.html.haml +0 -1
- data/app/views/spina/admin/attachments/_attachment_collection.html.haml +0 -2
- data/app/views/spina/admin/attachments/_select.html.haml +0 -17
- data/app/views/spina/admin/attachments/_select_collection.html.haml +0 -18
- data/app/views/spina/admin/attachments/insert.js.erb +0 -5
- data/app/views/spina/admin/attachments/insert_collection.js.coffee +0 -7
- data/app/views/spina/admin/attachments/select.js.erb +0 -2
- data/app/views/spina/admin/attachments/select_collection.js.erb +0 -2
- data/app/views/spina/admin/image_collections/_image_collection.html.haml +0 -5
- data/app/views/spina/admin/layout_partables/lines/_form.html.haml +0 -2
- data/app/views/spina/admin/partables/attachment_collections/_form.html.haml +0 -14
- data/app/views/spina/admin/partables/attachments/_form.html.haml +0 -13
- data/app/views/spina/admin/partables/image_collections/_form.html.haml +0 -16
- data/app/views/spina/admin/partables/images/_form.html.haml +0 -21
- data/app/views/spina/admin/partables/lines/_form.html.haml +0 -5
- data/app/views/spina/admin/partables/options/_form.html.haml +0 -7
- data/app/views/spina/admin/partables/photo_collections/_form.html.haml +0 -4
- data/app/views/spina/admin/partables/photos/_form.html.haml +0 -4
- data/app/views/spina/admin/partables/structures/_form.html.haml +0 -21
- data/app/views/spina/admin/partables/texts/_form.html.haml +0 -8
- data/app/views/spina/admin/structure_items/_fields.html.haml +0 -15
- data/app/views/spina/admin/structure_partables/attachment_collections/_form.html.haml +0 -14
- data/app/views/spina/admin/structure_partables/attachments/_form.html.haml +0 -13
@@ -11,8 +11,8 @@ $alert-color: orange
|
|
11
11
|
$warning-color: orange
|
12
12
|
|
13
13
|
$asset-pipeline: true
|
14
|
-
$font-family: "
|
15
|
-
$icon-font:
|
14
|
+
$font-family: "Metropolis", sans-serif
|
15
|
+
$icon-font: "ics_spina"
|
16
16
|
$gutter: 5em
|
17
17
|
|
18
18
|
$desktop: min-width 768px 8
|
@@ -1,3 +1,35 @@
|
|
1
|
+
// Metropolis
|
2
|
+
|
3
|
+
@font-face
|
4
|
+
font-family: "Metropolis"
|
5
|
+
font-style: normal
|
6
|
+
font-weight: normal
|
7
|
+
src: url(asset-path("spina/Metropolis-Regular.woff2")) format('woff2')
|
8
|
+
|
9
|
+
@font-face
|
10
|
+
font-family: "Metropolis"
|
11
|
+
font-style: normal
|
12
|
+
font-weight: 500
|
13
|
+
src: url(asset-path("spina/Metropolis-Medium.woff2")) format('woff2')
|
14
|
+
|
15
|
+
@font-face
|
16
|
+
font-family: "Metropolis"
|
17
|
+
font-style: normal
|
18
|
+
font-weight: 600
|
19
|
+
src: url(asset-path("spina/Metropolis-SemiBold.woff2")) format('woff2')
|
20
|
+
|
21
|
+
@font-face
|
22
|
+
font-family: "Metropolis"
|
23
|
+
font-style: normal
|
24
|
+
font-weight: 700
|
25
|
+
src: url(asset-path("spina/Metropolis-Bold.woff2")) format('woff2')
|
26
|
+
|
27
|
+
@font-face
|
28
|
+
font-family: "Metropolis"
|
29
|
+
font-style: italic
|
30
|
+
font-weight: normal
|
31
|
+
src: url(asset-path("spina/Metropolis-RegularItalic.woff2")) format('woff2')
|
32
|
+
|
1
33
|
// Icons
|
2
34
|
|
3
35
|
@font-face
|
@@ -1,10 +1,10 @@
|
|
1
1
|
// Horizontal form
|
2
2
|
.horizontal-form
|
3
3
|
.horizontal-form-group
|
4
|
-
border-bottom: 1px solid #
|
4
|
+
border-bottom: 1px solid #e5e5e5
|
5
5
|
display: flex
|
6
|
-
margin: 0 -
|
7
|
-
padding: 20px
|
6
|
+
margin: 0 -40px
|
7
|
+
padding: 20px 40px
|
8
8
|
|
9
9
|
&:first-child
|
10
10
|
margin-top: -20px
|
@@ -332,7 +332,8 @@
|
|
332
332
|
transition: all .2s ease
|
333
333
|
vertical-align: middle
|
334
334
|
width: 20px
|
335
|
-
@extend .icon
|
335
|
+
@extend .icon
|
336
|
+
content: "\f120"
|
336
337
|
|
337
338
|
input[type="checkbox"]:checked + label:after
|
338
339
|
transform: scale(1)
|
@@ -465,7 +466,7 @@ input.datepicker
|
|
465
466
|
// Switch
|
466
467
|
|
467
468
|
.switch
|
468
|
-
background: #
|
469
|
+
background: #d9d9ec
|
469
470
|
border-radius: 23px
|
470
471
|
display: block
|
471
472
|
height: 29px
|
@@ -476,17 +477,25 @@ input.datepicker
|
|
476
477
|
width: 46px
|
477
478
|
|
478
479
|
.knob
|
479
|
-
background: #
|
480
|
+
background: #f5f5f5
|
480
481
|
border-radius: 23px
|
481
|
-
box-shadow: 0
|
482
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, .1)
|
482
483
|
display: inline-block
|
483
484
|
height: 23px
|
484
485
|
position: absolute
|
486
|
+
transition: all .2s ease
|
485
487
|
width: 23px
|
486
488
|
|
489
|
+
&:hover .knob
|
490
|
+
background: #fff
|
491
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, .2)
|
492
|
+
|
487
493
|
&.activated, &.active
|
488
494
|
background: $success-color
|
489
495
|
|
496
|
+
.knob
|
497
|
+
background: #fff
|
498
|
+
|
490
499
|
&.active .knob
|
491
500
|
transform: translate3d(17px, 0, 0)
|
492
501
|
|
@@ -513,7 +522,7 @@ input.datepicker
|
|
513
522
|
label:before
|
514
523
|
background: #fff
|
515
524
|
border: 1px solid #c3c3c3
|
516
|
-
border-radius:
|
525
|
+
border-radius: 6px
|
517
526
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .16)
|
518
527
|
content: ""
|
519
528
|
display: inline-block
|
@@ -551,17 +560,17 @@ input.datepicker
|
|
551
560
|
|
552
561
|
.select-dropdown
|
553
562
|
background: #fff
|
554
|
-
border: 1px solid #
|
555
|
-
border-radius:
|
556
|
-
box-shadow:
|
563
|
+
border: 1px solid #e2e2e2
|
564
|
+
border-radius: 6px
|
565
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
|
557
566
|
display: inline-block
|
558
567
|
font-family: $font-family
|
559
|
-
line-height:
|
568
|
+
line-height: 32px
|
560
569
|
margin: 0
|
561
570
|
overflow: hidden
|
562
571
|
padding: 0
|
563
572
|
position: relative
|
564
|
-
transition:
|
573
|
+
transition: all .2s ease
|
565
574
|
white-space: nowrap
|
566
575
|
@extend .icon, .icon-caret-down
|
567
576
|
|
@@ -582,17 +591,21 @@ input.datepicker
|
|
582
591
|
margin-right: -4px
|
583
592
|
padding: 0 11px
|
584
593
|
|
585
|
-
&:after
|
586
|
-
content: ":"
|
587
|
-
|
588
594
|
&:hover
|
589
|
-
|
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)
|
590
603
|
|
591
604
|
&:before
|
592
605
|
color: #666
|
593
606
|
font-size: 14px
|
594
607
|
font-weight: normal
|
595
|
-
line-height:
|
608
|
+
line-height: 32px
|
596
609
|
position: absolute
|
597
610
|
right: 8px
|
598
611
|
top: 5px
|
@@ -605,14 +618,14 @@ input.datepicker
|
|
605
618
|
box-shadow: none
|
606
619
|
color: #666
|
607
620
|
cursor: pointer
|
608
|
-
display:
|
621
|
+
display: block
|
609
622
|
font-family: $font-family
|
610
|
-
font-size:
|
611
|
-
font-weight:
|
612
|
-
|
623
|
+
font-size: 14px
|
624
|
+
font-weight: 500
|
625
|
+
height: 42px
|
613
626
|
margin: 0
|
614
627
|
outline: none
|
615
|
-
padding:
|
628
|
+
padding: 13px 36px 13px 15px
|
616
629
|
position: relative
|
617
630
|
width: 115%
|
618
631
|
z-index: 2
|
@@ -622,12 +635,12 @@ input.datepicker
|
|
622
635
|
|
623
636
|
.structure-form
|
624
637
|
display: flex
|
625
|
-
margin-left: -20px
|
626
638
|
position: relative
|
627
639
|
|
628
640
|
.structure-form-menu
|
629
641
|
box-sizing: content-box
|
630
642
|
min-width: 260px
|
643
|
+
width: 260px
|
631
644
|
|
632
645
|
label
|
633
646
|
display: block
|
@@ -636,23 +649,9 @@ input.datepicker
|
|
636
649
|
text-transform: none
|
637
650
|
|
638
651
|
ul
|
639
|
-
|
652
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
|
640
653
|
position: relative
|
641
654
|
|
642
|
-
ul:before, ul:after
|
643
|
-
background: linear-gradient(rgba(255, 255, 255, 0), #ddd)
|
644
|
-
content: " "
|
645
|
-
height: 40px
|
646
|
-
position: absolute
|
647
|
-
right: -1px
|
648
|
-
top: -40px
|
649
|
-
width: 1px
|
650
|
-
|
651
|
-
ul:after
|
652
|
-
background: linear-gradient(#ddd, rgba(255, 255, 255, 0))
|
653
|
-
bottom: -40px
|
654
|
-
top: auto
|
655
|
-
|
656
655
|
ul li
|
657
656
|
overflow: hidden
|
658
657
|
|
@@ -660,14 +659,29 @@ input.datepicker
|
|
660
659
|
color: #999
|
661
660
|
float: right
|
662
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
|
+
|
663
677
|
ul li a, ul li.sortable-placeholder
|
664
|
-
color: #
|
678
|
+
color: #444
|
665
679
|
cursor: pointer
|
666
680
|
display: block
|
667
681
|
font-weight: 600
|
668
682
|
font-size: 13px
|
669
|
-
height:
|
670
|
-
line-height:
|
683
|
+
height: 44px
|
684
|
+
line-height: 44px
|
671
685
|
outline: none
|
672
686
|
padding-left: 20px
|
673
687
|
|
@@ -684,40 +698,13 @@ input.datepicker
|
|
684
698
|
background: #f9f9f9
|
685
699
|
|
686
700
|
ul li.active a
|
701
|
+
background: white
|
687
702
|
color: $primary-color
|
688
703
|
|
689
|
-
ul li.active
|
690
|
-
margin-right: -1px
|
691
|
-
position: relative
|
692
|
-
|
693
|
-
a
|
694
|
-
background: #fff
|
695
|
-
|
696
|
-
&:before
|
697
|
-
border-bottom: 1px solid #ddd
|
698
|
-
border-bottom-right-radius: 3px
|
699
|
-
border-right: 1px solid #ddd
|
700
|
-
content: " "
|
701
|
-
height: 10px
|
702
|
-
position: absolute
|
703
|
-
right: 0px
|
704
|
-
top: -10px
|
705
|
-
width: 100%
|
706
|
-
|
707
|
-
&:after
|
708
|
-
bottom: -10px
|
709
|
-
border-right: 1px solid #ddd
|
710
|
-
border-top: 1px solid #d5d5d5
|
711
|
-
border-top-right-radius: 3px
|
712
|
-
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075)
|
713
|
-
content: " "
|
714
|
-
height: 10px
|
715
|
-
right: 0px
|
716
|
-
position: absolute
|
717
|
-
width: 100%
|
718
|
-
|
719
704
|
.structure-form-content
|
720
|
-
|
705
|
+
box-sizing: border-box
|
706
|
+
margin-top: -29px
|
707
|
+
padding-left: 15px
|
721
708
|
width: 100%
|
722
709
|
|
723
710
|
.structure-form-pane
|
@@ -755,13 +742,14 @@ input.datepicker
|
|
755
742
|
position: relative
|
756
743
|
text-align: left
|
757
744
|
width: 100%
|
745
|
+
@extend .icon-upload-outline
|
758
746
|
|
759
747
|
&:before
|
760
748
|
color: #bbb
|
761
749
|
display: block
|
762
750
|
font-weight: 400
|
763
751
|
padding: 6px 0
|
764
|
-
@extend .icon
|
752
|
+
@extend .icon
|
765
753
|
font-size: 28px
|
766
754
|
transition: color .2s ease
|
767
755
|
vertical-align: middle
|
@@ -769,7 +757,8 @@ input.datepicker
|
|
769
757
|
&:after
|
770
758
|
animation: "rotate" 2s linear infinite
|
771
759
|
color: #bbb
|
772
|
-
|
760
|
+
content: "\f131"
|
761
|
+
@extend .icon
|
773
762
|
display: none
|
774
763
|
font-size: 36px
|
775
764
|
height: 50px
|
@@ -838,7 +827,7 @@ input.datepicker
|
|
838
827
|
background: #f9f9f9
|
839
828
|
border: 1px solid #d5d5d5
|
840
829
|
border-radius: 3px
|
841
|
-
box-shadow: inset 0 2px
|
830
|
+
box-shadow: inset 0 2px 6px rgba(0, 0, 0, .1)
|
842
831
|
color: #333
|
843
832
|
display: block
|
844
833
|
margin-top: 2px
|
@@ -197,7 +197,8 @@
|
|
197
197
|
top: 0
|
198
198
|
width: 100%
|
199
199
|
z-index: 3
|
200
|
-
@extend .icon
|
200
|
+
@extend .icon
|
201
|
+
content: "\f120"
|
201
202
|
|
202
203
|
.item.attachment
|
203
204
|
height: 60px
|
@@ -234,8 +235,9 @@
|
|
234
235
|
|
235
236
|
.gallery .item
|
236
237
|
.customfile
|
238
|
+
background: white
|
237
239
|
border: 1px solid #e5e5e5
|
238
|
-
border-radius:
|
240
|
+
border-radius: 6px
|
239
241
|
cursor: pointer
|
240
242
|
height: 100%
|
241
243
|
overflow: hidden
|
@@ -260,9 +262,10 @@
|
|
260
262
|
font-weight: normal
|
261
263
|
line-height: 130px
|
262
264
|
vertical-align: middle
|
263
|
-
@extend .icon
|
265
|
+
@extend .icon
|
264
266
|
display: none
|
265
267
|
font-size: 42px
|
268
|
+
content: "\f131"
|
266
269
|
|
267
270
|
.customfile.loading
|
268
271
|
&:before
|
@@ -307,10 +310,11 @@
|
|
307
310
|
text-transform: lowercase
|
308
311
|
transition: color .2s ease
|
309
312
|
width: 100%
|
313
|
+
z-index: 1
|
310
314
|
|
311
315
|
// Media folders
|
312
316
|
|
313
|
-
.
|
317
|
+
.media-folder
|
314
318
|
align-items: center
|
315
319
|
background: #e5e5f0
|
316
320
|
border: 1px solid #d5d4e6
|
@@ -336,6 +340,19 @@
|
|
336
340
|
transition: transform .4s ease
|
337
341
|
width: 70px
|
338
342
|
|
343
|
+
.media-folder-placeholder
|
344
|
+
align-items: center
|
345
|
+
background: $primary-color-light
|
346
|
+
border-radius: 5px
|
347
|
+
color: rgba(255, 255, 255, .5)
|
348
|
+
display: flex
|
349
|
+
font-size: 28px
|
350
|
+
height: 100%
|
351
|
+
justify-content: center
|
352
|
+
position: relative
|
353
|
+
width: 100%
|
354
|
+
z-index: 1
|
355
|
+
|
339
356
|
&[data-badge]:after
|
340
357
|
background: #6b699f
|
341
358
|
border: 3px solid #e5e5f0
|
@@ -376,6 +393,7 @@
|
|
376
393
|
border-radius: 5px
|
377
394
|
position: relative
|
378
395
|
width: 100%
|
396
|
+
z-index: 1
|
379
397
|
|
380
398
|
.media-folder-name
|
381
399
|
color: #4d4f81
|
@@ -33,10 +33,13 @@
|
|
33
33
|
.icon-home:before { content: "\f11b"; }
|
34
34
|
.icon-image:before { content: "\f11c"; }
|
35
35
|
.icon-inbox-outline:before { content: "\f11d"; }
|
36
|
+
.icon-indent:before { content: "\f13a"; }
|
36
37
|
.icon-info:before { content: "\f11e"; }
|
37
38
|
.icon-italic:before { content: "\f11f"; }
|
38
39
|
.icon-large-check:before { content: "\f120"; }
|
39
40
|
.icon-link:before { content: "\f121"; }
|
41
|
+
.icon-list:before { content: "\f13b"; }
|
42
|
+
.icon-list-ol:before { content: "\f13c"; }
|
40
43
|
.icon-list-ul:before { content: "\f122"; }
|
41
44
|
.icon-lock:before { content: "\f138"; }
|
42
45
|
.icon-mail:before { content: "\f123"; }
|
@@ -44,6 +47,7 @@
|
|
44
47
|
.icon-media-library:before { content: "\f125"; }
|
45
48
|
.icon-megaphone:before { content: "\f126"; }
|
46
49
|
.icon-min:before { content: "\f127"; }
|
50
|
+
.icon-outdent:before { content: "\f141"; }
|
47
51
|
.icon-pages:before { content: "\f128"; }
|
48
52
|
.icon-pencil:before { content: "\f129"; }
|
49
53
|
.icon-pencil-outline:before { content: "\f12a"; }
|
@@ -52,11 +56,15 @@
|
|
52
56
|
.icon-power-off:before { content: "\f12d"; }
|
53
57
|
.icon-preview:before { content: "\f12e"; }
|
54
58
|
.icon-product-outline:before { content: "\f12f"; }
|
59
|
+
.icon-quote-right:before { content: "\f13d"; }
|
55
60
|
.icon-random:before { content: "\f130"; }
|
61
|
+
.icon-redo:before { content: "\f13e"; }
|
56
62
|
.icon-refresh:before { content: "\f131"; }
|
57
63
|
.icon-search:before { content: "\f132"; }
|
58
64
|
.icon-shop:before { content: "\f133"; }
|
59
65
|
.icon-social-outline:before { content: "\f134"; }
|
66
|
+
.icon-strikethrough:before { content: "\f13f"; }
|
60
67
|
.icon-trash:before { content: "\f135"; }
|
68
|
+
.icon-undo:before { content: "\f140"; }
|
61
69
|
.icon-upload-outline:before { content: "\f136"; }
|
62
70
|
.icon-users-outline:before { content: "\f137"; }
|
@@ -0,0 +1,133 @@
|
|
1
|
+
.modal section.media-picker
|
2
|
+
padding-top: 0
|
3
|
+
|
4
|
+
.media-picker-grid
|
5
|
+
display: grid
|
6
|
+
grid-auto-columns: minmax(200px, auto)
|
7
|
+
grid-template-columns: repeat(5, 1fr)
|
8
|
+
grid-row-gap: 15px
|
9
|
+
grid-column-gap: 15px
|
10
|
+
|
11
|
+
@media (min-width: 1680px)
|
12
|
+
grid-template-columns: repeat(6, 1fr)
|
13
|
+
|
14
|
+
.media-folder
|
15
|
+
border-radius: 6px
|
16
|
+
|
17
|
+
.media-picker-uploader
|
18
|
+
background: #eee
|
19
|
+
border-radius: 5px
|
20
|
+
height: 100%
|
21
|
+
position: relative
|
22
|
+
|
23
|
+
&:before
|
24
|
+
color: #999
|
25
|
+
font-size: 48px
|
26
|
+
left: 50%
|
27
|
+
position: absolute
|
28
|
+
top: 50%
|
29
|
+
transform: translateX(-50%) translateY(-50%)
|
30
|
+
@extend .icon, .icon-upload-outline
|
31
|
+
|
32
|
+
&:hover:before
|
33
|
+
color: #333
|
34
|
+
|
35
|
+
&.uploading:before
|
36
|
+
font-size: 24px
|
37
|
+
@extend .icon-dots
|
38
|
+
|
39
|
+
input[type="file"]
|
40
|
+
cursor: pointer
|
41
|
+
height: 100%
|
42
|
+
opacity: 0
|
43
|
+
width: 100%
|
44
|
+
|
45
|
+
input[type="submit"]
|
46
|
+
display: none
|
47
|
+
|
48
|
+
.media-picker-image
|
49
|
+
cursor: pointer
|
50
|
+
display: block
|
51
|
+
margin: 0
|
52
|
+
position: relative
|
53
|
+
|
54
|
+
span
|
55
|
+
background: #eee
|
56
|
+
border-radius: 6px
|
57
|
+
display: block
|
58
|
+
height: 0
|
59
|
+
overflow: hidden
|
60
|
+
padding-top: calc(150 / 200 * 100%)
|
61
|
+
position: relative
|
62
|
+
|
63
|
+
img
|
64
|
+
border-radius: 6px
|
65
|
+
display: block
|
66
|
+
height: auto
|
67
|
+
left: 0
|
68
|
+
position: absolute
|
69
|
+
top: 0
|
70
|
+
width: 100%
|
71
|
+
|
72
|
+
input[type="radio"], input[type="checkbox"]
|
73
|
+
display: none
|
74
|
+
|
75
|
+
input[type="radio"]:checked + span:before, input[type="checkbox"]:checked + span:before
|
76
|
+
background: $primary-color-light
|
77
|
+
border-radius: 6px
|
78
|
+
content: " "
|
79
|
+
height: 100%
|
80
|
+
left: 0px
|
81
|
+
opacity: .5
|
82
|
+
position: absolute
|
83
|
+
top: 0px
|
84
|
+
width: 100%
|
85
|
+
z-index: 1
|
86
|
+
|
87
|
+
input[type="radio"]:checked + span:after, input[type="checkbox"]:checked + span:after
|
88
|
+
align-items: center
|
89
|
+
background: rgba(0, 0, 0, .2)
|
90
|
+
border: 1px solid rgba(255, 255, 255, .25)
|
91
|
+
border-radius: 15px
|
92
|
+
content: "\f120"
|
93
|
+
color: white
|
94
|
+
display: flex
|
95
|
+
font-size: 13px
|
96
|
+
height: 30px
|
97
|
+
justify-content: center
|
98
|
+
left: 50%
|
99
|
+
position: absolute
|
100
|
+
transform: translateX(-50%) translateY(-50%)
|
101
|
+
top: 50%
|
102
|
+
width: 30px
|
103
|
+
z-index: 2
|
104
|
+
@extend .icon
|
105
|
+
|
106
|
+
.media-picker-footer
|
107
|
+
align-items: center
|
108
|
+
border-top: 1px solid #e9e9e9
|
109
|
+
bottom: 0px
|
110
|
+
display: flex
|
111
|
+
position: sticky
|
112
|
+
z-index: 10
|
113
|
+
|
114
|
+
.button
|
115
|
+
margin: 0
|
116
|
+
white-space: nowrap
|
117
|
+
|
118
|
+
input[type="text"]
|
119
|
+
height: 36px
|
120
|
+
line-height: 24px
|
121
|
+
margin-right: 10px
|
122
|
+
padding: 0 10px
|
123
|
+
|
124
|
+
.media-picker-selected-images
|
125
|
+
flex: 1
|
126
|
+
|
127
|
+
img
|
128
|
+
border-radius: 6px
|
129
|
+
display: block
|
130
|
+
float: left
|
131
|
+
height: 37px
|
132
|
+
margin-right: 5px
|
133
|
+
width: 50px
|