para 0.11.4 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/para/admin/main.scss +31 -0
  3. data/app/assets/stylesheets/para/admin/src/_affix.scss +7 -0
  4. data/app/assets/stylesheets/para/admin/src/_alert.scss +35 -0
  5. data/app/assets/stylesheets/para/admin/src/_base.scss +63 -0
  6. data/app/assets/stylesheets/para/admin/src/_bootstrap-variables.scss +766 -379
  7. data/app/assets/stylesheets/para/admin/src/_breadcrumb.scss +37 -0
  8. data/app/assets/stylesheets/para/admin/src/_buttons.scss +128 -0
  9. data/app/assets/stylesheets/para/admin/src/_checkable.scss +106 -0
  10. data/app/assets/stylesheets/para/admin/src/_common.scss +250 -0
  11. data/app/assets/stylesheets/para/admin/src/_dropdown.scss +52 -0
  12. data/app/assets/stylesheets/para/admin/src/_form.scss +359 -0
  13. data/app/assets/stylesheets/para/admin/src/_list.scss +96 -0
  14. data/app/assets/stylesheets/para/admin/src/_mixins.scss +109 -0
  15. data/app/assets/stylesheets/para/admin/src/_multi-select.scss +110 -0
  16. data/app/assets/stylesheets/para/admin/src/_navigation.scss +210 -0
  17. data/app/assets/stylesheets/para/admin/src/_navtabs.scss +68 -0
  18. data/app/assets/stylesheets/para/admin/src/_nested-many.scss +87 -0
  19. data/app/assets/stylesheets/para/admin/src/_nested_one.scss +26 -0
  20. data/app/assets/stylesheets/para/admin/src/_orderable.scss +48 -0
  21. data/app/assets/stylesheets/para/admin/src/_page-loading.scss +40 -0
  22. data/app/assets/stylesheets/para/admin/src/_pagination.scss +39 -0
  23. data/app/assets/stylesheets/para/admin/src/_panel.scss +61 -0
  24. data/app/assets/stylesheets/para/admin/src/_responsive.scss +133 -0
  25. data/app/assets/stylesheets/para/admin/src/_sorting.scss +43 -0
  26. data/app/assets/stylesheets/para/admin/src/_statcard.scss +46 -0
  27. data/app/assets/stylesheets/para/admin/src/_table.scss +36 -0
  28. data/app/assets/stylesheets/para/admin/src/_tree.scss +60 -0
  29. data/app/assets/stylesheets/para/admin/src/{_variables.sass → _variables.scss} +7 -7
  30. data/app/assets/stylesheets/para/admin/src/{_well.sass → _well.scss} +5 -4
  31. data/app/assets/stylesheets/para/admin.scss +15 -0
  32. data/app/assets/stylesheets/para/index.scss +1 -0
  33. data/app/assets/stylesheets/para/lib/datetimepicker.scss +15 -0
  34. data/app/assets/stylesheets/para/lib/fuelux.scss +46 -0
  35. data/app/assets/stylesheets/para/lib/jasny-bootstrap.scss +100 -0
  36. data/app/assets/stylesheets/para/lib/selectize.scss +129 -0
  37. data/app/assets/stylesheets/para/lib/slider.scss +14 -0
  38. data/app/controllers/para/admin/crud_resources_controller.rb +16 -9
  39. data/app/controllers/para/admin/imports_controller.rb +9 -9
  40. data/app/controllers/para/admin/jobs_controller.rb +7 -1
  41. data/app/controllers/para/admin/resources_controller.rb +17 -18
  42. data/app/controllers/para/admin/settings_component_controller.rb +2 -2
  43. data/app/helpers/para/admin/base_helper.rb +36 -25
  44. data/app/helpers/para/admin/page_helper.rb +8 -9
  45. data/app/helpers/para/flash_helper.rb +7 -28
  46. data/app/helpers/para/model_helper.rb +5 -8
  47. data/app/helpers/para/tree_helper.rb +4 -4
  48. data/app/javascripts/para/admin/async-progress.js +58 -0
  49. data/app/javascripts/para/admin/filters-form.js +12 -0
  50. data/app/javascripts/para/admin/job-tracker.js +33 -0
  51. data/app/javascripts/para/admin/table.js +58 -0
  52. data/app/javascripts/para/admin/tabs.js +110 -0
  53. data/app/javascripts/para/admin/theme_actions.js +39 -0
  54. data/app/javascripts/para/admin/tree.js +124 -0
  55. data/app/javascripts/para/application.js +2 -0
  56. data/app/javascripts/para/controllers/application.js +17 -0
  57. data/app/javascripts/para/controllers/index.js +10 -0
  58. data/app/javascripts/para/controllers/para_admin_flash_message_controller.js +48 -0
  59. data/app/javascripts/para/controllers/para_admin_modal_controller.js +43 -0
  60. data/app/javascripts/para/controllers/selectize_field_controller.js +142 -0
  61. data/app/javascripts/para/index.js +31 -0
  62. data/app/javascripts/para/inputs/material-input.js +7 -0
  63. data/app/javascripts/para/inputs/multi-select-input.js +343 -0
  64. data/app/javascripts/para/inputs/nested_many.js +151 -0
  65. data/app/javascripts/para/lib/fetch.js +41 -0
  66. data/app/javascripts/para/lib/page-loading.js +42 -0
  67. data/app/javascripts/para/simple_form_extension/colorpicker.js +30 -0
  68. data/app/javascripts/para/simple_form_extension/datetimepicker.js +115 -0
  69. data/app/javascripts/para/simple_form_extension/fileinput.js +57 -0
  70. data/app/javascripts/para/simple_form_extension/index.js +12 -0
  71. data/app/javascripts/para/simple_form_extension/selectize.js +160 -0
  72. data/app/javascripts/para/simple_form_extension/simple_form_extension_initialization.js +62 -0
  73. data/app/javascripts/para/simple_form_extension/slider.js +43 -0
  74. data/app/javascripts/para/simple_form_extension/spinbox.js +35 -0
  75. data/app/javascripts/para/vendor/bootstrap-colorpicker.js +1025 -0
  76. data/app/javascripts/para/vendor/bootstrap-slider.js +1610 -0
  77. data/app/javascripts/para/vendor/cocoon.js +150 -0
  78. data/app/javascripts/para/vendor/jquery.datetimepicker.js +2156 -0
  79. data/app/javascripts/para/vendor/jquery.js +3 -0
  80. data/app/javascripts/para/vendor/spinbox.js +438 -0
  81. data/app/javascripts/para/vendor/vertebra.js +224 -0
  82. data/app/views/admin/para/exporter/bases/_completed.html.haml +1 -1
  83. data/app/views/layouts/para/admin.html.haml +4 -2
  84. data/app/views/para/admin/imports/new.html.haml +12 -11
  85. data/app/views/para/admin/jobs/_completed.html.haml +1 -1
  86. data/app/views/para/admin/jobs/_failed.html.haml +1 -1
  87. data/app/views/para/admin/jobs/_job.html.haml +11 -0
  88. data/app/views/para/admin/jobs/show.html.haml +1 -10
  89. data/app/views/para/admin/resources/_add_button.html.haml +1 -1
  90. data/app/views/para/admin/resources/_exports_menu.html.haml +2 -2
  91. data/app/views/para/admin/resources/_filters.html.haml +1 -1
  92. data/app/views/para/admin/resources/_imports_menu.html.haml +2 -2
  93. data/app/views/para/admin/resources/_list.html.haml +27 -26
  94. data/app/views/para/admin/resources/_navigation.html.haml +10 -11
  95. data/app/views/para/admin/resources/_subclassable_add_button.html.haml +1 -1
  96. data/app/views/para/admin/shared/_flash.html.haml +18 -0
  97. data/app/views/para/admin/shared/_header.html.haml +1 -1
  98. data/app/views/para/form/_tabs.html.haml +1 -1
  99. data/app/views/para/inputs/_nested_many.html.haml +3 -3
  100. data/app/views/para/inputs/nested_many/_add.html.haml +1 -1
  101. data/app/views/para/inputs/nested_many/_add_with_subclasses.html.haml +2 -2
  102. data/app/views/para/inputs/nested_many/_container.html.haml +1 -1
  103. data/config/locales/fr.yml +1 -0
  104. data/lib/generators/para/install/install_generator.rb +10 -14
  105. data/lib/para/attribute_field/base.rb +3 -0
  106. data/lib/para/attribute_field/wysiwyg_editor.rb +15 -0
  107. data/lib/para/attribute_field.rb +1 -1
  108. data/lib/para/components_configuration.rb +1 -1
  109. data/lib/para/engine.rb +20 -22
  110. data/lib/para/ext/turbo_stream.rb +13 -0
  111. data/lib/para/ext.rb +1 -1
  112. data/lib/para/form_builder/containers.rb +33 -22
  113. data/lib/para/form_builder/nested_form.rb +6 -5
  114. data/lib/para/inputs/nested_many_input.rb +5 -0
  115. data/lib/para/markup/modal.rb +30 -15
  116. data/lib/para/markup/resources_buttons.rb +15 -11
  117. data/lib/para/model_field_parsers/wysiwyg_editor.rb +19 -0
  118. data/lib/para/model_field_parsers.rb +1 -1
  119. data/lib/para/version.rb +1 -1
  120. data/lib/para.rb +2 -8
  121. data/lib/simple_form_extension/components/icons.rb +13 -0
  122. data/lib/simple_form_extension/components/popovers.rb +46 -0
  123. data/lib/simple_form_extension/components.rb +8 -0
  124. data/lib/simple_form_extension/ext/form_builder.rb +20 -0
  125. data/lib/simple_form_extension/file_concern.rb +74 -0
  126. data/lib/simple_form_extension/inputs/boolean_input.rb +16 -0
  127. data/lib/simple_form_extension/inputs/collection_check_boxes_input.rb +15 -0
  128. data/lib/simple_form_extension/inputs/collection_radio_buttons_input.rb +15 -0
  129. data/lib/simple_form_extension/inputs/color_input.rb +37 -0
  130. data/lib/simple_form_extension/inputs/date_time_input.rb +48 -0
  131. data/lib/simple_form_extension/inputs/file_input.rb +41 -0
  132. data/lib/simple_form_extension/inputs/image_input.rb +110 -0
  133. data/lib/simple_form_extension/inputs/numeric_input.rb +27 -0
  134. data/lib/simple_form_extension/inputs/selectize_input.rb +210 -0
  135. data/lib/simple_form_extension/inputs/slider_input.rb +30 -0
  136. data/lib/simple_form_extension/inputs.rb +16 -0
  137. data/lib/simple_form_extension/railtie.rb +21 -0
  138. data/lib/simple_form_extension/resource_name_helper.rb +9 -0
  139. data/lib/simple_form_extension/translations.rb +7 -0
  140. data/lib/simple_form_extension/version.rb +3 -0
  141. data/lib/simple_form_extension.rb +30 -0
  142. data/vendor/assets/images/simple_form_extension/bootstrap-colorpicker/alpha-horizontal.png +0 -0
  143. data/vendor/assets/images/simple_form_extension/bootstrap-colorpicker/alpha.png +0 -0
  144. data/vendor/assets/images/simple_form_extension/bootstrap-colorpicker/hue-horizontal.png +0 -0
  145. data/vendor/assets/images/simple_form_extension/bootstrap-colorpicker/hue.png +0 -0
  146. data/vendor/assets/images/simple_form_extension/bootstrap-colorpicker/saturation.png +0 -0
  147. data/vendor/assets/stylesheets/bootstrap-colorpicker.scss +227 -0
  148. data/vendor/assets/stylesheets/bootstrap-slider.scss +246 -0
  149. data/vendor/assets/stylesheets/bootstrap.scss +6032 -0
  150. data/vendor/assets/stylesheets/jquery.datetimepicker.scss +568 -0
  151. metadata +120 -188
  152. data/app/assets/javascripts/admin/app.coffee +0 -1
  153. data/app/assets/javascripts/para/admin/async-progress.coffee +0 -29
  154. data/app/assets/javascripts/para/admin/filters-form.coffee +0 -11
  155. data/app/assets/javascripts/para/admin/job-tracker.coffee +0 -39
  156. data/app/assets/javascripts/para/admin/table.coffee +0 -44
  157. data/app/assets/javascripts/para/admin/tabs.coffee +0 -63
  158. data/app/assets/javascripts/para/admin/theme_actions.coffee +0 -25
  159. data/app/assets/javascripts/para/admin/tree.coffee +0 -105
  160. data/app/assets/javascripts/para/admin.coffee +0 -22
  161. data/app/assets/javascripts/para/application.js +0 -13
  162. data/app/assets/javascripts/para/inputs/material-input.coffee +0 -4
  163. data/app/assets/javascripts/para/inputs/multi-select-input.coffee +0 -174
  164. data/app/assets/javascripts/para/inputs/nested_many.coffee +0 -108
  165. data/app/assets/javascripts/para/lib/ajax.coffee +0 -11
  166. data/app/assets/javascripts/para/lib/remote-file-forms.coffee +0 -59
  167. data/app/assets/javascripts/para/lib/turbolinks-forms.coffee +0 -23
  168. data/app/assets/javascripts/para/lib/turbolinks-loading.coffee +0 -25
  169. data/app/assets/javascripts/para/lib/turbolinks-reloader.coffee +0 -19
  170. data/app/assets/stylesheets/para/admin/main.sass +0 -33
  171. data/app/assets/stylesheets/para/admin/src/_affix.sass +0 -4
  172. data/app/assets/stylesheets/para/admin/src/_alert.sass +0 -17
  173. data/app/assets/stylesheets/para/admin/src/_base.sass +0 -54
  174. data/app/assets/stylesheets/para/admin/src/_breadcrumb.sass +0 -32
  175. data/app/assets/stylesheets/para/admin/src/_buttons.sass +0 -107
  176. data/app/assets/stylesheets/para/admin/src/_checkable.sass +0 -94
  177. data/app/assets/stylesheets/para/admin/src/_common.sass +0 -202
  178. data/app/assets/stylesheets/para/admin/src/_dropdown.sass +0 -40
  179. data/app/assets/stylesheets/para/admin/src/_form.sass +0 -299
  180. data/app/assets/stylesheets/para/admin/src/_list.sass +0 -89
  181. data/app/assets/stylesheets/para/admin/src/_mixins.sass +0 -113
  182. data/app/assets/stylesheets/para/admin/src/_multi-select.sass +0 -91
  183. data/app/assets/stylesheets/para/admin/src/_navigation.sass +0 -171
  184. data/app/assets/stylesheets/para/admin/src/_navtabs.sass +0 -58
  185. data/app/assets/stylesheets/para/admin/src/_nested-many.sass +0 -75
  186. data/app/assets/stylesheets/para/admin/src/_nested_one.sass +0 -22
  187. data/app/assets/stylesheets/para/admin/src/_orderable.sass +0 -44
  188. data/app/assets/stylesheets/para/admin/src/_page-loading.sass +0 -39
  189. data/app/assets/stylesheets/para/admin/src/_pagination.sass +0 -34
  190. data/app/assets/stylesheets/para/admin/src/_panel.sass +0 -55
  191. data/app/assets/stylesheets/para/admin/src/_responsive.sass +0 -117
  192. data/app/assets/stylesheets/para/admin/src/_sorting.sass +0 -36
  193. data/app/assets/stylesheets/para/admin/src/_statcard.sass +0 -41
  194. data/app/assets/stylesheets/para/admin/src/_table.sass +0 -33
  195. data/app/assets/stylesheets/para/admin/src/_tree.sass +0 -52
  196. data/app/assets/stylesheets/para/admin.sass +0 -12
  197. data/app/assets/stylesheets/para/lib/compass/_support.scss +0 -447
  198. data/app/assets/stylesheets/para/lib/compass/css3/_box-shadow.scss +0 -88
  199. data/app/assets/stylesheets/para/lib/compass/css3/_images.scss +0 -152
  200. data/app/assets/stylesheets/para/lib/compass/css3/_inline-block.scss +0 -31
  201. data/app/assets/stylesheets/para/lib/compass/css3/_text-shadow.scss +0 -82
  202. data/app/assets/stylesheets/para/lib/compass/css3/_transform.scss +0 -590
  203. data/app/assets/stylesheets/para/lib/compass/css3/_transition.scss +0 -190
  204. data/app/assets/stylesheets/para/lib/compass/css3/_user-interface.scss +0 -71
  205. data/app/assets/stylesheets/para/lib/compass/utilities/general/_hacks.scss +0 -65
  206. data/app/assets/stylesheets/para/lib/datetimepicker.sass +0 -15
  207. data/app/assets/stylesheets/para/lib/fuelux.sass +0 -40
  208. data/app/assets/stylesheets/para/lib/jasny-bootstrap.sass +0 -97
  209. data/app/assets/stylesheets/para/lib/redactor.sass +0 -86
  210. data/app/assets/stylesheets/para/lib/selectize.sass +0 -111
  211. data/app/assets/stylesheets/para/lib/slider.sass +0 -12
  212. data/app/assets/stylesheets/para/plugins-includes.sass.erb +0 -1
  213. data/lib/para/attribute_field/redactor.rb +0 -22
  214. data/lib/para/ext/request_iframe_xhr.rb +0 -17
  215. data/lib/para/iframe_transport/middleware.rb +0 -58
  216. data/lib/para/iframe_transport.rb +0 -7
  217. data/lib/para/model_field_parsers/redactor.rb +0 -19
  218. data/vendor/assets/javascripts/jquery.iframe-transport.js +0 -260
  219. data/vendor/assets/javascripts/jquery.remote-modal-form.coffee +0 -145
  220. /data/app/assets/stylesheets/admin/{app.sass → app.scss} +0 -0
  221. /data/app/{assets/javascripts → javascripts}/para/plugins-includes.js.erb +0 -0
  222. /data/{vendor/assets/javascripts → app/javascripts/para/vendor}/Sortable.js +0 -0
  223. /data/{vendor/assets/javascripts → app/javascripts/para/vendor}/jasny-bootstrap.js +0 -0
  224. /data/{vendor/assets/javascripts → app/javascripts/para/vendor}/jquery.scrollto.js +0 -0
  225. /data/{vendor/assets/javascripts → app/javascripts/para/vendor}/jquery.sortable.js +0 -0
  226. /data/vendor/assets/stylesheets/{animate.css → animate.scss} +0 -0
  227. /data/vendor/assets/stylesheets/{hint.css → hint.scss} +0 -0
  228. /data/vendor/assets/stylesheets/{jasny-bootstrap.css → jasny-bootstrap.scss} +0 -0
@@ -1,152 +0,0 @@
1
- @import "para/lib/compass/support";
2
- @import "para/lib/compass/utilities/general/hacks";
3
-
4
- $gradient-support-threshold: $graceful-usage-threshold !default;
5
- $svg-gradient-shim-threshold: $graceful-usage-threshold !default;
6
- $border-image-support-threshold: $graceful-usage-threshold !default;
7
- $owg-threshold: $graceful-usage-threshold !default;
8
-
9
- // Compass assumes you will use the official gradient syntax,
10
- // unless otherwise instructed.
11
- $use-legacy-gradient-syntax: false !default;
12
-
13
- // Create a linear gradient using standard official or legacy syntax.
14
- // This function must be included in one of the following
15
- // image module mixins to work properly.
16
- @function linear-gradient($angle, $details...) {
17
- $legacy-syntax: $use-legacy-gradient-syntax;
18
-
19
- @if type-of($angle) != 'number' {
20
- $angle: compact($angle);
21
- $legacy-syntax: if(index($angle, 'to'), false, true);
22
- }
23
-
24
- @if $legacy-syntax {
25
- @return _linear-gradient_legacy($angle, $details...);
26
- } @else {
27
- @return _linear-gradient($angle, $details...);
28
- }
29
- }
30
-
31
- // These browsers support svg but not gradients
32
- // so we can shim the gradient with an inline svg file.
33
- $browsers-supporting-svg-but-not-gradients: (ie: "9", opera: "9.5-9.6");
34
-
35
- // These browsers require the old webkit gradient syntax
36
- $browsers-supporting-old-webkit-gradients: (android: ("2.1", "3"));
37
-
38
- @mixin each-gradient-prefix($values) {
39
- @if prefixed(-svg, $values) {
40
- @include for-legacy-browsers($browsers-supporting-svg-but-not-gradients,
41
- $svg-gradient-shim-threshold)
42
- {
43
- @include with-prefix(-svg) {
44
- @content;
45
- }
46
- }
47
- }
48
- @if prefixed(-owg, $values) {
49
- @include for-legacy-browsers($browsers-supporting-old-webkit-gradients,
50
- $owg-threshold)
51
- {
52
- @include with-prefix(-owg) {
53
- @content;
54
- }
55
- }
56
- }
57
- @include with-each-prefix(css-gradients, $gradient-support-threshold) {
58
- @if $current-prefix {
59
- @if prefixed($current-prefix, $values) {
60
- @content;
61
- } @else if $debug-browser-support {
62
- /* There is not a value that needs to be prefixed with #{$current-prefix} in: #{$values} */
63
- }
64
- } @else {
65
- @content;
66
- }
67
- }
68
- }
69
-
70
- @mixin image-property($property, $values...) {
71
- @include each-gradient-prefix($values) {
72
- @if $current-prefix {
73
- #{$property}: prefix($current-prefix, $values);
74
- } @else {
75
- #{$property}: $values;
76
- }
77
- @content;
78
- }
79
- }
80
-
81
- // Background property support for vendor prefixing within values.
82
- @mixin background($backgrounds...) {
83
- @include image-property(background, $backgrounds...);
84
- }
85
-
86
- // Set any number of background layers, along with a fallback.
87
- // The final argument will be output separately, first, as a css2 fallback.
88
- @mixin background-with-css2-fallback($backgrounds...) {
89
- @if length($backgrounds) > 1 or prefixed(-css2, $backgrounds) {
90
- background: -css2(nth($backgrounds, -1));
91
- }
92
- @include background($backgrounds...);
93
- }
94
-
95
-
96
- // Background image property support for vendor prefixing within values.
97
- @mixin background-image($images...) {
98
- @include image-property(background-image, $images...) {
99
- @if $current-prefix == -svg {
100
- background-size: 100%;
101
- }
102
- }
103
- }
104
-
105
- // Emit a IE-Specific filters that renders a simple linear gradient.
106
- // For use in IE 6 - 8. Best practice would have you apply this via a
107
- // conditional IE stylesheet, but if you must, you should place this before
108
- // any background-image properties that you have specified.
109
- //
110
- // For the `$orientation` parameter, you can pass `vertical` or `horizontal`.
111
- @mixin filter-gradient(
112
- $start-color,
113
- $end-color,
114
- $orientation: vertical
115
- ) {
116
- @include for-legacy-browsers((ie: "8"), $gradient-support-threshold) {
117
- @include has-layout;
118
- $gradient-type: if($orientation == vertical, 0, 1);
119
- filter: progid:DXImageTransform.Microsoft.gradient(gradientType=#{$gradient-type}, startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}');
120
- }
121
- }
122
-
123
-
124
- // Border image property support for vendor prefixing properties and values.
125
- @mixin border-image($value) {
126
- @include with-each-prefix(border-image, $border-image-support-threshold) {
127
- $border-prefix: $current-prefix;
128
- @include each-gradient-prefix($value) {
129
- @if $current-prefix and prefixed($current-prefix, $value) {
130
- $legacy-value: reject($value, fill);
131
- @include prefix-prop(border-image, prefix($current-prefix, $legacy-value), $prefix: $border-prefix);
132
- } @else {
133
- @include prefix-prop(border-image, $value, $prefix: $border-prefix);
134
- }
135
- }
136
- }
137
- }
138
-
139
- // List style image property support for vendor prefixing within values.
140
- @mixin list-style-image($image) {
141
- @include image-property(list-style-image, $image);
142
- }
143
-
144
- // List style property support for vendor prefixing within values.
145
- @mixin list-style($value) {
146
- @include image-property(list-style, $value);
147
- }
148
-
149
- // content property support for vendor prefixing within values.
150
- @mixin content($value) {
151
- @include image-property(content, $value);
152
- }
@@ -1,31 +0,0 @@
1
- @import "para/lib/compass/support";
2
-
3
- // The legacy support for inline-block.
4
- // Defaults to the $graceful-usage-threshold.
5
- $inline-block-support-threshold: $graceful-usage-threshold !default;
6
-
7
- // Set `$inline-block-alignment` to `none` or `false` to disable the output
8
- // of a vertical-align property in the inline-block mixin.
9
- // Or set it to a legal value for `vertical-align` to change the default.
10
- $inline-block-alignment: middle !default;
11
-
12
- // Provides a cross-browser method to implement `display: inline-block;`
13
- @mixin inline-block($alignment: $inline-block-alignment, $ie-alignment: auto) {
14
- // legacy support for VERY old firefox
15
- @if support-legacy-browser("firefox", "2", $threshold: $inline-block-support-threshold) {
16
- display: -moz-inline-stack;
17
- }
18
- // standard
19
- display: inline-block;
20
- @if $alignment and $alignment != none {
21
- vertical-align: $alignment;
22
- }
23
- // legacy IE support
24
- @if support-legacy-browser("ie", "7", $threshold: $inline-block-support-threshold) {
25
- @if $ie-alignment and $ie-alignment != none {
26
- *vertical-align: $ie-alignment;
27
- }
28
- *zoom: 1;
29
- *display: inline;
30
- }
31
- }
@@ -1,82 +0,0 @@
1
- // Text Shadow
2
-
3
- @import "para/lib/compass/support";
4
-
5
-
6
- // These defaults make the arguments optional for this mixin
7
- // If you like, set different defaults in your project
8
-
9
- $default-text-shadow-color : #aaaaaa !default;
10
- $default-text-shadow-h-offset : 0px !default;
11
- $default-text-shadow-v-offset : 0px !default;
12
- $default-text-shadow-blur : 1px !default;
13
- $default-text-shadow-spread : false !default;
14
-
15
-
16
- // Provides cross-browser text shadows when one or more shadows are needed.
17
- // Each shadow argument should adhere to the standard css3 syntax for the
18
- // text-shadow property.
19
- //
20
- // Note: if any shadow has a spread parameter, this will cause the mixin
21
- // to emit the shadow declaration twice, first without the spread,
22
- // then with the spread included. This allows you to progressively
23
- // enhance the browsers that do support the spread parameter.
24
- @mixin text-shadow(
25
- $shadow...
26
- ) {
27
- $shadow: if(length($shadow) > 0, $shadow, default);
28
- $default: -compass-space-list(compact($default-text-shadow-h-offset $default-text-shadow-v-offset $default-text-shadow-blur $default-text-shadow-spread $default-text-shadow-color));
29
- $shadows-without-spread: join((),(),comma);
30
- $shadows: join((),(),comma);
31
- $has-spread: false;
32
-
33
- @each $layer in $shadow {
34
- $layer: if($layer == 'default', $default, $layer);
35
- @if length($layer) > 4 {
36
- $has-spread: true;
37
- $shadows-without-spread: append($shadows-without-spread, nth($layer,1) nth($layer,2) nth($layer,3) nth($layer,5));
38
- $shadows: append($shadows, $layer);
39
- } @else {
40
- $shadows-without-spread: append($shadows-without-spread, $layer);
41
- $shadows: append($shadows, $layer);
42
- }
43
- }
44
- @if $has-spread {
45
- text-shadow: $shadows-without-spread;
46
- }
47
- text-shadow: $shadows;
48
- }
49
-
50
- // Provides a single cross-browser CSS text shadow.
51
- //
52
- // Provides sensible defaults for the color, horizontal offset, vertical offset, blur, and spread
53
- // according to the configuration defaults above.
54
- @mixin single-text-shadow(
55
- $hoff: false,
56
- $voff: false,
57
- $blur: false,
58
- $spread: false,
59
- $color: false
60
- ) {
61
- // A lot of people think the color comes first. It doesn't.
62
- @if type-of($hoff) == color {
63
- $temp-color: $hoff;
64
- $hoff: $voff;
65
- $voff: $blur;
66
- $blur: $spread;
67
- $spread: $color;
68
- $color: $temp-color;
69
- }
70
- // Can't rely on default assignment with multiple supported argument orders.
71
- $hoff: if($hoff, $hoff, $default-text-shadow-h-offset);
72
- $voff: if($voff, $voff, $default-text-shadow-v-offset);
73
- $blur: if($blur, $blur, $default-text-shadow-blur );
74
- $spread: if($spread, $spread, $default-text-shadow-spread );
75
- $color: if($color, $color, $default-text-shadow-color );
76
- // We don't need experimental support for this property.
77
- @if $color == none or $hoff == none {
78
- @include text-shadow(none);
79
- } @else {
80
- @include text-shadow(compact($hoff $voff $blur $spread $color));
81
- }
82
- }