para 0.6.9 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/para/admin/tangram-mosaic.png +0 -0
  3. data/app/assets/images/para/admin/template-section.svg +23 -0
  4. data/app/assets/javascripts/para/admin.coffee +20 -0
  5. data/app/assets/javascripts/para/admin/tabs.coffee +22 -5
  6. data/app/assets/javascripts/para/admin/theme_actions.coffee +3 -3
  7. data/app/assets/javascripts/para/inputs/material-input.coffee +4 -0
  8. data/app/assets/javascripts/para/inputs/multi-select-input.coffee +173 -0
  9. data/app/assets/javascripts/para/inputs/nested_many.coffee +9 -9
  10. data/app/assets/stylesheets/para/admin.sass +5 -5
  11. data/app/assets/stylesheets/para/admin/main.sass +32 -0
  12. data/app/assets/stylesheets/para/admin/src/_alert.sass +17 -0
  13. data/app/assets/stylesheets/para/admin/src/_base.sass +51 -0
  14. data/app/assets/stylesheets/para/admin/src/_bootstrap-variables.scss +874 -0
  15. data/app/assets/stylesheets/para/admin/src/_breadcrumb.sass +22 -0
  16. data/app/assets/stylesheets/para/admin/src/_buttons.sass +107 -0
  17. data/app/assets/stylesheets/para/admin/src/_checkable.sass +94 -0
  18. data/app/assets/stylesheets/para/admin/src/_common.sass +203 -0
  19. data/app/assets/stylesheets/para/admin/src/_dropdown.sass +40 -0
  20. data/app/assets/stylesheets/para/admin/src/_form.sass +271 -0
  21. data/app/assets/stylesheets/para/admin/src/_list.sass +61 -0
  22. data/app/assets/stylesheets/para/admin/src/_mixins.sass +113 -0
  23. data/app/assets/stylesheets/para/admin/src/_multi-select.sass +91 -0
  24. data/app/assets/stylesheets/para/admin/src/_navigation.sass +150 -0
  25. data/app/assets/stylesheets/para/admin/src/_navtabs.sass +41 -0
  26. data/app/assets/stylesheets/para/admin/src/_nested-many.sass +69 -0
  27. data/app/assets/stylesheets/para/admin/src/_nested_one.sass +13 -0
  28. data/app/assets/stylesheets/para/admin/src/_orderable.sass +44 -0
  29. data/app/assets/stylesheets/para/admin/src/_page-loading.sass +39 -0
  30. data/app/assets/stylesheets/para/admin/src/_pagination.sass +34 -0
  31. data/app/assets/stylesheets/para/admin/src/_panel.sass +55 -0
  32. data/app/assets/stylesheets/para/admin/src/_responsive.sass +100 -0
  33. data/app/assets/stylesheets/para/admin/{theme → src}/_sorting.sass +11 -3
  34. data/app/assets/stylesheets/para/admin/src/_statcard.sass +41 -0
  35. data/app/assets/stylesheets/para/admin/src/_table.sass +33 -0
  36. data/app/assets/stylesheets/para/admin/src/_tree.sass +52 -0
  37. data/app/assets/stylesheets/para/admin/src/_variables.sass +37 -0
  38. data/app/assets/stylesheets/para/admin/src/_well.sass +12 -0
  39. data/app/assets/stylesheets/para/{admin/src → lib}/datetimepicker.sass +1 -3
  40. data/app/assets/stylesheets/para/{admin/src → lib}/fuelux.sass +3 -5
  41. data/app/assets/stylesheets/para/lib/jasny-bootstrap.sass +97 -0
  42. data/app/assets/stylesheets/para/{admin/src → lib}/redactor.sass +2 -5
  43. data/app/assets/stylesheets/para/lib/selectize.sass +112 -0
  44. data/app/assets/stylesheets/para/lib/slider.sass +12 -0
  45. data/app/controllers/concerns/para/admin/resource_controller_concerns.rb +14 -2
  46. data/app/controllers/para/admin/base_controller.rb +7 -0
  47. data/app/controllers/para/admin/crud_resources_controller.rb +13 -6
  48. data/app/controllers/para/admin/form_resources_controller.rb +5 -3
  49. data/app/controllers/para/admin/resources_controller.rb +9 -3
  50. data/app/controllers/para/admin/search_controller.rb +15 -0
  51. data/app/controllers/para/application_controller.rb +10 -2
  52. data/app/helpers/para/admin/page_helper.rb +9 -9
  53. data/app/helpers/para/application_helper.rb +1 -10
  54. data/app/helpers/para/form_helper.rb +5 -6
  55. data/app/helpers/para/model_helper.rb +13 -3
  56. data/app/helpers/para/ordering_helper.rb +1 -1
  57. data/app/helpers/para/search_results_helper.rb +16 -0
  58. data/app/helpers/para/tree_helper.rb +10 -6
  59. data/app/models/para/page.rb +5 -0
  60. data/app/models/para/page/section.rb +42 -0
  61. data/app/models/para/page/section_resource.rb +12 -0
  62. data/app/views/layouts/para/admin.html.haml +5 -8
  63. data/app/views/para/admin/dashboard.html.haml +21 -8
  64. data/app/views/para/admin/form_resources/show.html.haml +1 -1
  65. data/app/views/para/admin/imports/new.html.haml +2 -2
  66. data/app/views/para/admin/resources/_actions.html.haml +3 -3
  67. data/app/views/para/admin/resources/_add_button.html.haml +1 -1
  68. data/app/views/para/admin/resources/_exports_menu.html.haml +6 -6
  69. data/app/views/para/admin/resources/_filters.html.haml +7 -8
  70. data/app/views/para/admin/resources/_imports_menu.html.haml +6 -6
  71. data/app/views/para/admin/resources/_list.html.haml +14 -15
  72. data/app/views/para/admin/resources/_per_page_select.html.haml +4 -3
  73. data/app/views/para/admin/resources/_subclassable_add_button.html.haml +3 -3
  74. data/app/views/para/admin/resources/_tree.html.haml +7 -9
  75. data/app/views/para/admin/resources/_tree_item.html.haml +5 -6
  76. data/app/views/para/admin/resources/edit.html.haml +1 -1
  77. data/app/views/para/admin/resources/new.html.haml +1 -1
  78. data/app/views/para/admin/search/_result.html.haml +7 -0
  79. data/app/views/para/admin/search/index.html.haml +1 -0
  80. data/app/views/para/admin/settings_component/show.html.haml +1 -1
  81. data/app/views/para/admin/shared/_breadcrumbs.html.haml +2 -3
  82. data/app/views/para/admin/shared/_header.html.haml +16 -27
  83. data/app/views/para/admin/shared/_navigation.html.haml +20 -19
  84. data/app/views/para/form/_tabs.html.haml +6 -7
  85. data/app/views/para/inputs/_multi_select.html.haml +40 -0
  86. data/app/views/para/inputs/_nested_many.html.haml +4 -4
  87. data/app/views/para/inputs/multi_select/_no_items.html.haml +6 -0
  88. data/app/views/para/inputs/nested_many/_add.html.haml +1 -2
  89. data/app/views/para/inputs/nested_many/_add_with_subclasses.html.haml +4 -5
  90. data/app/views/para/inputs/nested_many/_container.html.haml +7 -8
  91. data/app/views/shared/_breadcrumbs.html.haml +4 -0
  92. data/config/locales/fr.yml +29 -4
  93. data/db/migrate/20170324125547_create_para_page_section_resources.rb +15 -0
  94. data/lib/generators/para/filters/templates/_filters.html.haml +3 -5
  95. data/lib/generators/para/install/templates/initializer.rb +12 -0
  96. data/lib/generators/para/page/section/section_generator.rb +13 -2
  97. data/lib/generators/para/page/section/templates/section.html.haml.erb +3 -0
  98. data/lib/generators/para/resource/resource_generator.rb +1 -1
  99. data/lib/para.rb +25 -21
  100. data/lib/para/attribute_field.rb +2 -0
  101. data/lib/para/attribute_field/base.rb +1 -1
  102. data/lib/para/attribute_field/belongs_to.rb +1 -1
  103. data/lib/para/attribute_field/boolean.rb +1 -1
  104. data/lib/para/attribute_field/friendly_id.rb +19 -0
  105. data/lib/para/attribute_field/has_many.rb +43 -4
  106. data/lib/para/attribute_field/nested_field.rb +46 -0
  107. data/lib/para/attribute_field/nested_many.rb +30 -9
  108. data/lib/para/attribute_field/nested_one.rb +28 -9
  109. data/lib/para/attribute_field/password.rb +1 -1
  110. data/lib/para/attribute_field/relation.rb +19 -1
  111. data/lib/para/attribute_field_mappings.rb +9 -3
  112. data/lib/para/breadcrumbs/breadcrumb.rb +57 -10
  113. data/lib/para/breadcrumbs/controller.rb +19 -6
  114. data/lib/para/breadcrumbs/manager.rb +9 -1
  115. data/lib/para/config.rb +3 -0
  116. data/lib/para/controller_resource.rb +34 -0
  117. data/lib/para/engine.rb +33 -14
  118. data/lib/para/exporter/base.rb +1 -1
  119. data/lib/para/ext.rb +1 -1
  120. data/lib/para/ext/active_record_nested_attributes.rb +51 -0
  121. data/lib/para/ext/paperclip.rb +2 -6
  122. data/lib/para/form_builder.rb +3 -0
  123. data/lib/para/form_builder/attributes_mappings_tracker.rb +45 -0
  124. data/lib/para/form_builder/containers.rb +13 -17
  125. data/lib/para/form_builder/nested_form.rb +2 -3
  126. data/lib/para/helpers.rb +8 -0
  127. data/lib/para/helpers/attributes_mappings.rb +13 -0
  128. data/lib/para/helpers/resource_name.rb +14 -0
  129. data/lib/para/inputs.rb +1 -0
  130. data/lib/para/inputs/multi_select_input.rb +90 -0
  131. data/lib/para/inputs/nested_many_input.rb +6 -1
  132. data/lib/para/markup/resources_table.rb +15 -11
  133. data/lib/para/model_field_parsers.rb +3 -2
  134. data/lib/para/model_field_parsers/base.rb +7 -2
  135. data/lib/para/model_field_parsers/friendly_id.rb +19 -0
  136. data/lib/para/model_field_parsers/relations.rb +20 -1
  137. data/lib/para/page/model.rb +3 -1
  138. data/lib/para/routes.rb +1 -0
  139. data/lib/para/simple_form_config.rb +85 -0
  140. data/lib/para/version.rb +1 -1
  141. data/lib/rails/routing_mapper.rb +5 -8
  142. data/vendor/assets/javascripts/jasny-bootstrap.js +577 -0
  143. data/vendor/assets/stylesheets/animate.css +3340 -0
  144. data/vendor/assets/stylesheets/hint.css +649 -0
  145. data/vendor/assets/stylesheets/jasny-bootstrap.css +287 -0
  146. metadata +114 -67
  147. data/app/assets/images/para/admin/bg.png +0 -0
  148. data/app/assets/javascripts/para/admin.js +0 -20
  149. data/app/assets/stylesheets/admin/theme.sass +0 -0
  150. data/app/assets/stylesheets/para/admin/src/jasny.bootstrap.sass +0 -40
  151. data/app/assets/stylesheets/para/admin/src/nested_many.sass +0 -5
  152. data/app/assets/stylesheets/para/admin/src/page-loading.sass +0 -24
  153. data/app/assets/stylesheets/para/admin/src/page-top-bar.sass +0 -9
  154. data/app/assets/stylesheets/para/admin/src/selectize.sass +0 -46
  155. data/app/assets/stylesheets/para/admin/src/slider.sass +0 -12
  156. data/app/assets/stylesheets/para/admin/theme.sass +0 -22
  157. data/app/assets/stylesheets/para/admin/theme/_base.sass +0 -176
  158. data/app/assets/stylesheets/para/admin/theme/_breadcrumb.sass +0 -75
  159. data/app/assets/stylesheets/para/admin/theme/_buttons.sass +0 -27
  160. data/app/assets/stylesheets/para/admin/theme/_checkable.sass +0 -108
  161. data/app/assets/stylesheets/para/admin/theme/_commonds.sass +0 -210
  162. data/app/assets/stylesheets/para/admin/theme/_dropdown.sass +0 -52
  163. data/app/assets/stylesheets/para/admin/theme/_form.sass +0 -150
  164. data/app/assets/stylesheets/para/admin/theme/_list.sass +0 -139
  165. data/app/assets/stylesheets/para/admin/theme/_navigation.sass +0 -229
  166. data/app/assets/stylesheets/para/admin/theme/_navtabs.sass +0 -151
  167. data/app/assets/stylesheets/para/admin/theme/_orderable.sass +0 -45
  168. data/app/assets/stylesheets/para/admin/theme/_panel.sass +0 -264
  169. data/app/assets/stylesheets/para/admin/theme/_responsive.sass +0 -123
  170. data/app/assets/stylesheets/para/admin/theme/_table.sass +0 -28
  171. data/app/assets/stylesheets/para/admin/theme/_tree.sass +0 -74
  172. data/app/assets/stylesheets/para/admin/theme/_variables.sass +0 -31
  173. data/app/assets/stylesheets/para/application.css +0 -15
  174. data/app/assets/stylesheets/para/lib/_variables.scss +0 -646
  175. data/app/assets/stylesheets/para/overrides/responsive.sass +0 -62
  176. data/app/assets/stylesheets/para/overrides/theme.sass +0 -172
  177. data/lib/para/ext/cancan.rb +0 -26
  178. data/vendor/assets/javascripts/jasny.bootstrap.min.js +0 -7
  179. data/vendor/assets/stylesheets/animate.min.css +0 -6
  180. data/vendor/assets/stylesheets/jasny.bootstrap.min.css +0 -7
@@ -0,0 +1,100 @@
1
+ //
2
+ // Responsive
3
+ // --------------------------------------------------
4
+
5
+ /* Extra small devices (phones, less than 768px) */
6
+ /* No media query since this is the default in Bootstrap */
7
+
8
+ /* Small devices (tablets, 768px and up) */
9
+ @media (min-width: $screen-sm-min)
10
+
11
+ /* Medium devices (desktops, 992px and up) */
12
+ @media (min-width: $screen-md-min)
13
+ body
14
+ padding: $navbar-height 0 0 $left-menu-width-open
15
+
16
+ //== Top navbar
17
+ //
18
+ //## See navigation.sass
19
+ .navbar-fixed-top
20
+ padding-left: $left-menu-width-open
21
+
22
+ .navbar-toggle
23
+ display: none
24
+
25
+ //== Loader
26
+ //
27
+ //## See page_loading.sass
28
+ .loading-overlay
29
+ width: calc(100% - #{$left-menu-width-open})
30
+ left: $left-menu-width-open
31
+
32
+ .loading-spinner
33
+ margin-left: ($left-menu-width-open / 2) - ($spinner-size / 2)
34
+
35
+ //== Fixed actions
36
+ //
37
+ //## See form.sass
38
+ .form-fixed-actions
39
+ .form-actions
40
+ // left: $left-menu-width-open + 50px
41
+ .btn
42
+ margin-bottom: 0
43
+ margin-right: 5px
44
+
45
+ /* Large devices (large desktops, 1200px and up) */
46
+ @media (min-width: $screen-lg-min)
47
+
48
+
49
+ //== Max width
50
+ //
51
+ //##
52
+ @media (max-width: $screen-xs-max)
53
+ body
54
+ padding-top: 0
55
+
56
+ //== Top navbar
57
+ //
58
+ //## See navigation.sass
59
+ .navbar-fixed-top
60
+ position: relative
61
+
62
+ .navbar-toggle
63
+ margin-top: 3px
64
+ margin-bottom: 3px
65
+
66
+
67
+ .navbar-default .nav > li > a
68
+ padding: 10px
69
+ width: 40px
70
+ i
71
+ font-size: 14px
72
+
73
+ .navbar-nav
74
+ margin: 0
75
+ > li
76
+ float: left
77
+
78
+ .breadcrumb
79
+ padding: 10px
80
+
81
+ .form-fixed-actions
82
+ margin-bottom: 250px
83
+ .form-actions
84
+ padding-right: 15px
85
+ padding-left: 15px
86
+ .btn
87
+ width: 100%
88
+
89
+ @media (max-width: $screen-sm-max)
90
+ //== page list panel
91
+ //
92
+ //## See panel.sass
93
+ .page-list-heading
94
+ [class^='col-xs-'], [class^='col-sm-'], [class^='col-md-'], [class^='col-lg-'],
95
+ .flextable-item
96
+ margin-bottom: 10px
97
+
98
+ //** disable lasted margin-bottom on flextable-item & col-* to get the proper padding
99
+ .flextable
100
+ margin-bottom: -10px
@@ -1,12 +1,20 @@
1
- @import "variables"
1
+ //
2
+ // Sorting
3
+ // --------------------------------------------------
4
+
5
+ //== Main style
6
+ //
7
+ //##
2
8
 
3
9
  .sort_link, .sort_link_asc, .sort_link_desc
4
10
  position: relative
5
11
  cursor: pointer
12
+ &:hover
13
+ text-decoration: none
6
14
 
7
15
  .sort_link:before, .sort_link.asc:before, .sort_link.desc:before
8
16
  position: absolute
9
- bottom: 5px
17
+ bottom: 7px
10
18
  right: -15px
11
19
  font-family: FontAwesome
12
20
  opacity: .9
@@ -17,7 +25,7 @@
17
25
  .sort_link:before
18
26
  content: "\f0dc"
19
27
  opacity: .3
20
-
28
+
21
29
  .sort_link.asc:before
22
30
  content: "\f0d7"
23
31
 
@@ -0,0 +1,41 @@
1
+ //
2
+ // Statcard
3
+ // --------------------------------------------------
4
+
5
+ //== Main style
6
+ //
7
+ //##
8
+
9
+ .statcard
10
+ position: relative
11
+ display: block
12
+ padding: 15px
13
+ background-color: #fff
14
+ +border-radius($border-radius-small)
15
+ +clearfix
16
+ +default-transition
17
+ +material-box-shadow-soft
18
+ &:hover,
19
+ &:focus
20
+ +material-box-shadow-soft(2)
21
+ text-decoration: none
22
+
23
+ &.statcard-icon
24
+ .icon-rounded
25
+ float: left
26
+ .startcard-body
27
+ padding-left: 15px
28
+ float: left
29
+ /** truncat title if is to long **/
30
+ width: calc(100% - 60px)
31
+ .statcard-title
32
+ width: 100%
33
+ white-space: nowrap
34
+ overflow: hidden
35
+ text-overflow: ellipsis
36
+
37
+ .statcard-title
38
+ color: $text-color
39
+ font-size: $font-size-base
40
+ font-weight: 500
41
+ margin: 0
@@ -0,0 +1,33 @@
1
+ //
2
+ // Table
3
+ // --------------------------------------------------
4
+
5
+ // Main style
6
+ //
7
+ //##
8
+
9
+ .table
10
+ margin-bottom: 0
11
+
12
+ .table > thead > tr > th
13
+ font-weight: 300
14
+
15
+ .table > tbody > tr > td
16
+ vertical-align: middle
17
+ .label
18
+ +inline-block
19
+ margin-bottom: 4px
20
+
21
+ .table > thead > tr > th
22
+ border-bottom: 1px solid #A6AFBB
23
+
24
+ //** Actions with 3 btn at least
25
+ .table-row-actions
26
+ min-width: 180px
27
+ text-align: right
28
+ .btn
29
+ margin: 0 3px
30
+
31
+ //** img dont destroy the table and don't create horizontal scroll
32
+ .table > tbody > tr > td > img.max-width
33
+ max-width: 250px
@@ -0,0 +1,52 @@
1
+ //
2
+ // Tree
3
+ // --------------------------------------------------
4
+
5
+ //== Main style
6
+ //
7
+ //##
8
+
9
+ .root-tree
10
+ padding-left: 0
11
+ .tree
12
+ padding-left: 40px
13
+
14
+ .sortable-dragging
15
+ .placeholder,
16
+ .btn-group
17
+ display: none
18
+
19
+ .sortable-placeholder
20
+ height: 30px
21
+ margin: 10px 0px 20px 0
22
+
23
+ .node
24
+ border-left: 4px solid $gray-light
25
+ padding-bottom: 5px
26
+ margin-top: 15px
27
+ .node-row
28
+ +default-transition
29
+ border-bottom: 1px dashed $gray-light
30
+ padding: 5px
31
+ &:first-child
32
+ border-top: 1px dashed $gray-light
33
+ &:hover
34
+ background-color: $gray-lighter
35
+ .btn
36
+ margin: 0 3px
37
+
38
+ .handle
39
+ font-size: 14px
40
+ margin: 4px 14px 0 5px
41
+
42
+ .node-name
43
+ margin-top: 4px
44
+ +inline-block
45
+
46
+ .placeholder
47
+ border: dashed 1px $gray
48
+ height: 30px
49
+ margin-top: 5px
50
+
51
+ .tree
52
+ list-style: none
@@ -0,0 +1,37 @@
1
+ //
2
+ // Variables
3
+ // --------------------------------------------------
4
+
5
+ //== Bootstrap variables, Compass & fonts
6
+ //
7
+ //##
8
+
9
+ @import para/admin/src/bootstrap-variables
10
+
11
+ @import compass/css3/border-radius
12
+ @import compass/css3/box-shadow
13
+ @import compass/css3/inline-block
14
+ @import compass/css3/transform
15
+ @import compass/css3/transition
16
+ @import compass/css3/text-shadow
17
+ @import compass/css3/user-interface
18
+ @import compass/css3/images
19
+
20
+ //== Specific variables
21
+ //
22
+ //##
23
+
24
+ //** Colors
25
+
26
+ $blue-darker: #3F4352
27
+ $purple: #AB8CE4
28
+
29
+ //** padding & margin spacer
30
+
31
+ $spacer: 10px
32
+ $spacer-y: $spacer
33
+ $spacer-x: $spacer
34
+
35
+ //** Left menu
36
+
37
+ $left-menu-width-open: 260px
@@ -0,0 +1,12 @@
1
+ //
2
+ // Well
3
+ // --------------------------------------------------
4
+
5
+ //== Main style
6
+ //
7
+ //##
8
+
9
+ .well
10
+ margin-bottom: 25px
11
+ +box-shadow(none)
12
+ +border-radius(2px)
@@ -1,6 +1,4 @@
1
- @import "para/admin/theme/variables"
2
-
3
- @import "compass/css3/box-shadow"
1
+ @import "para/admin/src/variables"
4
2
 
5
3
  /* Bootstrap Datetimepiker */
6
4
  .xdsoft_datetimepicker
@@ -1,6 +1,4 @@
1
- @import "para/admin/theme/variables"
2
-
3
- @import "compass/css3/box-shadow"
1
+ @import "para/admin/src/variables"
4
2
 
5
3
  input[type=number]::-webkit-inner-spin-button,
6
4
  input[type=number]::-webkit-outer-spin-button
@@ -15,7 +13,7 @@ input[type=number]::-webkit-outer-spin-button
15
13
  .btn
16
14
  position: relative
17
15
  height: 50%
18
- padding: 3px 9px
16
+ padding: 3px 9px 4px 9px
19
17
  line-height: 0px
20
18
  font-size: 10px
21
19
  top: 0px
@@ -39,4 +37,4 @@ input[type=number]::-webkit-outer-spin-button
39
37
  .spinner-down,
40
38
  .spinbox-down
41
39
  border-bottom-left-radius: 0 !important
42
- padding: 3px 9px 2px 9px
40
+ padding: 3px 9px 3px 9px
@@ -0,0 +1,97 @@
1
+ //
2
+ // Jasny Bootstrap
3
+ // --------------------------------------------------
4
+
5
+ //== Variables
6
+ //
7
+ //##
8
+
9
+ @import "para/admin/src/variables"
10
+ @import "para/admin/src/mixins"
11
+
12
+ //== Jasny Bootstrap
13
+ //
14
+ //## Fileupload overrides
15
+
16
+ .fileinput
17
+ margin-bottom: 0
18
+ display: block
19
+ &.fileinput-new
20
+ .fileinput-placeholder
21
+ display: block
22
+ &.fileinput-exists
23
+ .fileinput-placeholder
24
+ display: none
25
+
26
+ .uneditable-input
27
+ background-color: $input-bg-disabled
28
+
29
+ //** Override btn color for feeting to the design
30
+ .btn-file
31
+ color: #fff
32
+ background-color: $btn-primary-bg
33
+ border-color: $btn-primary-border
34
+ +material-box-shadow-soft(1)
35
+ +default-transition
36
+ &:hover,
37
+ &:focus,
38
+ &:active,
39
+ &:active:hover,
40
+ &:active:focus,
41
+ &.active
42
+ background-color: $btn-primary-bg !important
43
+ border-color: $btn-primary-border !important
44
+ color: #fff
45
+ &:active,
46
+ &.active
47
+ +material-box-shadow-soft(2)
48
+
49
+ .btn-danger
50
+ +material-box-shadow-soft(1)
51
+ +default-transition
52
+ &:hover,
53
+ &:focus,
54
+ &:active,
55
+ &:active:hover,
56
+ &:active:focus,
57
+ &.active
58
+ background-color: $btn-danger-bg !important
59
+ border-color: $btn-danger-border !important
60
+ color: #fff
61
+ &:active,
62
+ &.active
63
+ +material-box-shadow-soft(2)
64
+ &.fileinput-exists
65
+ margin-left: 10px
66
+
67
+ .fileinput-new.input-group .btn-file,
68
+ .fileinput.input-group .btn-file
69
+ border-right-radius: $border-radius-base
70
+ border-color: $input-border
71
+
72
+ .fileinput.input-group .input-group-btn
73
+ .form-control.file
74
+ padding: 0 !important
75
+ position: absolute
76
+
77
+ .fileinput
78
+ .input-group-btn > .btn:hover,
79
+ .input-group-btn > .btn:focus,
80
+ .input-group-btn > .btn:active
81
+ z-index: 0
82
+
83
+ .fileinput-preview.thumbnail
84
+ width: auto
85
+ height: auto
86
+ min-width: 80px
87
+ min-height: 80px
88
+ max-height: 500px
89
+ margin-bottom: 0
90
+ margin-top: 10px
91
+ background-color: $gray-light
92
+ border: none
93
+
94
+ .empty-thumbnail
95
+ width: 72px
96
+ height: 72px
97
+ background-color: $gray-light
@@ -1,7 +1,4 @@
1
- @import "para/admin/theme/variables"
2
-
3
- @import "compass/css3/box-shadow"
4
- @import "compass/css3/border-radius"
1
+ @import "para/admin/src/variables"
5
2
 
6
3
  .redactor-button-disabled
7
4
  &:hover,
@@ -63,7 +60,7 @@
63
60
  div[class^=col-lg-], div[class^=col-md-], div[class^=col-sm-], div[class^=col-xs-]
64
61
  padding-left: 15px
65
62
  padding-right: 15px
66
- border: 1px dashed $gray-light
63
+ border: 1px dotted $gray-light
67
64
  margin-bottom: 0
68
65
 
69
66
  #redactor-modal