administrate 0.1.2 → 0.1.3

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

Potentially problematic release.


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

Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/administrate/search.svg +2 -2
  3. data/app/assets/images/administrate/sort_arrow.svg +1 -1
  4. data/app/assets/javascripts/administrate/components/has_many_form.js +1 -1
  5. data/app/assets/stylesheets/administrate/application.scss +3 -8
  6. data/app/assets/stylesheets/administrate/base/_forms.scss +56 -44
  7. data/app/assets/stylesheets/administrate/base/_layout.scss +20 -0
  8. data/app/assets/stylesheets/administrate/base/_lists.scss +9 -21
  9. data/app/assets/stylesheets/administrate/base/_tables.scss +9 -6
  10. data/app/assets/stylesheets/administrate/base/_typography.scss +12 -57
  11. data/app/assets/stylesheets/administrate/components/_app-container.scss +7 -0
  12. data/app/assets/stylesheets/administrate/components/_attributes.scss +1 -1
  13. data/app/assets/stylesheets/administrate/components/_buttons.scss +36 -0
  14. data/app/assets/stylesheets/administrate/components/_cells.scss +31 -37
  15. data/app/assets/stylesheets/administrate/components/_field-unit.scss +17 -0
  16. data/app/assets/stylesheets/administrate/components/_flashes.scss +16 -0
  17. data/app/assets/stylesheets/administrate/components/_form-actions.scss +3 -0
  18. data/app/assets/stylesheets/administrate/components/_header.scss +9 -8
  19. data/app/assets/stylesheets/administrate/components/_main-content.scss +6 -0
  20. data/app/assets/stylesheets/administrate/components/_pagination.scss +3 -2
  21. data/app/assets/stylesheets/administrate/components/_search.scss +9 -10
  22. data/app/assets/stylesheets/administrate/components/_sidebar.scss +22 -0
  23. data/app/assets/stylesheets/administrate/components/_table.scss +7 -3
  24. data/app/assets/stylesheets/administrate/{mixins → library}/_data_label.scss +2 -2
  25. data/app/assets/stylesheets/administrate/library/_variables.scss +57 -0
  26. data/app/assets/stylesheets/docs.scss +92 -0
  27. data/app/controllers/administrate/application_controller.rb +4 -3
  28. data/app/controllers/docs_controller.rb +9 -0
  29. data/app/helpers/administrate/application_helper.rb +16 -0
  30. data/app/views/administrate/application/_collection.html.erb +17 -12
  31. data/app/views/administrate/application/_flashes.html.erb +1 -1
  32. data/app/views/administrate/application/_form.html.erb +6 -8
  33. data/app/views/administrate/application/_sidebar.html.erb +1 -1
  34. data/app/views/administrate/application/edit.html.erb +3 -3
  35. data/app/views/administrate/application/index.html.erb +7 -6
  36. data/app/views/administrate/application/new.html.erb +2 -2
  37. data/app/views/administrate/application/show.html.erb +3 -3
  38. data/app/views/fields/belongs_to/_form.html.erb +8 -4
  39. data/app/views/fields/belongs_to/_index.html.erb +1 -1
  40. data/app/views/fields/belongs_to/_show.html.erb +1 -1
  41. data/app/views/fields/boolean/_form.html.erb +6 -2
  42. data/app/views/fields/date_time/_form.html.erb +6 -2
  43. data/app/views/fields/email/_form.html.erb +6 -2
  44. data/app/views/fields/has_many/_form.html.erb +8 -5
  45. data/app/views/fields/has_one/_form.html.erb +3 -1
  46. data/app/views/fields/has_one/_index.html.erb +1 -1
  47. data/app/views/fields/has_one/_show.html.erb +1 -1
  48. data/app/views/fields/image/_form.html.erb +6 -2
  49. data/app/views/fields/number/_form.html.erb +6 -2
  50. data/app/views/fields/polymorphic/_form.html.erb +3 -1
  51. data/app/views/fields/polymorphic/_index.html.erb +1 -1
  52. data/app/views/fields/polymorphic/_show.html.erb +1 -1
  53. data/app/views/fields/string/_form.html.erb +6 -2
  54. data/app/views/fields/text/_form.html.erb +6 -2
  55. data/app/views/layouts/administrate/application.html.erb +11 -11
  56. data/app/views/layouts/docs.html.erb +39 -0
  57. data/config/locales/administrate.de.yml +2 -2
  58. data/config/locales/administrate.it.yml +23 -0
  59. data/config/locales/administrate.uk.yml +23 -0
  60. data/lib/administrate/engine.rb +2 -2
  61. data/lib/administrate/fields/deferred.rb +3 -1
  62. data/lib/administrate/generator_helpers.rb +13 -0
  63. data/lib/administrate/resource_resolver.rb +5 -3
  64. data/lib/administrate/search.rb +3 -0
  65. data/lib/administrate/version.rb +1 -1
  66. data/lib/administrate/view_generator.rb +3 -0
  67. data/lib/generators/administrate/assets/assets_generator.rb +13 -0
  68. data/lib/generators/administrate/assets/images_generator.rb +17 -0
  69. data/lib/generators/administrate/assets/javascripts_generator.rb +17 -0
  70. data/lib/generators/administrate/assets/stylesheets_generator.rb +17 -0
  71. data/lib/generators/administrate/dashboard/USAGE +1 -1
  72. data/lib/generators/administrate/dashboard/dashboard_generator.rb +23 -4
  73. data/lib/generators/administrate/dashboard/templates/dashboard.rb.erb +7 -1
  74. data/lib/generators/administrate/install/install_generator.rb +17 -51
  75. data/lib/generators/administrate/manifest/manifest_generator.rb +65 -0
  76. data/lib/generators/administrate/{install → manifest}/templates/dashboard_manifest.rb.erb +0 -0
  77. data/lib/generators/administrate/views/layout_generator.rb +22 -0
  78. data/lib/generators/administrate/views/sidebar_generator.rb +15 -0
  79. data/lib/generators/administrate/views/views_generator.rb +4 -4
  80. metadata +28 -37
  81. data/app/assets/stylesheets/administrate/_sidebar.scss +0 -27
  82. data/app/assets/stylesheets/administrate/base/_base.scss +0 -24
  83. data/app/assets/stylesheets/administrate/base/_buttons.scss +0 -11
  84. data/app/assets/stylesheets/administrate/base/_grid-settings.scss +0 -15
  85. data/app/assets/stylesheets/administrate/base/_variables.scss +0 -106
  86. data/app/assets/stylesheets/administrate/base/extends/_button.scss +0 -23
  87. data/app/assets/stylesheets/administrate/base/extends/_clearfix.scss +0 -3
  88. data/app/assets/stylesheets/administrate/base/extends/_errors.scss +0 -11
  89. data/app/assets/stylesheets/administrate/base/extends/_flashes.scss +0 -34
  90. data/app/assets/stylesheets/administrate/base/extends/_hide-text.scss +0 -3
  91. data/app/assets/stylesheets/administrate/components/_components.scss +0 -8
  92. data/app/assets/stylesheets/administrate/components/_date_time_picker.scss +0 -3
  93. data/app/assets/stylesheets/administrate/components/_form.scss +0 -41
  94. data/app/assets/stylesheets/administrate/layout.scss +0 -29
  95. data/app/assets/stylesheets/administrate/mixins/_mixins.scss +0 -2
  96. data/app/assets/stylesheets/administrate/mixins/_shadow.scss +0 -35
  97. data/lib/administrate/namespace.rb +0 -3
@@ -0,0 +1,22 @@
1
+ require "administrate/view_generator"
2
+
3
+ module Administrate
4
+ module Generators
5
+ module Views
6
+ class LayoutGenerator < Administrate::ViewGenerator
7
+ source_root template_source_path
8
+
9
+ def copy_template
10
+ copy_file(
11
+ "../../layouts/administrate/application.html.erb",
12
+ "app/views/layouts/admin/application.html.erb",
13
+ )
14
+
15
+ call_generator("administrate:views:sidebar")
16
+ copy_resource_template("_javascript")
17
+ copy_resource_template("_flashes")
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,15 @@
1
+ require "administrate/view_generator"
2
+
3
+ module Administrate
4
+ module Generators
5
+ module Views
6
+ class SidebarGenerator < Administrate::ViewGenerator
7
+ source_root template_source_path
8
+
9
+ def copy_sidebar
10
+ copy_resource_template("_sidebar")
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -4,10 +4,10 @@ module Administrate
4
4
  module Generators
5
5
  class ViewsGenerator < Administrate::ViewGenerator
6
6
  def copy_templates
7
- Rails::Generators.invoke("administrate:views:index", [resource_path])
8
- Rails::Generators.invoke("administrate:views:show", [resource_path])
9
- Rails::Generators.invoke("administrate:views:new", [resource_path])
10
- Rails::Generators.invoke("administrate:views:edit", [resource_path])
7
+ call_generator("administrate:views:index", resource_path)
8
+ call_generator("administrate:views:show", resource_path)
9
+ call_generator("administrate:views:new", resource_path)
10
+ call_generator("administrate:views:edit", resource_path)
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grayson Wright
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-09 00:00:00.000000000 Z
11
+ date: 2016-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -30,28 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.6
33
+ version: 0.0.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.6
41
- - !ruby/object:Gem::Dependency
42
- name: inline_svg
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.6'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.6'
40
+ version: 0.0.7
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: jquery-rails
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -192,35 +178,30 @@ files:
192
178
  - app/assets/javascripts/administrate/components/date_time_picker.js
193
179
  - app/assets/javascripts/administrate/components/has_many_form.js
194
180
  - app/assets/javascripts/administrate/components/table.js
195
- - app/assets/stylesheets/administrate/_sidebar.scss
196
181
  - app/assets/stylesheets/administrate/application.scss
197
- - app/assets/stylesheets/administrate/base/_base.scss
198
- - app/assets/stylesheets/administrate/base/_buttons.scss
199
182
  - app/assets/stylesheets/administrate/base/_forms.scss
200
- - app/assets/stylesheets/administrate/base/_grid-settings.scss
183
+ - app/assets/stylesheets/administrate/base/_layout.scss
201
184
  - app/assets/stylesheets/administrate/base/_lists.scss
202
185
  - app/assets/stylesheets/administrate/base/_tables.scss
203
186
  - app/assets/stylesheets/administrate/base/_typography.scss
204
- - app/assets/stylesheets/administrate/base/_variables.scss
205
- - app/assets/stylesheets/administrate/base/extends/_button.scss
206
- - app/assets/stylesheets/administrate/base/extends/_clearfix.scss
207
- - app/assets/stylesheets/administrate/base/extends/_errors.scss
208
- - app/assets/stylesheets/administrate/base/extends/_flashes.scss
209
- - app/assets/stylesheets/administrate/base/extends/_hide-text.scss
187
+ - app/assets/stylesheets/administrate/components/_app-container.scss
210
188
  - app/assets/stylesheets/administrate/components/_attributes.scss
189
+ - app/assets/stylesheets/administrate/components/_buttons.scss
211
190
  - app/assets/stylesheets/administrate/components/_cells.scss
212
- - app/assets/stylesheets/administrate/components/_components.scss
213
- - app/assets/stylesheets/administrate/components/_date_time_picker.scss
214
- - app/assets/stylesheets/administrate/components/_form.scss
191
+ - app/assets/stylesheets/administrate/components/_field-unit.scss
192
+ - app/assets/stylesheets/administrate/components/_flashes.scss
193
+ - app/assets/stylesheets/administrate/components/_form-actions.scss
215
194
  - app/assets/stylesheets/administrate/components/_header.scss
195
+ - app/assets/stylesheets/administrate/components/_main-content.scss
216
196
  - app/assets/stylesheets/administrate/components/_pagination.scss
217
197
  - app/assets/stylesheets/administrate/components/_search.scss
198
+ - app/assets/stylesheets/administrate/components/_sidebar.scss
218
199
  - app/assets/stylesheets/administrate/components/_table.scss
219
- - app/assets/stylesheets/administrate/layout.scss
220
- - app/assets/stylesheets/administrate/mixins/_data_label.scss
221
- - app/assets/stylesheets/administrate/mixins/_mixins.scss
222
- - app/assets/stylesheets/administrate/mixins/_shadow.scss
200
+ - app/assets/stylesheets/administrate/library/_data_label.scss
201
+ - app/assets/stylesheets/administrate/library/_variables.scss
202
+ - app/assets/stylesheets/docs.scss
223
203
  - app/controllers/administrate/application_controller.rb
204
+ - app/controllers/docs_controller.rb
224
205
  - app/helpers/administrate/application_helper.rb
225
206
  - app/views/administrate/application/_collection.html.erb
226
207
  - app/views/administrate/application/_flashes.html.erb
@@ -265,17 +246,20 @@ files:
265
246
  - app/views/fields/text/_index.html.erb
266
247
  - app/views/fields/text/_show.html.erb
267
248
  - app/views/layouts/administrate/application.html.erb
249
+ - app/views/layouts/docs.html.erb
268
250
  - config/i18n-tasks.yml
269
251
  - config/locales/administrate.da.yml
270
252
  - config/locales/administrate.de.yml
271
253
  - config/locales/administrate.en.yml
272
254
  - config/locales/administrate.es.yml
273
255
  - config/locales/administrate.fr.yml
256
+ - config/locales/administrate.it.yml
274
257
  - config/locales/administrate.nl.yml
275
258
  - config/locales/administrate.pl.yml
276
259
  - config/locales/administrate.pt-BR.yml
277
260
  - config/locales/administrate.ru.yml
278
261
  - config/locales/administrate.sv.yml
262
+ - config/locales/administrate.uk.yml
279
263
  - config/locales/administrate.vi.yml
280
264
  - config/locales/administrate.zh-CN.yml
281
265
  - config/locales/administrate.zh-TW.yml
@@ -298,7 +282,7 @@ files:
298
282
  - lib/administrate/fields/polymorphic.rb
299
283
  - lib/administrate/fields/string.rb
300
284
  - lib/administrate/fields/text.rb
301
- - lib/administrate/namespace.rb
285
+ - lib/administrate/generator_helpers.rb
302
286
  - lib/administrate/order.rb
303
287
  - lib/administrate/page.rb
304
288
  - lib/administrate/page/base.rb
@@ -309,6 +293,10 @@ files:
309
293
  - lib/administrate/search.rb
310
294
  - lib/administrate/version.rb
311
295
  - lib/administrate/view_generator.rb
296
+ - lib/generators/administrate/assets/assets_generator.rb
297
+ - lib/generators/administrate/assets/images_generator.rb
298
+ - lib/generators/administrate/assets/javascripts_generator.rb
299
+ - lib/generators/administrate/assets/stylesheets_generator.rb
312
300
  - lib/generators/administrate/dashboard/USAGE
313
301
  - lib/generators/administrate/dashboard/dashboard_generator.rb
314
302
  - lib/generators/administrate/dashboard/templates/controller.rb.erb
@@ -320,14 +308,17 @@ files:
320
308
  - lib/generators/administrate/field/templates/field_object.rb.erb
321
309
  - lib/generators/administrate/install/install_generator.rb
322
310
  - lib/generators/administrate/install/templates/application_controller.rb
323
- - lib/generators/administrate/install/templates/dashboard_manifest.rb.erb
324
311
  - lib/generators/administrate/install/templates/routes.rb
312
+ - lib/generators/administrate/manifest/manifest_generator.rb
313
+ - lib/generators/administrate/manifest/templates/dashboard_manifest.rb.erb
325
314
  - lib/generators/administrate/views/edit_generator.rb
326
315
  - lib/generators/administrate/views/field_generator.rb
327
316
  - lib/generators/administrate/views/form_generator.rb
328
317
  - lib/generators/administrate/views/index_generator.rb
318
+ - lib/generators/administrate/views/layout_generator.rb
329
319
  - lib/generators/administrate/views/new_generator.rb
330
320
  - lib/generators/administrate/views/show_generator.rb
321
+ - lib/generators/administrate/views/sidebar_generator.rb
331
322
  - lib/generators/administrate/views/views_generator.rb
332
323
  - lib/tasks/administrate_tasks.rake
333
324
  homepage: https://administrate-docs.herokuapp.com/
@@ -1,27 +0,0 @@
1
- .sidebar {
2
- flex: 0 0 auto;
3
- max-width: 12em;
4
- overflow-y: auto;
5
- padding: 0 $base-spacing;
6
-
7
- &__link {
8
- @include fill-parent;
9
- color: $base-font-color;
10
- display: block;
11
- padding-top: $base-spacing;
12
- transition: color 0.05s linear;
13
-
14
- &:last-child {
15
- padding-bottom: $base-spacing;
16
- }
17
-
18
- &--active {
19
- color: $blue;
20
- font-weight: $bold-font-weight;
21
- }
22
-
23
- &:hover {
24
- color: $blue;
25
- }
26
- }
27
- }
@@ -1,24 +0,0 @@
1
- /* Bitters 0.10.0
2
- * http://bitters.bourbon.io
3
- * Copyright 2013–2014 thoughtbot, inc.
4
- * MIT License */
5
-
6
- // Variables
7
- @import "variables";
8
-
9
- // Neat Settings -- uncomment if using Neat -- must be imported before Neat
10
- // @import "grid-settings";
11
-
12
- // Extends
13
- @import "extends/button";
14
- @import "extends/clearfix";
15
- @import "extends/errors";
16
- @import "extends/flashes";
17
- @import "extends/hide-text";
18
-
19
- // Typography and Elements
20
- @import "typography";
21
- @import "forms";
22
- @import "tables";
23
- @import "lists";
24
- @import "buttons";
@@ -1,11 +0,0 @@
1
- button,
2
- input[type="submit"],
3
- .button {
4
- @extend %button;
5
- appearance: none;
6
- border: none;
7
- cursor: pointer;
8
- user-select: none;
9
- vertical-align: middle;
10
- white-space: nowrap;
11
- }
@@ -1,15 +0,0 @@
1
- @import "neat-helpers"; // or "../neat/neat-helpers" when not in Rails
2
-
3
- // Neat Overrides
4
- // $column: 90px;
5
- // $grid-columns: 12;
6
- // $max-width: em(1088);
7
-
8
- $gutter: 2em;
9
-
10
- // Neat Breakpoints
11
- $medium-screen: em(640);
12
- $large-screen: em(860);
13
-
14
- $medium-screen-up: new-breakpoint(min-width $medium-screen 4);
15
- $large-screen-up: new-breakpoint(min-width $large-screen 8);
@@ -1,106 +0,0 @@
1
- // Typography
2
- $sans-serif: "Lato", $helvetica;
3
- $serif: $georgia;
4
- $base-font-family: $sans-serif;
5
- $header-font-family: $base-font-family;
6
-
7
- // Font Sizes
8
- $base-font-size: 1em;
9
- $small-font-size: 0.875em;
10
- $h1-font-size: $base-font-size * 2.25;
11
- $h2-font-size: $base-font-size * 2;
12
- $h3-font-size: $base-font-size * 1.75;
13
- $h4-font-size: $base-font-size * 1.5;
14
- $h5-font-size: $base-font-size * 1.25;
15
- $h6-font-size: $base-font-size;
16
-
17
- // Font Weights
18
- $light-font-weight: 300;
19
- $normal-font-weight: 400;
20
- $bold-font-weight: 900;
21
-
22
- // Line height
23
- $base-line-height: 1.5;
24
- $header-line-height: 1.25;
25
-
26
- // Other Sizes
27
- $base-border-radius: 3px;
28
- $base-spacing: $base-line-height * 1em;
29
- $base-z-index: 0;
30
- $small-spacing: $base-spacing / 2;
31
- $table-image-height: 2em;
32
-
33
- // Transitions
34
- $base-easing: cubic-bezier(0.215, 0.610, 0.355, 1);
35
- $base-timing: 0.25s;
36
- $base-transition: all $base-timing $base-easing;
37
-
38
- // Colors
39
- $dark-blue: #293f53;
40
- $blue: #2a94d6;
41
- $light-blue: #4eb1cb;
42
- $light-red: #c77067;
43
- $light-yellow: #f0cd66;
44
- $light-green: #4ab471;
45
-
46
- $form-field-background-color: #fff;
47
- $white: #fff;
48
- $grey-0: #f6f7f7;
49
- $grey-1: #dfe0e1;
50
- $grey-2: #cfd8dc;
51
- $grey-7: #293f54;
52
-
53
- $hint-grey: #7b808c;
54
-
55
- $base-background-color: $grey-0;
56
-
57
- // Font Colors
58
- $base-font-color: $grey-7;
59
- $base-accent-color: $blue;
60
-
61
- // Override text inputs for lower specificity
62
- $all-text-inputs: '[type="color"]',
63
- '[type="date"]',
64
- '[type="datetime"]',
65
- '[type="datetime-local"]',
66
- '[type="email"]',
67
- '[type="month"]',
68
- '[type="number"]',
69
- '[type="password"]',
70
- '[type="search"]',
71
- '[type="tel"]',
72
- '[type="text"]',
73
- '[type="time"]',
74
- '[type="url"]',
75
- '[type="week"]';
76
-
77
- // Link Colors
78
- $base-link-color: $blue;
79
- $hover-link-color: shade($blue, 10);
80
- $base-button-color: $base-link-color;
81
- $hover-button-color: $hover-link-color;
82
-
83
- // Flash Colors
84
- $alert-color: $light-yellow;
85
- $error-color: $light-red;
86
- $notice-color: lighten($base-accent-color, 40);
87
- $success-color: $light-green;
88
-
89
- // Border color
90
- $base-border-color: $grey-1;
91
- $base-border-size: 1px;
92
- $base-border: $base-border-size solid $base-border-color;
93
- $dark-border-color: $grey-2;
94
- $dark-border: $base-border-size solid $dark-border-color;
95
-
96
- // Forms
97
- $form-border-color: $base-border-color;
98
- $form-border-color-hover: darken($base-border-color, 10);
99
- $form-border-color-focus: $base-accent-color;
100
- $form-border-radius: $base-border-radius;
101
- $form-box-shadow: inset 0 1px 3px rgba(black,0.06);
102
- $form-box-shadow-focus: $form-box-shadow, 0 0 5px rgba(darken($form-border-color-focus, 5), 0.7);
103
- $form-font-size: $base-font-size;
104
- $form-font-family: $base-font-family;
105
-
106
- $form-input-padding: $base-spacing / 3;
@@ -1,23 +0,0 @@
1
- %button {
2
- -webkit-font-smoothing: antialiased;
3
- background-color: $base-button-color;
4
- border-radius: $base-border-radius;
5
- color: white;
6
- display: inline-block;
7
- font-size: $base-font-size;
8
- font-weight: bold;
9
- line-height: 1;
10
- padding: 0.75em 1em;
11
- text-decoration: none;
12
- transition: background-color $base-timing $base-easing;
13
-
14
- &:hover {
15
- background-color: $hover-button-color;
16
- color: white;
17
- }
18
-
19
- &:disabled {
20
- cursor: not-allowed;
21
- opacity: 0.5;
22
- }
23
- }
@@ -1,3 +0,0 @@
1
- %clearfix {
2
- @include clearfix;
3
- }
@@ -1,11 +0,0 @@
1
- %error {
2
- color: darken($error-color, 60);
3
- }
4
-
5
- %warning {
6
- color: darken($alert-color, 60);
7
- }
8
-
9
- %notice {
10
- color: darken($notice-color, 60);
11
- }
@@ -1,34 +0,0 @@
1
- @mixin flash($color) {
2
- background: $color;
3
- color: darken($color, 60);
4
- margin-bottom: $base-spacing;
5
-
6
- a {
7
- color: darken($color, 70);
8
-
9
- &:hover {
10
- color: darken($color, 90);
11
- }
12
- }
13
- }
14
-
15
- .flash {
16
- border-radius: $base-border-radius;
17
- padding: $base-spacing / 2;
18
-
19
- &--alert {
20
- @include flash($alert-color);
21
- }
22
-
23
- &--error {
24
- @include flash($error-color);
25
- }
26
-
27
- &--notice {
28
- @include flash($notice-color);
29
- }
30
-
31
- &--success {
32
- @include flash($success-color);
33
- }
34
- }