dlegr250_material_design 0.4.99 → 0.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b46b31edc1a06de38b178ebd551dcb3118763dbc
4
- data.tar.gz: 5281398173ca0f7a1ff84c8b9e8b1689bcec1ee2
3
+ metadata.gz: 2d448000d754a1e8381a80caa58ea2e81c302663
4
+ data.tar.gz: cfdbc7aad373d31dc11e102ac1e579d7c0be04aa
5
5
  SHA512:
6
- metadata.gz: 9b4f6226b8b6ca3cd1b8dee28fadc93a12279a88ec80dadb19eff9dc2548be90bd97884187b5040389a21d641a358d2d01caed413b6fe29f47a313cb7c3e61be
7
- data.tar.gz: 823c863c4aae92bd3dfc08e81937bb3c63854e9fbeb6090bd2332fb10f6359c77b9d2cec3182d9183fcbf566a487472b15fbc890f53016bc354d9c6517a0fa0a
6
+ metadata.gz: 816afb896e3a84a8b945e3b01bedddc0a6e75401dccf6b5e99295dd8e497ddd6c107a065c974cc9169def63329994809ded5d2bac0a0eb6de1b9c4a6da8bd84f
7
+ data.tar.gz: 08427a82cfe79ac6eebbc40113217f5499a82d9f67073d842db9895eea8a72d0034b1984b957b5cf3baf58b0b84ee1954376600ba385cfc3393cdc6cfc96c2af
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.4.99"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -4,16 +4,20 @@
4
4
  //======================================================================
5
5
 
6
6
  // Typography
7
- //----------------------------------------------------------------------
8
-
9
7
  // Note: Material Design Iconic Font is hosted locally
8
+ //----------------------------------------------------------------------
10
9
 
11
- // @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,700");
12
10
  @import url("https://fonts.googleapis.com/css?family=Roboto:400,600,700");
13
11
 
14
12
  // HTML/body
15
13
  //----------------------------------------------------------------------
16
14
 
15
+ * {
16
+ box-sizing: border-box;
17
+ -webkit-box-sizing: border-box;
18
+ -moz-box-sizing: border-box;
19
+ }
20
+
17
21
  html,
18
22
  body {
19
23
  background-color: $body-background-color;
@@ -68,6 +72,10 @@ hr {
68
72
  a {
69
73
  color: color("blue");
70
74
  text-decoration: none;
75
+
76
+ &:hover {
77
+ text-decoration: underline;
78
+ }
71
79
  }
72
80
 
73
81
  // Images
@@ -3,6 +3,15 @@
3
3
  // Default element styles are defined in the base.scss file.
4
4
  //======================================================================
5
5
 
6
+ // Generate color classes (from base/variables/colors.scss map)
7
+ // Assume if you're specifying this you want it to override (hence !important)
8
+ //----------------------------------------------------------------------
9
+
10
+ @each $color-name, $hex-value in $colors {
11
+ .background-color-#{$color-name} { background-color: #{$hex-value} !important; }
12
+ .color-#{$color-name} { color: #{$hex-value} !important; }
13
+ }
14
+
6
15
  // Alignments
7
16
  //----------------------------------------------------------------------
8
17
 
@@ -14,9 +23,7 @@
14
23
  .float-right { float: right; }
15
24
 
16
25
  // Expand entire width and take element padding into consideration.
17
- .full-width {
18
- @include full-width;
19
- }
26
+ .full-width { @include full-width; }
20
27
 
21
28
  // Flex sizes for rows with items of different widths
22
29
  //----------------------------------------------------------------------
@@ -27,6 +34,7 @@
27
34
  .flex-4 { flex: 4 !important; }
28
35
 
29
36
  .flex-parent-row { @include flex-parent-row(); }
37
+ .flex-parent-row-align-top { @include flex-parent-row-align-top(); }
30
38
 
31
39
  // Constrained to max size to center content
32
40
  //----------------------------------------------------------------------
@@ -36,13 +44,13 @@
36
44
  .constrained-large,
37
45
  .constrained-xlarge {
38
46
  margin: auto;
39
- @include full-width;
47
+ @include full-width();
40
48
  }
41
49
 
42
- .constrained-small { max-width: $small-width; }
43
- .constrained-medium { max-width: $medium-width; }
44
- .constrained-large { max-width: $large-width; }
45
- .constrained-xlarge { max-width: $xlarge-width; }
50
+ .constrained-small { max-width: $width-small; }
51
+ .constrained-medium { max-width: $width-medium; }
52
+ .constrained-large { max-width: $width-large; }
53
+ .constrained-xlarge { max-width: $width-xlarge; }
46
54
 
47
55
  // Padding
48
56
  //----------------------------------------------------------------------
@@ -93,60 +101,30 @@
93
101
 
94
102
  // If lists or other elements need extra room at bottom
95
103
  // or else the FAB overlaps them.
96
- .allow-room-for-fab-at-bottom {
104
+ .allow-room-for-fab-at-bottom,
105
+ .fab-at-bottom {
97
106
  margin-bottom: $button-fab-height * 2;
98
107
  }
99
108
 
100
109
  // Cursors
101
110
  //----------------------------------------------------------------------
102
111
 
103
- .cursor-default {
104
- cursor: default !important;
105
- }
106
-
107
- .cursor-disabled {
108
- cursor: not-allowed !important;
109
- }
110
-
111
- // Highlight (yellowish background)
112
- //----------------------------------------------------------------------
113
-
114
- .highlight {
115
- background-color: color("highlight");
116
- }
112
+ .cursor-default { cursor: default !important; }
113
+ .cursor-disabled { cursor: not-allowed !important; }
117
114
 
118
115
  // Hover
119
116
  //----------------------------------------------------------------------
120
117
 
121
- .no-hover:hover {
122
- background-color: transparent !important;
123
- }
118
+ .no-hover:hover { background-color: transparent !important; }
124
119
 
125
120
  // Decorate text
126
121
  //----------------------------------------------------------------------
127
122
 
128
- .bold,
129
- .strong {
130
- font-weight: 700;
131
- }
132
-
133
- // Used to override labels or other elements that use bold
134
- // but may not want to in all cases.
135
- .unbold {
136
- font-weight: normal !important;
137
- }
138
-
139
- .italic {
140
- font-style: italic;
141
- }
142
-
143
- .uppercase {
144
- text-transform: uppercase;
145
- }
146
-
147
- .lowercase {
148
- text-transform: lowercase;
149
- }
123
+ .bold { font-weight: 700; }
124
+ .unbold { font-weight: normal !important; }
125
+ .italic { font-style: italic; }
126
+ .uppercase { text-transform: uppercase; }
127
+ .lowercase { text-transform: lowercase; }
150
128
 
151
129
  // Rounded corners
152
130
  //----------------------------------------------------------------------
@@ -161,31 +139,10 @@
161
139
  //----------------------------------------------------------------------
162
140
 
163
141
  // Remove from DOM rendering completely
164
- .hidden {
165
- display: none !important;
166
- }
142
+ .hidden { display: none !important; }
167
143
 
168
144
  // Remain in DOM flow but make invisible
169
- .invisible {
170
- visibility: hidden !important;
171
- }
172
-
173
- // Colored background or text
174
- //----------------------------------------------------------------------
175
-
176
- @each $color-name, $color in $colors {
177
- .color-#{$color-name} {
178
- color: $color !important; // Assume if you're specifying this you want it to override
179
- }
180
-
181
- .background-color-#{$color-name} {
182
- background-color: $color !important;
183
- }
184
-
185
- .border-color-#{$color-name} {
186
- border-color: $color !important;
187
- }
188
- }
145
+ .invisible { visibility: hidden !important; }
189
146
 
190
147
  // Font sizes
191
148
  //----------------------------------------------------------------------
@@ -196,23 +153,11 @@
196
153
  .font-size-large { font-size: $font-size-large !important; }
197
154
  .font-size-xlarge { font-size: $font-size-xlarge !important; }
198
155
 
199
- $font-sizes: 8, 10, 12, 14, 16, 18, 20, 22, 24;
200
- @each $size in $font-sizes {
201
- .font-size-#{$size} {
202
- font-size: #{$size}px !important;
203
- }
204
- }
205
-
206
156
  // Truncating text
207
157
  //----------------------------------------------------------------------
208
158
 
209
- .truncate-text {
210
- @include truncate-text();
211
- }
212
-
213
- .force-text-wrap {
214
- @include force-text-wrap();
215
- }
159
+ .truncate-text { @include truncate-text(); }
160
+ .force-text-wrap { @include force-text-wrap(); }
216
161
 
217
162
  // Borders
218
163
  //----------------------------------------------------------------------
@@ -246,9 +191,10 @@ $font-sizes: 8, 10, 12, 14, 16, 18, 20, 22, 24;
246
191
  // Widths
247
192
  //----------------------------------------------------------------------
248
193
 
249
- .width-small { width: $small-width; }
250
- .width-medium { width: $medium-width; }
251
- .width-large { width: $large-width; }
194
+ .width-small { width: $width-small; }
195
+ .width-medium { width: $width-medium; }
196
+ .width-large { width: $width-large; }
197
+ .width-xlarge { width: $width-xlarge; }
252
198
 
253
199
  // Media query classes for various device sizes
254
200
  //----------------------------------------------------------------------
@@ -264,8 +210,10 @@ $font-sizes: 8, 10, 12, 14, 16, 18, 20, 22, 24;
264
210
  display: none;
265
211
  }
266
212
 
267
- @media (min-width: $medium-width) {
268
- .small-only { display: none !important; }
213
+ @media (min-width: $width-medium) {
214
+ .small-only {
215
+ display: none;
216
+ }
269
217
 
270
218
  .medium-only,
271
219
  .medium-and-large-only {
@@ -273,11 +221,11 @@ $font-sizes: 8, 10, 12, 14, 16, 18, 20, 22, 24;
273
221
  }
274
222
  }
275
223
 
276
- @media (min-width: $large-width) {
224
+ @media (min-width: $width-large) {
277
225
  .small-only,
278
226
  .small-and-medium-only,
279
227
  .medium-only {
280
- display: none !important;
228
+ display: none;
281
229
  }
282
230
 
283
231
  .medium-and-large-only,
@@ -293,11 +241,7 @@ $font-sizes: 8, 10, 12, 14, 16, 18, 20, 22, 24;
293
241
  // there.
294
242
  //----------------------------------------------------------------------
295
243
 
296
- // Larger than mobile
297
- @media (min-width: $small-width) {}
298
-
299
- // Larger than medium
300
- @media (min-width: $medium-width) {}
301
-
302
- // Larger than large
303
- @media (min-width: $large-width) {}
244
+ @media (min-width: $width-small) {}
245
+ @media (min-width: $width-medium) {}
246
+ @media (min-width: $width-large) {}
247
+ @media (min-width: $width-xlarge) {}
@@ -0,0 +1,335 @@
1
+ // SCSS maps of all colors
2
+ //----------------------------------------------------------------------
3
+
4
+ $colors: (
5
+ // Material Design colors
6
+ 'red': #f44336,
7
+ 'red-50': #ffebee,
8
+ 'red-100': #ffcdd2,
9
+ 'red-200': #ef9a9a,
10
+ 'red-300': #e57373,
11
+ 'red-400': #ef5350,
12
+ 'red-500': #f44336,
13
+ 'red-600': #e53935,
14
+ 'red-700': #d32f2f,
15
+ 'red-800': #c62828,
16
+ 'red-900': #b71c1c,
17
+ 'red-a100': #ff8a80,
18
+ 'red-a200': #ff5252,
19
+ 'red-a400': #ff1744,
20
+ 'red-a700': #d50000,
21
+
22
+ 'pink': #e91e63,
23
+ 'pink-50': #fce4ec,
24
+ 'pink-100': #f8bbd0,
25
+ 'pink-200': #f48fb1,
26
+ 'pink-300': #f06292,
27
+ 'pink-400': #ec407a,
28
+ 'pink-500': #e91e63,
29
+ 'pink-600': #d81b60,
30
+ 'pink-700': #c2185b,
31
+ 'pink-800': #ad1457,
32
+ 'pink-900': #880e4f,
33
+ 'pink-a100': #ff80ab,
34
+ 'pink-a200': #ff4081,
35
+ 'pink-a400': #f50057,
36
+ 'pink-a700': #c51162,
37
+
38
+ 'purple': #9c27b0,
39
+ 'purple-50': #f3e5f5,
40
+ 'purple-100': #e1bee7,
41
+ 'purple-200': #ce93d8,
42
+ 'purple-300': #ba68c8,
43
+ 'purple-400': #ab47bc,
44
+ 'purple-500': #9c27b0,
45
+ 'purple-600': #8e24aa,
46
+ 'purple-700': #7b1fa2,
47
+ 'purple-800': #6a1b9a,
48
+ 'purple-900': #4a148c,
49
+ 'purple-a100': #ea80fc,
50
+ 'purple-a200': #e040fb,
51
+ 'purple-a400': #d500f9,
52
+ 'purple-a700': #aa00ff,
53
+
54
+ 'deep-purple': #673ab7,
55
+ 'deep-purple-50': #ede7f6,
56
+ 'deep-purple-100': #d1c4e9,
57
+ 'deep-purple-200': #b39ddb,
58
+ 'deep-purple-300': #9575cd,
59
+ 'deep-purple-400': #7e57c2,
60
+ 'deep-purple-500': #673ab7,
61
+ 'deep-purple-600': #5e35b1,
62
+ 'deep-purple-700': #512da8,
63
+ 'deep-purple-800': #4527a0,
64
+ 'deep-purple-900': #311b92,
65
+ 'deep-purple-a100': #b388ff,
66
+ 'deep-purple-a200': #7c4dff,
67
+ 'deep-purple-a400': #651fff,
68
+ 'deep-purple-a700': #6200ea,
69
+
70
+ 'indigo': #3f51b5,
71
+ 'indigo-50': #e8eaf6,
72
+ 'indigo-100': #c5cae9,
73
+ 'indigo-200': #9fa8da,
74
+ 'indigo-300': #7986cb,
75
+ 'indigo-400': #5c6bc0,
76
+ 'indigo-500': #3f51b5,
77
+ 'indigo-600': #3949ab,
78
+ 'indigo-700': #303f9f,
79
+ 'indigo-800': #283593,
80
+ 'indigo-900': #1a237e,
81
+ 'indigo-a100': #8c9eff,
82
+ 'indigo-a200': #536dfe,
83
+ 'indigo-a400': #3d5afe,
84
+ 'indigo-a700': #304ffe,
85
+
86
+ 'blue': #2196f3,
87
+ 'blue-50': #e3f2fd,
88
+ 'blue-100': #bbdefb,
89
+ 'blue-200': #90caf9,
90
+ 'blue-300': #64b5f6,
91
+ 'blue-400': #42a5f5,
92
+ 'blue-500': #2196f3,
93
+ 'blue-600': #1e88e5,
94
+ 'blue-700': #1976d2,
95
+ 'blue-800': #1565c0,
96
+ 'blue-900': #0d47a1,
97
+ 'blue-a100': #82b1ff,
98
+ 'blue-a200': #448aff,
99
+ 'blue-a400': #2979ff,
100
+ 'blue-a700': #2962ff,
101
+
102
+ 'light-blue': #03a9f4,
103
+ 'light-blue-50': #e1f5fe,
104
+ 'light-blue-100': #b3e5fc,
105
+ 'light-blue-200': #81d4fa,
106
+ 'light-blue-300': #4fc3f7,
107
+ 'light-blue-400': #29b6f6,
108
+ 'light-blue-500': #03a9f4,
109
+ 'light-blue-600': #039be5,
110
+ 'light-blue-700': #0288d1,
111
+ 'light-blue-800': #0277bd,
112
+ 'light-blue-900': #01579b,
113
+ 'light-blue-a100': #80d8ff,
114
+ 'light-blue-a200': #40c4ff,
115
+ 'light-blue-a400': #00b0ff,
116
+ 'light-blue-a700': #0091ea,
117
+
118
+ 'cyan': #00bcd4,
119
+ 'cyan-50': #e0f7fa,
120
+ 'cyan-100': #b2ebf2,
121
+ 'cyan-200': #80deea,
122
+ 'cyan-300': #4dd0e1,
123
+ 'cyan-400': #26c6da,
124
+ 'cyan-500': #00bcd4,
125
+ 'cyan-600': #00acc1,
126
+ 'cyan-700': #0097a7,
127
+ 'cyan-800': #00838f,
128
+ 'cyan-900': #006064,
129
+ 'cyan-a100': #84ffff,
130
+ 'cyan-a200': #18ffff,
131
+ 'cyan-a400': #00e5ff,
132
+ 'cyan-a700': #00b8d4,
133
+
134
+ 'teal': #009688,
135
+ 'teal-50': #e0f2f1,
136
+ 'teal-100': #b2dfdb,
137
+ 'teal-200': #80cbc4,
138
+ 'teal-300': #4db6ac,
139
+ 'teal-400': #26a69a,
140
+ 'teal-500': #009688,
141
+ 'teal-600': #00897b,
142
+ 'teal-700': #00796b,
143
+ 'teal-800': #00695c,
144
+ 'teal-900': #004d40,
145
+ 'teal-a100': #a7ffeb,
146
+ 'teal-a200': #64ffda,
147
+ 'teal-a400': #1de9b6,
148
+ 'teal-a700': #00bfa5,
149
+
150
+ 'green': #4caf50,
151
+ 'green-50': #e8f5e9,
152
+ 'green-100': #c8e6c9,
153
+ 'green-200': #a5d6a7,
154
+ 'green-300': #81c784,
155
+ 'green-400': #66bb6a,
156
+ 'green-500': #4caf50,
157
+ 'green-600': #43a047,
158
+ 'green-700': #388e3c,
159
+ 'green-800': #2e7d32,
160
+ 'green-900': #1b5e20,
161
+ 'green-a100': #b9f6ca,
162
+ 'green-a200': #69f0ae,
163
+ 'green-a400': #00e676,
164
+ 'green-a700': #00c853,
165
+
166
+ 'light-green': #8bc34a,
167
+ 'light-green-50': #f1f8e9,
168
+ 'light-green-100': #dcedc8,
169
+ 'light-green-200': #c5e1a5,
170
+ 'light-green-300': #aed581,
171
+ 'light-green-400': #9ccc65,
172
+ 'light-green-500': #8bc34a,
173
+ 'light-green-600': #7cb342,
174
+ 'light-green-700': #689f38,
175
+ 'light-green-800': #558b2f,
176
+ 'light-green-900': #33691e,
177
+ 'light-green-a100': #ccff90,
178
+ 'light-green-a200': #b2ff59,
179
+ 'light-green-a400': #76ff03,
180
+ 'light-green-a700': #64dd17,
181
+
182
+ 'lime': #cddc39,
183
+ 'lime-50': #f9fbe7,
184
+ 'lime-100': #f0f4c3,
185
+ 'lime-200': #e6ee9c,
186
+ 'lime-300': #dce775,
187
+ 'lime-400': #d4e157,
188
+ 'lime-500': #cddc39,
189
+ 'lime-600': #c0ca33,
190
+ 'lime-700': #afb42b,
191
+ 'lime-800': #9e9d24,
192
+ 'lime-900': #827717,
193
+ 'lime-a100': #f4ff81,
194
+ 'lime-a200': #eeff41,
195
+ 'lime-a400': #c6ff00,
196
+ 'lime-a700': #aeea00,
197
+
198
+ 'yellow': #ffeb3b,
199
+ 'yellow-50': #fffde7,
200
+ 'yellow-100': #fff9c4,
201
+ 'yellow-200': #fff59d,
202
+ 'yellow-300': #fff176,
203
+ 'yellow-400': #ffee58,
204
+ 'yellow-500': #ffeb3b,
205
+ 'yellow-600': #fdd835,
206
+ 'yellow-700': #fbc02d,
207
+ 'yellow-800': #f9a825,
208
+ 'yellow-900': #f57f17,
209
+ 'yellow-a100': #ffff8d,
210
+ 'yellow-a200': #ffff00,
211
+ 'yellow-a400': #ffea00,
212
+ 'yellow-a700': #ffd600,
213
+
214
+ 'amber': #ffc107,
215
+ 'amber-50': #fff8e1,
216
+ 'amber-100': #ffecb3,
217
+ 'amber-200': #ffe082,
218
+ 'amber-300': #ffd54f,
219
+ 'amber-400': #ffca28,
220
+ 'amber-500': #ffc107,
221
+ 'amber-600': #ffb300,
222
+ 'amber-700': #ffa000,
223
+ 'amber-800': #ff8f00,
224
+ 'amber-900': #ff6f00,
225
+ 'amber-a100': #ffe57f,
226
+ 'amber-a200': #ffd740,
227
+ 'amber-a400': #ffc400,
228
+ 'amber-a700': #ffab00,
229
+
230
+ 'orange': #ff9800,
231
+ 'orange-50': #fff3e0,
232
+ 'orange-100': #ffe0b2,
233
+ 'orange-200': #ffcc80,
234
+ 'orange-300': #ffb74d,
235
+ 'orange-400': #ffa726,
236
+ 'orange-500': #ff9800,
237
+ 'orange-600': #fb8c00,
238
+ 'orange-700': #f57c00,
239
+ 'orange-800': #ef6c00,
240
+ 'orange-900': #e65100,
241
+ 'orange-a100': #ffd180,
242
+ 'orange-a200': #ffab40,
243
+ 'orange-a400': #ff9100,
244
+ 'orange-a700': #ff6d00,
245
+
246
+ 'deep-orange': #ff5722,
247
+ 'deep-orange-50': #fbe9e7,
248
+ 'deep-orange-100': #ffccbc,
249
+ 'deep-orange-200': #ffab91,
250
+ 'deep-orange-300': #ff8a65,
251
+ 'deep-orange-400': #ff7043,
252
+ 'deep-orange-500': #ff5722,
253
+ 'deep-orange-600': #f4511e,
254
+ 'deep-orange-700': #e64a19,
255
+ 'deep-orange-800': #d84315,
256
+ 'deep-orange-900': #bf360c,
257
+ 'deep-orange-a100': #ff9e80,
258
+ 'deep-orange-a200': #ff6e40,
259
+ 'deep-orange-a400': #ff3d00,
260
+ 'deep-orange-a700': #dd2c00,
261
+
262
+ 'brown': #795548,
263
+ 'brown-50': #efebe9,
264
+ 'brown-100': #d7ccc8,
265
+ 'brown-200': #bcaaa4,
266
+ 'brown-300': #a1887f,
267
+ 'brown-400': #8d6e63,
268
+ 'brown-500': #795548,
269
+ 'brown-600': #6d4c41,
270
+ 'brown-700': #5d4037,
271
+ 'brown-800': #4e342e,
272
+ 'brown-900': #3e2723,
273
+
274
+ 'grey': #9e9e9e,
275
+ 'grey-50': #fafafa,
276
+ 'grey-100': #f5f5f5,
277
+ 'grey-200': #eeeeee,
278
+ 'grey-300': #e0e0e0,
279
+ 'grey-400': #bdbdbd,
280
+ 'grey-500': #9e9e9e,
281
+ 'grey-600': #757575,
282
+ 'grey-700': #616161,
283
+ 'grey-800': #424242,
284
+ 'grey-900': #212121,
285
+
286
+ 'blue-grey': #607d8b,
287
+ 'blue-grey-50': #eceff1,
288
+ 'blue-grey-100': #cfd8dc,
289
+ 'blue-grey-200': #b0bec5,
290
+ 'blue-grey-300': #90a4ae,
291
+ 'blue-grey-400': #78909c,
292
+ 'blue-grey-500': #607d8b,
293
+ 'blue-grey-600': #546e7a,
294
+ 'blue-grey-700': #455a64,
295
+ 'blue-grey-800': #37474f,
296
+ 'blue-grey-900': #263238,
297
+ 'blue-grey-1000': #11171a,
298
+
299
+ // Custom colors
300
+ "primary": $color-primary,
301
+ "secondary": $color-secondary,
302
+ "hover": $color-hover,
303
+ "icon": #737373,
304
+ "offwhite": rgba(255, 255, 255, 0.6),
305
+ "disabled": rgba(0, 0, 0, 0.26),
306
+ "text": rgba(0, 0, 0, 0.87),
307
+ "snackbar": #323232,
308
+ "divider": rgba(0, 0, 0, 0.12),
309
+ "table-hover": #eee,
310
+ "table-selected": #f5f5f5,
311
+ "highlight": #fef5d8,
312
+ "highlight-dark": #ffe79f,
313
+ "white": #fff,
314
+ "black": #000,
315
+ );
316
+
317
+ // Function to retrieve color
318
+ //----------------------------------------------------------------------
319
+
320
+ // Easier way to reference $colors map
321
+ @function color($color-name) {
322
+ @return map-get($colors, $color-name);
323
+ }
324
+
325
+ // Defaults variables that applications can override
326
+ //----------------------------------------------------------------------
327
+
328
+ $body-background-color: #fafafa !default;
329
+ $color-hover: #f3fefe !default;
330
+ $color-primary: #2196f3 !default;
331
+ $color-secondary: #db4437 !default;
332
+
333
+ $appbar-title-color: color("white") !default;
334
+ $appbar-subtitle-color: color("offwhite") !default;
335
+ @appbar-button-color: color("icon") !default;
@@ -111,109 +111,12 @@ $dialog-depth: 50;
111
111
  // Device breakpoints
112
112
  //----------------------------------------------------------------------
113
113
 
114
- $size-small: 400px;
115
- $size-medium: 760px;
116
- $size-large: 1000px;
117
- $size-xlarge: 1200px;
114
+ $width-small: 400px;
115
+ $width-medium: 760px;
116
+ $width-large: 1000px;
117
+ $width-xlarge: 1200px;
118
118
 
119
119
  $small-width: $size-small;
120
120
  $medium-width: $size-medium;
121
121
  $large-width: $size-large;
122
122
  $xlarge-width: $size-xlarge;
123
-
124
- // Convenience variables
125
- //----------------------------------------------------------------------
126
-
127
-
128
-
129
- // Color variables
130
- // See: http://www.google.com/design/spec/style/color.html
131
- //----------------------------------------------------------------------
132
-
133
- $color-primary: #2196f3 !default;
134
- $color-secondary: #db4437 !default;
135
-
136
- // Hover color for lists, menus, etc...
137
- $color-hover: #f3f3f3 !default;
138
-
139
- $color-table-hover: #eee;
140
- $color-table-selected: #f5f5f5;
141
-
142
- $colors: (
143
- "red" : #db4437,
144
- "light-red" : #ffebee,
145
- "blue" : #2196f3,
146
- "google-blue" : #4285f4,
147
- "dark-blue" : darken(#2196f3, 10%),
148
- "disabled" : rgba(0, 0, 0, 0.26),
149
- "grey" : #9e9e9e,
150
- "black" : #000000,
151
- "white" : #ffffff,
152
- "pink" : #e91e63,
153
- "purple" : #9c27b0,
154
- "deep-purple" : #673ab7,
155
- "light-purple" : lighten(#673ab7, 47%),
156
- "indigo" : #3f51b5,
157
- "light-blue" : #03a9f4,
158
- "github-light-blue" : #f2f8fa,
159
- "cyan" : #00bcd4,
160
- "teal" : #009688,
161
- "green" : #4caf50,
162
- "light-green" : #8bc34a,
163
- "lime" : #cddc39,
164
- "yellow" : #ffeb3b,
165
- "highlight" : #fef5d8,
166
- "dark-highlight": #ffe79f,
167
- "amber" : #ffc107,
168
- "orange" : #ff9800,
169
- "dark-orange" : #ef6c00,
170
- "deep-orange" : #ff5722,
171
- "brown" : #795548,
172
- "blue-grey" : #607d8b,
173
- "icon" : #737373,
174
- "offwhite" : rgba(255, 255, 255, 0.6),
175
- "helper" : rgba(0, 0, 0, 0.54),
176
- "placeholder" : rgba(0, 0, 0, 0.38),
177
- "text" : rgba(0, 0, 0, 0.87), // rgb(51, 51, 51),
178
- "divider" : rgba(0, 0, 0, 0.12),
179
- "hover" : $color-hover,
180
- "light-hover" : lighten($color-hover, 2%),
181
- "snackbar" : #323232,
182
- "primary" : $color-primary,
183
- "secondary" : $color-secondary,
184
- );
185
-
186
- // Easier way to reference $colors map
187
- @function color($color-name) {
188
- @return map-get($colors, $color-name);
189
- }
190
-
191
- // Defaults - Application colors (user can override)
192
- //----------------------------------------------------------------------
193
-
194
- // Body
195
- $body-background-color: #fafafa !default;
196
-
197
- // appbar and any colored component
198
- // $color-primary: color("blue") !default;
199
- // $secondary-color: color("red") !default;
200
-
201
- // Hover color for lists, menus, etc...
202
- // $hover-color: color("hover") !default;
203
-
204
- // Appbar only
205
- $appbar-text-color: color("white") !default;
206
- $appbar-subtitle-color: color("offwhite") !default;
207
- $appbar-button-color: color("helper") !default;
208
-
209
- // Merge defaults back into globals to use in colored components.
210
- // Having this here allows access to the color helpers already created
211
- // in the $colors global so you can do color("primary") instead of #fff.
212
- //----------------------------------------------------------------------
213
-
214
- // $app-config: (
215
- // "primary": $color-primary,
216
- // "secondary": $secondary-color,
217
- // "hover": $hover-color
218
- // );
219
- // $colors: map-merge(($colors), ($app-config));
@@ -19,6 +19,11 @@
19
19
  // </div>
20
20
  //======================================================================
21
21
 
22
+ $list-one-line-height: 48px;
23
+ $list-one-line-with-avatar-height: 56px;
24
+ $list-two-lines-height: 72px;
25
+ $list-three-lines-height: 88px;
26
+
22
27
  // UL and OL lists
23
28
  //----------------------------------------------------------------------
24
29
 
@@ -40,12 +45,15 @@ ol {
40
45
  }
41
46
 
42
47
  .list-item {
43
- @include flex-parent-row-align-top();
48
+ box-sizing: border-box;
49
+ color: color("text");
50
+ min-height: $list-one-line-height;
51
+ @include flex-parent-row();
44
52
  }
45
53
 
46
54
  .list-item-icon {
47
- padding: $spacing-normal;
48
- padding-left: 0;
55
+ color: color("icon");
56
+ padding-left: $spacing-normal;
49
57
  text-align: left;
50
58
  width: 30px;
51
59
  }
@@ -55,23 +63,25 @@ ol {
55
63
  }
56
64
 
57
65
  .list-item-primary {
66
+ flex: 1; // Fill space
58
67
  font-size: $font-size-normal;
59
68
  padding: $spacing-normal;
60
69
  }
61
70
 
62
71
  .list-item-primary-subtext {
72
+ color: color("helper");
63
73
  font-size: $font-size-small;
64
74
  }
65
75
 
66
76
  .list-item-secondary {
67
- padding: $spacing-normal;
68
- padding-left: 0;
77
+ color: color("helper");
78
+ padding-right: $spacing-normal;
69
79
  text-align: right;
70
80
  }
71
81
 
72
82
  .list-item-secondary-actions {
73
- padding: $spacing-small;
74
- padding-left: 0;
83
+ color: color("helper");
84
+ padding-right: $spacing-small;
75
85
  text-align: right;
76
86
  }
77
87
 
@@ -81,28 +91,28 @@ ol {
81
91
  // Sizes
82
92
  .list-one-line .list-item,
83
93
  .list-item-one-line {
84
- min-height: 48px;
94
+ min-height: $list-one-line-height;
85
95
  }
86
96
 
87
97
  .list-one-line-with-avatar .list-item,
88
98
  .list-item-one-line-with-avatar {
89
- min-height: 56px;
99
+ min-height: $list-one-line-with-avatar-height;
90
100
  }
91
101
 
92
102
  .list-two-lines .list-item,
93
103
  .list-item-two-lines {
94
- min-height: 72px;
104
+ min-height: $list-two-lines-height;
95
105
  }
96
106
 
97
107
  .list-three-lines .list-item,
98
108
  .list-item-three-lines {
99
- min-height: 88px;
109
+ min-height: $list-three-lines-height;
100
110
  }
101
111
 
102
112
  // Dividers between items
103
113
  .list-divided {
104
114
  .list-item:not(:last-child) {
105
- border-bottom: 1px solid color("divider");
115
+ border-bottom: 1px solid $color-divider;
106
116
  }
107
117
  }
108
118
 
@@ -111,6 +121,19 @@ ol {
111
121
 
112
122
  }
113
123
 
124
+ // Aligned top instead of centered
125
+ .list-align-top {
126
+ .list-item {
127
+ @include flex-parent-row-align-top();
128
+ }
129
+
130
+ .list-item-icon,
131
+ .list-item-secondary,
132
+ .list-item-secondary-actions {
133
+ padding-top: $spacing-normal;
134
+ }
135
+ }
136
+
114
137
 
115
138
  // // Lists - header
116
139
  // //----------------------------------------------------------------------
@@ -193,7 +216,7 @@ ol {
193
216
  // }
194
217
  //
195
218
  // .list-item-icon-circle {
196
- // background-color: color("divider");
219
+ // background-color: $color-divider;
197
220
  // font-size: 16px;
198
221
  // height: 30px;
199
222
  // line-height: 30px;
@@ -375,13 +398,13 @@ ol {
375
398
  // //----------------------------------------------------------------------
376
399
  //
377
400
  // .list-bordered {
378
- // border: 1px solid color("divider");
401
+ // border: 1px solid $color-divider;
379
402
  // }
380
403
  //
381
404
  // .list-divided {
382
405
  // .list-header,
383
406
  // .list-item {
384
- // border-bottom: 1px solid color("divider");
407
+ // border-bottom: 1px solid $color-divider;
385
408
  // }
386
409
  // }
387
410
  //
@@ -5,7 +5,8 @@
5
5
  @import "fonts/google_material_design_icons";
6
6
 
7
7
  @import "base/normalize";
8
- @import "base/variables";
8
+ @import "base/variables/dimensions";
9
+ @import "base/variables/colors";
9
10
  @import "base/mixins";
10
11
  @import "base/base";
11
12
  @import "base/global_classes";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlegr250_material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.99
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand
@@ -59,7 +59,8 @@ files:
59
59
  - vendor/assets/stylesheets/base/global_classes.scss
60
60
  - vendor/assets/stylesheets/base/mixins.scss
61
61
  - vendor/assets/stylesheets/base/normalize.scss
62
- - vendor/assets/stylesheets/base/variables.scss
62
+ - vendor/assets/stylesheets/base/variables/colors.scss
63
+ - vendor/assets/stylesheets/base/variables/dimensions.scss
63
64
  - vendor/assets/stylesheets/components/badges.scss
64
65
  - vendor/assets/stylesheets/components/blank_states.scss
65
66
  - vendor/assets/stylesheets/components/borders.scss