dlegr250_material_design 0.3.21 → 0.3.22

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: a047c7426a21818c214ba0182d3450d34b218545
4
- data.tar.gz: 54f72b9053dc8d067b28f5bfeded1bf517cb6acc
3
+ metadata.gz: 995d825c7132b93b6a85df624ca0ec1531ea2e02
4
+ data.tar.gz: eafad027c40078dc71b1c22e80d99d4b0ffa5f26
5
5
  SHA512:
6
- metadata.gz: 47db106dad21183d66ecc5b74038c10c1e0ff2f40f1e22bc7c3eb0e878ae47a6fc4b609f88c8b039b12782ea116cc1d00fc44c32742fb7a379bcfea99f846aa0
7
- data.tar.gz: 75cb5554dca605f009a4608910987c07855a322a7009ab1c187350a45386ecebfdc5bb4677fed4b31484b2f7120a050d1979e81e9881e9b71717a464f940db66
6
+ metadata.gz: fdc9df07a4a2142ff2f5a240e9beb5d7a2b6016773e5911def6aa71e61a134c2bfa315377cfc0cbab61bc47df9a6bae6bbb52c7290e35ef4d0d82acea49b4ded
7
+ data.tar.gz: 25b6e514b5b3f90de850f72f278fb6dd3f2b02baab23250f21fd42777e0a14bd524c0fab23364c5033acaa5787ed0575df87ebc9b7113ccecf289dfc8706e600
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.3.21"
2
+ VERSION = "0.3.22"
3
3
  end
@@ -0,0 +1,89 @@
1
+ // Toggle - base container
2
+ //----------------------------------------------------------------------
3
+
4
+ .toggle-container {
5
+ display: inline-block;
6
+ font-size: 0; // To remove extra spacing from inline-block
7
+
8
+ // First element
9
+ .toggle:first-child {
10
+ margin-left: 0;
11
+
12
+ label {
13
+ @include rounded-left-corners;
14
+ }
15
+ }
16
+
17
+ // Last element
18
+ .toggle:last-child {
19
+ label {
20
+ border-right: 1px solid color("divider");
21
+ @include rounded-right-corners;
22
+ }
23
+ }
24
+ }
25
+
26
+ // Toggle - individual element
27
+ //----------------------------------------------------------------------
28
+
29
+ .toggle {
30
+ display: inline-block;
31
+ height: $button-height;
32
+
33
+ // Hide actual checkbox element
34
+ input {
35
+ // If you use 'display: none', TAB-ing will not work.
36
+ position: absolute;
37
+ left: -9999px;
38
+ }
39
+
40
+ label {
41
+ border: 1px solid color("divider");
42
+ box-sizing: border-box;
43
+ color: color("helper");
44
+ display: inline-block;
45
+ font-weight: normal;
46
+ height: $button-height;
47
+ line-height: $button-height;
48
+ min-width: 44px;
49
+ padding: 0 $spacing-small;
50
+ text-align: center;
51
+ @include transition(background-color 0.30s ease);
52
+ }
53
+
54
+ @media (min-width: $medium-width) {
55
+ label {
56
+ padding: 0 $spacing-normal;
57
+ }
58
+ }
59
+
60
+ // Mark focused element for visual aid with keyboard TAB nav
61
+ input:focus ~ label {
62
+ border-color: darken(color("primary"), 10%);
63
+ @include box-shadow(0 0 10px color("primary"));
64
+ }
65
+
66
+ // Mark selected label
67
+ input:checked ~ label {
68
+ background-color: color("primary");
69
+ color: color("white");
70
+ }
71
+ }
72
+
73
+ // Toggle - colored elements
74
+ //----------------------------------------------------------------------
75
+
76
+ @each $color-name, $color in $colors {
77
+ .toggle-#{$color-name} {
78
+ // Mark focused element for visual aid with keyboard TAB nav
79
+ input:focus ~ label {
80
+ border-color: darken($color, 10%);
81
+ @include box-shadow(0 0 10px $color);
82
+ }
83
+
84
+ input:checked ~ label {
85
+ background-color: $color;
86
+ color: color("white");
87
+ }
88
+ }
89
+ }
@@ -33,8 +33,8 @@
33
33
  @import "components/forms/labels";
34
34
  @import "components/forms/text_fields";
35
35
  @import "components/forms/selects";
36
- // @import "components/forms/toggles";
37
36
  @import "components/forms/switches";
37
+ @import "components/forms/toggles";
38
38
  @import "components/forms/radios";
39
39
  @import "components/forms/segmented_controls";
40
40
  @import "components/forms/helper_texts";
@@ -43,6 +43,8 @@
43
43
  }
44
44
 
45
45
  /* Rules for sizing the icon. */
46
+ .material-icons.md-10 { font-size: 10px; }
47
+ .material-icons.md-12 { font-size: 12px; }
46
48
  .material-icons.md-18 { font-size: 18px; }
47
49
  .material-icons.md-24 { font-size: 24px; }
48
50
  .material-icons.md-36 { font-size: 36px; }
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.3.21
4
+ version: 0.3.22
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-08-01 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -115,6 +115,7 @@ files:
115
115
  - vendor/assets/stylesheets/components/forms/selects.scss
116
116
  - vendor/assets/stylesheets/components/forms/switches.scss
117
117
  - vendor/assets/stylesheets/components/forms/text_fields.scss
118
+ - vendor/assets/stylesheets/components/forms/toggles.scss
118
119
  - vendor/assets/stylesheets/components/grids.scss
119
120
  - vendor/assets/stylesheets/components/lists.scss
120
121
  - vendor/assets/stylesheets/components/menus.scss