customize-rails 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbad92cfc6c1b11f3748cb45caa4f568d0470583
|
4
|
+
data.tar.gz: b5265f9d1244d8bdbec8b9dcaa4182b2709a9b19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55f86e55e5c8167a44daf809bc4927cdc25259cb8a8da026e3bdbbedb26a10fbcfdf8012645816dbfbf7b5e8329100ca901f346ddfad7f29777e9e7285ba893d
|
7
|
+
data.tar.gz: 4d1451f9b45cdd38eeba13b5dbb27fc70e82ee06f82baaebc7d228b595dcf075ed500a8204e8a8c965526e3ebc0e47c2d5edd589bb8ab133936e3efb5de0ca0b
|
@@ -14,6 +14,7 @@ $checkbox-base: map-merge($inputs, (
|
|
14
14
|
$checkbox-focus: $inputs-focus !default;
|
15
15
|
$checkbox-hover: $inputs-hover !default;
|
16
16
|
$checkbox: () !default;
|
17
|
+
$checkbox-checked: (color: map-get($inputs, color)) !default;
|
17
18
|
|
18
19
|
$checkbox: map-merge($checkbox-base, $checkbox);
|
19
20
|
$checkbox-focus: map-merge($inputs-focus, $checkbox-focus);
|
@@ -28,13 +29,12 @@ input[type=checkbox].checkbox {
|
|
28
29
|
@include properties($label-base);
|
29
30
|
|
30
31
|
&:before {
|
31
|
-
@include properties($checkbox);
|
32
|
-
color: transparent;
|
32
|
+
@include properties(map-merge($checkbox, (color: transparent)));
|
33
33
|
}
|
34
34
|
}
|
35
35
|
|
36
36
|
&:checked + label:before {
|
37
|
-
|
37
|
+
@include properties($checkbox-checked);
|
38
38
|
}
|
39
39
|
&:focus + label:before {
|
40
40
|
@include properties($checkbox-focus);
|
@@ -13,6 +13,7 @@ $input-invalid: map-merge($input-invalid-base, $input-invalid);
|
|
13
13
|
$input-focus-invalid: map-merge($input-focus-invalid-base, $input-focus-invalid);
|
14
14
|
$input-focus: map-merge($inputs-focus, $input-focus);
|
15
15
|
$input-hover: map-merge($inputs-hover, $input-hover);
|
16
|
+
$input-placeholder: (color: $gray) !default;
|
16
17
|
|
17
18
|
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), textarea {
|
18
19
|
@include properties($input);
|
@@ -20,6 +21,9 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
|
|
20
21
|
&:hover { @include properties($input-hover); }
|
21
22
|
&:invalid { @include properties($input-invalid); }
|
22
23
|
&:focus:invalid { @include properties($input-focus-invalid); }
|
24
|
+
&::-webkit-input-placeholder { @include properties($input-placeholder); }
|
25
|
+
&::-moz-placeholder { @include properties($input-placeholder); }
|
26
|
+
&:-ms-input-placeholder { @include properties($input-placeholder); }
|
23
27
|
}
|
24
28
|
|
25
29
|
input[type=file], input[type=color] {
|
@@ -1,16 +1,16 @@
|
|
1
1
|
$radio-base: map-merge($checkbox-base, (
|
2
2
|
content: '',
|
3
|
-
border-radius: 50
|
4
|
-
box-shadow: (inset 0 0 0 $radio-body-width map-get($inputs, background), map-get($inputs, box-shadow)),
|
3
|
+
border-radius: 50%
|
5
4
|
));
|
6
5
|
|
7
6
|
$radio-focus: $inputs-focus !default;
|
8
7
|
$radio-hover: $inputs-hover !default;
|
9
8
|
$radio: () !default;
|
10
9
|
|
11
|
-
$radio:
|
12
|
-
$radio-
|
13
|
-
$radio-
|
10
|
+
$radio: map-merge($radio-base, $radio);
|
11
|
+
$radio-checked: (background: map-get($radio, color)) !default;
|
12
|
+
$radio-focus: map-merge($inputs-focus, $radio-focus);
|
13
|
+
$radio-hover: map-merge($inputs-hover, $radio-hover);
|
14
14
|
|
15
15
|
input[type=radio].radio {
|
16
16
|
opacity: 0;
|
@@ -21,12 +21,11 @@ input[type=radio].radio {
|
|
21
21
|
@include properties($label-base);
|
22
22
|
|
23
23
|
&:before {
|
24
|
-
box-shadow: inset 0 0 0 $radio-body-width map-get($radio, background);
|
25
|
-
@include properties($radio)
|
24
|
+
@include properties(map-merge($radio, (box-shadow: inset 0 0 0 $radio-body-width map-get($radio, background))));
|
26
25
|
}
|
27
26
|
}
|
28
27
|
&:checked + label:before {
|
29
|
-
|
28
|
+
@include properties($radio-checked);
|
30
29
|
}
|
31
30
|
&:focus + label:before {
|
32
31
|
@include properties($radio-focus);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: customize-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- galulex
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|