dlegr250_material_design 0.5.69 → 0.5.70
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/{html_editor.coffee → DEPRECATED_html_editor.coffee} +1 -1
- data/vendor/assets/stylesheets/base/base.scss +1 -0
- data/vendor/assets/stylesheets/base/global_classes.scss +20 -14
- data/vendor/assets/stylesheets/base/mixins.scss +7 -0
- data/vendor/assets/stylesheets/base/variables/dimensions.scss +21 -10
- data/vendor/assets/stylesheets/components/cards.scss +1 -1
- data/vendor/assets/stylesheets/components/dialogs.scss +16 -2
- data/vendor/assets/stylesheets/components/lists.scss +9 -28
- data/vendor/assets/stylesheets/components/tabs.scss +65 -12
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0cb246589cf9c3eb3003dff6fea6c26eb64d84c9
|
|
4
|
+
data.tar.gz: dea273ed62a3f6ac06fcec564973675a2e2b0b7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3e9fdc7a5d9547e84089dac54364d6582494703fec9cbcb0a610e3f7a94bf2d9013c51d9b3cae184b2acc06e73dfa59c40dbbd863d04b88da780e520aca7379
|
|
7
|
+
data.tar.gz: 70ffd3c27997a60071a50181b133a05a48fdb1c39f084cfe267970b852d1b46005f30be11df0b739bbd97177c10c741b6571dafd3ec681730cf85a4e7cd43e41
|
|
@@ -54,6 +54,8 @@
|
|
|
54
54
|
// Constrained to max size to center content
|
|
55
55
|
//----------------------------------------------------------------------
|
|
56
56
|
|
|
57
|
+
.constrained,
|
|
58
|
+
.constrained-xsmall,
|
|
57
59
|
.constrained-small,
|
|
58
60
|
.constrained-medium,
|
|
59
61
|
.constrained-large,
|
|
@@ -62,10 +64,11 @@
|
|
|
62
64
|
@include full-width();
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
.constrained-
|
|
66
|
-
.constrained-
|
|
67
|
-
.constrained-
|
|
68
|
-
.constrained-
|
|
67
|
+
.constrained-xsmall { max-width: $device-xsmall; }
|
|
68
|
+
.constrained-small { max-width: $device-small; }
|
|
69
|
+
.constrained-medium { max-width: $device-medium; }
|
|
70
|
+
.constrained-large { max-width: $device-large; }
|
|
71
|
+
.constrained-xlarge { max-width: $device-xlarge; }
|
|
69
72
|
|
|
70
73
|
// Padding
|
|
71
74
|
//----------------------------------------------------------------------
|
|
@@ -133,6 +136,7 @@
|
|
|
133
136
|
.unbold { font-weight: normal !important; }
|
|
134
137
|
.italic { font-style: italic; }
|
|
135
138
|
.uppercase { text-transform: uppercase; }
|
|
139
|
+
.capitalize { text-transform: capitalize; }
|
|
136
140
|
.lowercase { text-transform: lowercase; }
|
|
137
141
|
|
|
138
142
|
// Rounded corners
|
|
@@ -201,10 +205,11 @@
|
|
|
201
205
|
// Widths
|
|
202
206
|
//----------------------------------------------------------------------
|
|
203
207
|
|
|
204
|
-
.width-
|
|
205
|
-
.width-
|
|
206
|
-
.width-
|
|
207
|
-
.width-
|
|
208
|
+
.width-xsmall { width: $device-xsmall; }
|
|
209
|
+
.width-small { width: $device-small; }
|
|
210
|
+
.width-medium { width: $device-medium; }
|
|
211
|
+
.width-large { width: $device-large; }
|
|
212
|
+
.width-xlarge { width: $device-xlarge; }
|
|
208
213
|
|
|
209
214
|
// Media query classes for various device sizes
|
|
210
215
|
//----------------------------------------------------------------------
|
|
@@ -220,7 +225,7 @@
|
|
|
220
225
|
display: none;
|
|
221
226
|
}
|
|
222
227
|
|
|
223
|
-
@media (min-width: $
|
|
228
|
+
@media (min-width: $device-medium) {
|
|
224
229
|
.small-only {
|
|
225
230
|
display: none;
|
|
226
231
|
}
|
|
@@ -231,7 +236,7 @@
|
|
|
231
236
|
}
|
|
232
237
|
}
|
|
233
238
|
|
|
234
|
-
@media (min-width: $
|
|
239
|
+
@media (min-width: $device-large) {
|
|
235
240
|
.small-only,
|
|
236
241
|
.small-and-medium-only,
|
|
237
242
|
.medium-only {
|
|
@@ -251,7 +256,8 @@
|
|
|
251
256
|
// there.
|
|
252
257
|
//----------------------------------------------------------------------
|
|
253
258
|
|
|
254
|
-
@media (min-width: $
|
|
255
|
-
@media (min-width: $
|
|
256
|
-
@media (min-width: $
|
|
257
|
-
@media (min-width: $
|
|
259
|
+
@media (min-width: $device-xsmall) {}
|
|
260
|
+
@media (min-width: $device-small) {}
|
|
261
|
+
@media (min-width: $device-medium) {}
|
|
262
|
+
@media (min-width: $device-large) {}
|
|
263
|
+
@media (min-width: $device-xlarge) {}
|
|
@@ -317,3 +317,10 @@ $default-rounded-corners-radius: 3px;
|
|
|
317
317
|
@mixin font-smoothing() {
|
|
318
318
|
-webkit-font-smoothing: antialiased;
|
|
319
319
|
}
|
|
320
|
+
|
|
321
|
+
// DRY borders
|
|
322
|
+
//----------------------------------------------------------------------
|
|
323
|
+
|
|
324
|
+
@mixin border($color: #aaa) {
|
|
325
|
+
@include box-shadow(0 0 1px $color);
|
|
326
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
//----------------------------------------------------------------------
|
|
7
7
|
|
|
8
8
|
$application-container-min-width: 300px;
|
|
9
|
+
$body-background-color: #eee !default;
|
|
9
10
|
|
|
10
11
|
// Dimensions - appbar
|
|
11
12
|
//----------------------------------------------------------------------
|
|
@@ -16,6 +17,11 @@ $appbar-height: $appbar-height-medium !default;
|
|
|
16
17
|
|
|
17
18
|
$appbar-button-height: 48px !default;
|
|
18
19
|
|
|
20
|
+
// Dimensions - toolbar
|
|
21
|
+
//----------------------------------------------------------------------
|
|
22
|
+
|
|
23
|
+
$toolbar-height: $appbar-height !default;
|
|
24
|
+
|
|
19
25
|
// Dimensions - sidebars
|
|
20
26
|
//----------------------------------------------------------------------
|
|
21
27
|
|
|
@@ -85,6 +91,8 @@ $button-icon-height: $button-height;
|
|
|
85
91
|
|
|
86
92
|
$button-fab-height: 56px;
|
|
87
93
|
|
|
94
|
+
$button-fab-min-height: 40px;
|
|
95
|
+
|
|
88
96
|
// Dimensions - inputs (text-fields, etc...)
|
|
89
97
|
//----------------------------------------------------------------------
|
|
90
98
|
|
|
@@ -124,16 +132,17 @@ $spacing-xlarge: 32px;
|
|
|
124
132
|
// See: https://material.io/guidelines/material-design/elevation-shadows.html#elevation-shadows-elevation-android
|
|
125
133
|
//----------------------------------------------------------------------
|
|
126
134
|
|
|
127
|
-
$elevation-1: 1;
|
|
128
|
-
$elevation-2: 2;
|
|
129
|
-
$elevation-3: 3;
|
|
130
|
-
$elevation-4: 4;
|
|
131
|
-
$elevation-6: 6;
|
|
132
|
-
$elevation-8: 8;
|
|
133
|
-
$elevation-9: 9;
|
|
134
|
-
$elevation-12: 12;
|
|
135
|
-
$elevation-16: 16;
|
|
136
|
-
$elevation-24: 24;
|
|
135
|
+
$elevation-1: 1; // Switch
|
|
136
|
+
$elevation-2: 2; // Card, button
|
|
137
|
+
$elevation-3: 3; // Refresh indicator,
|
|
138
|
+
$elevation-4: 4; // Appbar
|
|
139
|
+
$elevation-6: 6; // FAB (resting), snackbar
|
|
140
|
+
$elevation-8: 8; // Bottom nav, menu, raised button
|
|
141
|
+
$elevation-9: 9; // Submenu
|
|
142
|
+
$elevation-12: 12; // FAB (pressed)
|
|
143
|
+
$elevation-16: 16; // Sidebar, modal bottom sheet
|
|
144
|
+
$elevation-24: 24; // Dialog, pickers
|
|
145
|
+
$elevation-26: 26; // Popups on top of dialogs
|
|
137
146
|
|
|
138
147
|
// DEPRECATED: USE ELEVATION VARIABLES
|
|
139
148
|
$layout-depth: 10;
|
|
@@ -145,12 +154,14 @@ $dialog-depth: 50;
|
|
|
145
154
|
// Device breakpoints
|
|
146
155
|
//----------------------------------------------------------------------
|
|
147
156
|
|
|
157
|
+
$device-xsmall: 320px;
|
|
148
158
|
$device-small: 400px;
|
|
149
159
|
$device-medium: 760px;
|
|
150
160
|
$device-large: 1000px;
|
|
151
161
|
$device-xlarge: 1200px;
|
|
152
162
|
|
|
153
163
|
// DEPRECATED: USE DEVICE VARIABLES
|
|
164
|
+
$width-xsmall: $device-xsmall;
|
|
154
165
|
$width-small: $device-small;
|
|
155
166
|
$width-medium: $device-medium;
|
|
156
167
|
$width-large: $device-large;
|
|
@@ -188,7 +188,8 @@
|
|
|
188
188
|
.dialog-scrollable,
|
|
189
189
|
.dialog-scrollable-no-actions {
|
|
190
190
|
max-height: calc(100vh - #{$appbar-height}); // For dialog-header
|
|
191
|
-
overflow:
|
|
191
|
+
overflow-x: hidden;
|
|
192
|
+
overflow-y: auto;
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
@media (min-width: $width-small) {
|
|
@@ -216,13 +217,25 @@
|
|
|
216
217
|
|
|
217
218
|
.dialog-full-height {
|
|
218
219
|
height: 100% !important;
|
|
220
|
+
|
|
221
|
+
.dialog-scrollable-no-actions {
|
|
222
|
+
height: calc(100vh - 64px);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@media (min-width: $width-medium) {
|
|
227
|
+
.dialog-full-height {
|
|
228
|
+
.dialog-scrollable-no-actions {
|
|
229
|
+
height: calc(90vh - 64px);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
219
232
|
}
|
|
220
233
|
|
|
221
234
|
// Dialogs - simple
|
|
222
235
|
//----------------------------------------------------------------------
|
|
223
236
|
|
|
224
237
|
.dialog-simple {
|
|
225
|
-
.dialog-
|
|
238
|
+
.dialog-header {
|
|
226
239
|
border-bottom: none;
|
|
227
240
|
}
|
|
228
241
|
|
|
@@ -232,5 +245,6 @@
|
|
|
232
245
|
|
|
233
246
|
.dialog-actions {
|
|
234
247
|
border-top: 0;
|
|
248
|
+
text-align: right;
|
|
235
249
|
}
|
|
236
250
|
}
|
|
@@ -66,6 +66,13 @@ ol {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
// Lists - shadows
|
|
70
|
+
//----------------------------------------------------------------------
|
|
71
|
+
|
|
72
|
+
.list-shadowed {
|
|
73
|
+
@include box-shadow(0 1px 0 rgba(0, 0, 0, 0.2));
|
|
74
|
+
}
|
|
75
|
+
|
|
69
76
|
// Lists - modifiers
|
|
70
77
|
//----------------------------------------------------------------------
|
|
71
78
|
|
|
@@ -101,8 +108,7 @@ ol {
|
|
|
101
108
|
}
|
|
102
109
|
|
|
103
110
|
.list-bordered {
|
|
104
|
-
|
|
105
|
-
@include rounded-corners();
|
|
111
|
+
@include box-shadow(0 0 1px color("divider"));
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
// Dividers between items
|
|
@@ -110,31 +116,6 @@ ol {
|
|
|
110
116
|
border-bottom: 1px solid color("divider");
|
|
111
117
|
}
|
|
112
118
|
|
|
113
|
-
// Hoverable
|
|
114
|
-
// .list-hoverable {
|
|
115
|
-
// .list-item {
|
|
116
|
-
// &:hover { background-color: color("hover"); }
|
|
117
|
-
// &:active { background-color: darken(color("hover"), 3%); }
|
|
118
|
-
// }
|
|
119
|
-
//
|
|
120
|
-
// .button-icon {
|
|
121
|
-
// &:hover { background-color: darken(color("hover"), 7%); }
|
|
122
|
-
// &:active { background-color: darken(color("hover"), 12%); }
|
|
123
|
-
// }
|
|
124
|
-
// }
|
|
125
|
-
//
|
|
126
|
-
// .list-hoverable-blue {
|
|
127
|
-
// .list-item {
|
|
128
|
-
// &:hover { background-color: color("hover-blue"); }
|
|
129
|
-
// &:active { background-color: darken(color("hover-blue"), 3%); }
|
|
130
|
-
// }
|
|
131
|
-
//
|
|
132
|
-
// .button-icon {
|
|
133
|
-
// &:hover { background-color: darken(color("hover-blue"), 7%); }
|
|
134
|
-
// &:active { background-color: darken(color("hover-blue"), 12%); }
|
|
135
|
-
// }
|
|
136
|
-
// }
|
|
137
|
-
|
|
138
119
|
// Hoverable
|
|
139
120
|
.list-hoverable {
|
|
140
121
|
.list-item {
|
|
@@ -203,7 +184,7 @@ ol {
|
|
|
203
184
|
|
|
204
185
|
.component-list {
|
|
205
186
|
background-color: color("white");
|
|
206
|
-
|
|
187
|
+
@include box-shadow(0 0 1px color("divider"));
|
|
207
188
|
@include rounded-corners();
|
|
208
189
|
|
|
209
190
|
.list-item {
|
|
@@ -8,30 +8,66 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.tab {
|
|
11
|
-
@include flex-parent-row-align-center();
|
|
12
11
|
border-bottom: 2px solid transparent;
|
|
13
12
|
color: color("helper");
|
|
14
13
|
cursor: pointer;
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
|
|
15
16
|
display: inline-flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
16
19
|
flex: 1 1 auto;
|
|
17
|
-
font-size: $font-size-small;
|
|
18
|
-
font-weight: 600;
|
|
19
|
-
height: 100%;
|
|
20
|
-
max-width: 150px;
|
|
21
|
-
padding: 0 $spacing-normal;
|
|
22
20
|
position: relative;
|
|
21
|
+
height: 100%;
|
|
22
|
+
@include font-smoothing();
|
|
23
|
+
|
|
24
|
+
max-width: 264px;
|
|
25
|
+
min-height: 48px;
|
|
26
|
+
min-width: 72px;
|
|
27
|
+
padding-left: 12px;
|
|
28
|
+
padding-right: 12px;
|
|
23
29
|
text-align: center;
|
|
24
30
|
text-transform: uppercase;
|
|
25
31
|
vertical-align: middle;
|
|
26
|
-
@include transition(
|
|
32
|
+
@include transition(border-color 0.30s ease, background-color 0.30s ease);
|
|
27
33
|
}
|
|
28
34
|
|
|
29
|
-
@
|
|
30
|
-
.
|
|
31
|
-
|
|
35
|
+
@each $color-name, $color in $colors {
|
|
36
|
+
.tabs-#{$color-name} {
|
|
37
|
+
.tab {
|
|
38
|
+
&:hover { border-color: lighten($color, 30%); }
|
|
39
|
+
&:active { background-color: lighten($color, 40%); }
|
|
40
|
+
}
|
|
32
41
|
}
|
|
33
42
|
}
|
|
34
43
|
|
|
44
|
+
// .tab {
|
|
45
|
+
// @include flex-parent-row-align-center();
|
|
46
|
+
// border-bottom: 2px solid transparent;
|
|
47
|
+
// color: color("helper");
|
|
48
|
+
// cursor: pointer;
|
|
49
|
+
// display: inline-flex;
|
|
50
|
+
// flex: 1 1 auto;
|
|
51
|
+
// font-size: $font-size-small;
|
|
52
|
+
// font-weight: 600;
|
|
53
|
+
// height: 100%;
|
|
54
|
+
// max-width: 150px;
|
|
55
|
+
// overflow-x: auto;
|
|
56
|
+
// overflow-y: hidden;
|
|
57
|
+
// padding: 0 $spacing-normal;
|
|
58
|
+
// position: relative;
|
|
59
|
+
// text-align: center;
|
|
60
|
+
// text-transform: uppercase;
|
|
61
|
+
// vertical-align: middle;
|
|
62
|
+
// @include transition(all 0.30s ease);
|
|
63
|
+
// }
|
|
64
|
+
//
|
|
65
|
+
// @media (min-width: $width-medium) {
|
|
66
|
+
// .tab {
|
|
67
|
+
// font-size: $font-size-normal;
|
|
68
|
+
// }
|
|
69
|
+
// }
|
|
70
|
+
|
|
35
71
|
.tab-primary {
|
|
36
72
|
align-items: center;
|
|
37
73
|
// display: flex;
|
|
@@ -40,10 +76,22 @@
|
|
|
40
76
|
justify-content: center;
|
|
41
77
|
}
|
|
42
78
|
|
|
43
|
-
.
|
|
44
|
-
|
|
79
|
+
.tab-primary-subtext {
|
|
80
|
+
font-size: $font-size-small;
|
|
81
|
+
text-transform: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tabs-fixed {
|
|
85
|
+
width: 100%;
|
|
86
|
+
|
|
87
|
+
.tab {
|
|
88
|
+
flex: 1;
|
|
89
|
+
flex-basis: 0;
|
|
90
|
+
flex-grow: 1;
|
|
91
|
+
}
|
|
45
92
|
}
|
|
46
93
|
|
|
94
|
+
|
|
47
95
|
@each $color-name, $color in $colors {
|
|
48
96
|
.tabs-#{$color-name} {
|
|
49
97
|
.tab {
|
|
@@ -76,3 +124,8 @@
|
|
|
76
124
|
cursor: default;
|
|
77
125
|
pointer-events: none;
|
|
78
126
|
}
|
|
127
|
+
|
|
128
|
+
.tab-disabled {
|
|
129
|
+
color: color("disabled");
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
}
|
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.70
|
|
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-
|
|
11
|
+
date: 2017-08-02 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
|
|
@@ -37,13 +37,13 @@ files:
|
|
|
37
37
|
- lib/dlegr250_material_design.rb
|
|
38
38
|
- lib/dlegr250_material_design/version.rb
|
|
39
39
|
- vendor/assets/javascripts/base/init.coffee
|
|
40
|
+
- vendor/assets/javascripts/components/DEPRECATED_html_editor.coffee
|
|
40
41
|
- vendor/assets/javascripts/components/combobox.coffee
|
|
41
42
|
- vendor/assets/javascripts/components/datepicker.coffee
|
|
42
43
|
- vendor/assets/javascripts/components/dialog.coffee
|
|
43
44
|
- vendor/assets/javascripts/components/expansion_panels.coffee
|
|
44
45
|
- vendor/assets/javascripts/components/form_submit_buttons.coffee
|
|
45
46
|
- vendor/assets/javascripts/components/forms.coffee
|
|
46
|
-
- vendor/assets/javascripts/components/html_editor.coffee
|
|
47
47
|
- vendor/assets/javascripts/components/input_masks.coffee
|
|
48
48
|
- vendor/assets/javascripts/components/layout.coffee
|
|
49
49
|
- vendor/assets/javascripts/components/menus.coffee
|
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
143
143
|
version: '0'
|
|
144
144
|
requirements: []
|
|
145
145
|
rubyforge_project:
|
|
146
|
-
rubygems_version: 2.
|
|
146
|
+
rubygems_version: 2.6.12
|
|
147
147
|
signing_key:
|
|
148
148
|
specification_version: 4
|
|
149
149
|
summary: Customized implementation of Google Material Design User Interface.
|