material-sass 4.0.0.alpha6 → 4.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +36 -8
- data/Rakefile +16 -3
- data/app/assets/javascripts/material-sprockets.js +6 -1
- data/app/assets/javascripts/material.js +654 -417
- data/app/assets/javascripts/material.min.js +1 -0
- data/app/assets/javascripts/material/addons/picker.date.js +234 -0
- data/app/assets/javascripts/material/addons/picker.js +172 -0
- data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
- data/app/assets/javascripts/material/addons/waves.js +127 -0
- data/app/assets/javascripts/material/components/floating-label.js +92 -0
- data/app/assets/javascripts/material/components/navdrawer.js +353 -0
- data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
- data/app/assets/javascripts/material/components/tab-switch.js +148 -0
- data/app/assets/javascripts/material/components/util.js +133 -0
- data/app/assets/javascripts/material/initializers/picker.js +171 -0
- data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
- data/app/assets/javascripts/material/initializers/waves.js +13 -0
- data/app/assets/stylesheets/material/_colours.scss +324 -0
- data/app/assets/stylesheets/material/_functions.scss +65 -0
- data/app/assets/stylesheets/material/_mixins.scss +23 -23
- data/app/assets/stylesheets/material/_print.scss +102 -0
- data/app/assets/stylesheets/material/_utilities.scss +21 -17
- data/app/assets/stylesheets/material/_variables.scss +13 -42
- data/app/assets/stylesheets/material/base/_base.scss +420 -5
- data/app/assets/stylesheets/material/base/_grid.scss +34 -33
- data/app/assets/stylesheets/material/base/_typography.scss +165 -174
- data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
- data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
- data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
- data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
- data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
- data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
- data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
- data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
- data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
- data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
- data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
- data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
- data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
- data/app/assets/stylesheets/material/material.scss +75 -62
- data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
- data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
- data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
- data/app/assets/stylesheets/material/material/_button.scss +133 -189
- data/app/assets/stylesheets/material/material/_card.scss +300 -248
- data/app/assets/stylesheets/material/material/_chip.scss +65 -64
- data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
- data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
- data/app/assets/stylesheets/material/material/_menu.scss +308 -228
- data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
- data/app/assets/stylesheets/material/material/_picker.scss +157 -155
- data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
- data/app/assets/stylesheets/material/material/_progress.scss +180 -115
- data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
- data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
- data/app/assets/stylesheets/material/material/_tab.scss +74 -93
- data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
- data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
- data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
- data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
- data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
- data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
- data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
- data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
- data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
- data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
- data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
- data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
- data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
- data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
- data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
- data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
- data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
- data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
- data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
- data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
- data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
- data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
- data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
- data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
- data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
- data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
- data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
- data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
- data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
- data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
- data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
- data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
- data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
- data/lib/material-sass/version.rb +1 -1
- data/material-sass.gemspec +3 -3
- metadata +26 -21
- data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
- data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
- data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
- data/app/assets/javascripts/material/addons/pickadate.js +0 -7
- data/app/assets/javascripts/material/addons/wave.js +0 -5
- data/app/assets/javascripts/material/src/floating-label.js +0 -91
- data/app/assets/javascripts/material/src/navdrawer.js +0 -352
- data/app/assets/javascripts/material/src/tab-switch.js +0 -133
- data/app/assets/javascripts/material/src/util.js +0 -138
- data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
- data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
- data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
- data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
- data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
- data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
- data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -1,93 +1,94 @@
|
|
1
|
-
.badge,
|
2
1
|
.chip {
|
2
|
+
align-items: center;
|
3
3
|
background-color: $chip-bg;
|
4
|
+
border: 0;
|
4
5
|
border-radius: ($chip-height / 2);
|
5
6
|
color: $chip-color;
|
6
|
-
display: inline-
|
7
|
+
display: inline-flex;
|
7
8
|
font-size: $chip-font-size;
|
8
9
|
font-weight: $chip-font-weight;
|
9
|
-
|
10
|
-
|
10
|
+
height: $chip-height;
|
11
|
+
justify-content: center;
|
12
|
+
line-height: $chip-line-height;
|
13
|
+
padding-right: $chip-padding-x;
|
14
|
+
padding-left: $chip-padding-x;
|
11
15
|
position: relative;
|
16
|
+
text-align: center;
|
12
17
|
vertical-align: middle;
|
13
18
|
white-space: nowrap;
|
14
19
|
|
15
20
|
&:empty {
|
16
21
|
display: none;
|
17
22
|
}
|
23
|
+
|
24
|
+
.close {
|
25
|
+
font-size: inherit;
|
26
|
+
line-height: inherit;
|
27
|
+
margin-right: ($chip-inner-spacer-x - $chip-padding-x);
|
28
|
+
margin-left: $chip-inner-spacer-x;
|
29
|
+
min-width: $material-icon-size;
|
30
|
+
order: 1;
|
31
|
+
}
|
18
32
|
}
|
19
33
|
|
20
|
-
|
21
|
-
|
22
|
-
color
|
23
|
-
|
24
|
-
@include transition-standard(box-shadow);
|
34
|
+
// Colour
|
35
|
+
@each $color, $values in $theme-colors {
|
36
|
+
.chip-#{$color} {
|
37
|
+
@include color-yiq(map-get(theme-color($color), color));
|
25
38
|
|
26
|
-
|
27
|
-
background-color: $chip-active-overlay;
|
28
|
-
border-radius: ($chip-height / 2);
|
29
|
-
content: "";
|
30
|
-
display: block;
|
31
|
-
opacity: 0;
|
32
|
-
position: absolute;
|
33
|
-
top: 0;
|
34
|
-
right: 0;
|
35
|
-
bottom: 0;
|
36
|
-
left: 0;
|
37
|
-
z-index: -1;
|
38
|
-
@include transition-standard(opacity);
|
39
|
+
background-color: map-get(theme-color($color), color);
|
39
40
|
}
|
41
|
+
}
|
40
42
|
|
41
|
-
// active, focus, hover
|
42
|
-
@include active-focus-hover {
|
43
|
-
color: $chip-color;
|
44
43
|
|
45
|
-
@if ($link-decoration-active != "none") {
|
46
|
-
text-decoration: none;
|
47
|
-
}
|
48
44
|
|
49
|
-
|
50
|
-
opacity: 1;
|
51
|
-
}
|
52
|
-
}
|
45
|
+
// Misc
|
53
46
|
|
54
|
-
|
55
|
-
|
56
|
-
z-index: map-get($chip-elevation-shadow-active, elevation);
|
57
|
-
}
|
47
|
+
.chip-action {
|
48
|
+
@include transition-standard(background-color, box-shadow);
|
58
49
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
50
|
+
@include active-focus-hover {
|
51
|
+
box-shadow: map-get($chip-elevation-shadow-hover, shadow);
|
52
|
+
color: $chip-color;
|
53
|
+
text-decoration: none;
|
54
|
+
}
|
63
55
|
|
64
|
-
|
65
|
-
|
66
|
-
.chip-inverse {
|
67
|
-
background-color: $chip-bg-inverse;
|
68
|
-
color: $chip-color-inverse;
|
56
|
+
&:active {
|
57
|
+
background-color: $chip-bg-active;
|
69
58
|
}
|
70
59
|
|
71
|
-
|
72
|
-
|
73
|
-
@include plain-active-focus-hover {
|
74
|
-
color: $chip-color-inverse;
|
75
|
-
}
|
60
|
+
&:focus {
|
61
|
+
outline: 0;
|
76
62
|
}
|
63
|
+
}
|
77
64
|
|
78
|
-
|
79
|
-
|
65
|
+
.chip-icon {
|
66
|
+
@include color-yiq($chip-icon-bg);
|
67
|
+
@include text-truncate;
|
80
68
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
69
|
+
align-items: center;
|
70
|
+
background-color: $chip-icon-bg;
|
71
|
+
border-radius: ($chip-height / 2);
|
72
|
+
display: inline-flex;
|
73
|
+
flex-shrink: 0;
|
74
|
+
font-size: $chip-icon-font-size;
|
75
|
+
font-style: normal;
|
76
|
+
font-weight: normal;
|
77
|
+
height: $chip-height;
|
78
|
+
justify-content: center;
|
79
|
+
margin-right: ($chip-inner-spacer-x * 2);
|
80
|
+
margin-left: ($chip-padding-x * -1);
|
81
|
+
order: -1;
|
82
|
+
text-align: center;
|
83
|
+
width: $chip-height;
|
84
|
+
}
|
86
85
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
86
|
+
.chip-img {
|
87
|
+
border-radius: ($chip-height / 2);
|
88
|
+
flex-shrink: 0;
|
89
|
+
height: $chip-height;
|
90
|
+
margin-right: ($chip-inner-spacer-x * 2);
|
91
|
+
margin-left: ($chip-padding-x * -1);
|
92
|
+
order: -1;
|
93
|
+
width: auto;
|
94
|
+
}
|
@@ -1,16 +1,14 @@
|
|
1
|
-
//
|
2
|
-
// todo: `.table-inverse`, `.table-reflow` and `.table-sm`
|
3
|
-
//
|
4
|
-
|
5
1
|
.table {
|
2
|
+
background-color: $table-bg;
|
6
3
|
border: 0;
|
7
|
-
margin-bottom: $table-margin-
|
4
|
+
margin-bottom: $table-margin-y;
|
8
5
|
max-width: 100%;
|
9
6
|
width: 100%;
|
10
7
|
|
11
8
|
td,
|
12
9
|
th {
|
13
10
|
border-top: $table-border-width solid $table-border-color;
|
11
|
+
line-height: $table-line-height;
|
14
12
|
padding-right: $table-cell-padding-x;
|
15
13
|
padding-left: $table-cell-padding-x;
|
16
14
|
vertical-align: top;
|
@@ -74,63 +72,155 @@
|
|
74
72
|
}
|
75
73
|
}
|
76
74
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
75
|
+
.table-bordered {
|
76
|
+
box-shadow: map-get($table-elevation-shadow, shadow);
|
77
|
+
}
|
78
|
+
|
79
|
+
.table-striped {
|
80
|
+
tbody tr:nth-of-type(odd) {
|
81
|
+
background-color: $table-bg-accent;
|
82
82
|
}
|
83
|
+
}
|
83
84
|
|
84
|
-
|
85
|
-
|
86
|
-
|
85
|
+
.table-hover {
|
86
|
+
tbody tr {
|
87
|
+
@include hover {
|
88
|
+
background-color: $table-bg-hover;
|
87
89
|
}
|
88
90
|
}
|
91
|
+
}
|
89
92
|
|
90
|
-
//
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
93
|
+
// Size
|
94
|
+
.table-sm {
|
95
|
+
td,
|
96
|
+
th {
|
97
|
+
padding-right: $table-sm-cell-padding-x;
|
98
|
+
padding-left: $table-sm-cell-padding-x;
|
99
|
+
|
100
|
+
&:first-child {
|
101
|
+
padding-left: $table-sm-cell-padding-x-alt;
|
102
|
+
}
|
103
|
+
|
104
|
+
&:last-child {
|
105
|
+
padding-right: $table-sm-cell-padding-x-alt;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
tbody {
|
110
|
+
td,
|
111
|
+
th {
|
112
|
+
height: $table-sm-tbody-cell-height;
|
113
|
+
padding-top: $table-sm-tbody-padding-y;
|
114
|
+
padding-bottom: $table-sm-tbody-padding-y;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
tfoot {
|
119
|
+
td,
|
120
|
+
th {
|
121
|
+
padding-top: $table-sm-tfoot-padding-y;
|
122
|
+
padding-bottom: $table-sm-tfoot-padding-y;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
thead {
|
127
|
+
td,
|
128
|
+
th {
|
129
|
+
height: $table-sm-thead-cell-height;
|
130
|
+
padding-top: $table-sm-thead-padding-y;
|
131
|
+
padding-bottom: $table-sm-thead-padding-y;
|
98
132
|
}
|
99
133
|
}
|
134
|
+
}
|
100
135
|
|
101
|
-
//
|
102
|
-
// table background
|
103
|
-
//
|
104
|
-
@each $color in $palettes {
|
105
|
-
$i: index($palettes, $color);
|
106
136
|
|
107
|
-
|
137
|
+
|
138
|
+
// Table background
|
139
|
+
|
140
|
+
@each $color, $values in $theme-colors {
|
141
|
+
.table .table-#{$color} {
|
142
|
+
&,
|
143
|
+
> td,
|
144
|
+
> th {
|
145
|
+
@include color-yiq(map-get(theme-color($color), color));
|
146
|
+
|
147
|
+
background-color: map-get(theme-color($color), color);
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
.table-hover .table-#{$color} {
|
152
|
+
@include hover {
|
108
153
|
&,
|
109
154
|
> td,
|
110
155
|
> th {
|
111
|
-
|
112
|
-
|
156
|
+
@include color-yiq(map-get(theme-color($color), darker));
|
157
|
+
|
158
|
+
background-color: map-get(theme-color($color), darker);
|
113
159
|
}
|
114
160
|
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
// scss-lint:disable MergeableSelector
|
165
|
+
.table {
|
166
|
+
// scss-lint:enable MergeableSelector
|
167
|
+
.thead-dark {
|
168
|
+
td,
|
169
|
+
th {
|
170
|
+
background-color: $table-dark-bg;
|
171
|
+
color: $table-dark-color;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
.thead-light {
|
176
|
+
td,
|
177
|
+
th {
|
178
|
+
background-color: $table-thead-bg;
|
179
|
+
color: $table-thead-color;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
.table-dark {
|
185
|
+
background-color: $table-dark-bg;
|
186
|
+
color: $table-dark-color;
|
187
|
+
|
188
|
+
tbody,
|
189
|
+
tfoot,
|
190
|
+
thead {
|
191
|
+
td,
|
192
|
+
th {
|
193
|
+
color: inherit;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
td,
|
198
|
+
th {
|
199
|
+
border-color: $table-dark-border-color;
|
200
|
+
}
|
201
|
+
|
202
|
+
&.table-striped {
|
203
|
+
tbody tr:nth-of-type(odd) {
|
204
|
+
background-color: $table-dark-bg-accent;
|
205
|
+
}
|
206
|
+
}
|
115
207
|
|
116
|
-
|
208
|
+
&.table-hover {
|
209
|
+
tbody tr {
|
117
210
|
@include hover {
|
118
|
-
|
119
|
-
> td,
|
120
|
-
> th {
|
121
|
-
background-color: nth($palettes-color-dark, $i);
|
122
|
-
color: nth($palettes-text-color-dark, $i);
|
123
|
-
}
|
211
|
+
background-color: $table-dark-bg-hover;
|
124
212
|
}
|
125
213
|
}
|
126
214
|
}
|
215
|
+
}
|
127
216
|
|
128
|
-
|
129
|
-
|
130
|
-
//
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
217
|
+
|
218
|
+
|
219
|
+
// Table responsive
|
220
|
+
|
221
|
+
.table-responsive {
|
222
|
+
display: block;
|
223
|
+
overflow-x: auto;
|
224
|
+
width: 100%;
|
225
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
226
|
+
}
|
@@ -1,153 +1,184 @@
|
|
1
|
-
.dialog,
|
2
1
|
.modal {
|
3
2
|
display: none;
|
4
|
-
overflow: hidden;
|
5
3
|
outline: 0;
|
4
|
+
overflow: hidden;
|
6
5
|
position: fixed;
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
top: 0;
|
7
|
+
right: 0;
|
8
|
+
bottom: 0;
|
9
|
+
left: 0;
|
11
10
|
text-align: center;
|
12
11
|
white-space: nowrap;
|
13
12
|
z-index: map-get($dialog-elevation-shadow, elevation);
|
14
13
|
|
15
14
|
&::before {
|
16
|
-
content:
|
15
|
+
content: '';
|
17
16
|
display: inline-block;
|
18
17
|
height: 100%;
|
19
|
-
margin-right:
|
18
|
+
margin-right: -.25em;
|
20
19
|
vertical-align: middle;
|
21
20
|
width: 1px;
|
22
21
|
}
|
22
|
+
|
23
|
+
&.fade {
|
24
|
+
@include transition-standard-complex(opacity);
|
25
|
+
|
26
|
+
.modal-dialog {
|
27
|
+
@include transition-standard-complex(transform);
|
28
|
+
|
29
|
+
transform: scale($dialog-scale);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
&.show .modal-dialog {
|
34
|
+
transform: scale(1);
|
35
|
+
}
|
23
36
|
}
|
24
37
|
|
25
38
|
.modal-open {
|
26
39
|
overflow: hidden;
|
27
40
|
|
28
|
-
.dialog,
|
29
41
|
.modal {
|
30
42
|
overflow-x: hidden;
|
31
43
|
overflow-y: auto;
|
32
44
|
}
|
33
45
|
}
|
34
46
|
|
35
|
-
|
36
|
-
|
37
|
-
//
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
|
48
|
+
|
49
|
+
// Backdrop
|
50
|
+
|
51
|
+
.modal-backdrop {
|
52
|
+
background-color: $dialog-backdrop-bg;
|
53
|
+
position: fixed;
|
54
|
+
top: 0;
|
55
|
+
right: 0;
|
56
|
+
bottom: 0;
|
57
|
+
left: 0;
|
58
|
+
z-index: (map-get($dialog-elevation-shadow, elevation) - 1);
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
// Dialog
|
64
|
+
|
65
|
+
.modal-dialog {
|
66
|
+
@include text-align(left);
|
67
|
+
|
68
|
+
display: inline-block;
|
69
|
+
margin: $dialog-margin-y $dialog-margin-x;
|
70
|
+
max-width: $dialog-width;
|
71
|
+
position: relative;
|
72
|
+
vertical-align: middle;
|
73
|
+
white-space: normal;
|
74
|
+
width: calc(100% - #{$dialog-margin-x} * 2);
|
75
|
+
}
|
76
|
+
|
77
|
+
.modal-lg {
|
78
|
+
max-width: $dialog-width-lg;
|
79
|
+
}
|
80
|
+
|
81
|
+
.modal-sm {
|
82
|
+
max-width: $dialog-width-sm;
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
// Misc
|
88
|
+
|
89
|
+
.modal-body {
|
90
|
+
flex: 1 1 auto;
|
91
|
+
padding: $dialog-padding-y $dialog-padding-x;
|
92
|
+
position: relative;
|
93
|
+
|
94
|
+
.modal-header + & {
|
95
|
+
padding-top: 0;
|
50
96
|
}
|
51
97
|
|
52
|
-
|
53
|
-
|
54
|
-
//
|
55
|
-
.dialog-dialog,
|
56
|
-
.modal-dialog {
|
57
|
-
display: inline-block;
|
58
|
-
margin: $dialog-margin-y $dialog-margin-x;
|
59
|
-
max-width: $dialog-width;
|
60
|
-
position: relative;
|
61
|
-
text-align: left;
|
62
|
-
vertical-align: middle;
|
63
|
-
white-space: normal;
|
64
|
-
width: calc(100% - #{$dialog-margin-x} * 2);
|
98
|
+
> :last-child {
|
99
|
+
margin-bottom: 0;
|
65
100
|
}
|
101
|
+
}
|
66
102
|
|
67
|
-
|
68
|
-
|
69
|
-
.modal-lg {
|
70
|
-
max-width: $dialog-width-lg;
|
71
|
-
}
|
103
|
+
.modal-content {
|
104
|
+
@include border-radius($border-radius);
|
72
105
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
106
|
+
background-clip: padding-box;
|
107
|
+
background-color: $dialog-content-bg;
|
108
|
+
box-shadow: map-get($dialog-elevation-shadow, shadow);
|
109
|
+
display: flex;
|
110
|
+
flex-direction: column;
|
111
|
+
outline: 0;
|
112
|
+
position: relative;
|
113
|
+
vertical-align: baseline;
|
114
|
+
}
|
77
115
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
flex: 1 1 auto;
|
84
|
-
padding: $dialog-inner-padding;
|
85
|
-
position: relative;
|
86
|
-
|
87
|
-
> :last-child {
|
88
|
-
margin-bottom: 0;
|
89
|
-
}
|
90
|
-
}
|
116
|
+
.modal-footer {
|
117
|
+
align-items: center;
|
118
|
+
display: flex;
|
119
|
+
justify-content: flex-end;
|
120
|
+
padding: $dialog-footer-padding-y ($dialog-footer-padding-x - $dialog-footer-inner-spacer-x / 2) $dialog-footer-padding-y ($dialog-padding-x - $dialog-footer-inner-spacer-x / 2);
|
91
121
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
background-color: $dialog-content-bg;
|
96
|
-
box-shadow: map-get($dialog-elevation-shadow, shadow);
|
97
|
-
display: flex;
|
98
|
-
flex-direction: column;
|
99
|
-
outline: 0;
|
100
|
-
position: relative;
|
101
|
-
vertical-align: baseline;
|
102
|
-
@include border-radius($border-radius);
|
122
|
+
> * {
|
123
|
+
margin-right: ($dialog-footer-inner-spacer-x / 2);
|
124
|
+
margin-left: ($dialog-footer-inner-spacer-x / 2);
|
103
125
|
}
|
104
126
|
|
105
|
-
.
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
padding: $dialog-footer-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
127
|
+
.btn {
|
128
|
+
background-color: transparent;
|
129
|
+
box-shadow: none;
|
130
|
+
min-width: $dialog-footer-btn-min-width;
|
131
|
+
padding-right: $dialog-footer-inner-spacer-x;
|
132
|
+
padding-left: $dialog-footer-inner-spacer-x;
|
133
|
+
|
134
|
+
&:active,
|
135
|
+
&.active {
|
136
|
+
background-color: $btn-bg-active;
|
137
|
+
box-shadow: none;
|
116
138
|
}
|
117
139
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
padding-left: $dialog-footer-spacer-x;
|
140
|
+
&:disabled,
|
141
|
+
&.disabled {
|
142
|
+
background-color: transparent;
|
122
143
|
}
|
123
144
|
}
|
124
145
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
146
|
+
// Colour
|
147
|
+
@each $color, $values in $theme-colors {
|
148
|
+
.btn-#{$color} {
|
149
|
+
@include plain-active-focus-hover {
|
150
|
+
color: map-get(theme-color($color), color);
|
151
|
+
}
|
152
|
+
|
153
|
+
&:disabled,
|
154
|
+
&.disabled {
|
155
|
+
color: $btn-color-disabled;
|
156
|
+
}
|
135
157
|
}
|
136
158
|
}
|
159
|
+
}
|
137
160
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
161
|
+
.modal-header {
|
162
|
+
align-items: center;
|
163
|
+
display: flex;
|
164
|
+
justify-content: space-between;
|
165
|
+
padding: $dialog-padding-y $dialog-padding-x;
|
166
|
+
}
|
143
167
|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
168
|
+
.modal-title {
|
169
|
+
@include typography-title;
|
170
|
+
|
171
|
+
margin: 0;
|
172
|
+
}
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
// Scrollbar measure
|
177
|
+
|
178
|
+
.modal-scrollbar-measure {
|
179
|
+
height: 50px;
|
180
|
+
overflow: scroll;
|
181
|
+
position: absolute;
|
182
|
+
top: -99999px;
|
183
|
+
width: 50px;
|
184
|
+
}
|