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.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +36 -8
  4. data/Rakefile +16 -3
  5. data/app/assets/javascripts/material-sprockets.js +6 -1
  6. data/app/assets/javascripts/material.js +654 -417
  7. data/app/assets/javascripts/material.min.js +1 -0
  8. data/app/assets/javascripts/material/addons/picker.date.js +234 -0
  9. data/app/assets/javascripts/material/addons/picker.js +172 -0
  10. data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
  11. data/app/assets/javascripts/material/addons/waves.js +127 -0
  12. data/app/assets/javascripts/material/components/floating-label.js +92 -0
  13. data/app/assets/javascripts/material/components/navdrawer.js +353 -0
  14. data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
  15. data/app/assets/javascripts/material/components/tab-switch.js +148 -0
  16. data/app/assets/javascripts/material/components/util.js +133 -0
  17. data/app/assets/javascripts/material/initializers/picker.js +171 -0
  18. data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
  19. data/app/assets/javascripts/material/initializers/waves.js +13 -0
  20. data/app/assets/stylesheets/material/_colours.scss +324 -0
  21. data/app/assets/stylesheets/material/_functions.scss +65 -0
  22. data/app/assets/stylesheets/material/_mixins.scss +23 -23
  23. data/app/assets/stylesheets/material/_print.scss +102 -0
  24. data/app/assets/stylesheets/material/_utilities.scss +21 -17
  25. data/app/assets/stylesheets/material/_variables.scss +13 -42
  26. data/app/assets/stylesheets/material/base/_base.scss +420 -5
  27. data/app/assets/stylesheets/material/base/_grid.scss +34 -33
  28. data/app/assets/stylesheets/material/base/_typography.scss +165 -174
  29. data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
  30. data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
  31. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
  32. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
  33. data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
  34. data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
  35. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
  36. data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
  37. data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
  38. data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
  39. data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
  40. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
  41. data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
  42. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
  43. data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
  44. data/app/assets/stylesheets/material/material.scss +75 -62
  45. data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
  46. data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
  47. data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
  48. data/app/assets/stylesheets/material/material/_button.scss +133 -189
  49. data/app/assets/stylesheets/material/material/_card.scss +300 -248
  50. data/app/assets/stylesheets/material/material/_chip.scss +65 -64
  51. data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
  52. data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
  53. data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
  54. data/app/assets/stylesheets/material/material/_menu.scss +308 -228
  55. data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
  56. data/app/assets/stylesheets/material/material/_picker.scss +157 -155
  57. data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
  58. data/app/assets/stylesheets/material/material/_progress.scss +180 -115
  59. data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
  60. data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
  61. data/app/assets/stylesheets/material/material/_tab.scss +74 -93
  62. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
  63. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
  64. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
  65. data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
  66. data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
  67. data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
  68. data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
  69. data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
  70. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
  71. data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
  72. data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
  73. data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
  74. data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
  75. data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
  76. data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
  77. data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
  78. data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
  79. data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
  80. data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
  81. data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
  82. data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
  83. data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
  84. data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
  85. data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
  86. data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
  87. data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
  88. data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
  89. data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
  90. data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
  91. data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
  92. data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
  93. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
  94. data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
  95. data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
  96. data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
  97. data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
  98. data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
  99. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
  100. data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
  101. data/lib/material-sass/version.rb +1 -1
  102. data/material-sass.gemspec +3 -3
  103. metadata +26 -21
  104. data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
  105. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
  106. data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
  107. data/app/assets/javascripts/material/addons/pickadate.js +0 -7
  108. data/app/assets/javascripts/material/addons/wave.js +0 -5
  109. data/app/assets/javascripts/material/src/floating-label.js +0 -91
  110. data/app/assets/javascripts/material/src/navdrawer.js +0 -352
  111. data/app/assets/javascripts/material/src/tab-switch.js +0 -133
  112. data/app/assets/javascripts/material/src/util.js +0 -138
  113. data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
  114. data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
  115. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
  116. data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
  117. data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
  118. data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
  119. 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-block;
7
+ display: inline-flex;
7
8
  font-size: $chip-font-size;
8
9
  font-weight: $chip-font-weight;
9
- line-height: 1;
10
- padding: $chip-padding-y $chip-padding-x;
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
- a.badge,
21
- a.chip {
22
- color: $chip-color;
23
- z-index: 1;
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
- &::before {
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
- &::before {
50
- opacity: 1;
51
- }
52
- }
45
+ // Misc
53
46
 
54
- &:active {
55
- box-shadow: map-get($chip-elevation-shadow-active, shadow);
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
- &:focus {
60
- outline: 0;
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
- // colour
65
- .badge-inverse,
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
- a.badge-inverse,
72
- a.chip-inverse {
73
- @include plain-active-focus-hover {
74
- color: $chip-color-inverse;
75
- }
60
+ &:focus {
61
+ outline: 0;
76
62
  }
63
+ }
77
64
 
78
- @each $color in $palettes {
79
- $i: index($palettes, $color);
65
+ .chip-icon {
66
+ @include color-yiq($chip-icon-bg);
67
+ @include text-truncate;
80
68
 
81
- .badge-#{$color},
82
- .chip-#{$color} {
83
- background-color: nth($palettes-color, $i);
84
- color: nth($palettes-text-color, $i);
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
- a.badge-#{$color},
88
- a.chip-#{$color} {
89
- @include plain-active-focus-hover {
90
- color: nth($palettes-text-color, $i);
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-bottom;
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
- // additional versions
79
- //
80
- .table-bordered {
81
- box-shadow: map-get($table-elevation-shadow, shadow);
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
- .table-striped {
85
- tbody tr:nth-of-type(odd) {
86
- background-color: $table-bg-accent;
85
+ .table-hover {
86
+ tbody tr {
87
+ @include hover {
88
+ background-color: $table-bg-hover;
87
89
  }
88
90
  }
91
+ }
89
92
 
90
- //
91
- // hover
92
- //
93
- .table-hover {
94
- tbody tr {
95
- @include hover {
96
- background-color: $table-bg-hover;
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
- .table .table-#{$color} {
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
- background-color: nth($palettes-color, $i);
112
- color: nth($palettes-text-color, $i);
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
- .table-hover .table-#{$color} {
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
- // table responsive
130
- //
131
- .table-responsive {
132
- display: block;
133
- min-height: 0.01%;
134
- overflow-x: auto;
135
- width: 100%;
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
- top: 0;
8
- right: 0;
9
- bottom: 0;
10
- left: 0;
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: -0.25em;
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
- // backdrop
37
- //
38
- .modal-backdrop {
39
- background-color: $dialog-backdrop-bg;
40
- position: fixed;
41
- top: 0;
42
- right: 0;
43
- bottom: 0;
44
- left: 0;
45
- z-index: (map-get($dialog-elevation-shadow, elevation) - 1);
46
-
47
- &.fade {
48
- transform: none;
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
- // dialog
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
- // size
68
- .dialog-lg,
69
- .modal-lg {
70
- max-width: $dialog-width-lg;
71
- }
103
+ .modal-content {
104
+ @include border-radius($border-radius);
72
105
 
73
- .dialog-sm,
74
- .modal-sm {
75
- max-width: $dialog-width-sm;
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
- // misc
80
- //
81
- .dialog-body,
82
- .modal-body {
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
- .dialog-content,
93
- .modal-content {
94
- background-clip: padding-box;
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
- .dialog-footer,
106
- .modal-footer {
107
- align-items: center;
108
- display: flex;
109
- justify-content: flex-end;
110
- padding: $dialog-footer-spacer-y ($dialog-footer-spacer-x / 2);
111
- padding-left: ($dialog-inner-padding - $dialog-footer-spacer-x / 2);
112
-
113
- > * {
114
- margin-right: ($dialog-footer-spacer-x / 2);
115
- margin-left: ($dialog-footer-spacer-x / 2);
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
- .btn {
119
- min-width: $dialog-footer-btn-min-width;
120
- padding-right: $dialog-footer-spacer-x;
121
- padding-left: $dialog-footer-spacer-x;
140
+ &:disabled,
141
+ &.disabled {
142
+ background-color: transparent;
122
143
  }
123
144
  }
124
145
 
125
- .dialog-header,
126
- .modal-header {
127
- align-items: center;
128
- display: flex;
129
- justify-content: space-between;
130
- padding: $dialog-inner-padding;
131
- padding-bottom: 0;
132
-
133
- &:last-child {
134
- padding-bottom: $dialog-inner-padding;
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
- .dialog-title,
139
- .modal-title {
140
- margin: 0;
141
- @include typography-title;
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
- // scrollbar measure
146
- //
147
- .modal-scrollbar-measure {
148
- height: 50px;
149
- overflow: scroll;
150
- position: absolute;
151
- top: -99999px;
152
- width: 50px;
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
+ }