hux 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +8 -0
- data/.hound.yml +5 -0
- data/.ruby-version +1 -0
- data/.scss-lint.yml +249 -0
- data/CHANGELOG.md +4 -0
- data/CODE_OF_CONDUCT.md +6 -0
- data/Gemfile +3 -0
- data/Gulpfile.js +34 -0
- data/LICENSE.md +21 -0
- data/README.md +1 -0
- data/RELEASING.md +21 -0
- data/Rakefile +8 -0
- data/bin/hux +5 -0
- data/circle.yml +7 -0
- data/contrib/index.html +1 -0
- data/contrib/styles.scss +19 -0
- data/core/_base.scss +9 -0
- data/core/_generic.scss +152 -0
- data/core/_helpers.scss +349 -0
- data/core/_minireset.scss +92 -0
- data/core/components/_all.scss +15 -0
- data/core/components/_breadcrumb.scss +116 -0
- data/core/components/_card.scss +77 -0
- data/core/components/_dropdown.scss +84 -0
- data/core/components/_level.scss +119 -0
- data/core/components/_media.scss +64 -0
- data/core/components/_menu.scss +72 -0
- data/core/components/_message.scss +118 -0
- data/core/components/_modal.scss +132 -0
- data/core/components/_nav.scss +173 -0
- data/core/components/_navbar.scss +441 -0
- data/core/components/_pagination.scss +188 -0
- data/core/components/_panel.scss +135 -0
- data/core/components/_tabs.scss +206 -0
- data/core/elements/_all.scss +14 -0
- data/core/elements/_box.scss +30 -0
- data/core/elements/_button.scss +290 -0
- data/core/elements/_container.scss +44 -0
- data/core/elements/_content.scss +224 -0
- data/core/elements/_form.scss +935 -0
- data/core/elements/_icon.scss +28 -0
- data/core/elements/_image.scss +56 -0
- data/core/elements/_notification.scss +53 -0
- data/core/elements/_other.scss +48 -0
- data/core/elements/_progress.scss +56 -0
- data/core/elements/_table.scss +148 -0
- data/core/elements/_tag.scss +132 -0
- data/core/elements/_title.scss +81 -0
- data/core/grid/_all.scss +2 -0
- data/core/grid/_columns.scss +577 -0
- data/core/grid/_tiles.scss +53 -0
- data/core/layout/_all.scss +3 -0
- data/core/layout/_footer.scss +6 -0
- data/core/layout/_hero.scss +257 -0
- data/core/layout/_section.scss +19 -0
- data/core/utilities/_all.scss +6 -0
- data/core/utilities/_animations.scss +9 -0
- data/core/utilities/_controls.scss +51 -0
- data/core/utilities/_derived-variables.scss +81 -0
- data/core/utilities/_functions.scss +46 -0
- data/core/utilities/_initial-variables.scss +68 -0
- data/core/utilities/_mixins.scss +301 -0
- data/core/utilities/_variables.scss +153 -0
- data/hux.gemspec +31 -0
- data/lib/hux/generator.rb +80 -0
- data/lib/hux/version.rb +3 -0
- data/lib/hux.rb +1 -1
- data/package.json +33 -0
- data/spec/bitters_spec.rb +17 -0
- data/spec/fixtures/application.scss +2 -0
- data/spec/spec_helper.rb +3 -0
- metadata +183 -12
@@ -0,0 +1,135 @@
|
|
1
|
+
$panel-item-border: 1px solid $border !default;
|
2
|
+
|
3
|
+
$panel-heading-background-color: $background !default;
|
4
|
+
$panel-heading-color: $text-strong !default;
|
5
|
+
$panel-heading-line-height: 1.25 !default;
|
6
|
+
$panel-heading-padding: 0.5em 0.75em !default;
|
7
|
+
$panel-heading-radius: $radius !default;
|
8
|
+
$panel-heading-size: 1.25em !default;
|
9
|
+
$panel-heading-weight: $weight-light !default;
|
10
|
+
|
11
|
+
$panel-tab-border-bottom: 1px solid $border !default;
|
12
|
+
$panel-tab-active-border-bottom-color: $link-active-border !default;
|
13
|
+
$panel-tab-active-color: $link-active !default;
|
14
|
+
|
15
|
+
$panel-list-item-color: $text !default;
|
16
|
+
$panel-list-item-hover-color: $link !default;
|
17
|
+
|
18
|
+
$panel-block-color: $text-strong !default;
|
19
|
+
$panel-block-hover-background-color: $background !default;
|
20
|
+
$panel-block-active-border-left-color: $link !default;
|
21
|
+
$panel-block-active-color: $link-active !default;
|
22
|
+
$panel-block-active-icon-color: $link !default;
|
23
|
+
|
24
|
+
$panel-icon-color: $text-light !default;
|
25
|
+
|
26
|
+
.panel {
|
27
|
+
font-size: $size-normal;
|
28
|
+
|
29
|
+
&:not(:last-child) {
|
30
|
+
margin-bottom: 1.5rem;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.panel-heading,
|
35
|
+
.panel-tabs,
|
36
|
+
.panel-block {
|
37
|
+
border-bottom: $panel-item-border;
|
38
|
+
border-left: $panel-item-border;
|
39
|
+
border-right: $panel-item-border;
|
40
|
+
|
41
|
+
&:first-child {
|
42
|
+
border-top: $panel-item-border;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.panel-heading {
|
47
|
+
background-color: $panel-heading-background-color;
|
48
|
+
border-radius: $panel-heading-radius $panel-heading-radius 0 0;
|
49
|
+
color: $panel-heading-color;
|
50
|
+
font-size: $panel-heading-size;
|
51
|
+
font-weight: $panel-heading-weight;
|
52
|
+
line-height: $panel-heading-line-height;
|
53
|
+
padding: $panel-heading-padding;
|
54
|
+
}
|
55
|
+
|
56
|
+
.panel-tabs {
|
57
|
+
align-items: flex-end;
|
58
|
+
display: flex;
|
59
|
+
font-size: 0.875em;
|
60
|
+
justify-content: center;
|
61
|
+
|
62
|
+
a {
|
63
|
+
border-bottom: $panel-tab-border-bottom;
|
64
|
+
margin-bottom: -1px;
|
65
|
+
padding: 0.5em;
|
66
|
+
|
67
|
+
// Modifiers
|
68
|
+
&.is-active {
|
69
|
+
border-bottom-color: $panel-tab-active-border-bottom-color;
|
70
|
+
color: $panel-tab-active-color;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
.panel-list {
|
76
|
+
a {
|
77
|
+
color: $panel-list-item-color;
|
78
|
+
|
79
|
+
&:hover {
|
80
|
+
color: $panel-list-item-hover-color;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
.panel-block {
|
86
|
+
align-items: center;
|
87
|
+
color: $panel-block-color;
|
88
|
+
display: flex;
|
89
|
+
justify-content: flex-start;
|
90
|
+
padding: 0.5em 0.75em;
|
91
|
+
|
92
|
+
input[type="checkbox"] {
|
93
|
+
margin-right: 0.75em;
|
94
|
+
}
|
95
|
+
|
96
|
+
& > .control {
|
97
|
+
flex-grow: 1;
|
98
|
+
flex-shrink: 1;
|
99
|
+
width: 100%;
|
100
|
+
}
|
101
|
+
|
102
|
+
&.is-wrapped {
|
103
|
+
flex-wrap: wrap;
|
104
|
+
}
|
105
|
+
|
106
|
+
&.is-active {
|
107
|
+
border-left-color: $panel-block-active-border-left-color;
|
108
|
+
color: $panel-block-active-color;
|
109
|
+
|
110
|
+
.panel-icon {
|
111
|
+
color: $panel-block-active-icon-color;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
a.panel-block,
|
117
|
+
label.panel-block {
|
118
|
+
cursor: pointer;
|
119
|
+
|
120
|
+
&:hover {
|
121
|
+
background-color: $panel-block-hover-background-color;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
.panel-icon {
|
126
|
+
@include fa(14px, 1em);
|
127
|
+
|
128
|
+
color: $panel-icon-color;
|
129
|
+
margin-right: 0.75em;
|
130
|
+
|
131
|
+
.fa {
|
132
|
+
font-size: inherit;
|
133
|
+
line-height: inherit;
|
134
|
+
}
|
135
|
+
}
|
@@ -0,0 +1,206 @@
|
|
1
|
+
$tabs-border-bottom-color: $border !default;
|
2
|
+
$tabs-border-bottom-style: solid !default;
|
3
|
+
$tabs-border-bottom-width: 1px !default;
|
4
|
+
$tabs-link-color: $text !default;
|
5
|
+
$tabs-link-hover-border-bottom-color: $text-strong !default;
|
6
|
+
$tabs-link-hover-color: $text-strong !default;
|
7
|
+
$tabs-link-active-border-bottom-color: $primary !default;
|
8
|
+
$tabs-link-active-color: $primary !default;
|
9
|
+
$tabs-link-padding: 0.5em 1em !default;
|
10
|
+
|
11
|
+
$tabs-boxed-link-radius: $radius !default;
|
12
|
+
$tabs-boxed-link-hover-background-color: $background !default;
|
13
|
+
$tabs-boxed-link-hover-border-bottom-color: $border !default;
|
14
|
+
|
15
|
+
$tabs-boxed-link-active-background-color: $white !default;
|
16
|
+
$tabs-boxed-link-active-border-color: $border !default;
|
17
|
+
$tabs-boxed-link-active-border-bottom-color: transparent !default;
|
18
|
+
|
19
|
+
$tabs-toggle-link-border-color: $border !default;
|
20
|
+
$tabs-toggle-link-border-style: solid !default;
|
21
|
+
$tabs-toggle-link-border-width: 1px !default;
|
22
|
+
$tabs-toggle-link-hover-background-color: $background !default;
|
23
|
+
$tabs-toggle-link-hover-border-color: $border-hover !default;
|
24
|
+
$tabs-toggle-link-radius: $radius !default;
|
25
|
+
$tabs-toggle-link-active-background-color: $primary !default;
|
26
|
+
$tabs-toggle-link-active-border-color: $primary !default;
|
27
|
+
$tabs-toggle-link-active-color: $primary-invert !default;
|
28
|
+
|
29
|
+
.tabs {
|
30
|
+
@include block;
|
31
|
+
@include overflow-touch;
|
32
|
+
@include unselectable;
|
33
|
+
|
34
|
+
align-items: stretch;
|
35
|
+
display: flex;
|
36
|
+
font-size: $size-normal;
|
37
|
+
justify-content: space-between;
|
38
|
+
overflow: hidden;
|
39
|
+
overflow-x: auto;
|
40
|
+
white-space: nowrap;
|
41
|
+
|
42
|
+
a {
|
43
|
+
align-items: center;
|
44
|
+
border-bottom-color: $tabs-border-bottom-color;
|
45
|
+
border-bottom-style: $tabs-border-bottom-style;
|
46
|
+
border-bottom-width: $tabs-border-bottom-width;
|
47
|
+
color: $tabs-link-color;
|
48
|
+
display: flex;
|
49
|
+
justify-content: center;
|
50
|
+
margin-bottom: -#{$tabs-border-bottom-width};
|
51
|
+
padding: $tabs-link-padding;
|
52
|
+
vertical-align: top;
|
53
|
+
|
54
|
+
&:hover {
|
55
|
+
border-bottom-color: $tabs-link-hover-border-bottom-color;
|
56
|
+
color: $tabs-link-hover-color;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
li {
|
61
|
+
display: block;
|
62
|
+
|
63
|
+
&.is-active {
|
64
|
+
a {
|
65
|
+
border-bottom-color: $tabs-link-active-border-bottom-color;
|
66
|
+
color: $tabs-link-active-color;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
ul {
|
72
|
+
align-items: center;
|
73
|
+
border-bottom-color: $tabs-border-bottom-color;
|
74
|
+
border-bottom-style: $tabs-border-bottom-style;
|
75
|
+
border-bottom-width: $tabs-border-bottom-width;
|
76
|
+
display: flex;
|
77
|
+
flex-grow: 1;
|
78
|
+
flex-shrink: 0;
|
79
|
+
justify-content: flex-start;
|
80
|
+
|
81
|
+
&.is-left {
|
82
|
+
padding-right: 0.75em;
|
83
|
+
}
|
84
|
+
|
85
|
+
&.is-center {
|
86
|
+
flex: none;
|
87
|
+
justify-content: center;
|
88
|
+
padding-left: 0.75em;
|
89
|
+
padding-right: 0.75em;
|
90
|
+
}
|
91
|
+
|
92
|
+
&.is-right {
|
93
|
+
justify-content: flex-end;
|
94
|
+
padding-left: 0.75em;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
.icon {
|
99
|
+
&:first-child {
|
100
|
+
margin-right: 0.5em;
|
101
|
+
}
|
102
|
+
|
103
|
+
&:last-child {
|
104
|
+
margin-left: 0.5em;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
// Alignment
|
109
|
+
&.is-centered {
|
110
|
+
ul {
|
111
|
+
justify-content: center;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
&.is-right {
|
116
|
+
ul {
|
117
|
+
justify-content: flex-end;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
// Styles
|
122
|
+
&.is-boxed {
|
123
|
+
a {
|
124
|
+
border: 1px solid transparent;
|
125
|
+
border-radius: $tabs-boxed-link-radius $tabs-boxed-link-radius 0 0;
|
126
|
+
|
127
|
+
&:hover {
|
128
|
+
background-color: $tabs-boxed-link-hover-background-color;
|
129
|
+
border-bottom-color: $tabs-boxed-link-hover-border-bottom-color;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
li {
|
134
|
+
&.is-active {
|
135
|
+
a {
|
136
|
+
background-color: $tabs-boxed-link-active-background-color;
|
137
|
+
border-color: $tabs-boxed-link-active-border-color;
|
138
|
+
border-bottom-color: $tabs-boxed-link-active-border-bottom-color !important;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
&.is-fullwidth {
|
145
|
+
li {
|
146
|
+
flex-grow: 1;
|
147
|
+
flex-shrink: 0;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
&.is-toggle {
|
152
|
+
a {
|
153
|
+
border-color: $tabs-toggle-link-border-color;
|
154
|
+
border-style: $tabs-toggle-link-border-style;
|
155
|
+
border-width: $tabs-toggle-link-border-width;
|
156
|
+
margin-bottom: 0;
|
157
|
+
position: relative;
|
158
|
+
|
159
|
+
&:hover {
|
160
|
+
background-color: $tabs-toggle-link-hover-background-color;
|
161
|
+
border-color: $tabs-toggle-link-hover-border-color;
|
162
|
+
z-index: 2;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
li {
|
167
|
+
& + li {
|
168
|
+
margin-left: -#{$tabs-toggle-link-border-width};
|
169
|
+
}
|
170
|
+
|
171
|
+
&:first-child a {
|
172
|
+
border-radius: $tabs-toggle-link-radius 0 0 $tabs-toggle-link-radius;
|
173
|
+
}
|
174
|
+
|
175
|
+
&:last-child a {
|
176
|
+
border-radius: 0 $tabs-toggle-link-radius $tabs-toggle-link-radius 0;
|
177
|
+
}
|
178
|
+
|
179
|
+
&.is-active {
|
180
|
+
a {
|
181
|
+
background-color: $tabs-toggle-link-active-background-color;
|
182
|
+
border-color: $tabs-toggle-link-active-border-color;
|
183
|
+
color: $tabs-toggle-link-active-color;
|
184
|
+
z-index: 1;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
ul {
|
190
|
+
border-bottom: none;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
// Sizes
|
195
|
+
&.is-small {
|
196
|
+
font-size: $size-small;
|
197
|
+
}
|
198
|
+
|
199
|
+
&.is-medium {
|
200
|
+
font-size: $size-medium;
|
201
|
+
}
|
202
|
+
|
203
|
+
&.is-large {
|
204
|
+
font-size: $size-large;
|
205
|
+
}
|
206
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
@import "box";
|
2
|
+
@import "button";
|
3
|
+
@import "container";
|
4
|
+
@import "content";
|
5
|
+
@import "form";
|
6
|
+
@import "icon";
|
7
|
+
@import "image";
|
8
|
+
@import "notification";
|
9
|
+
@import "progress";
|
10
|
+
@import "table";
|
11
|
+
@import "tag";
|
12
|
+
@import "title";
|
13
|
+
|
14
|
+
@import "other";
|
@@ -0,0 +1,30 @@
|
|
1
|
+
$box-color: $text !default;
|
2
|
+
$box-background-color: $white !default;
|
3
|
+
$box-radius: $radius-large !default;
|
4
|
+
$box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default;
|
5
|
+
$box-padding: 1.25rem !default;
|
6
|
+
|
7
|
+
$box-link-hover-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px $link !default;
|
8
|
+
$box-link-active-shadow: inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link !default;
|
9
|
+
|
10
|
+
.box {
|
11
|
+
@include block;
|
12
|
+
|
13
|
+
background-color: $box-background-color;
|
14
|
+
border-radius: $box-radius;
|
15
|
+
box-shadow: $box-shadow;
|
16
|
+
color: $box-color;
|
17
|
+
display: block;
|
18
|
+
padding: $box-padding;
|
19
|
+
}
|
20
|
+
|
21
|
+
a.box {
|
22
|
+
&:hover,
|
23
|
+
&:focus {
|
24
|
+
box-shadow: $box-link-hover-shadow;
|
25
|
+
}
|
26
|
+
|
27
|
+
&:active {
|
28
|
+
box-shadow: $box-link-active-shadow;
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,290 @@
|
|
1
|
+
$button-color: $grey-darker !default;
|
2
|
+
$button-background-color: $white !default;
|
3
|
+
$button-border-color: $grey-lighter !default;
|
4
|
+
|
5
|
+
$button-hover-color: $link-hover !default;
|
6
|
+
$button-hover-border-color: $link-hover-border !default;
|
7
|
+
|
8
|
+
$button-focus-color: $link-focus !default;
|
9
|
+
$button-focus-border-color: $link-focus-border !default;
|
10
|
+
$button-focus-box-shadow-size: 0 0 0 0.125em !default;
|
11
|
+
$button-focus-box-shadow-color: rgba($link, 0.25) !default;
|
12
|
+
|
13
|
+
$button-active-color: $link-active !default;
|
14
|
+
$button-active-border-color: $link-active-border !default;
|
15
|
+
|
16
|
+
$button-link-color: $text !default;
|
17
|
+
$button-link-hover-background-color: $background !default;
|
18
|
+
$button-link-hover-color: $text-strong !default;
|
19
|
+
|
20
|
+
$button-disabled-background-color: $white !default;
|
21
|
+
$button-disabled-border-color: $grey-lighter !default;
|
22
|
+
$button-disabled-shadow: none !default;
|
23
|
+
$button-disabled-opacity: 0.5 !default;
|
24
|
+
|
25
|
+
$button-static-color: $grey !default;
|
26
|
+
$button-static-background-color: $white-ter !default;
|
27
|
+
$button-static-border-color: $grey-lighter !default;
|
28
|
+
|
29
|
+
// The button sizes use mixins so they can be used at different breakpoints
|
30
|
+
@mixin button-small {
|
31
|
+
border-radius: $radius-small;
|
32
|
+
font-size: $size-small;
|
33
|
+
}
|
34
|
+
|
35
|
+
@mixin button-medium {
|
36
|
+
font-size: $size-medium;
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin button-large {
|
40
|
+
font-size: $size-large;
|
41
|
+
}
|
42
|
+
|
43
|
+
.button {
|
44
|
+
@include control;
|
45
|
+
@include unselectable;
|
46
|
+
|
47
|
+
background-color: $button-background-color;
|
48
|
+
border-color: $button-border-color;
|
49
|
+
color: $button-color;
|
50
|
+
cursor: pointer;
|
51
|
+
justify-content: center;
|
52
|
+
padding-left: 0.75em;
|
53
|
+
padding-right: 0.75em;
|
54
|
+
text-align: center;
|
55
|
+
white-space: nowrap;
|
56
|
+
|
57
|
+
strong {
|
58
|
+
color: inherit;
|
59
|
+
}
|
60
|
+
|
61
|
+
.icon {
|
62
|
+
&,
|
63
|
+
&.is-small,
|
64
|
+
&.is-medium,
|
65
|
+
&.is-large {
|
66
|
+
height: 1.5em;
|
67
|
+
width: 1.5em;
|
68
|
+
}
|
69
|
+
|
70
|
+
&:first-child:not(:last-child) {
|
71
|
+
margin-left: calc(-0.375em - 1px);
|
72
|
+
margin-right: 0.1875em;
|
73
|
+
}
|
74
|
+
|
75
|
+
&:last-child:not(:first-child) {
|
76
|
+
margin-left: 0.1875em;
|
77
|
+
margin-right: calc(-0.375em - 1px);
|
78
|
+
}
|
79
|
+
|
80
|
+
&:first-child:last-child {
|
81
|
+
margin-left: calc(-0.375em - 1px);
|
82
|
+
margin-right: calc(-0.375em - 1px);
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
// States
|
87
|
+
&:hover,
|
88
|
+
&.is-hovered {
|
89
|
+
border-color: $button-hover-border-color;
|
90
|
+
color: $button-hover-color;
|
91
|
+
}
|
92
|
+
|
93
|
+
&:focus,
|
94
|
+
&.is-focused {
|
95
|
+
border-color: $button-focus-border-color;
|
96
|
+
color: $button-focus-color;
|
97
|
+
|
98
|
+
&:not(:active) {
|
99
|
+
box-shadow: $button-focus-box-shadow-size $button-focus-box-shadow-color;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
&:active,
|
104
|
+
&.is-active {
|
105
|
+
border-color: $button-active-border-color;
|
106
|
+
color: $button-active-color;
|
107
|
+
}
|
108
|
+
|
109
|
+
// Colors
|
110
|
+
&.is-link {
|
111
|
+
background-color: transparent;
|
112
|
+
border-color: transparent;
|
113
|
+
color: $button-link-color;
|
114
|
+
text-decoration: underline;
|
115
|
+
|
116
|
+
&:hover,
|
117
|
+
&.is-hovered,
|
118
|
+
&:focus,
|
119
|
+
&.is-focused {
|
120
|
+
background-color: $button-link-hover-background-color;
|
121
|
+
color: $button-link-hover-color;
|
122
|
+
}
|
123
|
+
|
124
|
+
&:active,
|
125
|
+
&.is-active {
|
126
|
+
background-color: darken($button-link-hover-background-color, 5%);
|
127
|
+
color: $button-link-hover-color;
|
128
|
+
}
|
129
|
+
|
130
|
+
&[disabled] {
|
131
|
+
background-color: transparent;
|
132
|
+
border-color: transparent;
|
133
|
+
box-shadow: none;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
@each $name, $pair in $colors {
|
138
|
+
$color: nth($pair, 1);
|
139
|
+
$color-invert: nth($pair, 2);
|
140
|
+
|
141
|
+
&.is-#{$name} {
|
142
|
+
background-color: $color;
|
143
|
+
border-color: transparent;
|
144
|
+
color: $color-invert;
|
145
|
+
|
146
|
+
&:hover,
|
147
|
+
&.is-hovered {
|
148
|
+
background-color: darken($color, 2.5%);
|
149
|
+
border-color: transparent;
|
150
|
+
color: $color-invert;
|
151
|
+
}
|
152
|
+
|
153
|
+
&:focus,
|
154
|
+
&.is-focused {
|
155
|
+
border-color: transparent;
|
156
|
+
color: $color-invert;
|
157
|
+
|
158
|
+
&:not(:active) {
|
159
|
+
box-shadow: $button-focus-box-shadow-size rgba($color, 0.25);
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
&:active,
|
164
|
+
&.is-active {
|
165
|
+
background-color: darken($color, 5%);
|
166
|
+
border-color: transparent;
|
167
|
+
color: $color-invert;
|
168
|
+
}
|
169
|
+
|
170
|
+
&[disabled] {
|
171
|
+
background-color: $color;
|
172
|
+
border-color: transparent;
|
173
|
+
box-shadow: none;
|
174
|
+
}
|
175
|
+
|
176
|
+
&.is-inverted {
|
177
|
+
background-color: $color-invert;
|
178
|
+
color: $color;
|
179
|
+
|
180
|
+
&:hover {
|
181
|
+
background-color: darken($color-invert, 5%);
|
182
|
+
}
|
183
|
+
|
184
|
+
&[disabled] {
|
185
|
+
background-color: $color-invert;
|
186
|
+
border-color: transparent;
|
187
|
+
box-shadow: none;
|
188
|
+
color: $color;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
&.is-loading {
|
193
|
+
&:after {
|
194
|
+
border-color: transparent transparent $color-invert $color-invert !important;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
&.is-outlined {
|
199
|
+
background-color: transparent;
|
200
|
+
border-color: $color;
|
201
|
+
color: $color;
|
202
|
+
|
203
|
+
&:hover,
|
204
|
+
&:focus {
|
205
|
+
background-color: $color;
|
206
|
+
border-color: $color;
|
207
|
+
color: $color-invert;
|
208
|
+
}
|
209
|
+
|
210
|
+
&.is-loading {
|
211
|
+
&:after {
|
212
|
+
border-color: transparent transparent $color $color !important;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
&[disabled] {
|
217
|
+
background-color: transparent;
|
218
|
+
border-color: $color;
|
219
|
+
box-shadow: none;
|
220
|
+
color: $color;
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
&.is-inverted.is-outlined {
|
225
|
+
background-color: transparent;
|
226
|
+
border-color: $color-invert;
|
227
|
+
color: $color-invert;
|
228
|
+
|
229
|
+
&:hover,
|
230
|
+
&:focus {
|
231
|
+
background-color: $color-invert;
|
232
|
+
color: $color;
|
233
|
+
}
|
234
|
+
|
235
|
+
&[disabled] {
|
236
|
+
background-color: transparent;
|
237
|
+
border-color: $color-invert;
|
238
|
+
box-shadow: none;
|
239
|
+
color: $color-invert;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
// Sizes
|
246
|
+
&.is-small {
|
247
|
+
@include button-small;
|
248
|
+
}
|
249
|
+
|
250
|
+
&.is-medium {
|
251
|
+
@include button-medium;
|
252
|
+
}
|
253
|
+
|
254
|
+
&.is-large {
|
255
|
+
@include button-large;
|
256
|
+
}
|
257
|
+
|
258
|
+
// Modifiers
|
259
|
+
&[disabled] {
|
260
|
+
background-color: $button-disabled-background-color;
|
261
|
+
border-color: $button-disabled-border-color;
|
262
|
+
box-shadow: $button-disabled-shadow;
|
263
|
+
opacity: $button-disabled-opacity;
|
264
|
+
}
|
265
|
+
|
266
|
+
&.is-fullwidth {
|
267
|
+
display: flex;
|
268
|
+
width: 100%;
|
269
|
+
}
|
270
|
+
|
271
|
+
&.is-loading {
|
272
|
+
color: transparent !important;
|
273
|
+
pointer-events: none;
|
274
|
+
|
275
|
+
&:after {
|
276
|
+
@include loader;
|
277
|
+
@include center(1em);
|
278
|
+
|
279
|
+
position: absolute !important;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
&.is-static {
|
284
|
+
background-color: $button-static-background-color;
|
285
|
+
border-color: $button-static-border-color;
|
286
|
+
color: $button-static-color;
|
287
|
+
box-shadow: none;
|
288
|
+
pointer-events: none;
|
289
|
+
}
|
290
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
.container {
|
2
|
+
margin: 0 auto;
|
3
|
+
position: relative;
|
4
|
+
|
5
|
+
@include from($desktop) {
|
6
|
+
max-width: $desktop - 2 * $gap;
|
7
|
+
width: $desktop - 2 * $gap;
|
8
|
+
|
9
|
+
&.is-fluid {
|
10
|
+
margin-left: $gap;
|
11
|
+
margin-right: $gap;
|
12
|
+
max-width: none;
|
13
|
+
width: auto;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
|
18
|
+
@include until($widescreen) {
|
19
|
+
&.is-widescreen {
|
20
|
+
max-width: $widescreen - 2 * $gap;
|
21
|
+
width: auto;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
@include until($fullhd) {
|
27
|
+
&.is-fullhd {
|
28
|
+
max-width: $fullhd - 2 * $gap;
|
29
|
+
width: auto;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
@include from($widescreen) {
|
35
|
+
max-width: $widescreen - 2 * $gap;
|
36
|
+
width: $widescreen - 2 * $gap;
|
37
|
+
}
|
38
|
+
|
39
|
+
|
40
|
+
@include from($fullhd) {
|
41
|
+
max-width: $fullhd - 2 * $gap;
|
42
|
+
width: $fullhd - 2 * $gap;
|
43
|
+
}
|
44
|
+
}
|