gem_liux1 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module GemLiux1
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
data/lib/gem_liux1.rb CHANGED
@@ -1,13 +1,12 @@
1
- require "gem_liux1/version"
2
- require "gem_liux1/v1"
1
+ require "compass"
3
2
 
4
3
  module GemLiux1
5
4
  module Init
6
5
  def base_directory(*subdirs)
7
- File.expand_path(File.join(File.dirname(__FILE__), "..", *subdirs))
6
+ File.expand_path(File.join(File.dirname(__FILE__), '..', "..", *subdirs))
8
7
  end
9
8
  module_function :base_directory
10
9
  end
11
10
  end
12
11
 
13
- GemLiux1::Init.base_directory("stylesheets/_mixin-css3.scss")
12
+ Compass::Frameworks.register("test2345",:test2345_directory => GemLiux1::Init.base_directory("stylesheets"))
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_liux1
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - a
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2016-02-25 00:00:00 Z
18
+ date: 2016-02-29 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -56,9 +56,7 @@ extra_rdoc_files: []
56
56
 
57
57
  files:
58
58
  - lib/gem_liux1.rb
59
- - lib/gem_liux1/v1.rb
60
59
  - lib/gem_liux1/version.rb
61
- - stylesheets/_mixin-css3.scss
62
60
  homepage: http://a.com
63
61
  licenses:
64
62
  - MIT
data/lib/gem_liux1/v1.rb DELETED
@@ -1,3 +0,0 @@
1
- module GemLiux1
2
- VE = "0.1.1"
3
- end
@@ -1,120 +0,0 @@
1
- //Բ��
2
- @mixin borderRadius($param){
3
- -webkit-border-radius: $param;
4
- -moz-border-radius: $param;
5
- border-radius: $param;
6
- }
7
-
8
- //���Խ���
9
- @mixin gra($begin,$end){
10
- zoom: 1;
11
- background-image: -webkit-gradient(linear, left top, left bottom, from($begin), to($end));
12
- background-image: -webkit-linear-gradient(top, $begin, $end);
13
- background-image: -moz-linear-gradient(top, $begin, $end);
14
- background-image: -ms-linear-gradient(top, $begin, $end);
15
- background-image: -o-linear-gradient(top, $begin, $end);
16
- background-image: linear-gradient(top, $begin, $end);
17
- filter: progid:DXImageTransform.Microsoft.gradient(startColorStr="#{ie-hex-str($begin)}", EndColorStr="#{ie-hex-str($end)}");
18
- }
19
-
20
- //����ɫ͸��
21
- @mixin opacityColor($color,$trans){
22
- $rgba: rgba($color, $trans);
23
- background: $rgba;
24
- filter: progid:DXImageTransform.Microsoft.gradient(startColorStr="#{ie-hex-str($rgba)}", EndColorStr="#{ie-hex-str($rgba)}");
25
- .ie9 &{
26
- filter: none;
27
- }
28
- }
29
-
30
- //png24����ͼƬ
31
- @mixin opacityImage($path){
32
- _background: none;
33
- _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=noscale, src="#{$path}");
34
- }
35
-
36
- //IE6����gif����ͼƬ
37
- @mixin opacityGif($path){
38
- _background-image: url("#{$path}");
39
- }
40
-
41
- //����ͼƬ����
42
- @mixin stretchedImage($path){
43
- background-size: 100% 100%;
44
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="#{$path}", sizingMethod="scale");
45
- -ms-filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="#{$path}", sizingMethod="scale");
46
- }
47
-
48
- //��ת
49
- @mixin rotate($degrees){
50
- zoom: 1;
51
- //-ms-filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=#{cos($degrees)}, M12=-#{sin($degrees)}, M21=#{sin($degrees)}, M22=#{cos($degrees)});
52
- //filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=#{cos($degrees)}, M12=-#{sin($degrees)}, M21=#{sin($degrees)}, M22=#{cos($degrees)});
53
- -moz-transform: rotate($degrees);
54
- -o-transform: rotate($degrees);
55
- -webkit-transform: rotate($degrees);
56
- -ms-transform: rotate($degrees);
57
- transform: rotate($degrees);
58
- }
59
-
60
- //��ת
61
- @mixin scale($x, $y){
62
- zoom: 1;
63
- -moz-transform: scale($x, $y);
64
- -o-transform: scale($x, $y);
65
- -webkit-transform: scale($x, $y);
66
- -ms-transform: scale($x, $y);
67
- transform: scale($x, $y);
68
- }
69
-
70
- @mixin flexbox(){
71
- display: -webkit-box;
72
- display: -moz-box;
73
- display: -ms-flexbox;
74
- display: box;
75
- box-orient: horizontal;
76
- }
77
-
78
- @mixin flexboxChild(){
79
- -webkit-box-flex: 1;
80
- -moz-box-flex: 1;
81
- -ms-flex: 1;
82
- box-flex: 1;
83
- }
84
-
85
- @mixin boxShadow($param){
86
- -moz-box-shadow: $param;
87
- -webkit-box-shadow: $param;
88
- box-shadow: $param;
89
- }
90
-
91
- @mixin boxShadowParameters($xNum,$yNum,$blurNum,$color,$style...){
92
- -webkit-box-shadow: $xNum $yNum $blurNum $color $style;
93
- -moz-box-shadow: $xNum $yNum $blurNum $color $style;
94
- -ms-box-shadow: $xNum $yNum $blurNum $color $style;
95
- -o-box-shadow: $xNum $yNum $blurNum $color $style;
96
- box-shadow: $xNum $yNum $blurNum $color $style;
97
- }
98
-
99
- @mixin hack($name, $value){
100
- -moz-#{$name}: $value;
101
- -webkit-#{$name}: $value;
102
- #{$name}: $value;
103
- }
104
-
105
- @mixin horizontalCenter{
106
- @include hack(box-align, center);
107
- @include hack(justify-content, center);
108
- }
109
-
110
- @mixin verticalCenter{
111
- @include hack(box-pack,center);
112
- @include hack(align-items,center);
113
- }
114
-
115
- @mixin setTransition($style,$time,$function:linear,$delay:0s){
116
- -webkit-transition:$style $time $function $delay;
117
- -moz-transition:$style $time $function $delay;
118
- -o-transition:$style $time $function $delay;
119
- transition:$style $time $function $delay;
120
- }