dlegr250_material_design 0.5.96 → 0.5.97

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: 78b731a6c73f95ac68444a56dae745590439e0d5
4
- data.tar.gz: ed4feda764c3bb5ab708ab7fb2b0d52726e0d798
3
+ metadata.gz: 4c98f54467a103bae41c7fa4a4c64f2c291b0132
4
+ data.tar.gz: 88fbdf6c547117dd38f69157411bbb176a783fe1
5
5
  SHA512:
6
- metadata.gz: f12ae1d4724dd7ed3cf3c3d6095f5284b89454b29e1fb2a940533110eaa92057852a908d9a0641cef31fb150ac5bb4a6bd2933b18385ba2dc8af13e7a43c6f21
7
- data.tar.gz: debc6219fbdc2d8b551df12bafb278b03cd86f45da0c354577b4f3dcd0e9a3d69a1393d392fd352b63bc2c6ce7308f506e3276e2dc9ceeb005c6940373a778d1
6
+ metadata.gz: 6de3515eb771a10829fcd0873849d179ba93fafbcafea60255650ff7c889fd9476ed573a46c030a2f7048d4694291be65344d9c59d5b90478d17b7c65c9d74a8
7
+ data.tar.gz: 2febfbbc1e57d40c52cae8c898fdaed2d4f8af87b8826001b0ca26d1a76bef034417a2a480cde000741e5ab714d0ccbfc711e3c1f7321b88583f18e16085eb94
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.5.96"
2
+ VERSION = "0.5.97"
3
3
  end
data/temp.scss ADDED
@@ -0,0 +1,51 @@
1
+ .test-list {
2
+ background-color: color("white");
3
+ border: 1px solid color("divider");
4
+ position: relative;
5
+ overflow-x: hidden;
6
+ overflow-y: auto;
7
+ flex: 1 1 auto;
8
+ }
9
+
10
+ .test-list-item {
11
+ border-bottom: 1px solid color("divider");
12
+ min-height: 48px;
13
+ padding-left: 8px;
14
+ padding-right: 8px;
15
+ position: relative;
16
+ width: 100%;
17
+ display: flex;
18
+ align-items: center;
19
+
20
+ // @include flex-parent();
21
+ // @include flex-align-left();
22
+ }
23
+
24
+ .test-list-item-icon {
25
+ box-flex: 0;
26
+ flex-shrink: 0;
27
+ display: flex;
28
+ align-items: center;
29
+ align-self: stretch;
30
+ max-height: 48px;
31
+ height: 48px;
32
+ justify-content: center;
33
+ text-align: center;
34
+ width: 48px;
35
+ }
36
+
37
+ .test-list-item-primary {
38
+ color: color("text");
39
+ padding: 8px 8px;
40
+ line-height: 16px;
41
+ box-flex: 1;
42
+ flex-grow: 1;
43
+ flex-wrap: wrap;
44
+ align-items: center;
45
+ }
46
+
47
+ .test-list-item-primary-subtext {
48
+ font-size: $font-size-small;
49
+ color: color("helper");
50
+ padding-top: 4px;
51
+ }
@@ -159,6 +159,8 @@ $default-rounded-corners-radius: 2px; // As per Material Design spec
159
159
  display: -webkit-flex;
160
160
  flex-direction: row;
161
161
  justify-content: center;
162
+
163
+ position: relative;
162
164
  }
163
165
 
164
166
  @mixin flex-align-left() { justify-content: flex-start !important; }
@@ -230,31 +232,59 @@ $default-rounded-corners-radius: 2px; // As per Material Design spec
230
232
  // Shared lists styles
231
233
  //----------------------------------------------------------------------
232
234
 
235
+ @mixin list() {
236
+ position: relative;
237
+ overflow-x: hidden;
238
+ overflow-y: auto;
239
+ flex: 1 1 auto;
240
+ }
241
+
233
242
  @mixin list-item() {
234
243
  color: color("text");
235
244
  font-size: $font-size-normal;
236
245
  min-height: $list-one-line-height;
237
246
  padding-left: $spacing-small;
238
247
  padding-right: $spacing-small;
248
+ position: relative;
249
+ width: 100%;
239
250
  @include flex-parent();
240
- @include flex-align-left();
251
+ // @include flex-parent();
252
+ // @include flex-align-left();
241
253
  @include no-touch-highlight-color();
242
254
  @include transition(background-color 0.30s ease);
243
255
  }
244
256
 
257
+ $list-item-icon-width: 48px;
258
+
245
259
  @mixin list-item-icon() {
260
+ @include flex-parent();
261
+ align-self: stretch;
262
+ box-flex: 0;
246
263
  color: color("icon");
247
- max-width: 44px; // 56px
248
- padding-left: 0; // $spacing-small
264
+ flex-shrink: 0;
265
+ height: $list-item-icon-width;
266
+ max-height: $list-item-icon-width;
249
267
  text-align: center;
250
- width: 44px; // 56px
268
+ width: $list-item-icon-width;
269
+
270
+ // max-width: 44px; // 56px
271
+ // padding-left: 0; // $spacing-small
272
+ // text-align: center;
273
+ // width: 44px; // 56px
251
274
  }
252
275
 
253
276
  @mixin list-item-primary() {
254
- color: color("text");
255
- flex: 1; // Fill space
256
- font-size: $font-size-normal;
257
- padding: $spacing-normal $spacing-small;
277
+ color: red !important;
278
+ padding: 8px;
279
+ line-height: 16px;
280
+ box-flex: 1;
281
+ flex-grow: 1;
282
+ flex-wrap: wrap;
283
+ align-items: center;
284
+ // color: color("text");
285
+ // flex: 1; // Fill space
286
+ // font-size: $font-size-normal;
287
+ // padding: $spacing-normal $spacing-small;
258
288
  }
259
289
 
260
290
  @mixin list-item-primary-supertext() {
@@ -262,8 +292,8 @@ $default-rounded-corners-radius: 2px; // As per Material Design spec
262
292
  font-size: $font-size-small;
263
293
  font-weight: normal;
264
294
  padding-bottom: $spacing-xsmall;
265
- @include flex-parent();
266
- @include flex-align-left();
295
+ // @include flex-parent();
296
+ // @include flex-align-left();
267
297
  }
268
298
 
269
299
  @mixin list-item-primary-subtext() {
@@ -19,7 +19,7 @@ ol {
19
19
  //----------------------------------------------------------------------
20
20
 
21
21
  .list {
22
-
22
+ @include list();
23
23
  }
24
24
 
25
25
  .list-item {
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.96
4
+ version: 0.5.97
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-07 00:00:00.000000000 Z
11
+ date: 2017-11-08 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
@@ -36,6 +36,7 @@ files:
36
36
  - dlegr250_material_design.gemspec
37
37
  - lib/dlegr250_material_design.rb
38
38
  - lib/dlegr250_material_design/version.rb
39
+ - temp.scss
39
40
  - vendor/assets/javascripts/base/init.coffee
40
41
  - vendor/assets/javascripts/components/combobox.coffee
41
42
  - vendor/assets/javascripts/components/datepicker.coffee