dlegr250_material_design 0.5.20 → 0.5.21

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: 3baca51f5b510fa9ccf459c79dabebcf64e38a62
4
- data.tar.gz: 474debabdc81bc80082c2cabfc8ac215dbb32ba1
3
+ metadata.gz: ecfe3b130d4d15de612a933bfded0d75a51d67f8
4
+ data.tar.gz: c639c759c13eca0e4fd094af0332d031c8584be7
5
5
  SHA512:
6
- metadata.gz: 0c69c02982a9f57b081b2983a6e5d83089c6012642425b83e4e82040fc7d16a8e7e5149c9aeee8bc027688a2e79af7c78f94444e57916ce04ca0a3dd04c59842
7
- data.tar.gz: 6fe0c0f5cca7f883ae8df2b3c95800df8e3bf0c747e64f7759dafe2529279b0262ad106aabe15c21c6ac7a7ffcf1b27de3809d73a9118aeb9f5ef6d4cb1fb40f
6
+ metadata.gz: 522ae7a1665f1c377cb2afb7dc753858e5f09a846d2db3d778242acf5dc7172701880098815f4d13b4f5c88f558249ea6ae0c7a9576948fdc3d48ca6ce8ffff2
7
+ data.tar.gz: 97b9fabe38d0ec04a03afb7932d6330b56a7b462b201f4aadc51d9aa3ae5244458a39b1b3b4e246d376555efc63cd3c428413a503df346d292c531b620e58972
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.5.20"
2
+ VERSION = "0.5.21"
3
3
  end
@@ -257,6 +257,8 @@ $default-rounded-corners-radius: 3px;
257
257
  color: color("text");
258
258
  font-size: $font-size-normal;
259
259
  min-height: $list-one-line-height;
260
+ padding-left: $spacing-small;
261
+ padding-right: $spacing-right;
260
262
  @include flex-parent-row();
261
263
  @include no-touch-highlight-color();
262
264
  @include transition(background-color 0.30s ease);
@@ -264,17 +266,17 @@ $default-rounded-corners-radius: 3px;
264
266
 
265
267
  @mixin list-item-icon() {
266
268
  color: color("icon");
267
- max-width: 56px;
268
- padding-left: $spacing-normal;
269
+ max-width: 64px;
270
+ padding-left: $spacing-small;
269
271
  text-align: center;
270
- width: 56px;
272
+ width: 64px;
271
273
  }
272
274
 
273
275
  @mixin list-item-primary() {
274
276
  color: color("text");
275
277
  flex: 1; // Fill space
276
278
  font-size: $font-size-normal;
277
- padding: $spacing-normal;
279
+ padding: $spacing-normal $spacing-small;
278
280
  }
279
281
 
280
282
  @mixin list-item-primary-supertext() {
@@ -293,8 +295,9 @@ $default-rounded-corners-radius: 3px;
293
295
 
294
296
  @mixin list-item-secondary() {
295
297
  color: color("helper");
296
- padding-right: $spacing-normal;
297
- text-align: right;
298
+ padding-left: $spacing-small;
299
+ padding-right: $spacing-small;
300
+ // text-align: right;
298
301
  }
299
302
 
300
303
  @mixin list-item-secondary-actions() {
@@ -2,75 +2,104 @@
2
2
  // Extends .list and .list-item in order to keep code DRY.
3
3
  //======================================================================
4
4
 
5
- // Box - base
6
- //----------------------------------------------------------------------
7
-
8
5
  .box {
9
6
  background-color: color("white");
10
7
  border: 1px solid color("divider");
11
- color: color("text");
12
- min-height: 0;
13
- padding: $spacing-normal 0; // box-primary has padding on L/R already
14
- @include flex-parent-row();
15
- @include rounded-corners;
8
+ @include rounded-corners();
16
9
  }
17
10
 
18
- // Box - icon
19
- //----------------------------------------------------------------------
11
+ .box-header {
12
+ background-color: color("grey-100");
13
+ border-bottom: 1px solid color("divider");
14
+ @include list-item();
15
+ }
20
16
 
21
- .box-icon {
17
+ .box-header-icon {
22
18
  @include list-item-icon();
23
- // color: color("icon");
24
- // font-size: $font-size-icon;
25
- // height: $list-item-icon-width;
26
- // line-height: $list-item-icon-width;
27
- // margin-left: $spacing-normal;
28
- // padding: 0;
29
- // text-align: center;
30
- // width: $list-item-icon-width;
31
- //
32
- // .icon {
33
- // color: color("icon");
34
- // font-size: $font-size-icon;
35
- // }
36
19
  }
37
20
 
38
- .box-icon-circle {
39
- background-color: color("icon");
40
- @include rounded-corners(50%);
41
-
42
- .icon {
43
- color: color("white");
44
- }
21
+ .box-header-primary {
22
+ font-weight: bold;
23
+ @include list-item-primary();
45
24
  }
46
25
 
47
- // Box - primary
48
- //----------------------------------------------------------------------
49
-
50
- .box-primary {
51
- @include list-item-primary();
52
- @include force-text-wrap();
26
+ .box-icon {
27
+ @include list-item-icon();
53
28
  }
54
29
 
55
- .box-primary-subtext {
56
- @include list-item-primary-subtext();
57
- @include force-text-wrap();
30
+ .box-content {
31
+ @include list-item-primary();
58
32
  }
59
33
 
60
- // Box - secondary
34
+ // Box - base
61
35
  //----------------------------------------------------------------------
62
36
 
63
- .box-secondary {
64
- @include list-item-secondary();
65
- }
37
+ // .box {
38
+ // background-color: color("white");
39
+ // border: 1px solid color("divider");
40
+ // color: color("text");
41
+ // min-height: 0;
42
+ // padding: $spacing-normal 0; // box-primary has padding on L/R already
43
+ // @include flex-parent-row();
44
+ // @include rounded-corners;
45
+ // }
66
46
 
67
- // Box - flat
47
+ // Box - icon
68
48
  //----------------------------------------------------------------------
69
49
 
70
- .box-flat {
71
- border: none;
72
- @include rounded-corners(0);
73
- }
50
+ // .box-icon {
51
+ // @include list-item-icon();
52
+ // // color: color("icon");
53
+ // // font-size: $font-size-icon;
54
+ // // height: $list-item-icon-width;
55
+ // // line-height: $list-item-icon-width;
56
+ // // margin-left: $spacing-normal;
57
+ // // padding: 0;
58
+ // // text-align: center;
59
+ // // width: $list-item-icon-width;
60
+ // //
61
+ // // .icon {
62
+ // // color: color("icon");
63
+ // // font-size: $font-size-icon;
64
+ // // }
65
+ // }
66
+ //
67
+ // .box-icon-circle {
68
+ // background-color: color("icon");
69
+ // @include rounded-corners(50%);
70
+ //
71
+ // .icon {
72
+ // color: color("white");
73
+ // }
74
+ // }
75
+ //
76
+ // // Box - primary
77
+ // //----------------------------------------------------------------------
78
+ //
79
+ // .box-primary {
80
+ // @include list-item-primary();
81
+ // @include force-text-wrap();
82
+ // }
83
+ //
84
+ // .box-primary-subtext {
85
+ // @include list-item-primary-subtext();
86
+ // @include force-text-wrap();
87
+ // }
88
+ //
89
+ // // Box - secondary
90
+ // //----------------------------------------------------------------------
91
+ //
92
+ // .box-secondary {
93
+ // @include list-item-secondary();
94
+ // }
95
+ //
96
+ // // Box - flat
97
+ // //----------------------------------------------------------------------
98
+ //
99
+ // .box-flat {
100
+ // border: none;
101
+ // @include rounded-corners(0);
102
+ // }
74
103
 
75
104
  // Box - custom boxes
76
105
  //----------------------------------------------------------------------
@@ -115,6 +115,19 @@
115
115
  border-top: none;
116
116
  }
117
117
 
118
+ // Cards - links in card
119
+ //----------------------------------------------------------------------
120
+
121
+ .card .link {
122
+ color: color("text");
123
+ text-decoration: none;
124
+
125
+ &:hover {
126
+ text-decoration: underline;
127
+ }
128
+ }
129
+
130
+
118
131
  // Card - image header
119
132
  // Using an image at top instead of header text
120
133
  //----------------------------------------------------------------------
@@ -4,12 +4,9 @@
4
4
  // <hr class="spacer large" />
5
5
  //======================================================================
6
6
 
7
- // Dividers - base
8
- //----------------------------------------------------------------------
9
-
10
7
  hr {
11
- height: 0;
12
- margin: $spacing-small 0;
8
+ height: 1px;
9
+ margin: ($spacing-normal / 2) 0;
13
10
 
14
11
  // Has a line
15
12
  &.divider {
@@ -23,51 +20,39 @@ hr {
23
20
  margin: $spacing-normal 0;
24
21
  }
25
22
 
26
- // No margins, totally flush against other containers
27
- &.flush {
28
- margin: 0;
29
- }
30
-
31
- &.xsmall {
32
- margin: $spacing-xsmall 0;
33
- }
34
-
35
- &.small {
36
- margin: $spacing-small 0;
37
- }
38
-
39
- &.large {
40
- margin: $spacing-large 0;
41
- }
23
+ &.xsmall { margin: ($spacing-xsmall / 2) 0; }
24
+ &.small { margin: ($spacing-small / 2) 0; }
25
+ &.large { margin: ($spacing-large / 2) 0; }
26
+ &.xlarge { margin: ($spacing-xlarge / 2) 0; }
42
27
 
43
- &.xlarge {
44
- margin: $spacing-xlarge 0;
45
- }
28
+ // No margins, totally flush against other containers
29
+ &.flush { margin: 0; }
46
30
  }
47
31
 
32
+ // WHAT ARE THESE USED FOR???
48
33
  // Label dividers
49
34
  //----------------------------------------------------------------------
50
35
 
51
- .label-divider {
52
- border-top: 1px solid #ccc;
53
- height: 0;
54
- margin: $spacing-large 0;
55
- position: relative;
56
- text-align: center;
57
- }
58
-
59
- .label-divider-text {
60
- $label-divider-text-width: 30px;
61
-
62
- background-color: #fff;
63
- color: #999;
64
- display: inline-block;
65
- height: $label-divider-text-width;
66
- line-height: $label-divider-text-width;
67
- padding: 0;
68
- position: relative;
69
- text-align: center;
70
- top: -16px;
71
- width: $label-divider-text-width;
72
- @include rounded-corners(50%);
73
- }
36
+ // .label-divider {
37
+ // border-top: 1px solid #ccc;
38
+ // height: 0;
39
+ // margin: $spacing-large 0;
40
+ // position: relative;
41
+ // text-align: center;
42
+ // }
43
+ //
44
+ // .label-divider-text {
45
+ // $label-divider-text-width: 30px;
46
+ //
47
+ // background-color: #fff;
48
+ // color: #999;
49
+ // display: inline-block;
50
+ // height: $label-divider-text-width;
51
+ // line-height: $label-divider-text-width;
52
+ // padding: 0;
53
+ // position: relative;
54
+ // text-align: center;
55
+ // top: -16px;
56
+ // width: $label-divider-text-width;
57
+ // @include rounded-corners(50%);
58
+ // }
@@ -74,7 +74,7 @@ ol {
74
74
  // Lists - links in text
75
75
  //----------------------------------------------------------------------
76
76
 
77
- .list-item .link {
77
+ .list .link {
78
78
  color: color("text");
79
79
  text-decoration: none;
80
80
 
@@ -174,6 +174,40 @@ ol {
174
174
 
175
175
  // background-color-white bordered-rounded list-divided
176
176
 
177
+ // List headers
178
+ //----------------------------------------------------------------------
179
+
180
+ .list-header {
181
+ background-color: color("grey-100");
182
+ border-bottom: 1px solid color("divider");
183
+ @include list-item();
184
+ }
185
+
186
+ .list-header-icon {
187
+ @include list-item-icon();
188
+ }
189
+
190
+ .list-header-primary {
191
+ font-weight: bold;
192
+ @include list-item-primary();
193
+ }
194
+
195
+ .list-header-primary-supertext {
196
+ @include list-item-primary-supertext();
197
+ }
198
+
199
+ .list-header-primary-subtext {
200
+ @include list-item-primary-subtext();
201
+ }
202
+
203
+ .list-header-secondary {
204
+ @include list-item-secondary();
205
+ }
206
+
207
+ .list-header-secondary-actions {
208
+ @include list-item-secondary-actions();
209
+ }
210
+
177
211
  // // Lists - header
178
212
  // //----------------------------------------------------------------------
179
213
  //
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.20
4
+ version: 0.5.21
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-02-07 00:00:00.000000000 Z
11
+ date: 2017-02-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