dlegr250_material_design 0.4.07 → 0.4.08

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af518e19470b26de229aee4bbf021f948c73c11f
4
- data.tar.gz: 52616cc30c2fa43affc747a911b4afba72ea70b2
3
+ metadata.gz: 77a53cdd7c61fd215abf661d43d452a0f6bbec55
4
+ data.tar.gz: aa6219a34c2db7c35078d67eca8653674e8df9f5
5
5
  SHA512:
6
- metadata.gz: 2828a35a96c7b8c573604d1dac9d4246d618c150941677d92b30902e1d16fd21126198c44a889feef8d6187cf91ad5af6fd353aca33298ee45c6d6c3f655dd2f
7
- data.tar.gz: ab73f83e661b480216fba19092f59f5d97ac9bd9420bec73df4ee5a8be063182a04061e220fea513926fea92d21e7ac2f8a75e78c60edce65f471b261835e63c
6
+ metadata.gz: b5e1376bf336e1a4be36c38c792b62386152f11d421a51a86fa6acb73616467ecbe77c67d928491b967285d59077c8573b52e27220f27c209be387539e50ac26
7
+ data.tar.gz: 3d75ca94dcae9d48f97e23ddca9e9dbbee50af81117400845dc965fc333d12fca3d89afe78f56eb6557c16e45935f16c0e03b8cc946b1e8bf0a2b5215894a23b
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.4.07"
2
+ VERSION = "0.4.08"
3
3
  end
@@ -243,3 +243,40 @@ $default-rounded-corners-radius: 3px;
243
243
  white-space: normal;
244
244
  word-wrap: break-word;
245
245
  }
246
+
247
+ // Shared lists styles
248
+ //----------------------------------------------------------------------
249
+
250
+ @mixin list-item() {
251
+ font-size: $font-size-normal;
252
+ min-height: 48px;
253
+ @include flex-parent-row();
254
+ @include no-touch-highlight-color();
255
+ @include transition(background-color 0.30s ease);
256
+ }
257
+
258
+ @mixin list-item-icon() {
259
+ color: color("icon");
260
+ padding-left: $spacing-normal;
261
+ text-align: left;
262
+ width: 30px;
263
+ }
264
+
265
+ @mixin list-item-primary() {
266
+ color: color("text");
267
+ flex: 1;
268
+ padding-left: $spacing-normal;
269
+ padding-right: $spacing-normal;
270
+ }
271
+
272
+ @mixin list-item-primary-subtext() {
273
+ color: color("helper");
274
+ font-size: $font-size-small;
275
+ padding-top: $spacing-xsmall;
276
+ }
277
+
278
+ @mixin list-item-secondary() {
279
+ color: color("icon");
280
+ margin-right: $spacing-normal;
281
+ text-align: right;
282
+ }
@@ -12,7 +12,6 @@
12
12
  min-width: 18px;
13
13
  padding: $spacing-small;
14
14
  text-align: center;
15
- text-transform: uppercase;
16
15
  @include rounded-corners;
17
16
  }
18
17
 
@@ -128,9 +128,7 @@ ol {
128
128
  //----------------------------------------------------------------------
129
129
 
130
130
  .list-item {
131
- min-height: 48px;
132
- @include flex-parent-row();
133
- @include transition(background-color 0.30s ease);
131
+ @include list-item();
134
132
  }
135
133
 
136
134
  .list-item.one-lines {
@@ -149,10 +147,7 @@ ol {
149
147
  //----------------------------------------------------------------------
150
148
 
151
149
  .list-item-icon {
152
- color: color("icon");
153
- padding-left: $spacing-normal;
154
- text-align: left;
155
- width: 30px;
150
+ @include list-item-icon();
156
151
  }
157
152
 
158
153
  .list-item-icon-circle {
@@ -169,16 +164,11 @@ ol {
169
164
  //----------------------------------------------------------------------
170
165
 
171
166
  .list-item-primary {
172
- color: color("text");
173
- flex: 1;
174
- padding-left: $spacing-normal;
175
- padding-right: $spacing-normal;
167
+ @include list-item-primary();
176
168
  }
177
169
 
178
170
  .list-item-primary-subtext {
179
- color: color("helper");
180
- font-size: $font-size-small;
181
- padding-top: $spacing-xsmall;
171
+ @include list-item-primary-subtext();
182
172
  }
183
173
 
184
174
  // Force list-item to wrap text
@@ -194,9 +184,7 @@ ol {
194
184
  //----------------------------------------------------------------------
195
185
 
196
186
  .list-item-secondary {
197
- color: color("icon");
198
- padding-right: $spacing-normal;
199
- text-align: right;
187
+ @include list-item-secondary();
200
188
  }
201
189
 
202
190
  .list-item-misc {
@@ -218,35 +206,32 @@ ol {
218
206
  //----------------------------------------------------------------------
219
207
 
220
208
  @media(hover: hover) {
221
- .list-hoverable {
222
- .list-item:hover {
223
- background-color: color("hover");
224
- }
209
+ .list-hoverable .list-item:hover {
210
+ background-color: color("hover");
225
211
  }
226
212
  }
227
213
 
228
214
  .list-hoverable {
229
- .list-item:active {
230
- background-color: darken(color("hover"), 5%);
231
- }
215
+ .list-item {
216
+ @include no-touch-highlight-color(); // Remove blue background on touch
232
217
 
233
- // Slightly darker than list-item:hover
234
- .button-icon {
235
- &:hover {
218
+ &:active {
236
219
  background-color: darken(color("hover"), 5%);
237
220
  }
238
221
 
239
- &:active {
240
- background-color: darken(color("hover"), 15%);
222
+ // Slightly darker than list-item:hover
223
+ .button-icon {
224
+ &:hover {
225
+ background-color: darken(color("hover"), 5%);
226
+ }
227
+
228
+ &:active {
229
+ background-color: darken(color("hover"), 15%);
230
+ }
241
231
  }
242
232
  }
243
233
  }
244
234
 
245
- // Remove blue background on touch
246
- .list-hoverable .list-item {
247
- @include no-touch-highlight-color();
248
- }
249
-
250
235
  // Links in list items
251
236
  //----------------------------------------------------------------------
252
237
 
@@ -304,4 +289,8 @@ ol {
304
289
  @extend .list-hoverable;
305
290
  @extend .rounded-corners;
306
291
  @extend .background-color-white;
292
+
293
+ .list-item-primary {
294
+ @include truncate-text();
295
+ }
307
296
  }
@@ -70,97 +70,39 @@
70
70
  // Menus - menu item
71
71
  //----------------------------------------------------------------------
72
72
 
73
- .menu-item {
74
- font-size: $font-size-normal;
75
- min-height: 48px;
76
- @include flex-parent-row();
77
- // box-sizing: border-box;
78
- // color: color("text");
79
- // cursor: pointer;
80
- // display: table-row;
81
- // font-size: $font-size-normal;
82
- // @include no-touch-highlight;
83
- @include transition(background-color 0.30s ease);
84
-
85
- &:hover {
73
+ @media(hover: hover) {
74
+ .menu-item:hover {
86
75
  background-color: color("hover");
87
76
  }
88
77
  }
89
78
 
90
79
  .menu-item {
91
- &:hover {
92
- background-color: color("hover");
93
- }
80
+ @include list-item()
94
81
 
95
82
  &:active {
96
83
  background-color: darken(color("hover"), 5%);
97
84
  }
98
85
  }
99
86
 
100
- // Menus - menu item - shared
101
- //----------------------------------------------------------------------
102
-
103
- // .menu-item-icon,
104
- // .menu-item-primary,
105
- // .menu-item-secondary {
106
- // box-sizing: border-box;
107
- // display: table-cell;
108
- // height: 48px;
109
- // min-height: 48px;
110
- // margin: 0;
111
- // padding: $spacing-normal 0;
112
- // vertical-align: middle;
113
- // @include transition(background-color 0.30s ease);
114
- // }
115
- //
116
- // // Make large menus slightly smaller
117
- // @media (min-width: $large-width) {
118
- // .menu-item-icon,
119
- // .menu-item-primary,
120
- // .menu-item-secondary {
121
- // height: 36px;
122
- // min-height: 36px;
123
- // padding-bottom: $spacing-xsmall;
124
- // padding-top: $spacing-xsmall;
125
- // }
126
- // }
127
-
128
-
129
87
  // Menus - menu item - icon
130
88
  //----------------------------------------------------------------------
131
89
 
132
90
  .menu-item-icon {
133
- color: color("icon");
134
- padding-left: $spacing-normal;
135
- text-align: center;
136
- width: 32px;
137
- // color: color("helper");
138
- // font-size: $font-size-icon;
139
- // padding: 0;
140
- // padding-left: $spacing-normal;
141
- // width: 72px - $spacing-normal * 2;
91
+ @include list-item-icon();
142
92
  }
143
93
 
144
94
  // Menus - menu item - primary
145
95
  //----------------------------------------------------------------------
146
96
 
147
97
  .menu-item-primary {
148
- color: color("text");
149
- flex: 1;
150
- padding-left: $spacing-normal;
151
- padding-right: $spacing-normal;
152
- // padding-left: $spacing-normal;
153
- // padding-right: $spacing-normal;
154
- // min-width: $menu-width;
98
+ @include list-item-primary();
155
99
  }
156
100
 
157
101
  // Menus - menu item - secondary
158
102
  //----------------------------------------------------------------------
159
103
 
160
104
  .menu-item-secondary {
161
- color: color("icon");
162
- margin-right: $spacing-normal;
163
- text-align: right;
105
+ @include list-item-secondary();
164
106
  }
165
107
 
166
108
  // Menus - sizes
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.4.07
4
+ version: 0.4.08
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-26 00:00:00.000000000 Z
11
+ date: 2016-11-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