zurui-sass-rails 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/MIT-LICENSE +0 -0
- data/README.md +21 -14
- data/lib/zurui-sass-rails.rb +0 -0
- data/lib/zurui-sass-rails/version.rb +1 -1
- data/vendor/assets/stylesheets/_zurui-sass.sass +1 -54
- data/vendor/assets/stylesheets/zurui-sass/README.md +17 -0
- data/vendor/assets/stylesheets/zurui-sass/_zurui-sass.scss +257 -0
- metadata +12 -10
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
ZTM0NjhlNDU4ZDE2Y2ZlNmY3YjgwNTBhODNhYzI1OGM2ODA0YjM4MjlhYTZm
|
10
|
-
NWNkOWRiM2QyNzJmNTZkOWVmMjUxOTVhZWQ3ODBmZTE3NDUxOWM2NGE4YWNm
|
11
|
-
YjA4OTk1NzFmZTdiN2M4OTNhYWZlM2M5NDE4OWQ3NGZiYjNkZDk=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OWUyMDVhZTI2Y2UyNDVkYTdmZThjNWI3MDhiYTc5NDIyMTI1YWE0MTVmNzNj
|
14
|
-
YjRkMDcwNTQ2OWUxZmZjMzFhNzk0MTcwZDdlNDVjNTM1ZTE0NmY1YTM2MzJl
|
15
|
-
MTg3NjgwMzdmZTcxMjQ2ZGM1ODEwZWZiNDdhYjI4ZDA4ODYxMzY=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 62fa28d1d3f8a77fafc592b861383a653e06b1fa
|
4
|
+
data.tar.gz: bf899bc5ef35f1c1f98749db261ef8481dacf98e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3dace5afca0ceccf6ec839176f751fe4f5184ea34f35aa67544e7d1b424991921961e44c8aa80a5b1586452c3d2ce8a72fe1f773b4abd7c8760d4220e17635d9
|
7
|
+
data.tar.gz: b604ee944bf62834c66038b34c988aadcd53ca545875ba5cf881911625c1bbe788e28050f0b194081924302691b158fa0ad452206383aaa19750051a8654941f
|
data/MIT-LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
[@ken_c_lo](https://twitter.com/ken_c_lo)さんの[ズルいデザインテクニック](https://speakerdeck.com/ken_c_lo/zurui-design)のMixinをまとめたGemです。
|
4
4
|
|
5
|
+
# Important Notice
|
6
|
+
|
7
|
+
今までcompassに依存した形でスタイルを実現していましたが、compass依存をなくしました。そのため、compass-rails等の導入は必要ありません。
|
8
|
+
|
5
9
|
## Installation
|
6
10
|
|
7
11
|
### Railsユーザー向け
|
@@ -9,36 +13,33 @@
|
|
9
13
|
1) 以下のコードを`Gemfile`に追加してください:
|
10
14
|
|
11
15
|
```ruby
|
12
|
-
|
13
|
-
|
14
|
-
gem 'compass-rails'
|
15
|
-
gem 'zurui-sass-rails'
|
16
|
-
end
|
16
|
+
gem 'sass-rails' # sassc-railsでもok
|
17
|
+
gem 'zurui-sass-rails'
|
17
18
|
```
|
18
19
|
|
19
20
|
2) 以下のコードを`application.css.sass`のようなファイルに追加して下さい:
|
20
21
|
|
21
22
|
```sass
|
22
|
-
@import compass/utilities
|
23
|
-
@import compass/css3
|
24
23
|
@import zurui-sass
|
25
24
|
```
|
26
25
|
|
27
26
|
3) Enjoy!
|
28
27
|
|
29
|
-
###
|
28
|
+
### Middlemanユーザー向け
|
29
|
+
|
30
|
+
https://github.com/mahm/zurui-sass-middleman をご利用下さい。
|
31
|
+
|
32
|
+
### 上記以外をお使いの方向け
|
30
33
|
|
31
34
|
1) 以下のコマンドを実行して、ローカルに`_zurui-sass.sass`をダウンロードして下さい:
|
32
35
|
|
33
36
|
```
|
34
|
-
curl https://raw.github.com/mahm/zurui-sass
|
37
|
+
curl https://raw.github.com/mahm/zurui-sass/_zurui-sass.scss > _zurui-sass.scss
|
35
38
|
```
|
36
39
|
|
37
|
-
2)
|
40
|
+
2) `_zurui-sass.sass`をインポートしてお使いください:
|
38
41
|
|
39
42
|
```sass
|
40
|
-
@import compass/utilities
|
41
|
-
@import compass/css3
|
42
43
|
@import zurui-sass
|
43
44
|
```
|
44
45
|
|
@@ -47,13 +48,19 @@ curl https://raw.github.com/mahm/zurui-sass-rails/master/vendor/assets/styleshee
|
|
47
48
|
|
48
49
|
## 使用例
|
49
50
|
|
51
|
+
### 最新版
|
52
|
+
|
53
|
+
- [Zurui Sass Sample for Rails5(Github)](http://github.com/mahm/zurui-sample-rails5)
|
54
|
+
|
55
|
+
### 過去のもの(そのうち消します)
|
56
|
+
|
50
57
|
- [Zurui Sass Sample](http://zurui-sample.herokuapp.com/)
|
51
58
|
- [Zurui Sass Sample(Github)](http://github.com/mahm/zurui-sample)
|
52
59
|
|
53
60
|
## Contributing
|
54
61
|
|
55
62
|
1. Fork it
|
56
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
63
|
+
2. Create your feature branch (`git checkout -b feature/my-new-feature`)
|
57
64
|
3. Commit your changes (`git commit -am 'Added some feature'`)
|
58
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
65
|
+
4. Push to the branch (`git push origin feature/my-new-feature`)
|
59
66
|
5. Create new Pull Request
|
data/lib/zurui-sass-rails.rb
CHANGED
File without changes
|
@@ -1,54 +1 @@
|
|
1
|
-
|
2
|
-
// Cheat lines
|
3
|
-
@mixin zurui-line-top($op1:.2,$op2:.3)
|
4
|
-
border-top: 1px solid rgba(0, 0, 0, $op1)
|
5
|
-
@include box-shadow(rgba(255, 255, 255, $op2) 0 1px 0 inset)
|
6
|
-
|
7
|
-
@mixin zurui-line-left($op1:.2,$op2:.3)
|
8
|
-
border-left: 1px solid rgba(0, 0, 0, $op1)
|
9
|
-
@include box-shadow(rgba(255, 255, 255, $op2) -1px 0 0)
|
10
|
-
|
11
|
-
@mixin zurui-line-right($op1:.2,$op2:.3)
|
12
|
-
border-right: 1px solid rgba(0, 0, 0, $op1)
|
13
|
-
@include box-shadow(rgba(255, 255, 255, $op2) -1px 0 0 inset)
|
14
|
-
|
15
|
-
@mixin zurui-line-bottom($op1:.2,$op2:.3)
|
16
|
-
border-bottom: 1px solid rgba(0, 0, 0, $op1)
|
17
|
-
@include box-shadow(rgba(255, 255, 255, $op2) 0 1px 0)
|
18
|
-
|
19
|
-
//--------------------------------------------------------------------------------
|
20
|
-
// Cheat font shadows
|
21
|
-
@mixin zurui-ts-000($op:.4)
|
22
|
-
text-shadow: 1px -1px rgba(0, 0, 0, $op)
|
23
|
-
|
24
|
-
@mixin zurui-ts-fff($op:.7)
|
25
|
-
text-shadow: -1px 1px rgba(255, 255, 255, $op)
|
26
|
-
|
27
|
-
//--------------------------------------------------------------------------------
|
28
|
-
// Cheat gradation
|
29
|
-
@mixin zurui-gradient-top-lighten($color:#666, $lighten:10%)
|
30
|
-
background-color: $color
|
31
|
-
@include filter-gradient(lighten($color, $lighten), $color, vertical)
|
32
|
-
@include background-image(linear-gradient(lighten($color, $lighten) 0%, $color 100%))
|
33
|
-
|
34
|
-
@mixin zurui-gradient-top-darken($color:#666, $darken:10%)
|
35
|
-
background-color: $color
|
36
|
-
@include filter-gradient(darken($color, $darken), $color, vertical)
|
37
|
-
@include background-image(linear-gradient(darken($color, $darken) 0%, $color 100%))
|
38
|
-
|
39
|
-
//--------------------------------------------------------------------------------
|
40
|
-
// Cheat box shadow
|
41
|
-
@mixin zurui-box-outer($op1:2px)
|
42
|
-
@include box-shadow(rgba(0, 0, 0, .15) 0 0 $op1)
|
43
|
-
|
44
|
-
@mixin zurui-box-inner($op1:20px)
|
45
|
-
@include box-shadow(rgba(0, 0, 0, .2) 0 0 $op1 inset)
|
46
|
-
|
47
|
-
@mixin zurui-box-deboss($border:.1, $shadow:.1, $highlight:1)
|
48
|
-
border: 1px solid rgba(0, 0, 0, $border)
|
49
|
-
@include box-shadow(rgba(0, 0, 0, $shadow) -1px 1px 2px inset, rgba(255, 255, 255, $highlight) -1px 1px 0)
|
50
|
-
|
51
|
-
@mixin zurui-box-emboss($border:.15, $shadow:.05, $highlight:1)
|
52
|
-
border: 1px solid rgba(0, 0, 0, $border)
|
53
|
-
@include box-shadow(rgba(0, 0, 0, $shadow) -1px 1px 0, rgba(255, 255, 255, $highlight) -1px 1px 0 inset)
|
54
|
-
|
1
|
+
@import zurui-sass/zurui-sass
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# zurui-sass
|
2
|
+
|
3
|
+
[@ken_c_lo](https://twitter.com/ken_c_lo)さんの[ズルいデザインテクニック](https://speakerdeck.com/ken_c_lo/zurui-design)のMixinをまとめたGemです。
|
4
|
+
|
5
|
+
## 使用例
|
6
|
+
|
7
|
+
- [Zurui Sass Sample](http://zurui-sample.herokuapp.com/)
|
8
|
+
- [Zurui Sass Sample(Github)](http://github.com/mahm/zurui-sample)
|
9
|
+
- [Zurui Sass Sample for Rails5(Github)](http://github.com/mahm/zurui-sample-rails5)
|
10
|
+
|
11
|
+
## Contributing
|
12
|
+
|
13
|
+
1. Fork it
|
14
|
+
2. Create your feature branch (`git checkout -b feature/my-new-feature`)
|
15
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
16
|
+
4. Push to the branch (`git push origin feature/my-new-feature`)
|
17
|
+
5. Create new Pull Request
|
@@ -0,0 +1,257 @@
|
|
1
|
+
//--------------------------------------------------------------------------------
|
2
|
+
// functions
|
3
|
+
@function compact($vars...) {
|
4
|
+
$separator: list-separator($vars);
|
5
|
+
$list: ();
|
6
|
+
@each $var in $vars {
|
7
|
+
@if $var {
|
8
|
+
$list: append($list, $var, $separator);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
@return $list;
|
12
|
+
}
|
13
|
+
|
14
|
+
@function first-value-of($list) {
|
15
|
+
@return nth($list, 1);
|
16
|
+
}
|
17
|
+
|
18
|
+
@function -compass-space-list($item1, $item2:null, $item3:null, $item4:null, $item5:null, $item6:null, $item7:null, $item8:null, $item9:null) {
|
19
|
+
$items: ();
|
20
|
+
// Support for polymorphism.
|
21
|
+
@if type-of($item1) == 'list' {
|
22
|
+
// Passing a single array of properties.
|
23
|
+
$items: $item1;
|
24
|
+
} @else {
|
25
|
+
$items: $item1 $item2 $item3 $item4 $item5 $item6 $item7 $item8 $item9;
|
26
|
+
}
|
27
|
+
|
28
|
+
$full: first-value-of($items);
|
29
|
+
|
30
|
+
@for $i from 2 through length($items) {
|
31
|
+
$item: nth($items, $i);
|
32
|
+
@if $item != null {
|
33
|
+
$full: $full $item;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
@return $full;
|
38
|
+
}
|
39
|
+
|
40
|
+
@function -compass-list-size($list) {
|
41
|
+
@return length($list);
|
42
|
+
}
|
43
|
+
|
44
|
+
@function prefixed($prefix, $property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
|
45
|
+
$properties: $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9;
|
46
|
+
$prefixed: false;
|
47
|
+
@each $item in $properties {
|
48
|
+
@if type-of($item) == 'string' {
|
49
|
+
$prefixed: $prefixed or str-index($item, 'url') != 1 and str-index($item, 'rgb') != 1 and str-index($item, '#') != 1;
|
50
|
+
} @elseif type-of($item) == 'color' {
|
51
|
+
} @elseif $item != null {
|
52
|
+
$prefixed: true;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
@return $prefixed;
|
56
|
+
}
|
57
|
+
|
58
|
+
@function prefix($prefix, $property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
|
59
|
+
$properties: "";
|
60
|
+
|
61
|
+
// Support for polymorphism.
|
62
|
+
@if type-of($property1) == 'list' {
|
63
|
+
// Passing a single array of properties.
|
64
|
+
$properties: $property1;
|
65
|
+
} @else {
|
66
|
+
// Passing multiple properties.
|
67
|
+
$properties: $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9;
|
68
|
+
}
|
69
|
+
|
70
|
+
$props: false;
|
71
|
+
@each $item in $properties {
|
72
|
+
@if $item == null {}
|
73
|
+
@else {
|
74
|
+
@if prefixed($prefix, $item) {
|
75
|
+
$item: #{$prefix}-#{$item};
|
76
|
+
}
|
77
|
+
@if $props {
|
78
|
+
$props: $props, $item;
|
79
|
+
}
|
80
|
+
@else {
|
81
|
+
$props: $item;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
@return $props;
|
86
|
+
}
|
87
|
+
|
88
|
+
@function -svg($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
|
89
|
+
@return prefix('-svg', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
|
90
|
+
}
|
91
|
+
|
92
|
+
@function -owg($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
|
93
|
+
@return prefix('-owg', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
|
94
|
+
}
|
95
|
+
|
96
|
+
@function -webkit($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
|
97
|
+
@return prefix('-webkit', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
|
98
|
+
}
|
99
|
+
|
100
|
+
@function -moz($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
|
101
|
+
@return prefix('-moz', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
|
102
|
+
}
|
103
|
+
|
104
|
+
@function -o($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
|
105
|
+
@return prefix('-o', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
|
106
|
+
}
|
107
|
+
|
108
|
+
@function -pie($property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
|
109
|
+
@return prefix('-pie', $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9);
|
110
|
+
}
|
111
|
+
|
112
|
+
//--------------------------------------------------------------------------------
|
113
|
+
// mix-ins
|
114
|
+
$experimental-support-for-mozilla: true !default;
|
115
|
+
$experimental-support-for-webkit: true !default;
|
116
|
+
$support-for-original-webkit-gradients: true !default;
|
117
|
+
$experimental-support-for-opera: true !default;
|
118
|
+
$experimental-support-for-microsoft: true !default;
|
119
|
+
$experimental-support-for-khtml: false !default;
|
120
|
+
$experimental-support-for-svg: false !default;
|
121
|
+
$experimental-support-for-pie: false !default;
|
122
|
+
|
123
|
+
@mixin experimental($property, $value,
|
124
|
+
$moz : $experimental-support-for-mozilla,
|
125
|
+
$webkit : $experimental-support-for-webkit,
|
126
|
+
$o : $experimental-support-for-opera,
|
127
|
+
$ms : $experimental-support-for-microsoft,
|
128
|
+
$khtml : $experimental-support-for-khtml,
|
129
|
+
$official : true
|
130
|
+
) {
|
131
|
+
@if $webkit and $experimental-support-for-webkit { -webkit-#{$property} : $value; }
|
132
|
+
@if $khtml and $experimental-support-for-khtml { -khtml-#{$property} : $value; }
|
133
|
+
@if $moz and $experimental-support-for-mozilla { -moz-#{$property} : $value; }
|
134
|
+
@if $ms and $experimental-support-for-microsoft { -ms-#{$property} : $value; }
|
135
|
+
@if $o and $experimental-support-for-opera { -o-#{$property} : $value; }
|
136
|
+
@if $official { #{$property} : $value; }
|
137
|
+
}
|
138
|
+
|
139
|
+
//--------------------------------------------------------------------------------
|
140
|
+
// box-shadow
|
141
|
+
$_zm-default-box-shadow-color: #333333 !default;
|
142
|
+
$_zm-default-box-shadow-h-offset: 0px !default;
|
143
|
+
$_zm-default-box-shadow-v-offset: 0px !default;
|
144
|
+
$_zm-default-box-shadow-blur: 5px !default;
|
145
|
+
$_zm-default-box-shadow-spread : false !default;
|
146
|
+
$_zm-default-box-shadow-inset : false !default;
|
147
|
+
|
148
|
+
@mixin _zm-box-shadow(
|
149
|
+
$shadow-1 : default,
|
150
|
+
$shadow-2 : false,
|
151
|
+
$shadow-3 : false,
|
152
|
+
$shadow-4 : false,
|
153
|
+
$shadow-5 : false,
|
154
|
+
$shadow-6 : false,
|
155
|
+
$shadow-7 : false,
|
156
|
+
$shadow-8 : false,
|
157
|
+
$shadow-9 : false,
|
158
|
+
$shadow-10: false
|
159
|
+
) {
|
160
|
+
@if $shadow-1 == default {
|
161
|
+
$shadow-1 : -compass-space-list(compact(if($_zm-default-box-shadow-inset, inset, false), $_zm-default-box-shadow-h-offset, $_zm-default-box-shadow-v-offset, $_zm-default-box-shadow-blur, $_zm-default-box-shadow-spread, $_zm-default-box-shadow-color));
|
162
|
+
}
|
163
|
+
$shadow : compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10);
|
164
|
+
@include experimental(box-shadow, $shadow,
|
165
|
+
-moz, -webkit, not(-o), not(-ms), not(-khtml), official
|
166
|
+
);
|
167
|
+
}
|
168
|
+
|
169
|
+
//--------------------------------------------------------------------------------
|
170
|
+
// images
|
171
|
+
@mixin _zm-background-image(
|
172
|
+
$image-1,
|
173
|
+
$image-2: false,
|
174
|
+
$image-3: false,
|
175
|
+
$image-4: false,
|
176
|
+
$image-5: false,
|
177
|
+
$image-6: false,
|
178
|
+
$image-7: false,
|
179
|
+
$image-8: false,
|
180
|
+
$image-9: false,
|
181
|
+
$image-10: false
|
182
|
+
) {
|
183
|
+
$images: compact($image-1, $image-2, $image-3, $image-4, $image-5, $image-6, $image-7, $image-8, $image-9, $image-10);
|
184
|
+
$add-pie-bg: prefixed(-pie, $images) or -compass-list-size($images) > 1;
|
185
|
+
|
186
|
+
@if $experimental-support-for-svg and prefixed(-svg, $images) { background-image: -svg($images); background-size: 100%; }
|
187
|
+
@if $support-for-original-webkit-gradients and prefixed(-owg, $images) { background-image: -owg($images); }
|
188
|
+
@if $experimental-support-for-webkit and prefixed(-webkit, $images) { background-image: -webkit($images); }
|
189
|
+
@if $experimental-support-for-mozilla and prefixed(-moz, $images) { background-image: -moz($images); }
|
190
|
+
@if $experimental-support-for-opera and prefixed(-o, $images) { background-image: -o($images); }
|
191
|
+
@if $experimental-support-for-pie and $add-pie-bg { @warn "PIE does not support background-image. Use @include background(#{$images}) instead." }
|
192
|
+
background-image: $images ;
|
193
|
+
}
|
194
|
+
|
195
|
+
//--------------------------------------------------------------------------------
|
196
|
+
// Cheat lines
|
197
|
+
@mixin zurui-line-top($op1:.2,$op2:.3) {
|
198
|
+
@include _zm-box-shadow(rgba(255, 255, 255, $op2) 0 1px 0 inset);
|
199
|
+
border-top: 1px solid rgba(0, 0, 0, $op1);
|
200
|
+
}
|
201
|
+
|
202
|
+
@mixin zurui-line-left($op1:.2,$op2:.3) {
|
203
|
+
@include _zm-box-shadow(rgba(255, 255, 255, $op2) -1px 0 0);
|
204
|
+
border-left: 1px solid rgba(0, 0, 0, $op1);
|
205
|
+
}
|
206
|
+
|
207
|
+
@mixin zurui-line-right($op1:.2,$op2:.3) {
|
208
|
+
@include _zm-box-shadow(rgba(255, 255, 255, $op2) -1px 0 0 inset);
|
209
|
+
border-right: 1px solid rgba(0, 0, 0, $op1);
|
210
|
+
}
|
211
|
+
|
212
|
+
@mixin zurui-line-bottom($op1:.2,$op2:.3) {
|
213
|
+
@include _zm-box-shadow(rgba(255, 255, 255, $op2) 0 1px 0);
|
214
|
+
border-bottom: 1px solid rgba(0, 0, 0, $op1);
|
215
|
+
}
|
216
|
+
|
217
|
+
//--------------------------------------------------------------------------------
|
218
|
+
// Cheat font shadows
|
219
|
+
@mixin zurui-ts-000($op:.4) {
|
220
|
+
text-shadow: 1px -1px rgba(0, 0, 0, $op);
|
221
|
+
}
|
222
|
+
|
223
|
+
@mixin zurui-ts-fff($op:.7) {
|
224
|
+
text-shadow: -1px 1px rgba(255, 255, 255, $op);
|
225
|
+
}
|
226
|
+
|
227
|
+
//--------------------------------------------------------------------------------
|
228
|
+
// Cheat gradation
|
229
|
+
@mixin zurui-gradient-top-lighten($color:#666, $lighten:10%) {
|
230
|
+
@include _zm-background-image(linear-gradient(lighten($color, $lighten) 0%, $color 100%));
|
231
|
+
background-color: $color;
|
232
|
+
}
|
233
|
+
|
234
|
+
@mixin zurui-gradient-top-darken($color:#666, $darken:10%) {
|
235
|
+
@include _zm-background-image(linear-gradient(darken($color, $darken) 0%, $color 100%));
|
236
|
+
background-color: $color;
|
237
|
+
}
|
238
|
+
|
239
|
+
//--------------------------------------------------------------------------------
|
240
|
+
// Cheat box shadow
|
241
|
+
@mixin zurui-box-outer($op1:2px) {
|
242
|
+
@include _zm-box-shadow(rgba(0, 0, 0, .15) 0 0 $op1);
|
243
|
+
}
|
244
|
+
|
245
|
+
@mixin zurui-box-inner($op1:20px) {
|
246
|
+
@include _zm-box-shadow(rgba(0, 0, 0, .2) 0 0 $op1 inset);
|
247
|
+
}
|
248
|
+
|
249
|
+
@mixin zurui-box-deboss($border:.1, $shadow:.1, $highlight:1) {
|
250
|
+
@include _zm-box-shadow(rgba(0, 0, 0, $shadow) -1px 1px 2px inset, rgba(255, 255, 255, $highlight) -1px 1px 0);
|
251
|
+
border: 1px solid rgba(0, 0, 0, $border);
|
252
|
+
}
|
253
|
+
|
254
|
+
@mixin zurui-box-emboss($border:.15, $shadow:.05, $highlight:1) {
|
255
|
+
@include _zm-box-shadow(rgba(0, 0, 0, $shadow) -1px 1px 0, rgba(255, 255, 255, $highlight) -1px 1px 0 inset);
|
256
|
+
border: 1px solid rgba(0, 0, 0, $border);
|
257
|
+
}
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zurui-sass-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mah_lab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
27
|
description: Sass mixins by zurui-design(https://speakerdeck.com/ken_c_lo/zurui-design)
|
@@ -31,11 +31,13 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- lib/zurui-sass-rails/version.rb
|
35
|
-
- lib/zurui-sass-rails.rb
|
36
|
-
- vendor/assets/stylesheets/_zurui-sass.sass
|
37
34
|
- MIT-LICENSE
|
38
35
|
- README.md
|
36
|
+
- lib/zurui-sass-rails.rb
|
37
|
+
- lib/zurui-sass-rails/version.rb
|
38
|
+
- vendor/assets/stylesheets/_zurui-sass.sass
|
39
|
+
- vendor/assets/stylesheets/zurui-sass/README.md
|
40
|
+
- vendor/assets/stylesheets/zurui-sass/_zurui-sass.scss
|
39
41
|
homepage: https://github.com/mahm/zurui-sass-rails
|
40
42
|
licenses: []
|
41
43
|
metadata: {}
|
@@ -45,17 +47,17 @@ require_paths:
|
|
45
47
|
- lib
|
46
48
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
49
|
requirements:
|
48
|
-
- -
|
50
|
+
- - ">="
|
49
51
|
- !ruby/object:Gem::Version
|
50
52
|
version: '0'
|
51
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
54
|
requirements:
|
53
|
-
- -
|
55
|
+
- - ">="
|
54
56
|
- !ruby/object:Gem::Version
|
55
57
|
version: '0'
|
56
58
|
requirements: []
|
57
59
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.
|
60
|
+
rubygems_version: 2.6.13
|
59
61
|
signing_key:
|
60
62
|
specification_version: 4
|
61
63
|
summary: Sass mixins by zurui-design(https://speakerdeck.com/ken_c_lo/zurui-design)
|