activeadmin_blaze_theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +55 -0
- data/Rakefile +2 -0
- data/activeadmin_blaze_theme.gemspec +20 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.colors.scss +14 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.scss +41 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.addresses.scss +12 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.alerts.scss +59 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.avatars.scss +36 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.badges.scss +60 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.breadcrumbs.scss +20 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.bubbles.scss +49 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.buttons.scss +77 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.calendars.scss +69 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.cards.scss +200 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.headings.scss +38 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.hints.scss +27 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.input-groups.scss +163 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.inputs.scss +138 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.links.scss +31 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.lists.scss +60 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.navs.scss +126 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.overlays.scss +26 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.pagination.scss +42 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.progress.scss +51 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.ranges.scss +114 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tables.scss +88 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tabs.scss +57 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tags.scss +42 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.toggles.scss +74 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss +96 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.trees.scss +39 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.typography.scss +94 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/generics.global.scss +13 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.alerts.scss +6 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.badges.scss +8 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.buttons.scss +83 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.inputs.scss +45 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.links.scss +22 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.lists.scss +10 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.navs.scss +29 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.ranges.scss +89 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.tabs.scss +5 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.toggles.scss +6 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.typography.scss +25 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.containers.scss +10 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.grid.scss +112 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_settings.global.scss +864 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_tools.mediaqueries.scss +73 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.alignment.scss +24 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.boxing.scss +125 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.containers.scss +31 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.drawers.scss +88 -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 +124 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.grid.scss +62 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.images.scss +5 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.media.scss +36 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.modals.scss +55 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.panels.scss +27 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/themes/blaze.example.scss +7 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.alignment.scss +22 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.boxing.scss +101 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.elevation.scss +19 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.sizes.scss +25 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/theme.scss +365 -0
- data/lib/activeadmin_blaze_theme/version.rb +3 -0
- data/lib/activeadmin_blaze_theme.rb +8 -0
- data/screenshot1.jpg +0 -0
- data/screenshot2.jpg +0 -0
- metadata +116 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
@import "mixins/settings.global";
|
2
|
+
|
3
|
+
.c-tree {
|
4
|
+
display: block;
|
5
|
+
margin: $tree-margin;
|
6
|
+
padding: $tree-padding;
|
7
|
+
list-style: none;
|
8
|
+
|
9
|
+
.c-tree {
|
10
|
+
padding: $tree-nested-padding;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
.c-tree__item {
|
15
|
+
padding: $tree-item-padding;
|
16
|
+
|
17
|
+
&:before {
|
18
|
+
display: inline-block;
|
19
|
+
padding: $tree-item-indicator-padding;
|
20
|
+
transform-origin: 30% 50%;
|
21
|
+
color: $tree-item-indicator-color;
|
22
|
+
content: "–";
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.c-tree__item--expandable {
|
27
|
+
&:before {
|
28
|
+
color: $tree-item-expandable-indicator-color;
|
29
|
+
content: "\276F";
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.c-tree__item--expanded {
|
34
|
+
&:before {
|
35
|
+
transform: rotate(90deg);
|
36
|
+
color: $tree-item-expanded-indicator-color;
|
37
|
+
content: "\276F";
|
38
|
+
}
|
39
|
+
}
|
@@ -0,0 +1,94 @@
|
|
1
|
+
@import "mixins/components.typography";
|
2
|
+
|
3
|
+
.c-text {
|
4
|
+
color: $text-color;
|
5
|
+
font-family: $text-font-family;
|
6
|
+
font-weight: $text-font-weight;
|
7
|
+
line-height: $text-line-height;
|
8
|
+
}
|
9
|
+
|
10
|
+
.c-text--mono {
|
11
|
+
font-family: $text-font-family-mono;
|
12
|
+
}
|
13
|
+
|
14
|
+
.c-text--highlight {
|
15
|
+
@include text--highlight;
|
16
|
+
}
|
17
|
+
|
18
|
+
.c-text--quiet {
|
19
|
+
color: $color-quiet;
|
20
|
+
}
|
21
|
+
|
22
|
+
.c-text--loud {
|
23
|
+
font-weight: $text-font-weight-heavy;
|
24
|
+
}
|
25
|
+
|
26
|
+
.c-text--help[title] {
|
27
|
+
border-bottom: $help-border-bottom;
|
28
|
+
cursor: help;
|
29
|
+
}
|
30
|
+
|
31
|
+
.c-pre {
|
32
|
+
margin: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
.c-code {
|
36
|
+
@include code;
|
37
|
+
}
|
38
|
+
|
39
|
+
.c-code--multiline {
|
40
|
+
display: block;
|
41
|
+
padding: $spacing-small $spacing-medium;
|
42
|
+
border-radius: $border-radius;
|
43
|
+
white-space: pre;
|
44
|
+
overflow-x: auto;
|
45
|
+
}
|
46
|
+
|
47
|
+
.c-kbd {
|
48
|
+
@include code($keyboard-color, $keyboard-background-color);
|
49
|
+
border-bottom: $keyboard-border;
|
50
|
+
border-radius: $keyboard-border-radius;
|
51
|
+
}
|
52
|
+
|
53
|
+
.c-blockquote {
|
54
|
+
@include quotation--color;
|
55
|
+
display: block;
|
56
|
+
margin: $quotation-margin;
|
57
|
+
padding: $quotation-padding;
|
58
|
+
font-family: $quotation-font-family;
|
59
|
+
}
|
60
|
+
|
61
|
+
.c-blockquote--brand {
|
62
|
+
@include quotation--color($quotation-brand-border-color);
|
63
|
+
}
|
64
|
+
|
65
|
+
.c-blockquote--info {
|
66
|
+
@include quotation--color($quotation-info-border-color);
|
67
|
+
}
|
68
|
+
|
69
|
+
.c-blockquote--warning {
|
70
|
+
@include quotation--color($quotation-warning-border-color);
|
71
|
+
}
|
72
|
+
|
73
|
+
.c-blockquote--success {
|
74
|
+
@include quotation--color($quotation-success-border-color);
|
75
|
+
}
|
76
|
+
|
77
|
+
.c-blockquote--error {
|
78
|
+
@include quotation--color($quotation-error-border-color);
|
79
|
+
}
|
80
|
+
|
81
|
+
.c-blockquote__body {
|
82
|
+
@include paragraph;
|
83
|
+
font-size: $quotation-font-size;
|
84
|
+
}
|
85
|
+
|
86
|
+
.c-blockquote__footer {
|
87
|
+
@include paragraph;
|
88
|
+
color: $quotation-footer-color;
|
89
|
+
font-style: $quotation-footer-font-style;
|
90
|
+
}
|
91
|
+
|
92
|
+
.c-paragraph {
|
93
|
+
@include paragraph;
|
94
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
@import "settings.global";
|
2
|
+
|
3
|
+
@mixin button-color($background-color: $button-background-color, $color: $button-color) {
|
4
|
+
border: $button-border;
|
5
|
+
background-color: $background-color;
|
6
|
+
color: $color;
|
7
|
+
|
8
|
+
&.c-button--active {
|
9
|
+
background-color: darken($background-color, $color-tint);
|
10
|
+
}
|
11
|
+
|
12
|
+
&:not(:disabled) {
|
13
|
+
&:hover {
|
14
|
+
background-color: lighten($background-color, $color-tint);
|
15
|
+
}
|
16
|
+
|
17
|
+
&:focus {
|
18
|
+
border-color: $button-focus-border-color;
|
19
|
+
box-shadow: $button-focus-box-shadow;
|
20
|
+
}
|
21
|
+
|
22
|
+
&:active {
|
23
|
+
background-color: darken($background-color, $color-tint);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin button-ghost($color: $button-ghost-color, $color-hover: $button-ghost-hover-color) {
|
29
|
+
border: $button-ghost-border-width $button-ghost-border-style $color;
|
30
|
+
background-color: transparent;
|
31
|
+
color: $color;
|
32
|
+
|
33
|
+
&.c-button--active {
|
34
|
+
border-color: darken($color, $color-tint);
|
35
|
+
background-color: darken($color, $color-tint);
|
36
|
+
color: $color-hover;
|
37
|
+
}
|
38
|
+
|
39
|
+
&:not(:disabled) {
|
40
|
+
&:hover {
|
41
|
+
background-color: $color;
|
42
|
+
color: $color-hover;
|
43
|
+
}
|
44
|
+
|
45
|
+
&:focus {
|
46
|
+
border-color: $button-focus-border-color;
|
47
|
+
box-shadow: $button-focus-box-shadow;
|
48
|
+
}
|
49
|
+
|
50
|
+
&:active {
|
51
|
+
border-color: darken($color, $color-tint);
|
52
|
+
background-color: darken($color, $color-tint);
|
53
|
+
color: $color-hover;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
@mixin button {
|
59
|
+
@include button-color;
|
60
|
+
display: inline;
|
61
|
+
max-width: 100%;
|
62
|
+
margin: $button-margin;
|
63
|
+
padding: $button-padding;
|
64
|
+
border-radius: $button-border-radius;
|
65
|
+
outline: 0;
|
66
|
+
font-family: $button-font-family;
|
67
|
+
font-size: $button-font-size;
|
68
|
+
line-height: $button-line-height;
|
69
|
+
text-align: $button-text-align;
|
70
|
+
text-decoration: none;
|
71
|
+
text-overflow: ellipsis;
|
72
|
+
white-space: $button-white-space;
|
73
|
+
cursor: pointer;
|
74
|
+
overflow: hidden;
|
75
|
+
vertical-align: middle;
|
76
|
+
appearance: none;
|
77
|
+
user-select: none;
|
78
|
+
|
79
|
+
&:disabled {
|
80
|
+
cursor: not-allowed;
|
81
|
+
opacity: $button-disabled-opacity;
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
@import "settings.global";
|
2
|
+
|
3
|
+
@mixin label {
|
4
|
+
display: block;
|
5
|
+
width: 100%;
|
6
|
+
padding: $label-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;
|
45
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@import "settings.global";
|
2
|
+
|
3
|
+
@mixin link--color($color: $link-color) {
|
4
|
+
background-color: transparent;
|
5
|
+
color: $color;
|
6
|
+
|
7
|
+
&:not(:disabled) {
|
8
|
+
&:visited {
|
9
|
+
color: darken($color, $color-tint);
|
10
|
+
}
|
11
|
+
|
12
|
+
&:hover {
|
13
|
+
background-color: transparent;
|
14
|
+
color: lighten($color, $color-tint);
|
15
|
+
}
|
16
|
+
|
17
|
+
&:active {
|
18
|
+
background-color: transparent;
|
19
|
+
color: lighten($color, $color-tint);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
@import "settings.global";
|
2
|
+
|
3
|
+
@mixin nav--color($background-color: $nav-background-color, $color: $nav-color) {
|
4
|
+
background-color: $background-color;
|
5
|
+
color: $color;
|
6
|
+
}
|
7
|
+
|
8
|
+
@mixin nav__item--color($background-color: $nav-item-hover-background-color, $hover-color: $nav-item-hover-color) {
|
9
|
+
&:not(:disabled) {
|
10
|
+
&:hover {
|
11
|
+
background-color: $background-color;
|
12
|
+
color: $hover-color;
|
13
|
+
}
|
14
|
+
|
15
|
+
&:focus {
|
16
|
+
box-shadow: $box-shadow-focus;
|
17
|
+
}
|
18
|
+
|
19
|
+
&:active {
|
20
|
+
background-color: darken($background-color, $color-tint);
|
21
|
+
color: $hover-color;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
@mixin nav__item--active($background-color: $nav-item-active-background-color, $hover-color: $nav-item-active-color) {
|
27
|
+
background-color: $background-color;
|
28
|
+
color: $hover-color;
|
29
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
@import "settings.global";
|
2
|
+
@import "utilities.boxing";
|
3
|
+
|
4
|
+
@mixin range__track {
|
5
|
+
width: $range-width;
|
6
|
+
height: $range-height;
|
7
|
+
border: $range-border;
|
8
|
+
border-radius: $range-border-radius;
|
9
|
+
box-shadow: $range-box-shadow;
|
10
|
+
cursor: pointer;
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin range__track--ms {
|
14
|
+
border-color: transparent;
|
15
|
+
background-color: transparent;
|
16
|
+
color: transparent;
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin range__fill--ms {
|
20
|
+
border: $range-border;
|
21
|
+
border-radius: $range-border-radius;
|
22
|
+
background-color: $range-background-color;
|
23
|
+
box-shadow: $range-box-shadow;
|
24
|
+
}
|
25
|
+
|
26
|
+
@mixin range__thumb {
|
27
|
+
width: $range-thumb-width;
|
28
|
+
height: $range-thumb-height;
|
29
|
+
margin: $range-thumb-margin;
|
30
|
+
border: $range-thumb-border;
|
31
|
+
border-radius: $range-thumb-border-radius;
|
32
|
+
background-color: $range-thumb-background-color;
|
33
|
+
box-shadow: $range-thumb-box-shadow;
|
34
|
+
cursor: pointer;
|
35
|
+
}
|
36
|
+
|
37
|
+
@mixin range__thumb--focus {
|
38
|
+
border-color: $range-thumb-focus-border-color;
|
39
|
+
box-shadow: $range-thumb-focus-box-shadow;
|
40
|
+
}
|
41
|
+
|
42
|
+
@mixin range__thumb--webkit {
|
43
|
+
-webkit-appearance: none;
|
44
|
+
}
|
45
|
+
|
46
|
+
@mixin range__thumb--active {
|
47
|
+
transform: scale(1.4);
|
48
|
+
}
|
49
|
+
|
50
|
+
@mixin range--disabled {
|
51
|
+
background-color: $range-disabled-background-color;
|
52
|
+
cursor: not-allowed;
|
53
|
+
}
|
54
|
+
|
55
|
+
@mixin range--color($track-color: $range-background-color) {
|
56
|
+
&:not(:disabled) {
|
57
|
+
&::-webkit-slider-runnable-track {
|
58
|
+
background-color: $track-color;
|
59
|
+
}
|
60
|
+
|
61
|
+
&::-moz-range-track {
|
62
|
+
background-color: $track-color;
|
63
|
+
}
|
64
|
+
|
65
|
+
&::-ms-track {
|
66
|
+
background-color: $track-color;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
@mixin range--brand {
|
72
|
+
@include range--color($range-brand-background-color);
|
73
|
+
}
|
74
|
+
|
75
|
+
@mixin range--info {
|
76
|
+
@include range--color($range-info-background-color);
|
77
|
+
}
|
78
|
+
|
79
|
+
@mixin range--warning {
|
80
|
+
@include range--color($range-warning-background-color);
|
81
|
+
}
|
82
|
+
|
83
|
+
@mixin range--success {
|
84
|
+
@include range--color($range-success-background-color);
|
85
|
+
}
|
86
|
+
|
87
|
+
@mixin range--error {
|
88
|
+
@include range--color($range-error-background-color);
|
89
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@import "settings.global";
|
2
|
+
|
3
|
+
@mixin text--highlight($color: $highlight-color, $background-color: $highlight-background-color) {
|
4
|
+
margin: 0 -$spacing-tiny;
|
5
|
+
padding: $spacing-xsmall $spacing-xsmall $spacing-tiny;
|
6
|
+
background-color: $background-color;
|
7
|
+
color: $color;
|
8
|
+
}
|
9
|
+
|
10
|
+
@mixin paragraph {
|
11
|
+
display: block;
|
12
|
+
margin: 0;
|
13
|
+
padding: $spacing-small 0;
|
14
|
+
}
|
15
|
+
|
16
|
+
@mixin code($color: $code-color, $background-color: $code-background-color) {
|
17
|
+
@include text--highlight($color, $background-color);
|
18
|
+
display: inline;
|
19
|
+
font-family: $text-font-family-mono;
|
20
|
+
font-weight: $text-font-weight;
|
21
|
+
}
|
22
|
+
|
23
|
+
@mixin quotation--color($border-color: $quotation-border-color) {
|
24
|
+
border-left: $quotation-border-width $quotation-border-style $border-color;
|
25
|
+
}
|
@@ -0,0 +1,112 @@
|
|
1
|
+
@import "settings.global";
|
2
|
+
|
3
|
+
@mixin grid {
|
4
|
+
display: flex;
|
5
|
+
}
|
6
|
+
|
7
|
+
@mixin grid--wrap {
|
8
|
+
flex-wrap: wrap;
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin grid--top {
|
12
|
+
align-items: flex-start;
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin grid--center {
|
16
|
+
align-items: center;
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin grid--bottom {
|
20
|
+
align-items: flex-end;
|
21
|
+
}
|
22
|
+
|
23
|
+
@mixin grid__cell {
|
24
|
+
flex: 1;
|
25
|
+
padding-right: $grid-gutter;
|
26
|
+
padding-left: $grid-gutter;
|
27
|
+
}
|
28
|
+
|
29
|
+
@mixin grid__cell--no-gutter {
|
30
|
+
padding-right: .001em;
|
31
|
+
padding-left: .001em;
|
32
|
+
}
|
33
|
+
|
34
|
+
@mixin grid__cell--top {
|
35
|
+
align-self: flex-start;
|
36
|
+
}
|
37
|
+
|
38
|
+
@mixin grid__cell--center {
|
39
|
+
align-self: center;
|
40
|
+
}
|
41
|
+
|
42
|
+
@mixin grid__cell--bottom {
|
43
|
+
align-self: flex-end;
|
44
|
+
}
|
45
|
+
|
46
|
+
@mixin grid__cell--width-fixed {
|
47
|
+
flex: 0 1 auto;
|
48
|
+
}
|
49
|
+
|
50
|
+
@mixin grid__cell--fit {
|
51
|
+
flex: 1;
|
52
|
+
}
|
53
|
+
|
54
|
+
@mixin grid--full {
|
55
|
+
flex-wrap: wrap;
|
56
|
+
}
|
57
|
+
|
58
|
+
@mixin grid__cell--full {
|
59
|
+
flex: 0 0 100%;
|
60
|
+
max-width: 100%;
|
61
|
+
margin-left: 0;
|
62
|
+
}
|
63
|
+
|
64
|
+
@mixin grid__cell--hidden {
|
65
|
+
display: none;
|
66
|
+
}
|
67
|
+
|
68
|
+
@mixin grid__cell--visible {
|
69
|
+
display: initial;
|
70
|
+
}
|
71
|
+
|
72
|
+
@mixin grid__cell--width($width) {
|
73
|
+
flex: 0 0 $width;
|
74
|
+
max-width: $width;
|
75
|
+
}
|
76
|
+
|
77
|
+
@mixin grid__cells {
|
78
|
+
@each $width, $fraction in $grid-widths {
|
79
|
+
&--width-#{$width} {
|
80
|
+
@include grid__cell--width($fraction * 100%);
|
81
|
+
}
|
82
|
+
|
83
|
+
&--offset-#{$width} {
|
84
|
+
margin-left: $fraction * 100%;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
@mixin grid__responsive-cells($screen-width) {
|
90
|
+
@each $width, $fraction in $grid-widths {
|
91
|
+
&--hidden\@#{$screen-width} {
|
92
|
+
@include grid__cell--hidden
|
93
|
+
}
|
94
|
+
|
95
|
+
&--visible\@#{$screen-width} {
|
96
|
+
@include grid__cell--visible;
|
97
|
+
}
|
98
|
+
|
99
|
+
&--width-#{$width}\@#{$screen-width} {
|
100
|
+
flex: 0 0 $fraction * 100%;
|
101
|
+
max-width: $fraction * 100%;
|
102
|
+
}
|
103
|
+
|
104
|
+
&--offset-#{$width}\@#{$screen-width} {
|
105
|
+
margin-left: $fraction * 100%;
|
106
|
+
}
|
107
|
+
|
108
|
+
&--width-fixed\@#{$screen-width} {
|
109
|
+
@include grid__cell--width-fixed;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|