material-sass 4.0.0.beta → 4.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +2 -2
  3. data/Rakefile +12 -12
  4. data/{app/assets → assets}/javascripts/material-sprockets.js +0 -0
  5. data/{app/assets → assets}/javascripts/material.js +54 -4
  6. data/{app/assets → assets}/javascripts/material.min.js +1 -1
  7. data/{app/assets → assets}/javascripts/material/addons/picker.date.js +0 -0
  8. data/{app/assets → assets}/javascripts/material/addons/picker.js +0 -0
  9. data/{app/assets → assets}/javascripts/material/addons/textarea-autosize.js +0 -0
  10. data/{app/assets → assets}/javascripts/material/addons/waves.js +0 -0
  11. data/assets/javascripts/material/components/expansion-panel.js +50 -0
  12. data/{app/assets → assets}/javascripts/material/components/floating-label.js +1 -1
  13. data/{app/assets → assets}/javascripts/material/components/navdrawer.js +0 -0
  14. data/{app/assets → assets}/javascripts/material/components/selection-control-focus.js +2 -3
  15. data/{app/assets → assets}/javascripts/material/components/tab-switch.js +0 -0
  16. data/{app/assets → assets}/javascripts/material/components/util.js +0 -0
  17. data/{app/assets → assets}/javascripts/material/initializers/picker.js +0 -0
  18. data/{app/assets → assets}/javascripts/material/initializers/textarea-autosize.js +0 -0
  19. data/{app/assets → assets}/javascripts/material/initializers/waves.js +0 -0
  20. data/{app/assets → assets}/stylesheets/material.min.css +0 -0
  21. data/{app/assets → assets}/stylesheets/material.scss +0 -0
  22. data/{app/assets → assets}/stylesheets/material/_colours.scss +7 -11
  23. data/{app/assets → assets}/stylesheets/material/_functions.scss +8 -14
  24. data/{app/assets → assets}/stylesheets/material/_mixins.scss +1 -1
  25. data/{app/assets → assets}/stylesheets/material/_print.scss +4 -4
  26. data/{app/assets → assets}/stylesheets/material/_utilities.scss +0 -2
  27. data/{app/assets → assets}/stylesheets/material/_variables.scss +0 -2
  28. data/{app/assets → assets}/stylesheets/material/base/_base.scss +24 -49
  29. data/{app/assets → assets}/stylesheets/material/base/_grid.scss +1 -5
  30. data/{app/assets → assets}/stylesheets/material/base/_typography.scss +1 -11
  31. data/{app/assets → assets}/stylesheets/material/bootstrap/_alert.scss +14 -16
  32. data/{app/assets → assets}/stylesheets/material/bootstrap/_badge.scss +19 -7
  33. data/{app/assets → assets}/stylesheets/material/bootstrap/_breadcrumb.scss +0 -0
  34. data/{app/assets → assets}/stylesheets/material/bootstrap/_carousel.scss +0 -6
  35. data/{app/assets → assets}/stylesheets/material/bootstrap/_close.scss +0 -4
  36. data/{app/assets → assets}/stylesheets/material/bootstrap/_code.scss +0 -9
  37. data/{app/assets → assets}/stylesheets/material/bootstrap/_custom-form.scss +0 -0
  38. data/{app/assets → assets}/stylesheets/material/bootstrap/_form.scss +4 -16
  39. data/{app/assets → assets}/stylesheets/material/bootstrap/_image.scss +10 -14
  40. data/{app/assets → assets}/stylesheets/material/bootstrap/_jumbotron.scss +0 -0
  41. data/{app/assets → assets}/stylesheets/material/bootstrap/_media.scss +0 -0
  42. data/{app/assets → assets}/stylesheets/material/bootstrap/_nav.scss +4 -10
  43. data/{app/assets → assets}/stylesheets/material/bootstrap/_pagination.scss +0 -1
  44. data/{app/assets → assets}/stylesheets/material/bootstrap/_popover.scss +4 -10
  45. data/{app/assets → assets}/stylesheets/material/bootstrap/_responsive-embed.scss +0 -0
  46. data/{app/assets → assets}/stylesheets/material/bootstrap/_transition.scss +2 -0
  47. data/{app/assets → assets}/stylesheets/material/material.scss +1 -10
  48. data/{app/assets → assets}/stylesheets/material/material/_button-flat.scss +3 -2
  49. data/{app/assets → assets}/stylesheets/material/material/_button-float.scss +4 -4
  50. data/{app/assets → assets}/stylesheets/material/material/_button-group.scss +40 -95
  51. data/{app/assets → assets}/stylesheets/material/material/_button.scss +8 -24
  52. data/{app/assets → assets}/stylesheets/material/material/_card.scss +28 -48
  53. data/{app/assets → assets}/stylesheets/material/material/_chip.scss +3 -7
  54. data/{app/assets → assets}/stylesheets/material/material/_data-table.scss +40 -37
  55. data/{app/assets → assets}/stylesheets/material/material/_dialog.scss +79 -53
  56. data/assets/stylesheets/material/material/_expansion-panel.scss +247 -0
  57. data/{app/assets → assets}/stylesheets/material/material/_menu.scss +99 -96
  58. data/{app/assets → assets}/stylesheets/material/material/_navdrawer.scss +26 -54
  59. data/{app/assets → assets}/stylesheets/material/material/_picker.scss +8 -13
  60. data/{app/assets → assets}/stylesheets/material/material/_progress-circular.scss +0 -1
  61. data/{app/assets → assets}/stylesheets/material/material/_progress.scss +41 -53
  62. data/{app/assets → assets}/stylesheets/material/material/_selection-control.scss +4 -25
  63. data/{app/assets → assets}/stylesheets/material/material/_stepper.scss +1 -9
  64. data/{app/assets → assets}/stylesheets/material/material/_tab.scss +16 -16
  65. data/assets/stylesheets/material/material/_text-field-box.scss +59 -0
  66. data/{app/assets → assets}/stylesheets/material/material/_text-field-floating-label.scss +28 -13
  67. data/{app/assets → assets}/stylesheets/material/material/_text-field-input-group.scss +40 -49
  68. data/assets/stylesheets/material/material/_text-field-textarea.scss +15 -0
  69. data/{app/assets → assets}/stylesheets/material/material/_text-field.scss +23 -42
  70. data/{app/assets → assets}/stylesheets/material/material/_toolbar.scss +50 -37
  71. data/{app/assets → assets}/stylesheets/material/material/_tooltip.scss +6 -12
  72. data/{app/assets → assets}/stylesheets/material/mixins/_background-variant.scss +6 -5
  73. data/{app/assets → assets}/stylesheets/material/mixins/_border-radius.scss +2 -1
  74. data/{app/assets → assets}/stylesheets/material/mixins/_breakpoint.scss +7 -6
  75. data/{app/assets → assets}/stylesheets/material/mixins/_clearfix.scss +0 -0
  76. data/assets/stylesheets/material/mixins/_float.scss +13 -0
  77. data/{app/assets → assets}/stylesheets/material/mixins/_form.scss +37 -5
  78. data/{app/assets → assets}/stylesheets/material/mixins/_grid-framework.scss +30 -24
  79. data/{app/assets → assets}/stylesheets/material/mixins/_grid.scss +8 -8
  80. data/{app/assets → assets}/stylesheets/material/mixins/_hex-to-rgba.scss +0 -0
  81. data/{app/assets → assets}/stylesheets/material/mixins/_hover.scss +19 -19
  82. data/{app/assets → assets}/stylesheets/material/mixins/_image.scss +0 -0
  83. data/{app/assets → assets}/stylesheets/material/mixins/_list.scss +0 -0
  84. data/{app/assets → assets}/stylesheets/material/mixins/_material-icons.scss +4 -2
  85. data/{app/assets → assets}/stylesheets/material/mixins/_nav-divider.scss +0 -0
  86. data/{app/assets → assets}/stylesheets/material/mixins/_reset-text.scss +1 -1
  87. data/{app/assets → assets}/stylesheets/material/mixins/_screenreader.scss +1 -2
  88. data/{app/assets → assets}/stylesheets/material/mixins/_strip-unit.scss +0 -0
  89. data/{app/assets → assets}/stylesheets/material/mixins/_text-alignment.scss +0 -0
  90. data/{app/assets → assets}/stylesheets/material/mixins/_text-emphasis.scss +6 -5
  91. data/{app/assets → assets}/stylesheets/material/mixins/_text-hide.scss +0 -0
  92. data/{app/assets → assets}/stylesheets/material/mixins/_text-truncate.scss +0 -0
  93. data/{app/assets → assets}/stylesheets/material/mixins/_transition.scss +0 -8
  94. data/{app/assets → assets}/stylesheets/material/mixins/_typography.scss +0 -0
  95. data/{app/assets → assets}/stylesheets/material/utilities/_align.scss +2 -0
  96. data/{app/assets → assets}/stylesheets/material/utilities/_background.scss +0 -4
  97. data/{app/assets → assets}/stylesheets/material/utilities/_border.scss +2 -2
  98. data/{app/assets → assets}/stylesheets/material/utilities/_clearfix.scss +0 -0
  99. data/{app/assets → assets}/stylesheets/material/utilities/_display.scss +6 -2
  100. data/{app/assets → assets}/stylesheets/material/utilities/_flex.scss +10 -6
  101. data/{app/assets → assets}/stylesheets/material/utilities/_float.scss +3 -3
  102. data/{app/assets → assets}/stylesheets/material/utilities/_material-icons.scss +0 -0
  103. data/{app/assets → assets}/stylesheets/material/utilities/_position.scss +14 -0
  104. data/{app/assets → assets}/stylesheets/material/utilities/_screenreader.scss +0 -0
  105. data/{app/assets → assets}/stylesheets/material/utilities/_sizing.scss +2 -0
  106. data/{app/assets → assets}/stylesheets/material/utilities/_spacing.scss +32 -31
  107. data/{app/assets → assets}/stylesheets/material/utilities/_text.scss +2 -13
  108. data/{app/assets → assets}/stylesheets/material/utilities/_visibility.scss +2 -0
  109. data/{app/assets → assets}/stylesheets/material/utilities/_waves.scss +3 -3
  110. data/assets/stylesheets/material/variables/_elevation-shadow.scss +69 -0
  111. data/{app/assets → assets}/stylesheets/material/variables/_grid.scss +0 -4
  112. data/assets/stylesheets/material/variables/_palette.scss +66 -0
  113. data/{app/assets → assets}/stylesheets/material/variables/_spacer.scss +6 -11
  114. data/assets/stylesheets/material/variables/_transition.scss +27 -0
  115. data/{app/assets → assets}/stylesheets/material/variables/_typography.scss +21 -27
  116. data/{app/assets → assets}/stylesheets/material/variables/_variable-bootstrap.scss +22 -50
  117. data/{app/assets → assets}/stylesheets/material/variables/_variable-material.scss +108 -141
  118. data/lib/material-sass.rb +52 -4
  119. data/lib/material-sass/engine.rb +8 -8
  120. data/lib/material-sass/version.rb +1 -1
  121. data/material-sass.gemspec +3 -0
  122. metadata +145 -149
  123. data/app/assets/fonts/material-icons/MaterialIcons-Regular.eot +0 -0
  124. data/app/assets/fonts/material-icons/MaterialIcons-Regular.ijmap +0 -1
  125. data/app/assets/fonts/material-icons/MaterialIcons-Regular.svg +0 -2373
  126. data/app/assets/fonts/material-icons/MaterialIcons-Regular.ttf +0 -0
  127. data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff +0 -0
  128. data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff2 +0 -0
  129. data/app/assets/fonts/material-icons/README.md +0 -9
  130. data/app/assets/fonts/material-icons/codepoints +0 -932
  131. data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
  132. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  133. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  134. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  135. data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
  136. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  137. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  138. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  139. data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
  140. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  141. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  142. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  143. data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
  144. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  145. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  146. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  147. data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
  148. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  149. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  150. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  151. data/app/assets/images/bg/amber.jpg +0 -0
  152. data/app/assets/images/bg/brand.jpg +0 -0
  153. data/app/assets/images/bg/green.jpg +0 -0
  154. data/app/assets/images/bg/purple.jpg +0 -0
  155. data/app/assets/images/bg/red.jpg +0 -0
  156. data/app/assets/images/bg/teal.jpg +0 -0
  157. data/app/assets/stylesheets/material/material/_expansion-panel.scss +0 -118
  158. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +0 -18
  159. data/app/assets/stylesheets/material/mixins/_pull.scss +0 -7
  160. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +0 -91
  161. data/app/assets/stylesheets/material/variables/_palette.scss +0 -45
  162. data/app/assets/stylesheets/material/variables/_transition.scss +0 -29
@@ -31,17 +31,13 @@
31
31
  }
32
32
  }
33
33
 
34
- // Colour
35
34
  @each $color, $values in $theme-colors {
36
35
  .chip-#{$color} {
37
- @include color-yiq(map-get(theme-color($color), color));
38
-
39
36
  background-color: map-get(theme-color($color), color);
37
+ color: color-yiq(map-get(theme-color($color), color));
40
38
  }
41
39
  }
42
40
 
43
-
44
-
45
41
  // Misc
46
42
 
47
43
  .chip-action {
@@ -63,17 +59,17 @@
63
59
  }
64
60
 
65
61
  .chip-icon {
66
- @include color-yiq($chip-icon-bg);
67
62
  @include text-truncate;
68
63
 
69
64
  align-items: center;
70
65
  background-color: $chip-icon-bg;
71
66
  border-radius: ($chip-height / 2);
67
+ color: color-yiq($chip-icon-bg);
72
68
  display: inline-flex;
73
69
  flex-shrink: 0;
74
70
  font-size: $chip-icon-font-size;
75
71
  font-style: normal;
76
- font-weight: normal;
72
+ font-weight: $chip-font-weight;
77
73
  height: $chip-height;
78
74
  justify-content: center;
79
75
  margin-right: ($chip-inner-spacer-x * 2);
@@ -58,18 +58,20 @@
58
58
  }
59
59
  }
60
60
 
61
- > tbody:first-child > tr:first-child,
62
- > tfoot:first-child > tr:first-child,
63
- > thead:first-child > tr:first-child {
64
- td,
65
- th {
66
- border-top: 0;
67
- }
68
- }
69
-
70
61
  .table {
71
62
  border-top: $table-border-width solid $table-border-color;
72
63
  }
64
+
65
+ > :first-child {
66
+ > tr:first-child,
67
+ > tr:first-child,
68
+ > tr:first-child {
69
+ td,
70
+ th {
71
+ border-top: 0;
72
+ }
73
+ }
74
+ }
73
75
  }
74
76
 
75
77
  .table-bordered {
@@ -90,7 +92,6 @@
90
92
  }
91
93
  }
92
94
 
93
- // Size
94
95
  .table-sm {
95
96
  td,
96
97
  th {
@@ -133,8 +134,6 @@
133
134
  }
134
135
  }
135
136
 
136
-
137
-
138
137
  // Table background
139
138
 
140
139
  @each $color, $values in $theme-colors {
@@ -142,9 +141,8 @@
142
141
  &,
143
142
  > td,
144
143
  > th {
145
- @include color-yiq(map-get(theme-color($color), color));
146
-
147
144
  background-color: map-get(theme-color($color), color);
145
+ color: color-yiq(map-get(theme-color($color), color));
148
146
  }
149
147
  }
150
148
 
@@ -153,17 +151,15 @@
153
151
  &,
154
152
  > td,
155
153
  > th {
156
- @include color-yiq(map-get(theme-color($color), darker));
157
-
158
154
  background-color: map-get(theme-color($color), darker);
155
+ color: color-yiq(map-get(theme-color($color), darker));
159
156
  }
160
157
  }
161
158
  }
162
159
  }
163
160
 
164
- // scss-lint:disable MergeableSelector
161
+ // stylelint-disable-next-line no-duplicate-selectors
165
162
  .table {
166
- // scss-lint:enable MergeableSelector
167
163
  .thead-dark {
168
164
  td,
169
165
  th {
@@ -185,20 +181,6 @@
185
181
  background-color: $table-dark-bg;
186
182
  color: $table-dark-color;
187
183
 
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
184
  &.table-striped {
203
185
  tbody tr:nth-of-type(odd) {
204
186
  background-color: $table-dark-bg-accent;
@@ -212,15 +194,36 @@
212
194
  }
213
195
  }
214
196
  }
215
- }
216
197
 
198
+ tbody,
199
+ tfoot,
200
+ thead {
201
+ td,
202
+ th {
203
+ color: inherit;
204
+ }
205
+ }
217
206
 
207
+ td,
208
+ th {
209
+ border-color: $table-dark-border-color;
210
+ }
211
+ }
218
212
 
219
213
  // Table responsive
220
214
 
221
215
  .table-responsive {
222
- display: block;
223
- overflow-x: auto;
224
- width: 100%;
225
- -ms-overflow-style: -ms-autohiding-scrollbar;
216
+ @each $breakpoint in map-keys($grid-breakpoints) {
217
+ $next: breakpoint-next($breakpoint);
218
+ $infix: breakpoint-infix($next);
219
+
220
+ &#{$infix} {
221
+ @include media-breakpoint-down($breakpoint) {
222
+ display: block;
223
+ overflow-x: auto;
224
+ width: 100%;
225
+ -ms-overflow-style: -ms-autohiding-scrollbar;
226
+ }
227
+ }
228
+ }
226
229
  }
@@ -7,19 +7,8 @@
7
7
  right: 0;
8
8
  bottom: 0;
9
9
  left: 0;
10
- text-align: center;
11
- white-space: nowrap;
12
10
  z-index: map-get($dialog-elevation-shadow, elevation);
13
11
 
14
- &::before {
15
- content: '';
16
- display: inline-block;
17
- height: 100%;
18
- margin-right: -.25em;
19
- vertical-align: middle;
20
- width: 1px;
21
- }
22
-
23
12
  &.fade {
24
13
  @include transition-standard-complex(opacity);
25
14
 
@@ -44,8 +33,6 @@
44
33
  }
45
34
  }
46
35
 
47
-
48
-
49
36
  // Backdrop
50
37
 
51
38
  .modal-backdrop {
@@ -58,22 +45,36 @@
58
45
  z-index: (map-get($dialog-elevation-shadow, elevation) - 1);
59
46
  }
60
47
 
48
+ // Dialog
61
49
 
50
+ .modal-content {
51
+ @include border-radius($dialog-border-radius);
62
52
 
63
- // Dialog
53
+ background-clip: padding-box;
54
+ background-color: $dialog-content-bg;
55
+ box-shadow: map-get($dialog-elevation-shadow, shadow);
56
+ display: flex;
57
+ flex-direction: column;
58
+ outline: 0;
59
+ pointer-events: auto;
60
+ position: relative;
61
+ vertical-align: baseline;
62
+ }
64
63
 
65
64
  .modal-dialog {
66
- @include text-align(left);
67
-
68
- display: inline-block;
69
- margin: $dialog-margin-y $dialog-margin-x;
65
+ margin: $dialog-margin-y auto;
70
66
  max-width: $dialog-width;
67
+ pointer-events: none;
71
68
  position: relative;
72
- vertical-align: middle;
73
- white-space: normal;
74
69
  width: calc(100% - #{$dialog-margin-x} * 2);
75
70
  }
76
71
 
72
+ .modal-dialog-centered {
73
+ align-items: center;
74
+ display: flex;
75
+ min-height: calc(100% - #{$dialog-margin-y} * 2);
76
+ }
77
+
77
78
  .modal-lg {
78
79
  max-width: $dialog-width-lg;
79
80
  }
@@ -82,8 +83,6 @@
82
83
  max-width: $dialog-width-sm;
83
84
  }
84
85
 
85
-
86
-
87
86
  // Misc
88
87
 
89
88
  .modal-body {
@@ -91,6 +90,14 @@
91
90
  padding: $dialog-padding-y $dialog-padding-x;
92
91
  position: relative;
93
92
 
93
+ &:first-child {
94
+ @include border-top-radius($dialog-border-radius);
95
+ }
96
+
97
+ &:last-child {
98
+ @include border-bottom-radius($dialog-border-radius);
99
+ }
100
+
94
101
  .modal-header + & {
95
102
  padding-top: 0;
96
103
  }
@@ -100,36 +107,42 @@
100
107
  }
101
108
  }
102
109
 
103
- .modal-content {
104
- @include border-radius($border-radius);
105
-
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
- }
115
-
116
110
  .modal-footer {
117
- align-items: center;
111
+ align-items: flex-end;
118
112
  display: flex;
119
113
  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);
114
+ padding: $dialog-footer-padding-y $dialog-footer-padding-x $dialog-footer-padding-y ($dialog-footer-padding-x - $dialog-footer-inner-spacer-x);
121
115
 
122
- > * {
123
- margin-right: ($dialog-footer-inner-spacer-x / 2);
124
- margin-left: ($dialog-footer-inner-spacer-x / 2);
116
+ &:first-child {
117
+ @include border-top-radius($dialog-border-radius);
118
+ }
119
+
120
+ &:last-child {
121
+ @include border-bottom-radius($dialog-border-radius);
125
122
  }
126
123
 
127
124
  .btn {
128
125
  background-color: transparent;
129
126
  box-shadow: none;
127
+ max-width: calc(50% - #{$dialog-footer-inner-spacer-x});
130
128
  min-width: $dialog-footer-btn-min-width;
129
+ overflow: hidden;
131
130
  padding-right: $dialog-footer-inner-spacer-x;
132
131
  padding-left: $dialog-footer-inner-spacer-x;
132
+ text-overflow: ellipsis;
133
+
134
+ @each $color, $values in $theme-colors {
135
+ &-#{$color} {
136
+ @include plain-active-focus-hover {
137
+ color: map-get(theme-color($color), color);
138
+ }
139
+
140
+ &:disabled,
141
+ &.disabled {
142
+ color: $btn-color-disabled;
143
+ }
144
+ }
145
+ }
133
146
 
134
147
  &:active,
135
148
  &.active {
@@ -143,18 +156,25 @@
143
156
  }
144
157
  }
145
158
 
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
- }
159
+ > * {
160
+ margin-left: $dialog-footer-inner-spacer-x;
161
+ }
162
+ }
152
163
 
153
- &:disabled,
154
- &.disabled {
155
- color: $btn-color-disabled;
156
- }
157
- }
164
+ .modal-footer-stacked {
165
+ align-items: stretch;
166
+ flex-direction: column;
167
+ padding-top: 0;
168
+ padding-right: 0;
169
+ padding-left: 0;
170
+
171
+ .btn {
172
+ @include text-align(right);
173
+
174
+ border-radius: 0;
175
+ margin-left: 0;
176
+ max-width: none;
177
+ padding: $dialog-footer-btn-stacked-padding-y $dialog-footer-btn-stacked-padding-x;
158
178
  }
159
179
  }
160
180
 
@@ -163,6 +183,14 @@
163
183
  display: flex;
164
184
  justify-content: space-between;
165
185
  padding: $dialog-padding-y $dialog-padding-x;
186
+
187
+ &:first-child {
188
+ @include border-top-radius($dialog-border-radius);
189
+ }
190
+
191
+ &:last-child {
192
+ @include border-bottom-radius($dialog-border-radius);
193
+ }
166
194
  }
167
195
 
168
196
  .modal-title {
@@ -171,8 +199,6 @@
171
199
  margin: 0;
172
200
  }
173
201
 
174
-
175
-
176
202
  // Scrollbar measure
177
203
 
178
204
  .modal-scrollbar-measure {
@@ -0,0 +1,247 @@
1
+ // Todo: expansion panel with different background colours
2
+
3
+ .list-group {
4
+ display: flex;
5
+ flex-direction: column;
6
+ margin-bottom: 0;
7
+ padding-left: 0;
8
+ }
9
+
10
+ .list-group-item {
11
+ @include transition-standard(background-color, color);
12
+
13
+ background-color: $expansion-panel-bg;
14
+ border: 0;
15
+ box-shadow: map-get($expansion-panel-elevation-shadow, shadow);
16
+ color: $expansion-panel-color;
17
+ display: block;
18
+ font-size: $expansion-panel-font-size;
19
+ line-height: $expansion-panel-line-height;
20
+ min-height: $expansion-panel-height;
21
+ padding: $expansion-panel-padding-y $expansion-panel-padding-x;
22
+ position: relative;
23
+
24
+ @include active-focus-hover {
25
+ color: $expansion-panel-color;
26
+ text-decoration: none;
27
+ }
28
+
29
+ &.active {
30
+ background-color: $expansion-panel-bg-active;
31
+ color: $expansion-panel-color;
32
+ }
33
+
34
+ &.disabled,
35
+ &:disabled {
36
+ background-color: $expansion-panel-bg;
37
+ color: $expansion-panel-color-disabled;
38
+ }
39
+
40
+ &:first-child {
41
+ @include border-top-radius($expansion-panel-border-radius);
42
+ }
43
+
44
+ &:last-child {
45
+ @include border-bottom-radius($expansion-panel-border-radius);
46
+ }
47
+
48
+ .card & {
49
+ padding-right: $card-padding-x;
50
+ padding-left: $card-padding-x;
51
+ }
52
+ }
53
+
54
+ .list-group-item-action {
55
+ color: $expansion-panel-color;
56
+ text-align: inherit;
57
+ width: 100%;
58
+
59
+ @include active-focus-hover {
60
+ background-color: $expansion-panel-bg-active;
61
+ color: $expansion-panel-color;
62
+ text-decoration: none;
63
+ }
64
+
65
+ &:disabled,
66
+ &.disabled {
67
+ background-color: $expansion-panel-bg;
68
+ color: $expansion-panel-color-disabled;
69
+ }
70
+
71
+ &:focus {
72
+ outline: 0;
73
+ }
74
+ }
75
+
76
+ @each $color, $values in $theme-colors {
77
+ .list-group-item-#{$color} {
78
+ background-color: map-get(theme-color($color), lighter);
79
+ color: color-yiq(map-get(theme-color($color), lighter));
80
+
81
+ &.active {
82
+ background-color: map-get(theme-color($color), color);
83
+ color: color-yiq(map-get(theme-color($color), color));
84
+ }
85
+
86
+ &.list-group-item-action {
87
+ @include active-focus-hover {
88
+ background-color: map-get(theme-color($color), color);
89
+ color: color-yiq(map-get(theme-color($color), color));
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ // Expansion panel
96
+
97
+ .expansion-panel {
98
+ @include transition-standard(background-color, color, margin);
99
+
100
+ padding: 0;
101
+
102
+ &.show {
103
+ border-radius: $expansion-panel-border-radius;
104
+
105
+ &:not(:first-child) {
106
+ margin-top: $expansion-panel-margin-y;
107
+
108
+ .card & {
109
+ margin-top: 0;
110
+ }
111
+ }
112
+
113
+ &:not(:last-child) {
114
+ margin-bottom: $expansion-panel-margin-y;
115
+
116
+ .card & {
117
+ margin-bottom: 0;
118
+ }
119
+ }
120
+
121
+ + .expansion-panel {
122
+ @include border-top-radius($expansion-panel-border-radius);
123
+
124
+ .card & {
125
+ @include border-top-radius(0);
126
+ }
127
+ }
128
+ }
129
+
130
+ &.show-predecessor {
131
+ @include border-bottom-radius($expansion-panel-border-radius);
132
+
133
+ .card & {
134
+ @include border-bottom-radius(0);
135
+ }
136
+ }
137
+
138
+ .card & {
139
+ padding-right: 0;
140
+ padding-left: 0;
141
+ }
142
+ }
143
+
144
+ .expansion-panel-body {
145
+ padding: $expansion-panel-inner-spacer-y $expansion-panel-padding-x;
146
+
147
+ .card & {
148
+ padding-right: $card-padding-x;
149
+ padding-left: $card-padding-x;
150
+ }
151
+ }
152
+
153
+ .expansion-panel-footer {
154
+ align-items: flex-end;
155
+ border-top: $expansion-panel-border-width solid $expansion-panel-border-color;
156
+ display: flex;
157
+ justify-content: flex-end;
158
+ padding: $expansion-panel-inner-spacer-y $expansion-panel-footer-padding-x ($expansion-panel-inner-spacer-y - $expansion-panel-footer-inner-spacer-y) ($expansion-panel-footer-padding-x - $expansion-panel-footer-inner-spacer-x);
159
+
160
+ .card & {
161
+ padding-right: $card-padding-x;
162
+ padding-left: ($card-padding-x - $expansion-panel-footer-inner-spacer-x);
163
+ }
164
+
165
+ .btn {
166
+ margin-bottom: $expansion-panel-footer-inner-spacer-y;
167
+ margin-left: $expansion-panel-footer-inner-spacer-x;
168
+ min-width: $expansion-panel-footer-btn-min-width;
169
+ padding-right: $expansion-panel-footer-inner-spacer-x;
170
+ padding-left: $expansion-panel-footer-inner-spacer-x;
171
+
172
+ .card & {
173
+ padding-right: ($card-padding-x - $expansion-panel-footer-padding-x);
174
+ padding-left: ($card-padding-x - $expansion-panel-footer-padding-x);
175
+ }
176
+ }
177
+ }
178
+
179
+ .expansion-panel-icon {
180
+ flex-shrink: 0;
181
+ margin-left: $expansion-panel-inner-spacer-x;
182
+
183
+ .collapsed-hide {
184
+ [data-toggle='collapse'].collapsed & {
185
+ display: none;
186
+ }
187
+ }
188
+
189
+ .collapsed-show {
190
+ [data-toggle='collapse']:not(.collapsed) & {
191
+ display: none;
192
+ }
193
+ }
194
+ }
195
+
196
+ .expansion-panel-toggler {
197
+ align-items: center;
198
+ color: inherit;
199
+ display: flex;
200
+ justify-content: space-between;
201
+ padding: $expansion-panel-padding-y $expansion-panel-padding-x;
202
+ text-align: inherit;
203
+ width: 100%;
204
+
205
+ @include active-focus-hover {
206
+ background-color: $expansion-panel-bg-active;
207
+ color: $expansion-panel-color;
208
+ text-decoration: none;
209
+ }
210
+
211
+ &:disabled,
212
+ &.disabled {
213
+ background-color: $expansion-panel-bg;
214
+ color: $expansion-panel-color-disabled;
215
+ }
216
+
217
+ &:focus {
218
+ outline: 0;
219
+ }
220
+
221
+ .card & {
222
+ padding-right: $card-padding-x;
223
+ padding-left: $card-padding-x;
224
+ }
225
+ }
226
+
227
+ // Flush
228
+
229
+ .list-group-flush {
230
+ &:first-child .list-group-item:first-child {
231
+ border-top: 0;
232
+ }
233
+
234
+ &:last-child .list-group-item:last-child {
235
+ border-bottom: 0;
236
+ }
237
+
238
+ .list-group-item {
239
+ border-top: $expansion-panel-border-width solid $expansion-panel-border-color;
240
+ border-radius: 0;
241
+ box-shadow: none;
242
+
243
+ &:last-child {
244
+ border-bottom: $expansion-panel-border-width solid $expansion-panel-border-color;
245
+ }
246
+ }
247
+ }