activeadmin_blaze_theme 0.5.10 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +33 -0
- data/.gitignore +12 -2
- data/.rspec +2 -0
- data/.rubocop.yml +27 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +1 -1
- data/README.md +72 -73
- data/Rakefile +15 -1
- data/activeadmin_blaze_theme.gemspec +24 -11
- data/app/assets/stylesheets/activeadmin_blaze_theme/_base.scss +197 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_contents.scss +42 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_footer.scss +15 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_form.scss +381 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_header.scss +140 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_navigation.scss +69 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_sidebars.scss +64 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_tables.scss +96 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_variables.scss +46 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.addresses.scss +11 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.alerts.scss +78 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.avatars.scss +38 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.back-to-top.scss +17 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.badges.scss +71 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.breadcrumbs.scss +24 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.buttons.scss +91 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.calendars.scss +80 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.cards.scss +195 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.divider.scss +39 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.file-upload.scss +24 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.github-buttons.scss +131 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.headings.scss +12 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.hints.scss +21 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.input-groups.scss +164 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.inputs.scss +128 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.links.scss +72 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.lists.scss +64 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.navs.scss +83 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.overlays.scss +23 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.pagination.scss +31 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.progress.scss +83 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.ranges.scss +176 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tables.scss +86 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tabs.scss +68 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tags.scss +39 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.timelines.scss +113 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.toggles.scss +89 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{components.tooltips.scss → _components.tooltips.scss} +28 -30
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.trees.scss +48 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_generics.global.scss +17 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.containers.scss +37 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.drawers.scss +91 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.forms.scss +25 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{objects.grid.responsive.scss → _objects.grid.responsive.scss} +14 -14
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{objects.grid.scss → _objects.grid.scss} +2 -2
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{objects.images.scss → _objects.images.scss} +1 -1
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{objects.media.scss → _objects.media.scss} +3 -3
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.modals.scss +70 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{objects.panels.scss → _objects.panels.scss} +1 -11
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{utilities.alignment.scss → _utilities.alignment.scss} +13 -1
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.boxing.scss +111 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.elevation.scss +17 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.radius.scss +11 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.sizes.scss +23 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.typography.scss +160 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.visibility.scss +54 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_variables.scss +93 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.scss +49 -41
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.buttons.scss +82 -43
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.inputs.scss +2 -40
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.grid.scss +35 -6
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_tools.mediaqueries.scss +13 -34
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.alignment.scss +12 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.states.scss +7 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.visibility.scss +7 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/theme.scss +10 -974
- data/bin/rails +29 -0
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/rubocop +29 -0
- data/extra/edit.png +0 -0
- data/extra/index.png +0 -0
- data/lib/activeadmin/views/activeadmin_form.rb +6 -2
- data/lib/activeadmin_blaze_theme.rb +5 -2
- data/lib/activeadmin_blaze_theme/version.rb +3 -1
- data/lib/formtastic/inputs/blaze_toggle_input.rb +12 -8
- data/spec/dummy/.ruby-version +1 -0
- data/spec/dummy/.tool-versions +1 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/admin/authors.rb +57 -0
- data/spec/dummy/app/admin/dashboard.rb +32 -0
- data/spec/dummy/app/admin/posts.rb +50 -0
- data/spec/dummy/app/admin/tags.rb +4 -0
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/active_admin.js +1 -0
- data/spec/dummy/app/assets/stylesheets/active_admin.scss +4 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +2 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/javascript/packs/application.js +15 -0
- data/spec/dummy/app/jobs/application_job.rb +7 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +7 -0
- data/spec/dummy/app/models/author.rb +26 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/post.rb +25 -0
- data/spec/dummy/app/models/post_tag.rb +9 -0
- data/spec/dummy/app/models/profile.rb +9 -0
- data/spec/dummy/app/models/tag.rb +6 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +33 -0
- data/spec/dummy/config.ru +5 -0
- data/spec/dummy/config/application.rb +18 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +8 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +62 -0
- data/spec/dummy/config/environments/production.rb +112 -0
- data/spec/dummy/config/environments/test.rb +49 -0
- data/spec/dummy/config/initializers/active_admin.rb +335 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +12 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/puma.rb +38 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/config/storage.yml +7 -0
- data/spec/dummy/db/migrate/20170806125915_create_active_storage_tables.active_storage.rb +27 -0
- data/spec/dummy/db/migrate/20180101010101_create_active_admin_comments.rb +16 -0
- data/spec/dummy/db/migrate/20180607053251_create_authors.rb +13 -0
- data/spec/dummy/db/migrate/20180607053254_create_profiles.rb +12 -0
- data/spec/dummy/db/migrate/20180607053255_create_tags.rb +11 -0
- data/spec/dummy/db/migrate/20180607053257_create_post_tags.rb +12 -0
- data/spec/dummy/db/migrate/20180607053739_create_posts.rb +17 -0
- data/spec/dummy/db/schema.rb +99 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/rails_helper.rb +36 -0
- data/spec/spec_helper.rb +20 -0
- data/spec/support/capybara.rb +3 -0
- data/spec/support/drivers.rb +7 -0
- data/spec/system/theme_spec.rb +15 -0
- metadata +390 -70
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.colors.scss +0 -30
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.addresses.scss +0 -12
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.alerts.scss +0 -59
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.avatars.scss +0 -36
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.badges.scss +0 -60
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.breadcrumbs.scss +0 -20
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.bubbles.scss +0 -49
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.buttons.scss +0 -77
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.calendars.scss +0 -69
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.cards.scss +0 -213
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.headings.scss +0 -14
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.hints.scss +0 -27
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.input-groups.scss +0 -163
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.inputs.scss +0 -144
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.links.scss +0 -31
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.lists.scss +0 -60
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.navs.scss +0 -126
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.overlays.scss +0 -26
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.pagination.scss +0 -42
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.progress.scss +0 -51
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.ranges.scss +0 -114
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tables.scss +0 -88
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tabs.scss +0 -72
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tags.scss +0 -42
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.toggles.scss +0 -74
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.trees.scss +0 -47
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.typography.scss +0 -94
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/generics.global.scss +0 -13
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.alerts.scss +0 -6
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.badges.scss +0 -8
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.links.scss +0 -22
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.lists.scss +0 -10
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.navs.scss +0 -29
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.ranges.scss +0 -89
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.tabs.scss +0 -5
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.toggles.scss +0 -6
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.typography.scss +0 -25
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.containers.scss +0 -10
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_settings.global.scss +0 -864
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.boxing.scss +0 -125
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.containers.scss +0 -31
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.drawers.scss +0 -88
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.forms.scss +0 -25
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.modals.scss +0 -58
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/themes/blaze.example.scss +0 -7
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.boxing.scss +0 -101
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.elevation.scss +0 -19
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.sizes.scss +0 -25
- data/extra/screenshot1.jpg +0 -0
- data/extra/screenshot2.jpg +0 -0
- data/extra/screenshot3.jpg +0 -0
- data/extra/screenshot4.jpg +0 -0
@@ -1,41 +1,49 @@
|
|
1
|
-
@
|
2
|
-
@import
|
3
|
-
@import
|
4
|
-
@import
|
5
|
-
@import
|
6
|
-
@import
|
7
|
-
@import
|
8
|
-
@import
|
9
|
-
@import
|
10
|
-
@import
|
11
|
-
@import
|
12
|
-
@import
|
13
|
-
@import
|
14
|
-
@import
|
15
|
-
@import
|
16
|
-
@import
|
17
|
-
@import
|
18
|
-
@import
|
19
|
-
@import
|
20
|
-
@import
|
21
|
-
@import
|
22
|
-
@import
|
23
|
-
@import
|
24
|
-
@import
|
25
|
-
@import
|
26
|
-
@import
|
27
|
-
@import
|
28
|
-
@import
|
29
|
-
@import
|
30
|
-
@import
|
31
|
-
@import
|
32
|
-
@import
|
33
|
-
@import
|
34
|
-
@import
|
35
|
-
@import
|
36
|
-
@import
|
37
|
-
@import
|
38
|
-
@import
|
39
|
-
@import
|
40
|
-
@import
|
41
|
-
@import
|
1
|
+
// @blaze/css - version: 9.2.0
|
2
|
+
@import 'variables';
|
3
|
+
@import 'generics.global';
|
4
|
+
@import 'components.addresses';
|
5
|
+
@import 'components.alerts';
|
6
|
+
@import 'components.avatars';
|
7
|
+
@import 'components.back-to-top';
|
8
|
+
@import 'components.badges';
|
9
|
+
@import 'components.breadcrumbs';
|
10
|
+
@import 'components.buttons';
|
11
|
+
@import 'components.calendars';
|
12
|
+
@import 'components.cards';
|
13
|
+
@import 'components.divider';
|
14
|
+
@import 'components.github-buttons';
|
15
|
+
@import 'components.file-upload';
|
16
|
+
@import 'components.headings';
|
17
|
+
@import 'components.hints';
|
18
|
+
@import 'components.inputs';
|
19
|
+
@import 'components.input-groups';
|
20
|
+
@import 'components.links';
|
21
|
+
@import 'components.lists';
|
22
|
+
@import 'components.overlays';
|
23
|
+
@import 'components.navs';
|
24
|
+
@import 'components.pagination';
|
25
|
+
@import 'components.progress';
|
26
|
+
@import 'components.ranges';
|
27
|
+
@import 'components.tabs';
|
28
|
+
@import 'components.tables';
|
29
|
+
@import 'components.tags';
|
30
|
+
@import 'components.timelines';
|
31
|
+
@import 'components.toggles';
|
32
|
+
@import 'components.tooltips';
|
33
|
+
@import 'components.trees';
|
34
|
+
@import 'objects.containers';
|
35
|
+
@import 'objects.grid';
|
36
|
+
@import 'objects.grid.responsive';
|
37
|
+
@import 'objects.images';
|
38
|
+
@import 'objects.panels';
|
39
|
+
@import 'objects.media';
|
40
|
+
@import 'objects.forms';
|
41
|
+
@import 'objects.modals';
|
42
|
+
@import 'objects.drawers';
|
43
|
+
@import 'utilities.alignment';
|
44
|
+
@import 'utilities.boxing';
|
45
|
+
@import 'utilities.elevation';
|
46
|
+
@import 'utilities.radius';
|
47
|
+
@import 'utilities.sizes';
|
48
|
+
@import 'utilities.typography';
|
49
|
+
@import 'utilities.visibility';
|
@@ -1,83 +1,122 @@
|
|
1
|
-
@import
|
1
|
+
@import 'utilities.states';
|
2
2
|
|
3
|
-
@mixin button-color
|
4
|
-
|
5
|
-
background-color:
|
6
|
-
|
3
|
+
@mixin button-color {
|
4
|
+
color: var(--button-color);
|
5
|
+
background-color: var(--button-background-color);
|
6
|
+
border: 1px solid transparent;
|
7
7
|
|
8
8
|
&.c-button--active {
|
9
|
-
|
9
|
+
filter: brightness(0.95);
|
10
10
|
}
|
11
11
|
|
12
|
-
&:not(:disabled) {
|
13
|
-
&:
|
14
|
-
|
12
|
+
&:not(:disabled):not([disabled]) {
|
13
|
+
&:not(:active) {
|
14
|
+
&:hover {
|
15
|
+
filter: brightness(0.95);
|
16
|
+
}
|
15
17
|
}
|
16
18
|
|
17
19
|
&:focus {
|
18
|
-
border-color:
|
19
|
-
box-shadow:
|
20
|
+
border-color: var(--border-color-focus);
|
21
|
+
box-shadow: var(--box-shadow-focus);
|
20
22
|
}
|
21
23
|
|
22
24
|
&:active {
|
23
|
-
|
25
|
+
filter: brightness(0.9);
|
24
26
|
}
|
25
27
|
}
|
26
28
|
}
|
27
29
|
|
28
|
-
@mixin button-ghost
|
29
|
-
|
30
|
-
|
31
|
-
|
30
|
+
@mixin button-ghost {
|
31
|
+
--button-background-color: transparent;
|
32
|
+
|
33
|
+
border: 1px solid var(--button-color);
|
32
34
|
|
33
35
|
&.c-button--active {
|
34
|
-
|
35
|
-
background-color:
|
36
|
-
color:
|
36
|
+
color: #fff;
|
37
|
+
background-color: var(--button-color);
|
38
|
+
border-color: 1px solid transparent;
|
37
39
|
}
|
38
40
|
|
39
|
-
&:not(:disabled) {
|
40
|
-
&:
|
41
|
-
|
42
|
-
|
41
|
+
&:not(:disabled):not([disabled]) {
|
42
|
+
&:not(:active) {
|
43
|
+
&:hover {
|
44
|
+
color: #fff;
|
45
|
+
background-color: var(--button-color);
|
46
|
+
border-color: 1px solid transparent;
|
47
|
+
}
|
43
48
|
}
|
44
49
|
|
45
50
|
&:focus {
|
46
|
-
border-color:
|
47
|
-
box-shadow:
|
51
|
+
border-color: var(--border-color-focus);
|
52
|
+
box-shadow: var(--box-shadow-focus);
|
48
53
|
}
|
49
54
|
|
50
|
-
&:active
|
51
|
-
|
52
|
-
|
53
|
-
color:
|
55
|
+
&:active,
|
56
|
+
&[aria-current] {
|
57
|
+
color: #fff;
|
58
|
+
background-color: var(--button-color);
|
59
|
+
border-color: 1px solid transparent;
|
54
60
|
}
|
55
61
|
}
|
56
62
|
}
|
57
63
|
|
58
64
|
@mixin button {
|
59
65
|
@include button-color;
|
66
|
+
@include disabled;
|
60
67
|
display: inline-block;
|
61
68
|
max-width: 100%;
|
62
|
-
margin:
|
63
|
-
padding:
|
64
|
-
|
65
|
-
|
66
|
-
font-family:
|
67
|
-
|
68
|
-
|
69
|
-
text-align:
|
69
|
+
margin: 0;
|
70
|
+
padding: var(--spacing-small);
|
71
|
+
overflow: hidden;
|
72
|
+
font-size: 1em;
|
73
|
+
font-family: inherit;
|
74
|
+
line-height: normal;
|
75
|
+
white-space: nowrap;
|
76
|
+
text-align: center;
|
70
77
|
text-decoration: none;
|
71
78
|
text-overflow: ellipsis;
|
72
|
-
white-space: $button-white-space;
|
73
|
-
cursor: pointer;
|
74
|
-
overflow: hidden;
|
75
79
|
vertical-align: middle;
|
80
|
+
border-radius: var(--border-radius);
|
81
|
+
outline: 0;
|
82
|
+
-webkit-appearance: none;
|
76
83
|
appearance: none;
|
77
84
|
user-select: none;
|
85
|
+
}
|
78
86
|
|
79
|
-
|
80
|
-
|
81
|
-
|
87
|
+
@mixin button-nude {
|
88
|
+
@include disabled;
|
89
|
+
width: auto;
|
90
|
+
margin: 0;
|
91
|
+
padding: 0;
|
92
|
+
overflow: visible;
|
93
|
+
color: inherit;
|
94
|
+
font: inherit;
|
95
|
+
line-height: normal;
|
96
|
+
text-align: inherit;
|
97
|
+
text-decoration: inherit;
|
98
|
+
vertical-align: inherit;
|
99
|
+
background: inherit;
|
100
|
+
border: 0;
|
101
|
+
border-radius: 0;
|
102
|
+
outline: 0;
|
103
|
+
-webkit-appearance: none;
|
104
|
+
appearance: none;
|
105
|
+
|
106
|
+
&:not(:disabled):not([disabled]) {
|
107
|
+
&:active {
|
108
|
+
background-color: transparent;
|
109
|
+
}
|
110
|
+
|
111
|
+
&:not(:active) {
|
112
|
+
&:focus {
|
113
|
+
border-color: var(--border-color-focus);
|
114
|
+
box-shadow: var(--box-shadow-focus);
|
115
|
+
}
|
116
|
+
|
117
|
+
&:hover {
|
118
|
+
background-color: transparent;
|
119
|
+
}
|
120
|
+
}
|
82
121
|
}
|
83
122
|
}
|
@@ -1,45 +1,7 @@
|
|
1
|
-
@import
|
1
|
+
@import 'utilities.states';
|
2
2
|
|
3
3
|
@mixin label {
|
4
4
|
display: block;
|
5
5
|
width: 100%;
|
6
|
-
padding:
|
7
|
-
cursor: pointer;
|
8
|
-
}
|
9
|
-
|
10
|
-
@mixin field {
|
11
|
-
display: block;
|
12
|
-
width: 100%;
|
13
|
-
margin: $field-margin;
|
14
|
-
padding: $field-padding;
|
15
|
-
border: $field-border;
|
16
|
-
border-radius: $field-border-radius;
|
17
|
-
outline: 0;
|
18
|
-
background-color: $field-background-color;
|
19
|
-
font-family: inherit;
|
20
|
-
font-size: $field-font-size-medium;
|
21
|
-
font-weight: $field-font-weight;
|
22
|
-
resize: vertical;
|
23
|
-
appearance: none;
|
24
|
-
|
25
|
-
&:focus {
|
26
|
-
border-color: $field-focus-border-color;
|
27
|
-
box-shadow: $field-focus-box-shadow;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
@mixin label__field {
|
32
|
-
@include field;
|
33
|
-
margin: $label-field-margin;
|
34
|
-
}
|
35
|
-
|
36
|
-
@mixin disabled {
|
37
|
-
color: $field-disabled-color;
|
38
|
-
cursor: not-allowed;
|
39
|
-
}
|
40
|
-
|
41
|
-
@mixin field--disabled {
|
42
|
-
@include disabled;
|
43
|
-
border-color: $field-disabled-border-color;
|
44
|
-
background-color: $field-disabled-background-color;
|
6
|
+
padding: var(--spacing-medium) 0;
|
45
7
|
}
|
@@ -1,4 +1,29 @@
|
|
1
|
-
@import
|
1
|
+
@import 'utilities.visibility';
|
2
|
+
|
3
|
+
$grid-widths: (
|
4
|
+
5: 5 / 100,
|
5
|
+
10: 1 / 10,
|
6
|
+
15: 15 / 100,
|
7
|
+
20: 1 / 5,
|
8
|
+
25: 1 / 4,
|
9
|
+
30: 3 / 10,
|
10
|
+
33: 1 / 3,
|
11
|
+
35: 35 / 100,
|
12
|
+
40: 2 / 5,
|
13
|
+
45: 45 / 100,
|
14
|
+
50: 1 / 2,
|
15
|
+
55: 55 / 100,
|
16
|
+
60: 3 / 5,
|
17
|
+
65: 65 / 100,
|
18
|
+
66: 2 / 3,
|
19
|
+
70: 7 / 10,
|
20
|
+
75: 3 / 4,
|
21
|
+
80: 4 / 5,
|
22
|
+
85: 85 / 100,
|
23
|
+
90: 9 / 10,
|
24
|
+
95: 95 / 100,
|
25
|
+
100: 1,
|
26
|
+
) !default;
|
2
27
|
|
3
28
|
@mixin grid {
|
4
29
|
display: flex;
|
@@ -22,13 +47,13 @@
|
|
22
47
|
|
23
48
|
@mixin grid__cell {
|
24
49
|
flex: 1;
|
25
|
-
padding-right:
|
26
|
-
padding-left:
|
50
|
+
padding-right: var(--grid-gutter);
|
51
|
+
padding-left: var(--grid-gutter);
|
27
52
|
}
|
28
53
|
|
29
54
|
@mixin grid__cell--no-gutter {
|
30
|
-
padding-right: .001em;
|
31
|
-
padding-left: .001em;
|
55
|
+
padding-right: 0.001em;
|
56
|
+
padding-left: 0.001em;
|
32
57
|
}
|
33
58
|
|
34
59
|
@mixin grid__cell--top {
|
@@ -61,6 +86,10 @@
|
|
61
86
|
margin-left: 0;
|
62
87
|
}
|
63
88
|
|
89
|
+
@mixin grid__cell--auto {
|
90
|
+
flex: auto;
|
91
|
+
}
|
92
|
+
|
64
93
|
@mixin grid__cell--hidden {
|
65
94
|
display: none;
|
66
95
|
}
|
@@ -89,7 +118,7 @@
|
|
89
118
|
@mixin grid__responsive-cells($screen-width) {
|
90
119
|
@each $width, $fraction in $grid-widths {
|
91
120
|
&--hidden\@#{$screen-width} {
|
92
|
-
@include grid__cell--hidden
|
121
|
+
@include grid__cell--hidden;
|
93
122
|
}
|
94
123
|
|
95
124
|
&--visible\@#{$screen-width} {
|
@@ -1,37 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
|
15
|
-
@mixin screen--medium-and-up {
|
16
|
-
@media (min-width: #{map-get($screen-limits, medium)}) {
|
17
|
-
@content;
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
@mixin screen--large-and-up {
|
22
|
-
@media (min-width: #{map-get($screen-limits, large)}) {
|
23
|
-
@content;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
@mixin screen--xlarge-and-up {
|
28
|
-
@media (min-width: #{map-get($screen-limits, xlarge)}) {
|
29
|
-
@content;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
@mixin screen--super-and-up {
|
34
|
-
@media (min-width: #{map-get($screen-limits, super)}) {
|
1
|
+
$screen-limits: (
|
2
|
+
xsmall: 20em,
|
3
|
+
small: 30em,
|
4
|
+
medium: 48em,
|
5
|
+
large: 64em,
|
6
|
+
xlarge: 78em,
|
7
|
+
super: 116em,
|
8
|
+
);
|
9
|
+
|
10
|
+
$screen-adjustment: 0.01 !default;
|
11
|
+
|
12
|
+
@mixin screen-and-up($size) {
|
13
|
+
@media (min-width: #{map-get($screen-limits, $size)}) {
|
35
14
|
@content;
|
36
15
|
}
|
37
16
|
}
|