dlegr250_material_design 0.5.88 → 0.5.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dlegr250_material_design/version.rb +1 -1
- data/vendor/assets/javascripts/components/dialog.coffee +8 -10
- data/vendor/assets/stylesheets/base/global_classes.scss +2 -0
- data/vendor/assets/stylesheets/base/mixins.scss +48 -62
- data/vendor/assets/stylesheets/components/badges.scss +27 -11
- data/vendor/assets/stylesheets/components/dialogs.scss +134 -81
- data/vendor/assets/stylesheets/components/dividers.scss +1 -2
- data/vendor/assets/stylesheets/components/layout/toolbar.scss +30 -29
- data/vendor/assets/stylesheets/components/subheaders.scss +5 -0
- data/vendor/assets/stylesheets/components/tables.scss +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1a2b5a0df2fb1f4cbc948735610c2c8645e0f6f
|
|
4
|
+
data.tar.gz: 1227882c5a9995ef29b319918886bfa0542d9f85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15e7f5d419d828ac58729e12a1999db920e46ff694274e1424fe07f33b26356a5894aacc1841e1b780635006b2e67ed33bf583fd49a719bc47f2b5fdf9d08943
|
|
7
|
+
data.tar.gz: 53f89c15fa2ed012b45f86826007fa285e5dd83321f5b92f9db7ac3040a7d56c6ce8e2228563fd3f68308a23bb674bede4c2ff0a59542ce20d69894136c4afc0
|
|
@@ -52,22 +52,20 @@ class App.MD.Dialog
|
|
|
52
52
|
element.addClass("visible")
|
|
53
53
|
element.find("input[autofocus]").focus()
|
|
54
54
|
|
|
55
|
-
#
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
# $dialogAppbar.removeClass("scroll-shadow")
|
|
55
|
+
# Add shadow on scroll
|
|
56
|
+
element.find(".dialog-scrollable").on "scroll", (e) ->
|
|
57
|
+
$scrollContainer = $(this)
|
|
58
|
+
$header = element.find(".dialog-toolbar")
|
|
59
|
+
if $scrollContainer.scrollTop()
|
|
60
|
+
$header.addClass("scroll-shadow-active")
|
|
61
|
+
else
|
|
62
|
+
$header.removeClass("scroll-shadow-active")
|
|
64
63
|
|
|
65
64
|
false
|
|
66
65
|
|
|
67
66
|
@closeDialog: (element) ->
|
|
68
67
|
$element = $(element)
|
|
69
68
|
hideButNotDestroy = ($element.attr("data-permanent") == "true")
|
|
70
|
-
console.log "Hide: #{hideButNotDestroy}"
|
|
71
69
|
$element.removeClass("visible")
|
|
72
70
|
window.setTimeout =>
|
|
73
71
|
if hideButNotDestroy
|
|
@@ -36,11 +36,13 @@
|
|
|
36
36
|
// Flexbox
|
|
37
37
|
//----------------------------------------------------------------------
|
|
38
38
|
|
|
39
|
+
.flex-0 { flex: 0 !important; }
|
|
39
40
|
.flex-1 { flex: 1 !important; }
|
|
40
41
|
.flex-2 { flex: 2 !important; }
|
|
41
42
|
.flex-3 { flex: 3 !important; }
|
|
42
43
|
.flex-4 { flex: 4 !important; }
|
|
43
44
|
|
|
45
|
+
.flex-container { @include flex-parent(); }
|
|
44
46
|
.flex-parent { @include flex-parent(); }
|
|
45
47
|
.flex-parent-align-top { @include flex-parent-align-top(); }
|
|
46
48
|
|
|
@@ -157,75 +157,24 @@ $default-rounded-corners-radius: 2px; // As per Material Design spec
|
|
|
157
157
|
justify-content: center;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
@mixin flex-align-left() { justify-content: flex-start; }
|
|
161
|
-
@mixin flex-align-center() { justify-content: center; }
|
|
162
|
-
@mixin flex-align-right() { justify-content: flex-end; }
|
|
160
|
+
@mixin flex-align-left() { justify-content: flex-start !important; }
|
|
161
|
+
@mixin flex-align-center() { justify-content: center !important; }
|
|
162
|
+
@mixin flex-align-right() { justify-content: flex-end !important; }
|
|
163
163
|
|
|
164
|
-
@mixin flex-vertical-align-top() { align-items: flex-start; }
|
|
165
|
-
@mixin flex-vertical-align-center() { align-items: center; }
|
|
166
|
-
@mixin flex-vertical-align-bottom() { align-items: flex-end; }
|
|
164
|
+
@mixin flex-vertical-align-top() { align-items: flex-start !important; }
|
|
165
|
+
@mixin flex-vertical-align-center() { align-items: center !important; }
|
|
166
|
+
@mixin flex-vertical-align-bottom() { align-items: flex-end !important; }
|
|
167
167
|
|
|
168
168
|
@mixin flex-parent-align-top() {
|
|
169
169
|
@include flex-parent();
|
|
170
170
|
@include flex-vertical-align-top();
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
// -webkit-align-items: center;
|
|
179
|
-
// -webkit-box-align: center;
|
|
180
|
-
// flex-direction: row;
|
|
181
|
-
// flex-wrap: nowrap;
|
|
182
|
-
// justify-content: flex-start;
|
|
183
|
-
// }
|
|
184
|
-
//
|
|
185
|
-
// @mixin flex-parent() {
|
|
186
|
-
// @include flex-parent();
|
|
187
|
-
// flex: 1 1 auto;
|
|
188
|
-
// justify-content: center;
|
|
189
|
-
// }
|
|
190
|
-
//
|
|
191
|
-
// @mixin flex-parent-row-align-right() {
|
|
192
|
-
// @include flex-parent();
|
|
193
|
-
// flex: 1;
|
|
194
|
-
// justify-content: flex-end;
|
|
195
|
-
// }
|
|
196
|
-
//
|
|
197
|
-
// @mixin flex-parent-row-align-top() {
|
|
198
|
-
// @include flex-parent();
|
|
199
|
-
// align-items: flex-start;
|
|
200
|
-
// -ms-flex-align: flex-start;
|
|
201
|
-
// -webkit-align-items: flex-start;
|
|
202
|
-
// -webkit-box-align: flex-start;
|
|
203
|
-
// }
|
|
204
|
-
|
|
205
|
-
// // Center elements vertically and horizontally
|
|
206
|
-
// @mixin flex-center() {
|
|
207
|
-
// @include flex-parent();
|
|
208
|
-
// align-items: center;
|
|
209
|
-
// -ms-flex-align: center;
|
|
210
|
-
// -webkit-align-items: center;
|
|
211
|
-
// -webkit-box-align: center;
|
|
212
|
-
// flex-direction: column;
|
|
213
|
-
// flex-wrap: nowrap;
|
|
214
|
-
// justify-content: center;
|
|
215
|
-
// height: 100%;
|
|
216
|
-
// width: 100%;
|
|
217
|
-
// }
|
|
218
|
-
|
|
219
|
-
// Grid list
|
|
220
|
-
// @mixin flex-grid-list() {
|
|
221
|
-
// @include flex-parent();
|
|
222
|
-
// align-items: flex-start;
|
|
223
|
-
// -ms-flex-align: flex-start;
|
|
224
|
-
// -webkit-align-items: flex-start;
|
|
225
|
-
// -webkit-box-align: flex-start;
|
|
226
|
-
// flex-direction: row;
|
|
227
|
-
// flex-wrap: wrap;
|
|
228
|
-
// }
|
|
173
|
+
@mixin flex-section() {
|
|
174
|
+
@include flex-parent();
|
|
175
|
+
display: inline-flex;
|
|
176
|
+
flex: 1;
|
|
177
|
+
}
|
|
229
178
|
|
|
230
179
|
// Boxes
|
|
231
180
|
//----------------------------------------------------------------------
|
|
@@ -374,3 +323,40 @@ $default-rounded-corners-radius: 2px; // As per Material Design spec
|
|
|
374
323
|
-moz-osx-font-smoothing: grayscale; // Firefox
|
|
375
324
|
font-feature-settings: "liga"; // IE
|
|
376
325
|
}
|
|
326
|
+
|
|
327
|
+
// // Toolbars
|
|
328
|
+
// //----------------------------------------------------------------------
|
|
329
|
+
//
|
|
330
|
+
// @mixin toolbar() {
|
|
331
|
+
// border-bottom: 1px solid color("divider");
|
|
332
|
+
// height: $toolbar-height-device-small;
|
|
333
|
+
// left: 0;
|
|
334
|
+
// padding: 0 $spacing-small;
|
|
335
|
+
// right: 0;
|
|
336
|
+
// @include elevation(4);
|
|
337
|
+
// @include transition(box-shadow 0.2s ease);
|
|
338
|
+
// @include flex-parent();
|
|
339
|
+
//
|
|
340
|
+
// @media (min-width: $device-medium) {
|
|
341
|
+
// & {
|
|
342
|
+
// height: $toolbar-height-device-medium;
|
|
343
|
+
// padding: 0 $spacing-normal;
|
|
344
|
+
// }
|
|
345
|
+
// }
|
|
346
|
+
//
|
|
347
|
+
// @media (min-width: $device-large) {
|
|
348
|
+
// & {
|
|
349
|
+
// height: $toolbar-height-device-large;
|
|
350
|
+
// }
|
|
351
|
+
// }
|
|
352
|
+
//
|
|
353
|
+
// @media (min-width: $device-xlarge) {
|
|
354
|
+
// & {
|
|
355
|
+
// height: $toolbar-height-device-xlarge;
|
|
356
|
+
// }
|
|
357
|
+
// }
|
|
358
|
+
// }
|
|
359
|
+
//
|
|
360
|
+
// @mixin toolbar-title() {
|
|
361
|
+
//
|
|
362
|
+
// }
|
|
@@ -17,26 +17,42 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.badge-xsmall {
|
|
20
|
-
font-size: $font-size-
|
|
21
|
-
height: 28px;
|
|
22
|
-
line-height: 28px;
|
|
23
|
-
min-width: $button-height * 0.6;
|
|
24
|
-
padding: 0 $spacing-xsmall;
|
|
20
|
+
font-size: $font-size-xsmall;
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
.badge-small {
|
|
28
24
|
font-size: $font-size-small;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.badge-normal {
|
|
28
|
+
font-size: $font-size-normal;
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
.badge-large {
|
|
36
|
-
|
|
37
|
-
line-height: $button-height-large !important;
|
|
32
|
+
font-size: $font-size-large;
|
|
38
33
|
}
|
|
39
34
|
|
|
35
|
+
// .badge-xsmall {
|
|
36
|
+
// font-size: $font-size-small;
|
|
37
|
+
// height: 28px;
|
|
38
|
+
// line-height: 28px;
|
|
39
|
+
// min-width: $button-height * 0.6;
|
|
40
|
+
// padding: 0 $spacing-xsmall;
|
|
41
|
+
// }
|
|
42
|
+
//
|
|
43
|
+
// .badge-small {
|
|
44
|
+
// font-size: $font-size-small;
|
|
45
|
+
// height: $button-height-dense !important;
|
|
46
|
+
// line-height: $button-height-dense !important;
|
|
47
|
+
// min-width: $button-height * 0.8;
|
|
48
|
+
// padding: 0 $spacing-small;
|
|
49
|
+
// }
|
|
50
|
+
//
|
|
51
|
+
// .badge-large {
|
|
52
|
+
// height: $button-height-large !important;
|
|
53
|
+
// line-height: $button-height-large !important;
|
|
54
|
+
// }
|
|
55
|
+
|
|
40
56
|
// Badges - colors
|
|
41
57
|
//----------------------------------------------------------------------
|
|
42
58
|
|
|
@@ -76,88 +76,85 @@
|
|
|
76
76
|
.dialog-xlarge { width: $dialog-width-xlarge !important; }
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
//
|
|
79
|
+
// .dialog-toolbar
|
|
80
80
|
//----------------------------------------------------------------------
|
|
81
81
|
|
|
82
|
-
.dialog-
|
|
83
|
-
@include flex-parent();
|
|
82
|
+
.dialog-toolbar {
|
|
84
83
|
border-bottom: 1px solid color("divider");
|
|
85
|
-
height: $
|
|
84
|
+
height: $toolbar-height-device-small;
|
|
86
85
|
padding: 0 $spacing-small;
|
|
87
|
-
|
|
88
|
-
@include
|
|
86
|
+
@include elevation(4);
|
|
87
|
+
@include flex-parent();
|
|
88
|
+
@include transition(box-shadow 0.2s ease);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
@media (min-width: $device-medium) {
|
|
92
|
+
.dialog-toolbar {
|
|
93
|
+
height: $toolbar-height-device-medium;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
93
96
|
|
|
94
|
-
|
|
95
|
-
.
|
|
96
|
-
|
|
97
|
-
height: $toolbar-button-height;
|
|
98
|
-
line-height: $toolbar-button-height;
|
|
99
|
-
width: $toolbar-button-height;
|
|
97
|
+
@media (min-width: $device-large) {
|
|
98
|
+
.dialog-toolbar {
|
|
99
|
+
height: $toolbar-height-device-large;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
@media (min-width: $device-xlarge) {
|
|
104
|
+
.dialog-toolbar {
|
|
105
|
+
height: $toolbar-height-device-xlarge;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Line up buttons with content
|
|
110
|
+
.dialog-toolbar .button {
|
|
111
|
+
margin-right: $spacing-small;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// .dialog-toolbar-title
|
|
115
|
+
//----------------------------------------------------------------------
|
|
116
|
+
|
|
117
|
+
.dialog-toolbar-title {
|
|
105
118
|
color: color("icon");
|
|
106
119
|
flex: 1;
|
|
107
120
|
font-size: $font-size-normal + 2px;
|
|
108
121
|
font-weight: 400;
|
|
109
|
-
|
|
110
|
-
padding-right: $spacing-small;
|
|
122
|
+
margin-left: $spacing-small;
|
|
111
123
|
@include font-smoothing();
|
|
112
124
|
@include truncate-text();
|
|
113
125
|
}
|
|
114
126
|
|
|
115
|
-
.dialog-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.dialog-appbar-secondary {
|
|
120
|
-
@include list-item-secondary();
|
|
121
|
-
}
|
|
127
|
+
// .dialog-toolbar-actions
|
|
128
|
+
//----------------------------------------------------------------------
|
|
122
129
|
|
|
123
|
-
.dialog-
|
|
124
|
-
@include
|
|
125
|
-
|
|
126
|
-
|
|
130
|
+
.dialog-toolbar-actions {
|
|
131
|
+
@include flex-section();
|
|
132
|
+
@include flex-align-right();
|
|
133
|
+
flex: 0;
|
|
127
134
|
}
|
|
128
135
|
|
|
129
|
-
//
|
|
136
|
+
// .dialog-header
|
|
130
137
|
//----------------------------------------------------------------------
|
|
131
138
|
|
|
132
139
|
.dialog-header {
|
|
133
|
-
@include flex-parent();
|
|
134
|
-
@include flex-vertical-align-top();
|
|
135
140
|
border-bottom: 1px solid color("divider");
|
|
136
|
-
|
|
141
|
+
font-size: $font-size-normal + 2px;
|
|
142
|
+
font-weight: bold;
|
|
143
|
+
padding: $spacing-normal;
|
|
144
|
+
@include flex-parent();
|
|
145
|
+
// @include flex-align-left();
|
|
146
|
+
// @include flex-vertical-align-top();
|
|
147
|
+
@include font-smoothing();
|
|
137
148
|
}
|
|
138
149
|
|
|
139
150
|
.dialog-header-icon {
|
|
140
|
-
|
|
141
|
-
text-align: center;
|
|
142
|
-
width: $toolbar-button-height;
|
|
143
|
-
|
|
144
|
-
// To match up with .appbar-button
|
|
145
|
-
.button-icon {
|
|
146
|
-
font-size: $font-size-icon;
|
|
147
|
-
height: $toolbar-button-height;
|
|
148
|
-
line-height: $toolbar-button-height;
|
|
149
|
-
width: $toolbar-button-height;
|
|
150
|
-
}
|
|
151
|
+
@include list-item-icon();
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
.dialog-header-primary {
|
|
154
|
-
@include
|
|
155
|
-
@include
|
|
155
|
+
// @include flex-section();
|
|
156
|
+
// @include flex-align-left();
|
|
156
157
|
flex: 1;
|
|
157
|
-
font-size: $font-size-normal + 2px;
|
|
158
|
-
// font-weight: 400;
|
|
159
|
-
font-weight: bold;
|
|
160
|
-
padding: $spacing-normal;
|
|
161
158
|
}
|
|
162
159
|
|
|
163
160
|
.dialog-header-primary-subtext {
|
|
@@ -165,44 +162,59 @@
|
|
|
165
162
|
}
|
|
166
163
|
|
|
167
164
|
.dialog-header-secondary {
|
|
168
|
-
@include
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
.dialog-header-secondary-actions {
|
|
173
|
-
@include list-item-secondary();
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
@media (min-width: $device-small) {
|
|
177
|
-
.dialog-header-primary {
|
|
178
|
-
font-size: $font-size-large;
|
|
179
|
-
}
|
|
165
|
+
@include flex-section();
|
|
166
|
+
@include flex-align-right();
|
|
167
|
+
flex: 0;
|
|
180
168
|
}
|
|
181
169
|
|
|
182
170
|
// Dialogs - content
|
|
183
171
|
//----------------------------------------------------------------------
|
|
184
172
|
|
|
185
|
-
.dialog-
|
|
186
|
-
|
|
173
|
+
.dialog-scrollable {
|
|
174
|
+
max-height: calc(100vh - #{$toolbar-height-device-small});
|
|
175
|
+
overflow-y: auto;
|
|
187
176
|
}
|
|
188
177
|
|
|
189
|
-
|
|
190
|
-
.dialog-scrollable
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
overflow-y: auto;
|
|
178
|
+
@media (min-width: $device-medium) {
|
|
179
|
+
.dialog-scrollable {
|
|
180
|
+
max-height: calc(90vh - #{$toolbar-height-device-medium});
|
|
181
|
+
}
|
|
194
182
|
}
|
|
195
183
|
|
|
196
|
-
@media (min-width: $device-
|
|
184
|
+
@media (min-width: $device-large) {
|
|
197
185
|
.dialog-scrollable {
|
|
198
|
-
max-height: calc(90vh - #{$
|
|
186
|
+
max-height: calc(90vh - #{$toolbar-height-device-large});
|
|
199
187
|
}
|
|
188
|
+
}
|
|
200
189
|
|
|
201
|
-
|
|
202
|
-
|
|
190
|
+
@media (min-width: $device-xlarge) {
|
|
191
|
+
.dialog-scrollable {
|
|
192
|
+
max-height: calc(90vh - #{$toolbar-height-device-xlarge});
|
|
203
193
|
}
|
|
204
194
|
}
|
|
205
195
|
|
|
196
|
+
.dialog-content {
|
|
197
|
+
// height: 1000px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
// .dialog-scrollable,
|
|
202
|
+
// .dialog-scrollable-no-actions {
|
|
203
|
+
// max-height: calc(100vh - #{$dialog-header-height}); // For dialog-header
|
|
204
|
+
// overflow-x: hidden;
|
|
205
|
+
// overflow-y: auto;
|
|
206
|
+
// }
|
|
207
|
+
//
|
|
208
|
+
// @media (min-width: $device-small) {
|
|
209
|
+
// .dialog-scrollable {
|
|
210
|
+
// max-height: calc(90vh - #{$dialog-header-height * 2}); // For dialog-header and dialog-actions
|
|
211
|
+
// }
|
|
212
|
+
//
|
|
213
|
+
// .dialog-scrollable-no-actions {
|
|
214
|
+
// max-height: calc(90vh - #{$dialog-header-height}); // For dialog-header and dialog-actions
|
|
215
|
+
// }
|
|
216
|
+
// }
|
|
217
|
+
|
|
206
218
|
// Dialogs - actions
|
|
207
219
|
//----------------------------------------------------------------------
|
|
208
220
|
|
|
@@ -216,22 +228,59 @@
|
|
|
216
228
|
// Dialog - full height
|
|
217
229
|
//----------------------------------------------------------------------
|
|
218
230
|
|
|
219
|
-
.dialog-full-height {
|
|
220
|
-
height:
|
|
231
|
+
.dialog-full-height .dialog-scrollable {
|
|
232
|
+
height: calc(100vh - #{$toolbar-height-device-small});
|
|
233
|
+
}
|
|
221
234
|
|
|
222
|
-
|
|
223
|
-
|
|
235
|
+
@media (min-width: $device-medium) {
|
|
236
|
+
.dialog-full-height .dialog-scrollable {
|
|
237
|
+
height: calc(90vh - #{$toolbar-height-device-medium});
|
|
224
238
|
}
|
|
225
239
|
}
|
|
226
240
|
|
|
241
|
+
@media (min-width: $device-large) {
|
|
242
|
+
.dialog-full-height .dialog-scrollable {
|
|
243
|
+
height: calc(90vh - #{$toolbar-height-device-large});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// Dialog - full width
|
|
248
|
+
//----------------------------------------------------------------------
|
|
249
|
+
|
|
250
|
+
.dialog-full-width {
|
|
251
|
+
width: 100% !important;
|
|
252
|
+
}
|
|
253
|
+
|
|
227
254
|
@media (min-width: $device-medium) {
|
|
228
|
-
.dialog-full-
|
|
229
|
-
|
|
230
|
-
height: calc(90vh - 64px);
|
|
231
|
-
}
|
|
255
|
+
.dialog-full-width {
|
|
256
|
+
width: 90% !important;
|
|
232
257
|
}
|
|
233
258
|
}
|
|
234
259
|
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
// .dialog-full-height {
|
|
263
|
+
//
|
|
264
|
+
// // height: 100% !important;
|
|
265
|
+
//
|
|
266
|
+
// .dialog-scrollable,
|
|
267
|
+
// .dialog-scrollable-no-actions {
|
|
268
|
+
// height: calc(100vh - 64px);
|
|
269
|
+
// }
|
|
270
|
+
// }
|
|
271
|
+
//
|
|
272
|
+
// @media (min-width: $device-medium) {
|
|
273
|
+
// .dialog-full-height {
|
|
274
|
+
// .dialog-scrollable {
|
|
275
|
+
// height: calc(90vh - 128px);
|
|
276
|
+
// }
|
|
277
|
+
//
|
|
278
|
+
// .dialog-scrollable-no-actions {
|
|
279
|
+
// height: calc(90vh - 64px);
|
|
280
|
+
// }
|
|
281
|
+
// }
|
|
282
|
+
// }
|
|
283
|
+
|
|
235
284
|
// Dialogs - simple
|
|
236
285
|
//----------------------------------------------------------------------
|
|
237
286
|
|
|
@@ -249,3 +298,7 @@
|
|
|
249
298
|
text-align: right;
|
|
250
299
|
}
|
|
251
300
|
}
|
|
301
|
+
|
|
302
|
+
.dialog-simple-content {
|
|
303
|
+
padding: 0 $spacing-normal;
|
|
304
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
.divider,
|
|
12
12
|
.spacer {
|
|
13
13
|
display: block;
|
|
14
|
+
height: 1px;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
// Divider with line
|
|
@@ -19,7 +20,6 @@
|
|
|
19
20
|
.divider {
|
|
20
21
|
border: none;
|
|
21
22
|
border-bottom: 1px solid color("divider");
|
|
22
|
-
height: 0;
|
|
23
23
|
margin: 0;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
|
|
35
35
|
.spacer {
|
|
36
36
|
border: none;
|
|
37
|
-
height: 0;
|
|
38
37
|
margin: 0;
|
|
39
38
|
}
|
|
40
39
|
|
|
@@ -4,27 +4,17 @@
|
|
|
4
4
|
.toolbar {
|
|
5
5
|
border-bottom: 1px solid color("divider");
|
|
6
6
|
height: $toolbar-height-device-small;
|
|
7
|
-
left: 0;
|
|
7
|
+
// left: 0;
|
|
8
8
|
padding: 0 $spacing-small;
|
|
9
|
-
position: absolute;
|
|
10
|
-
right: 0;
|
|
11
|
-
top: 0;
|
|
9
|
+
// position: absolute;
|
|
10
|
+
// right: 0;
|
|
11
|
+
// top: 0;
|
|
12
12
|
@include elevation(4);
|
|
13
13
|
@include transition(box-shadow 0.2s ease);
|
|
14
14
|
@include flex-parent();
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
//
|
|
18
|
-
// Allow CSS classes to override default center
|
|
19
|
-
//----------------------------------------------------------------------
|
|
20
|
-
|
|
21
|
-
.toolbar-section {
|
|
22
|
-
@include flex-parent();
|
|
23
|
-
display: inline-flex;
|
|
24
|
-
flex: 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Toolbar - title
|
|
17
|
+
// .toolbar-title
|
|
28
18
|
//----------------------------------------------------------------------
|
|
29
19
|
|
|
30
20
|
.toolbar-title {
|
|
@@ -40,14 +30,7 @@
|
|
|
40
30
|
.toolbar-title-subtext {
|
|
41
31
|
font-size: $font-size-small;
|
|
42
32
|
@include truncate-text();
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.toolbar-title-supertext {
|
|
46
|
-
padding-bottom: $spacing-xsmall;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.toolbar-title-subtext {
|
|
50
|
-
padding-top: $spacing-xsmall;
|
|
33
|
+
@include transparency(0.8);
|
|
51
34
|
}
|
|
52
35
|
|
|
53
36
|
@media (min-width: $device-medium) {
|
|
@@ -57,7 +40,7 @@
|
|
|
57
40
|
}
|
|
58
41
|
}
|
|
59
42
|
|
|
60
|
-
//
|
|
43
|
+
// .toolbar-button-icon
|
|
61
44
|
//----------------------------------------------------------------------
|
|
62
45
|
|
|
63
46
|
.toolbar-button-icon {
|
|
@@ -65,10 +48,10 @@
|
|
|
65
48
|
border: none;
|
|
66
49
|
color: color("helper");
|
|
67
50
|
cursor: pointer;
|
|
68
|
-
height:
|
|
51
|
+
height: $toolbar-button-height;
|
|
69
52
|
outline: none;
|
|
70
53
|
text-align: center;
|
|
71
|
-
width:
|
|
54
|
+
width: $toolbar-button-height;
|
|
72
55
|
@include material-icons();
|
|
73
56
|
@include no-touch-highlight-color();
|
|
74
57
|
@include rounded-corners(50%);
|
|
@@ -81,8 +64,14 @@
|
|
|
81
64
|
}
|
|
82
65
|
|
|
83
66
|
@media (hover: hover) {
|
|
84
|
-
.toolbar-button-icon
|
|
85
|
-
|
|
67
|
+
.toolbar-button-icon {
|
|
68
|
+
&:hover {
|
|
69
|
+
background-color: rgba(0, 0, 0, 0.12);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:active {
|
|
73
|
+
background-color: rgba(0, 0, 0, 0.20);
|
|
74
|
+
}
|
|
86
75
|
}
|
|
87
76
|
}
|
|
88
77
|
|
|
@@ -100,6 +89,7 @@
|
|
|
100
89
|
@media (min-width: $device-medium) {
|
|
101
90
|
.toolbar {
|
|
102
91
|
height: $toolbar-height-device-medium;
|
|
92
|
+
padding: 0 $spacing-normal;
|
|
103
93
|
}
|
|
104
94
|
|
|
105
95
|
.toolbar-title {
|
|
@@ -125,10 +115,21 @@
|
|
|
125
115
|
|
|
126
116
|
@media (min-width: $device-xlarge) {
|
|
127
117
|
.toolbar {
|
|
128
|
-
height: $toolbar-height-device-
|
|
118
|
+
height: $toolbar-height-device-xlarge;
|
|
129
119
|
}
|
|
130
120
|
}
|
|
131
121
|
|
|
122
|
+
// Toolbar - section
|
|
123
|
+
// Allow CSS classes to override default center
|
|
124
|
+
//----------------------------------------------------------------------
|
|
125
|
+
|
|
126
|
+
.toolbar-section,
|
|
127
|
+
.flex-section {
|
|
128
|
+
@include flex-parent();
|
|
129
|
+
display: inline-flex;
|
|
130
|
+
flex: 1;
|
|
131
|
+
}
|
|
132
|
+
|
|
132
133
|
// Toolbar - spacer/divider
|
|
133
134
|
//----------------------------------------------------------------------
|
|
134
135
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dlegr250_material_design
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.89
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel LeGrand
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-09-
|
|
11
|
+
date: 2017-09-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: 'WARNING: ALPHA CODE, NOT PRODUCTION READY. ACTIVELY UNDER DEVELOPMENT
|
|
14
14
|
AS OF AUG 2016. Implement Google Material Design spec with modern browsers in mind
|