beyond_canvas 0.15.2.pre → 0.17.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -6
  3. data/Rakefile +3 -3
  4. data/app/assets/config/beyond_canvas_manifest.js +1 -0
  5. data/app/assets/images/icons/arrow_right.svg +1 -0
  6. data/app/assets/images/icons/close.svg +1 -0
  7. data/app/assets/images/icons/home.svg +1 -0
  8. data/app/assets/javascripts/beyond_canvas/base.js +120 -246
  9. data/app/assets/stylesheets/beyond_canvas/base.scss +8 -1
  10. data/app/assets/stylesheets/beyond_canvas/components/_action_bar.scss +28 -0
  11. data/app/assets/stylesheets/beyond_canvas/components/_breadcrumbs.scss +29 -0
  12. data/app/assets/stylesheets/beyond_canvas/components/_buttons.scss +1 -1
  13. data/app/assets/stylesheets/beyond_canvas/components/_debug.scss +10 -0
  14. data/app/assets/stylesheets/beyond_canvas/components/_forms.scss +11 -14
  15. data/app/assets/stylesheets/beyond_canvas/components/_main.scss +12 -13
  16. data/app/assets/stylesheets/beyond_canvas/components/_margins.scss +8 -0
  17. data/app/assets/stylesheets/beyond_canvas/components/_menu.scss +40 -0
  18. data/app/assets/stylesheets/beyond_canvas/components/_modals.scss +27 -0
  19. data/app/assets/stylesheets/beyond_canvas/components/_sidebar.scss +53 -0
  20. data/app/assets/stylesheets/beyond_canvas/components/_titles.scss +7 -0
  21. data/app/assets/stylesheets/beyond_canvas/settings/_breakpoints.scss +6 -6
  22. data/app/assets/stylesheets/beyond_canvas/settings/_variables.scss +77 -22
  23. data/app/controllers/beyond_canvas/application_controller.rb +2 -0
  24. data/app/controllers/beyond_canvas/authentications_controller.rb +69 -0
  25. data/app/controllers/concerns/beyond_canvas/authentication.rb +13 -0
  26. data/app/controllers/concerns/beyond_canvas/locale_management.rb +5 -4
  27. data/app/controllers/concerns/beyond_canvas/request_validation.rb +1 -1
  28. data/app/helpers/beyond_canvas/authentications_helper.rb +28 -0
  29. data/app/helpers/beyond_canvas/cockpit_app_helper.rb +17 -0
  30. data/app/helpers/beyond_canvas/debug_helper.rb +9 -0
  31. data/app/helpers/beyond_canvas/locale_switch_helper.rb +5 -1
  32. data/app/javascript/beyond_canvas/base.js +3 -0
  33. data/app/javascript/beyond_canvas/initializers/buttons.js +65 -19
  34. data/app/javascript/beyond_canvas/initializers/flash.js +9 -2
  35. data/app/javascript/beyond_canvas/initializers/inputs.js +4 -1
  36. data/app/javascript/beyond_canvas/initializers/modals.js +14 -0
  37. data/app/views/beyond_canvas/authentications/new.html.erb +27 -0
  38. data/app/views/beyond_canvas/shared/_action_bar.html.erb +15 -0
  39. data/app/views/beyond_canvas/shared/_breadcrumbs.html.erb +14 -0
  40. data/app/views/beyond_canvas/shared/_flash.html.erb +22 -12
  41. data/app/views/beyond_canvas/shared/_locales.html.erb +8 -0
  42. data/app/views/beyond_canvas/shared/_menu.html.erb +31 -0
  43. data/app/views/beyond_canvas/shared/_modal.html.erb +6 -0
  44. data/app/views/beyond_canvas/shared/_sidebar.html.erb +16 -0
  45. data/app/views/layouts/beyond_canvas/application.html.erb +31 -0
  46. data/app/views/layouts/beyond_canvas/public.html.erb +10 -1
  47. data/config/locales/en.yml +9 -0
  48. data/config/routes.rb +8 -1
  49. data/lib/beyond_canvas.rb +18 -2
  50. data/lib/beyond_canvas/configuration.rb +11 -3
  51. data/lib/beyond_canvas/engine.rb +6 -0
  52. data/lib/beyond_canvas/menu_item_registration.rb +19 -0
  53. data/lib/beyond_canvas/parameter_sanitizer.rb +43 -0
  54. data/lib/beyond_canvas/rails/routes.rb +22 -0
  55. data/lib/beyond_canvas/version.rb +1 -1
  56. data/lib/generators/beyond_canvas/controller/controller_generator.rb +19 -0
  57. data/lib/generators/beyond_canvas/controller/templates/controller.erb +20 -0
  58. data/lib/generators/beyond_canvas/custom_menu/custom_menu_generator.rb +13 -0
  59. data/lib/generators/beyond_canvas/custom_menu/templates/beyond_canvas_custom_menu.html.erb +32 -0
  60. data/lib/generators/beyond_canvas/custom_styles/custom_styles_generator.rb +1 -1
  61. data/lib/generators/beyond_canvas/custom_styles/templates/beyond_canvas_custom_styles.scss +199 -0
  62. data/lib/generators/beyond_canvas/install/install_generator.rb +13 -5
  63. data/lib/generators/beyond_canvas/install/templates/beyond_canvas.rb.erb +55 -6
  64. data/lib/generators/beyond_canvas/model/model_generator.rb +49 -0
  65. data/lib/generators/beyond_canvas/model/templates/migration.erb +18 -0
  66. data/lib/generators/beyond_canvas/model/templates/model.erb +5 -0
  67. data/lib/generators/beyond_canvas/views/views_generator.rb +17 -0
  68. data/lib/models/concerns/authentication.rb +57 -0
  69. data/lib/models/concerns/utils.rb +79 -0
  70. data/lib/models/shop.rb +12 -0
  71. metadata +95 -12
  72. data/app/javascript/beyond_canvas/initializers/functions.js +0 -41
  73. data/app/views/beyond_canvas/locales/_edit.html.erb +0 -8
  74. data/lib/generators/beyond_canvas/custom_styles/templates/beyond_canvas_custom_styles.sass +0 -123
@@ -0,0 +1,79 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'jwt'
4
+
5
+ module BeyondCanvas
6
+ module Models
7
+ module Concerns
8
+ module Utils # :nodoc:
9
+ extend ActiveSupport::Concern
10
+
11
+ included do
12
+ ##############################################################################
13
+ # Instance methods
14
+ ##############################################################################
15
+
16
+ #
17
+ # Generates a new access_token and refresh_token
18
+ #
19
+ def refresh_token
20
+ beyond_session = BeyondApi::Session.new(api_url: beyond_api_url, refresh_token: beyond_refresh_token)
21
+ beyond_session.token.refresh
22
+
23
+ update(beyond_access_token: beyond_session.access_token,
24
+ beyond_refresh_token: beyond_session.refresh_token)
25
+ end
26
+
27
+ #
28
+ # Generates a new access_token and refresh_token if they have expired
29
+ #
30
+ def refresh_token_if_needed
31
+ token_timestamp = decoded_jwt['exp']
32
+ current_timestamp = DateTime.now.to_i
33
+ return unless token_timestamp - current_timestamp <= 3600
34
+
35
+ refresh_token
36
+ end
37
+
38
+ #
39
+ # Returns a BeyondApi::Session object with api_url, access_token and refresh_token attributes
40
+ #
41
+ def to_session
42
+ BeyondApi::Session.new(api_url: beyond_api_url,
43
+ access_token: beyond_access_token,
44
+ refresh_token: beyond_refresh_token)
45
+ end
46
+
47
+ #
48
+ # Returns the shop url
49
+ #
50
+ def url
51
+ "https://#{URI.parse(beyond_api_url).host}"
52
+ end
53
+
54
+ def has_scope?(scope)
55
+ return unless scope.include?(':')
56
+
57
+ base, scope = scope.split(':')
58
+ !!(decoded_jwt['scope'].find { |s| s.split(':').first == base } =~ /#{base}:.*#{scope}.*/)
59
+ end
60
+
61
+ ##############################################################################
62
+ # Class methods
63
+ ##############################################################################
64
+
65
+ def self.find_session(id)
66
+ shop = find(id)
67
+ shop.to_session
68
+ end
69
+
70
+ private
71
+
72
+ def decoded_jwt
73
+ JWT.decode(beyond_access_token, nil, false).first
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BeyondCanvas
4
+ module Models
5
+ module Shop # :nodoc:
6
+ extend ActiveSupport::Concern
7
+
8
+ include ::BeyondCanvas::Models::Concerns::Authentication
9
+ include ::BeyondCanvas::Models::Concerns::Utils
10
+ end
11
+ end
12
+ end
metadata CHANGED
@@ -1,29 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond_canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2.pre
4
+ version: 0.17.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unai Abrisketa
8
- autorequire:
8
+ - Kathia Salazar
9
+ - German San Emeterio
10
+ autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
13
+ date: 2020-09-30 00:00:00.000000000 Z
12
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: attr_encrypted
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '3.1'
13
29
  - !ruby/object:Gem::Dependency
14
30
  name: beyond_api
15
31
  requirement: !ruby/object:Gem::Requirement
16
32
  requirements:
17
33
  - - "~>"
18
34
  - !ruby/object:Gem::Version
19
- version: '0.8'
35
+ version: '0.11'
20
36
  type: :runtime
21
37
  prerelease: false
22
38
  version_requirements: !ruby/object:Gem::Requirement
23
39
  requirements:
24
40
  - - "~>"
25
41
  - !ruby/object:Gem::Version
26
- version: '0.8'
42
+ version: '0.11'
27
43
  - !ruby/object:Gem::Dependency
28
44
  name: bourbon
29
45
  requirement: !ruby/object:Gem::Requirement
@@ -142,6 +158,34 @@ dependencies:
142
158
  - - "<"
143
159
  - !ruby/object:Gem::Version
144
160
  version: '4.1'
161
+ - !ruby/object:Gem::Dependency
162
+ name: loaf
163
+ requirement: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '0.9'
168
+ type: :runtime
169
+ prerelease: false
170
+ version_requirements: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '0.9'
175
+ - !ruby/object:Gem::Dependency
176
+ name: jwt
177
+ requirement: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '2.2'
182
+ type: :runtime
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: '2.2'
145
189
  - !ruby/object:Gem::Dependency
146
190
  name: rubocop-rails
147
191
  requirement: !ruby/object:Gem::Requirement
@@ -160,7 +204,9 @@ description: |2
160
204
  Beyond Canvas is an open-source framework that provides CSS styles for apps
161
205
  designed and developed for the online shop software Beyond
162
206
  email:
163
- - u.abrisketa@epages.com
207
+ - uabrisketa@epages.com
208
+ - ksalazar@epages.com
209
+ - gsanemeterio@epages.com
164
210
  executables: []
165
211
  extensions: []
166
212
  extra_rdoc_files: []
@@ -169,23 +215,29 @@ files:
169
215
  - README.md
170
216
  - Rakefile
171
217
  - app/assets/config/beyond_canvas_manifest.js
218
+ - app/assets/images/icons/arrow_right.svg
172
219
  - app/assets/images/icons/checkbox_checked.svg
173
220
  - app/assets/images/icons/checkbox_unchecked.svg
221
+ - app/assets/images/icons/close.svg
174
222
  - app/assets/images/icons/file.svg
175
223
  - app/assets/images/icons/flash_checkbox.svg
176
224
  - app/assets/images/icons/flash_close.svg
177
225
  - app/assets/images/icons/flash_error.svg
178
226
  - app/assets/images/icons/flash_info.svg
179
227
  - app/assets/images/icons/flash_warning.svg
228
+ - app/assets/images/icons/home.svg
180
229
  - app/assets/images/icons/radiobutton_checked.svg
181
230
  - app/assets/images/icons/radiobutton_unchecked.svg
182
231
  - app/assets/javascripts/beyond_canvas/base.js
183
232
  - app/assets/stylesheets/beyond_canvas/base.scss
233
+ - app/assets/stylesheets/beyond_canvas/components/_action_bar.scss
184
234
  - app/assets/stylesheets/beyond_canvas/components/_actions.scss
235
+ - app/assets/stylesheets/beyond_canvas/components/_breadcrumbs.scss
185
236
  - app/assets/stylesheets/beyond_canvas/components/_buttons.scss
186
237
  - app/assets/stylesheets/beyond_canvas/components/_cards.scss
187
238
  - app/assets/stylesheets/beyond_canvas/components/_comments.scss
188
239
  - app/assets/stylesheets/beyond_canvas/components/_containers.scss
240
+ - app/assets/stylesheets/beyond_canvas/components/_debug.scss
189
241
  - app/assets/stylesheets/beyond_canvas/components/_flash.scss
190
242
  - app/assets/stylesheets/beyond_canvas/components/_forms.scss
191
243
  - app/assets/stylesheets/beyond_canvas/components/_inputs.scss
@@ -194,11 +246,15 @@ files:
194
246
  - app/assets/stylesheets/beyond_canvas/components/_main.scss
195
247
  - app/assets/stylesheets/beyond_canvas/components/_margins.scss
196
248
  - app/assets/stylesheets/beyond_canvas/components/_markdown.scss
249
+ - app/assets/stylesheets/beyond_canvas/components/_menu.scss
250
+ - app/assets/stylesheets/beyond_canvas/components/_modals.scss
197
251
  - app/assets/stylesheets/beyond_canvas/components/_notices.scss
198
252
  - app/assets/stylesheets/beyond_canvas/components/_relative.scss
253
+ - app/assets/stylesheets/beyond_canvas/components/_sidebar.scss
199
254
  - app/assets/stylesheets/beyond_canvas/components/_spinner.scss
200
255
  - app/assets/stylesheets/beyond_canvas/components/_tables.scss
201
256
  - app/assets/stylesheets/beyond_canvas/components/_texts.scss
257
+ - app/assets/stylesheets/beyond_canvas/components/_titles.scss
202
258
  - app/assets/stylesheets/beyond_canvas/mailer.scss
203
259
  - app/assets/stylesheets/beyond_canvas/settings/_breakpoints.scss
204
260
  - app/assets/stylesheets/beyond_canvas/settings/_reset_css.scss
@@ -207,54 +263,81 @@ files:
207
263
  - app/assets/stylesheets/beyond_canvas/utilities/_functions.scss
208
264
  - app/assets/stylesheets/beyond_canvas/utilities/_mixins.scss
209
265
  - app/controllers/beyond_canvas/application_controller.rb
266
+ - app/controllers/beyond_canvas/authentications_controller.rb
210
267
  - app/controllers/beyond_canvas/system_controller.rb
268
+ - app/controllers/concerns/beyond_canvas/authentication.rb
211
269
  - app/controllers/concerns/beyond_canvas/locale_management.rb
212
270
  - app/controllers/concerns/beyond_canvas/request_validation.rb
213
271
  - app/controllers/concerns/beyond_canvas/status_codes.rb
214
272
  - app/form_builders/beyond_canvas/form_builder.rb
215
273
  - app/helpers/beyond_canvas/application_helper.rb
274
+ - app/helpers/beyond_canvas/authentications_helper.rb
275
+ - app/helpers/beyond_canvas/cockpit_app_helper.rb
276
+ - app/helpers/beyond_canvas/debug_helper.rb
216
277
  - app/helpers/beyond_canvas/locale_switch_helper.rb
217
278
  - app/javascript/beyond_canvas/base.js
218
279
  - app/javascript/beyond_canvas/initializers/buttons.js
219
280
  - app/javascript/beyond_canvas/initializers/flash.js
220
- - app/javascript/beyond_canvas/initializers/functions.js
221
281
  - app/javascript/beyond_canvas/initializers/inputs.js
282
+ - app/javascript/beyond_canvas/initializers/modals.js
283
+ - app/views/beyond_canvas/authentications/new.html.erb
222
284
  - app/views/beyond_canvas/custom/_public_head.html.erb
223
- - app/views/beyond_canvas/locales/_edit.html.erb
224
285
  - app/views/beyond_canvas/mailer/_button.html.erb
225
286
  - app/views/beyond_canvas/mailer/_footer.html.erb
226
287
  - app/views/beyond_canvas/mailer/_header.html.erb
227
288
  - app/views/beyond_canvas/mailer/_text.html.erb
289
+ - app/views/beyond_canvas/shared/_action_bar.html.erb
290
+ - app/views/beyond_canvas/shared/_breadcrumbs.html.erb
228
291
  - app/views/beyond_canvas/shared/_flash.html.erb
229
292
  - app/views/beyond_canvas/shared/_head.html.erb
293
+ - app/views/beyond_canvas/shared/_locales.html.erb
230
294
  - app/views/beyond_canvas/shared/_logo.html.erb
295
+ - app/views/beyond_canvas/shared/_menu.html.erb
296
+ - app/views/beyond_canvas/shared/_modal.html.erb
297
+ - app/views/beyond_canvas/shared/_sidebar.html.erb
298
+ - app/views/layouts/beyond_canvas/application.html.erb
231
299
  - app/views/layouts/beyond_canvas/mailer.html.erb
232
300
  - app/views/layouts/beyond_canvas/public.html.erb
233
301
  - config/initializers/beyond_canvas/filter_parameter_logging.rb
234
302
  - config/initializers/beyond_canvas/form_utils.rb
303
+ - config/locales/en.yml
235
304
  - config/routes.rb
236
305
  - lib/beyond_canvas.rb
237
306
  - lib/beyond_canvas/asset_registration.rb
238
307
  - lib/beyond_canvas/configuration.rb
239
308
  - lib/beyond_canvas/engine.rb
309
+ - lib/beyond_canvas/menu_item_registration.rb
310
+ - lib/beyond_canvas/parameter_sanitizer.rb
311
+ - lib/beyond_canvas/rails/routes.rb
240
312
  - lib/beyond_canvas/version.rb
241
313
  - lib/generators/beyond_canvas/assets/assets_generator.rb
242
314
  - lib/generators/beyond_canvas/assets/templates/beyond_canvas.js
243
315
  - lib/generators/beyond_canvas/assets/templates/beyond_canvas.scss
244
316
  - lib/generators/beyond_canvas/beyond_api/beyond_api_generator.rb
317
+ - lib/generators/beyond_canvas/controller/controller_generator.rb
318
+ - lib/generators/beyond_canvas/controller/templates/controller.erb
319
+ - lib/generators/beyond_canvas/custom_menu/custom_menu_generator.rb
320
+ - lib/generators/beyond_canvas/custom_menu/templates/beyond_canvas_custom_menu.html.erb
245
321
  - lib/generators/beyond_canvas/custom_styles/custom_styles_generator.rb
246
- - lib/generators/beyond_canvas/custom_styles/templates/beyond_canvas_custom_styles.sass
322
+ - lib/generators/beyond_canvas/custom_styles/templates/beyond_canvas_custom_styles.scss
247
323
  - lib/generators/beyond_canvas/install/install_generator.rb
248
324
  - lib/generators/beyond_canvas/install/templates/beyond_canvas.rb.erb
325
+ - lib/generators/beyond_canvas/model/model_generator.rb
326
+ - lib/generators/beyond_canvas/model/templates/migration.erb
327
+ - lib/generators/beyond_canvas/model/templates/model.erb
328
+ - lib/generators/beyond_canvas/views/views_generator.rb
249
329
  - lib/generators/beyond_canvas/webpacker/plugins/jquery.js
250
330
  - lib/generators/beyond_canvas/webpacker/templates/beyond_canvas.js
251
331
  - lib/generators/beyond_canvas/webpacker/templates/beyond_canvas.scss
252
332
  - lib/generators/beyond_canvas/webpacker/webpacker_generator.rb
333
+ - lib/models/concerns/authentication.rb
334
+ - lib/models/concerns/utils.rb
335
+ - lib/models/shop.rb
253
336
  homepage: https://github.com/ePages-de/beyond_canvas
254
337
  licenses:
255
338
  - MIT
256
339
  metadata: {}
257
- post_install_message:
340
+ post_install_message:
258
341
  rdoc_options: []
259
342
  require_paths:
260
343
  - lib
@@ -269,8 +352,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
352
  - !ruby/object:Gem::Version
270
353
  version: 1.3.1
271
354
  requirements: []
272
- rubygems_version: 3.0.1
273
- signing_key:
355
+ rubygems_version: 3.1.4
356
+ signing_key:
274
357
  specification_version: 4
275
358
  summary: Open-source framework that provides CSS styles
276
359
  test_files: []
@@ -1,41 +0,0 @@
1
- const SPINNER_ANIMATION_TIMEOUT = 125;
2
-
3
- export function showSpinner(button) {
4
- // Adjust the width of the button
5
- button.width(button.width() + $('.spinner').outerWidth(true));
6
- // Show the spinner
7
- setTimeout(function () {
8
- button.find('.spinner').css('display', 'flex');
9
- }, SPINNER_ANIMATION_TIMEOUT);
10
- }
11
-
12
- export function hideSpinner() {
13
- $('button[class^="button"]').each(function (_, button) {
14
- setTimeout(function () {
15
- // Hide the spinner
16
- $(button).find('.spinner').hide();
17
- // Adjust the width of the button
18
- $(button).width($(button).data('oldWidth'));
19
- }, SPINNER_ANIMATION_TIMEOUT);
20
- });
21
- }
22
-
23
- export function disableActionElements() {
24
- $('a, input[type="submit"], input[type="button"], input[type="reset"], button').each(function (_, button) {
25
- $(button).addClass('actions--disabled');
26
- });
27
- }
28
- export function enableActionElements() {
29
- $('a, input[type="submit"], input[type="button"], input[type="reset"], button').each(function (_, button) {
30
- $(button).removeClass('actions--disabled');
31
- });
32
- }
33
-
34
- export function closeAlert() {
35
- $('.flash')
36
- .removeClass('flash--shown')
37
- .delay(700)
38
- .queue(function () {
39
- $(this).remove();
40
- });
41
- }
@@ -1,8 +0,0 @@
1
- <% if defined?(I18n) && I18n.available_locales.count > 1 %>
2
- <%= form_for :system, url: beyond_canvas.update_locale_path, method: :put do |f| %>
3
- <%= f.select :locale, I18n.available_locales.collect { |l| [translate_locale(l), l] },
4
- { selected: cookies[:locale] },
5
- class: 'select--locale',
6
- onchange: 'this.form.submit()' %>
7
- <% end %>
8
- <% end %>
@@ -1,123 +0,0 @@
1
- // ************************************************************
2
- // Colors
3
- // ************************************************************
4
-
5
- // $palette-primary: rgb(78, 183, 168)
6
- // $palette-secondary: rgb(28, 53, 69)
7
- // $palette-cancel: rgb(153, 153, 153)
8
- // $palette-danger: rgb(218, 60, 60)
9
-
10
- // ************************************************************
11
- // General styles
12
- // ************************************************************
13
-
14
- // $main-background: rgb(233, 232, 220)
15
-
16
- // ************************************************************
17
- // Typography
18
- // ************************************************************
19
-
20
- // $main-color: rgb(62, 62, 62)
21
-
22
- // ************************************************************
23
- // Headlines
24
- // ************************************************************
25
-
26
- // $headline-color: rgb(122, 118, 76)
27
-
28
- // ************************************************************
29
- // Links
30
- // ************************************************************
31
-
32
- // $link-primary-color: darken($palette-primary, 10%)
33
- // $link-secondary-color: darken($palette-cancel, 10%)
34
- // $link-danger-color: darken($palette-danger, 10%)
35
-
36
- // ************************************************************
37
- // Buttons
38
- // ************************************************************
39
-
40
- // $button-primary-background: $palette-primary
41
- // $button-primary-color: $white
42
-
43
- // $button-secondary-background: $palette-cancel
44
- // $button-secondary-color: $white
45
-
46
- // $button-danger-background: $palette-danger
47
- // $button-danger-color: $white
48
-
49
- // $button-border-radius: 3px
50
- // $button-box-shadow: true
51
-
52
- // ************************************************************
53
- // Cards
54
- // ************************************************************
55
-
56
- // $card-border-radius: 3px
57
- // $card-box-shadow: 0 2px 7px rgba($black, .2)
58
- // $card-separator-color: rgb(222, 222, 222)
59
- // $card-title-color: rgb(247, 133, 96)
60
-
61
- // ************************************************************
62
- // Labels
63
- // ************************************************************
64
-
65
- // $label-color: rgb(128, 128, 128)
66
-
67
- // ************************************************************
68
- // Inputs
69
- // ************************************************************
70
-
71
- // $input-border-color: rgb(217, 216, 195)
72
- // $input-border-color-focus: $palette-primary
73
- // $input-errors-color: $palette-danger
74
-
75
- // ************************************************************
76
- // Hints
77
- // ************************************************************
78
-
79
- // $hint-color: rgb(158, 158, 158)
80
-
81
- // ************************************************************
82
- // Logo
83
- // ************************************************************
84
-
85
- // $logo-margin-top-public: 0
86
- // $logo-margin-bottom-public: 34px
87
-
88
- // ************************************************************
89
- // Flash
90
- // ************************************************************
91
-
92
- // $flash-success: rgb(123, 170, 81)
93
- // $flash-info: rgb(90, 129, 171)
94
- // $flash-warning: rgb(193, 179, 26)
95
- // $flash-error: rgb(162, 66, 60)
96
- // $flash-border-radius: 4px
97
- // $flash-box-shadow: 0 1px 2px 0 rgba($black, 0.2)
98
- // $flash-color: rgb(128, 128, 128)
99
-
100
- // ************************************************************
101
- // Tables
102
- // ************************************************************
103
-
104
- // $table-header-background: rgb(243, 242, 236)
105
- // $table-border-color: rgb(233, 232, 220)
106
-
107
- // ************************************************************
108
- // Comments
109
- // ************************************************************
110
-
111
- // $comment-background: rgb(246, 246, 243)
112
- // $comment-color: rgb(170, 169, 156)
113
-
114
- // ************************************************************
115
- // Notices
116
- // ************************************************************
117
-
118
- // $notice-success-background: rgb(123, 170, 81)
119
- // $notice-info-background: rgb(90, 129, 171)
120
- // $notice-warning-background: rgb(193, 179, 26)
121
- // $notice-error-background: rgb(162, 66, 60)
122
- // $notice-border-radius: 4px
123
- // $notice-color: rgb(255, 255, 255)