dlegr250_material_design 0.4.29 → 0.4.30

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: c1fb1bb6ebe67410bf1467c0563b973436a8ef63
4
- data.tar.gz: 0e3e0ea4b1f371b3f560b52b76b07f560dabf942
3
+ metadata.gz: bbcb2e3bd239ed324d6e67725c198aaf3e7af871
4
+ data.tar.gz: e37e4e268f5ffa5b0e11bfff0eea6cd7794a1e4a
5
5
  SHA512:
6
- metadata.gz: 2d6126a00e25dc4322c036d902ae66a8b906d38ccd1ee2a2b1744e509a5b27eb05963828d187aa0a12072040a189f4eb69ab972b1f85ebced6fce6bbdb9b1b01
7
- data.tar.gz: de7914980fc851b1418be3a445797a19e956bff62766364d5997536e7463b2339c043bc1aaf99a2062ab5c38c3d23a02bf6c62d62553416afa3ef6c512b5ca6c
6
+ metadata.gz: e73cf5e0e2e0abbb57c739f6da80858f45fb88161096a5ee66c97be38ee233773f49c8f06766b4387b2aacf19480022ba0f8b86ce7677dcc651db07e3c1fecb0
7
+ data.tar.gz: 2f9ca4d0fb4dd0e06dced17bfdd6e01ac3741239d0f879b01ad223660bde5b52b28760e52ad5a1fdfb72eea962795d9bfd2dfb7ac7ed2aae58e4b9941499fe9f
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.4.29"
2
+ VERSION = "0.4.30"
3
3
  end
@@ -103,15 +103,21 @@ $buttons: ".button";
103
103
  @include rounded-corners(50%);
104
104
  @include transition(background-color 0.30s ease, color 0.30s ease);
105
105
 
106
- &:hover,
107
- &.hover {
108
- background-color: color("hover");
109
- color: color("black");
106
+ &:active {
107
+ background-color: darken(color("hover"), 5%);
110
108
  }
109
+ }
111
110
 
112
- &:active,
113
- &.active {
114
- background-color: darken(color("hover"), 5%);
111
+ // Devices with pointers
112
+ @media (hover: hover) {
113
+ .button-icon {
114
+ &:hover {
115
+ background-color: color("hover");
116
+ }
117
+
118
+ &:active {
119
+ background-color: darken(color("hover"), 5%);
120
+ }
115
121
  }
116
122
  }
117
123
 
@@ -138,15 +144,21 @@ $buttons: ".button";
138
144
  background-color: $color;
139
145
  color: color("white");
140
146
 
141
- &:hover,
142
- &.hover {
143
- background-color: lighten($color, 10%);
147
+ &:active {
148
+ background-color: darken($color, 10%);
144
149
  }
150
+ }
145
151
 
146
- &:active,
147
- &.active {
148
- background: darken($color, 10%);
149
- color: color("white");
152
+ // Devices with pointers
153
+ @media (hover: hover) {
154
+ .button-icon-#{$color-name} {
155
+ &:hover {
156
+ background-color: lighten($color, 10%);
157
+ }
158
+
159
+ &:active {
160
+ background-color: darken($color, 10%);
161
+ }
150
162
  }
151
163
  }
152
164
  }
@@ -164,13 +176,11 @@ $buttons: ".button";
164
176
  }
165
177
  @include box-shadow(0 1px 2px 0 rgba(0, 0, 0, 0.4));
166
178
 
167
- &:hover,
168
- &.hover {
179
+ &:hover {
169
180
  background-color: lighten($color, 10%);
170
181
  }
171
182
 
172
- &:active,
173
- &.active {
183
+ &:active {
174
184
  background-color: darken($color, 5%);
175
185
  @include box-shadow(0 3px 12px 0 rgba(0, 0, 0, 0.5));
176
186
  }
@@ -185,8 +195,7 @@ $buttons: ".button";
185
195
  background-color: transparent;
186
196
  color: $color;
187
197
 
188
- &:hover,
189
- &.hover {
198
+ &:hover {
190
199
  @if $color-name == "grey" {
191
200
  background-color: rgba(0, 0, 0, 0.1);
192
201
  } @else {
@@ -194,8 +203,7 @@ $buttons: ".button";
194
203
  }
195
204
  }
196
205
 
197
- &:active,
198
- &.active {
206
+ &:active {
199
207
  @if $color-name == "grey" {
200
208
  background-color: rgba(0, 0, 0, 0.18);
201
209
  } @else {
@@ -260,14 +268,7 @@ $buttons: ".button";
260
268
  @include rounded-corners(250px);
261
269
  @include text-shadow(0 -1px 0 color("helper"));
262
270
 
263
- &:hover,
264
- &.hover {
265
- background-color: lighten($color, 5%);
266
- @include box-shadow(0 6px 12px 0 rgba(0, 0, 0, 0.5));
267
- }
268
-
269
- &:active,
270
- &.active {
271
+ &:active {
271
272
  background: darken($color, 10%);
272
273
  }
273
274
 
@@ -276,6 +277,19 @@ $buttons: ".button";
276
277
  width: $button-fab-mini-height;
277
278
  }
278
279
  }
280
+
281
+ @media (hover: hover) {
282
+ .fab-#{$color-name} {
283
+ &:hover {
284
+ background-color: lighten($color, 5%);
285
+ @include box-shadow(0 6px 12px 0 rgba(0, 0, 0, 0.5));
286
+ }
287
+
288
+ &:active {
289
+ background: darken($color, 10%);
290
+ }
291
+ }
292
+ }
279
293
  }
280
294
 
281
295
  // Position FAB buttons in bottom-right corner
@@ -91,7 +91,6 @@
91
91
  width: $appbar-button-height;
92
92
  text-align: center;
93
93
  text-decoration: none;
94
-
95
94
  @include no-touch-highlight-color();
96
95
  @include rounded-corners(250px);
97
96
  @include transition(background 0.2s ease-in-out);
@@ -101,9 +100,16 @@
101
100
  }
102
101
  }
103
102
 
103
+ // Devices with pointers
104
104
  @media (hover: hover) {
105
- .appbar-button:hover {
106
- background-color: darken($primary-color, 7%);
105
+ .appbar-button {
106
+ &:hover {
107
+ background-color: darken($primary-color, 7%);
108
+ }
109
+
110
+ &:active {
111
+ background-color: darken($primary-color, 12%);
112
+ }
107
113
  }
108
114
  }
109
115
 
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.29
4
+ version: 0.4.30
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-11-13 00:00:00.000000000 Z
11
+ date: 2016-11-14 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