seeui 0.1.1.beta
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 +15 -0
- data/README.mkdn +0 -0
- data/lib/seeui.rb +28 -0
- data/stylesheets/_seeui.scss +11 -0
- data/stylesheets/seeui/_button.scss +37 -0
- data/stylesheets/seeui/_func.scss +223 -0
- data/stylesheets/seeui/_reset.scss +161 -0
- data/stylesheets/seeui/_ui-form.scss +58 -0
- data/stylesheets/seeui/_ui-refresh.scss +13 -0
- data/stylesheets/seeui/_ui-slider.gionee.scss +9 -0
- data/stylesheets/seeui/_ui-slider.scss +32 -0
- data/stylesheets/seeui/_ui-toolbar.gionee.scss +13 -0
- data/stylesheets/seeui/_ui-toolbar.scss +62 -0
- data/stylesheets/seeui/_vars.scss +54 -0
- data/templates/project/_seeui.scss +7 -0
- data/templates/project/manifest.rb +18 -0
- metadata +71 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MmJmY2ZlM2I0OThhZTFmOTI2Yjg1YWVmM2QyYTE3MmFkMDZiMWU4Yg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YjRkMjI4OTY2MzRmZGMxYzkwNWIxYmU0ZDIwNWNlOTFhMDJhMjk4NA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZGQ5MWEwZTJiMTljMTBiNjY3ODFiZWY5NDliMWNkN2U2MDRiMDI5NWJiNjg0
|
10
|
+
NDdmNWIwMDYzNzNjODJjM2U4ZTNiMDFiZGM4YTAzYTZlOGNhNzVhMjZkODVl
|
11
|
+
NTg4ODY5NGNkYjA3NmQwYTc2YmE2M2M2MjUxNzE4YzRlOGMxNDE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzE0YmY3YzE3Y2E4ZDkwOWFjZWIwZWNjNjM2OGZmOTJjNDdlYTUzMmVmZTMw
|
14
|
+
OWM3NTNhYmNhM2JiOGVhM2ExODFiNGNiNGQ2Yjc0NGNlODI1MGVjM2EwNjU4
|
15
|
+
Njg1NDNlZWVhNjU5ZjQ1ZWU0MWRjOTg5OWJmYWYzMjYyM2VkYmQ=
|
data/README.mkdn
ADDED
File without changes
|
data/lib/seeui.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# If you'd like to store your stylesheets and/or templates in a non-standard location within your extension,
|
2
|
+
# you must provide a library file and register the extension explicitly like so:
|
3
|
+
|
4
|
+
#base_directory = File.join(File.dirname(__FILE__), '..')
|
5
|
+
#stylesheets_dir = File.join(base_directory, 'seeui', 'stylesheets')
|
6
|
+
#templates_dir = File.join(base_directory, 'seeui', 'templates')
|
7
|
+
#Compass::Frameworks.register('seeui', :stylesheets_directory => stylesheets_dir, :templates_directory => templates_dir)
|
8
|
+
|
9
|
+
#If you're following the standard naming convention,
|
10
|
+
#but the stylesheet and template directories are not at the top level, you can just do this instead:
|
11
|
+
|
12
|
+
# path from the library file to where you're keeping your compass stuff.
|
13
|
+
#base_directory = File.join(File.dirname(__FILE__), '..', 'compass')
|
14
|
+
#Compass::Frameworks.register('seeui', :path => base_directory)
|
15
|
+
|
16
|
+
#require 'compass'
|
17
|
+
#extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
18
|
+
#Compass::Frameworks.register('seeui', :path => extension_path)
|
19
|
+
|
20
|
+
require 'compass'
|
21
|
+
Compass::Frameworks.register("seeui", :path => "#{File.dirname(__FILE__)}/..")
|
22
|
+
|
23
|
+
module Seeui
|
24
|
+
|
25
|
+
VERSION = "0.1"
|
26
|
+
DATE = "2013-06-01"
|
27
|
+
|
28
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
2
|
+
// https://github.com/ericam
|
3
|
+
@import "compass/css3";
|
4
|
+
@import "seeui/reset";
|
5
|
+
@import "seeui/vars";
|
6
|
+
@import "seeui/func";
|
7
|
+
@import "seeui/ui-refresh";
|
8
|
+
@import "seeui/ui-slider";
|
9
|
+
@import "seeui/ui-slider.gionee";
|
10
|
+
@import "seeui/ui-toolbar";
|
11
|
+
@import "seeui/ui-toolbar.gionee";
|
@@ -0,0 +1,37 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/**
|
3
|
+
* --------------------------------------------------------------------------
|
4
|
+
* ++ 按钮基本样式 STYLE
|
5
|
+
* 调用时只需添加对应的类到html结构中(例如:<a href="#" class="btn-gray"></a>)
|
6
|
+
* -------------------------------------------------------------------------
|
7
|
+
*/
|
8
|
+
.ui-button{
|
9
|
+
display:inline-block; border:1px solid #D2D2D2; padding:3*$px 4*$px; cursor:pointer;
|
10
|
+
text-decoration:none; color:#333; font-size:14*$font-x;
|
11
|
+
@include border-radius(2*$px);
|
12
|
+
@include box-sizing(border-box);
|
13
|
+
-webkit-appearance:none;
|
14
|
+
-webkit-user-select:none;
|
15
|
+
}
|
16
|
+
|
17
|
+
.com-btn{
|
18
|
+
display:inline-block; padding:8*$px 20*$px; border:1px #D4D5D6 solid; cursor:pointer;
|
19
|
+
text-align:center; vertical-align:middle; color:#646464;
|
20
|
+
@include border-radius(2px);
|
21
|
+
@include box-sizing(border-box);
|
22
|
+
@include text-shadow(0 -1px 0 $text-shadow-color);
|
23
|
+
@include lg(top,$standard-linear-l,$standard-linear-r);
|
24
|
+
&:active{@include lg(top,$standard-linear-r,$standard-linear-l);}
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
.button{
|
29
|
+
text-align:center; margin:10*$px 0;
|
30
|
+
.btn-gray{
|
31
|
+
@extend .com-btn;
|
32
|
+
}
|
33
|
+
|
34
|
+
.btn-top{
|
35
|
+
@extend .com-btn;
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,223 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
@mixin arrow($wh:5px,$mrt:0,$posr:10px,$bw:2px,$bc:#7e7e7e,$der:left){
|
4
|
+
/**
|
5
|
+
* 自定义方向小箭头
|
6
|
+
*
|
7
|
+
* @param $wh 宽度和高度
|
8
|
+
* @param $mrt margin-top位置
|
9
|
+
* @param $posr postion right位置
|
10
|
+
* @param $bw 边框宽度
|
11
|
+
* @param $bc 边框颜色
|
12
|
+
* @param $der 箭头方向
|
13
|
+
*/
|
14
|
+
&::after{
|
15
|
+
content:''; display:block; position:absolute; top:50%; margin-top:-$wh/2;
|
16
|
+
width:$wh; height:$wh;
|
17
|
+
border:1px $bc solid; border-width:$bw 0 0 $bw;
|
18
|
+
|
19
|
+
@if ($der == top){
|
20
|
+
@include transform(rotate(45deg));
|
21
|
+
}
|
22
|
+
@else if($der == right){
|
23
|
+
right:$posr; margin-top:$mrt;
|
24
|
+
@include transform(rotate(45deg+90));
|
25
|
+
}
|
26
|
+
@else if($der == bottom){
|
27
|
+
right:$posr; margin-top:$mrt;
|
28
|
+
@include transform(rotate(45deg+180));
|
29
|
+
}
|
30
|
+
@else if($der == left){
|
31
|
+
left:50%; margin-left:-$wh/2;
|
32
|
+
@include transform(rotate(45deg+-90));
|
33
|
+
}
|
34
|
+
}
|
35
|
+
};
|
36
|
+
|
37
|
+
@mixin lg($dir, $col1, $col2){background-color:$col2; @include background-image(linear-gradient($dir, $col1, $col2));}
|
38
|
+
|
39
|
+
@mixin in-top-panel{
|
40
|
+
/**
|
41
|
+
* --------------------------------------------------------------------------
|
42
|
+
* ++ 页面顶部带返回功能的panel基本样式 STYLE
|
43
|
+
* -------------------------------------------------------------------------
|
44
|
+
*/
|
45
|
+
#header{
|
46
|
+
.m-nav{
|
47
|
+
height:44*$px; display:-webkit-box; -webkit-box-align:center; background:#dedede;
|
48
|
+
& section{
|
49
|
+
&:nth-child(1){
|
50
|
+
min-width:44*$px;
|
51
|
+
.back{width:44*$px; height:44*$px; text-indent:-9999*$px; overflow:hidden;@include arrow($wh:8px,$bw:3px,$der:left);}
|
52
|
+
.back:active{background:rgba(0,0,0,.5);}
|
53
|
+
}
|
54
|
+
&:nth-child(2){
|
55
|
+
-webkit-box-flex:1; text-align:center;
|
56
|
+
span{display:block; padding:0 10*$px; font-size:18*$font-x; font-weight:bold; color:#333; white-space:nowrap; text-overflow:ellipsis; overflow:hidden;}
|
57
|
+
}
|
58
|
+
&:nth-child(3){min-width:44*$px;}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
@mixin in-bottom-panel(){
|
65
|
+
/**
|
66
|
+
* --------------------------------------------------------------------------
|
67
|
+
* ++ 页面底部版权信息的panel基本样式 STYLE
|
68
|
+
* -------------------------------------------------------------------------
|
69
|
+
*/
|
70
|
+
#footer{
|
71
|
+
.button .btn-top{width:70%;}
|
72
|
+
.copyright{text-align:center; font-size:12*$font-x; line-height:150%;}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
@mixin in-tab(){
|
77
|
+
/**
|
78
|
+
* --------------------------------------------------------------------------
|
79
|
+
* ++ TAB切换效果基本样式 STYLE
|
80
|
+
* -------------------------------------------------------------------------
|
81
|
+
*/
|
82
|
+
#in-tab{
|
83
|
+
height:44*$px; font-size:$big-font-size;
|
84
|
+
ul li{display:inline-block; float:left; width:25%; overflow:hidden;}
|
85
|
+
ul li .tab-inner{text-align:center; height:44*$px; line-height:44*$px;}
|
86
|
+
ul li.selected .tab-inner{border-bottom-color:#FF7E00;}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
@mixin in-slider($pic-normal-width:auto,$pic-normal-height:auto,$handle:0){
|
91
|
+
/**
|
92
|
+
* --------------------------------------------------------------------------
|
93
|
+
* ++ 图片效果基本样式 STYLE
|
94
|
+
* -------------------------------------------------------------------------
|
95
|
+
*/
|
96
|
+
.in-slider{
|
97
|
+
position:relative; width:$pic-normal-width; height:$pic-normal-height; margin:0 auto; overflow:hidden;
|
98
|
+
.in-slider-cont{
|
99
|
+
height:100%; position:relative; overflow:hidden;
|
100
|
+
ul{display:-webkit-box; -webkit-box-align:center;}
|
101
|
+
ul li{
|
102
|
+
overflow:hidden; width:$pic-normal-width; height:$pic-normal-height;
|
103
|
+
}
|
104
|
+
img{width:100%; height:auto;}
|
105
|
+
}
|
106
|
+
|
107
|
+
.in-slider-status{
|
108
|
+
position:absolute; bottom:0; width:100%; height:3px; background:rgba(51,51,51,0.5); display:-webkit-box;
|
109
|
+
span{display:block; -webkit-box-flex:1; height:100%; overflow:hidden;}
|
110
|
+
span.on{background:#FF7E00;}
|
111
|
+
}
|
112
|
+
|
113
|
+
/*.in-slider-prev,.in-slider-next{}
|
114
|
+
.in-slider-prev{}
|
115
|
+
.in-slider-next{}*/
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
@mixin in-form(){
|
120
|
+
/**
|
121
|
+
* --------------------------------------------------------------------------
|
122
|
+
* ++ Form表单基本样式 STYLE
|
123
|
+
* -------------------------------------------------------------------------
|
124
|
+
*/
|
125
|
+
.in-form{
|
126
|
+
margin:10*$px auto 0; width:80%; text-align:center; color:$text-form-color;
|
127
|
+
input[type="text"],input[type="password"],input[type="email"],input[type="tel"],input[type="number"],input[type="search"],select{
|
128
|
+
width:100%; height:40*$px; padding:0 10*$px;
|
129
|
+
-webkit-appearance:none; border:none; background:white; margin:0;
|
130
|
+
box-sizing:border-box; @include lg(top,#F4F4F4,#FFF);
|
131
|
+
}
|
132
|
+
|
133
|
+
& .form-field{
|
134
|
+
margin-bottom:10*$px;
|
135
|
+
}
|
136
|
+
|
137
|
+
& .form-input, & .form-select{
|
138
|
+
display:-webkit-box; -webkit-box-align:center;
|
139
|
+
section:nth-child(1){
|
140
|
+
min-width:60*$px; text-align:right;
|
141
|
+
}
|
142
|
+
section:nth-child(2){
|
143
|
+
-webkit-box-flex:1;
|
144
|
+
}
|
145
|
+
input:focus{
|
146
|
+
background:#FFF;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
& .form-text{
|
151
|
+
input{
|
152
|
+
border:1px solid #e3e3e3; border-top:none; width:100%; padding:0 5*$px;
|
153
|
+
@include border-radius(2px);
|
154
|
+
@include box-shadow(0 -1px 0 #e3e3e3 inset);
|
155
|
+
@include box-shadow(0 1px 0 #adadad inset);
|
156
|
+
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
& .form-radio{
|
161
|
+
input[type="radio"],input[type="radio"] + label{
|
162
|
+
float:left; line-height:1.5;
|
163
|
+
}
|
164
|
+
|
165
|
+
& span{
|
166
|
+
margin-right:10*$px; display:inline-block;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
& .form-select{
|
171
|
+
section:nth-child(2){
|
172
|
+
@include arrow($wh:5px,$mrt:-4px,$bw:2px,$der:bottom);
|
173
|
+
}
|
174
|
+
select{
|
175
|
+
border:1px solid #e3e3e3; border-top:none; width:100%; padding:0 5*$px;
|
176
|
+
@include border-radius(2px);
|
177
|
+
@include box-shadow(0 -1px 0 #e3e3e3 inset);
|
178
|
+
@include box-shadow(0 1px 0 #adadad inset);
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
@mixin com-button(){
|
186
|
+
/**
|
187
|
+
* --------------------------------------------------------------------------
|
188
|
+
* ++ 按钮基本样式 STYLE
|
189
|
+
* -------------------------------------------------------------------------
|
190
|
+
*/
|
191
|
+
.com-btn{
|
192
|
+
display:inline-block; padding:8*$px 20*$px; border:1px #D4D5D6 solid; cursor:pointer;
|
193
|
+
text-align:center; vertical-align:middle; color:#646464;
|
194
|
+
@include border-radius(2px);
|
195
|
+
@include box-sizing(border-box);
|
196
|
+
@include text-shadow(0 -1px 0 $text-shadow-color);
|
197
|
+
@include lg(top,$standard-linear-l,$standard-linear-r);
|
198
|
+
&:active{@include lg(top,$standard-linear-r,$standard-linear-l);}
|
199
|
+
}
|
200
|
+
|
201
|
+
|
202
|
+
.button{
|
203
|
+
text-align:center; margin:10*$px 0;
|
204
|
+
.btn-gray{
|
205
|
+
@extend .com-btn;
|
206
|
+
}
|
207
|
+
|
208
|
+
.btn-top{
|
209
|
+
@extend .com-btn;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
@mixin com-list(){
|
218
|
+
/**
|
219
|
+
* --------------------------------------------------------------------------
|
220
|
+
* ++ 列表基本样式 STYLE
|
221
|
+
* -------------------------------------------------------------------------
|
222
|
+
*/
|
223
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
@mixin GIONEE_WEBSITE_REST($MODEL){
|
3
|
+
@if ($MODEL == REST_ENV_PX){
|
4
|
+
//完全采用Pixel方式
|
5
|
+
@include GIONEE_REST_ENV_PX();
|
6
|
+
}
|
7
|
+
@else if ($MODEL == REST_ENV_REM){
|
8
|
+
//完全采用REM等比缩放方式
|
9
|
+
@include GIONEE_REST_ENV_REM();
|
10
|
+
}
|
11
|
+
@else if ($MODEL == REST_ENV_PC){
|
12
|
+
//兼容PC端多浏览器模式下的全新方式
|
13
|
+
@include GIONEE_REST_ENV_PC();
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin GIONEE_REST_ENV_PX(){
|
18
|
+
body,div,p,form,input,h1,h2,h3,h4,h5,ul,ol,li,dl,dt,dd,table,tbody,tr,td,textarea,img,iframe,figure{margin:0; padding:0; list-style:none; vertical-align:middle;}
|
19
|
+
body{font-size:14px/1.5; font-family:"\5FAE\8F6F\96C5\9ED1",Helvetica,Arial; color:#000; -webkit-user-select:none; -webkit-text-size-adjust:none;}
|
20
|
+
*{-webkit-tap-highlight-color:rgba(0,0,0,0);}
|
21
|
+
img{border:0; -webkit-touch-callout:none;} a,*[onclick]{-webkit-tap-highlight-color:rgba(0,0,0,0); text-decoration:none; color:#000;}
|
22
|
+
|
23
|
+
.clearfix::after{visibility:hidden; display:block; font-size:0; content:" "; clear:both; height:0;}
|
24
|
+
|
25
|
+
.no-flick{
|
26
|
+
//解决css3动画引起页面图片及文字抖动问题
|
27
|
+
-moz-backface-visibility: hidden; /* Firefox */
|
28
|
+
-webkit-backface-visibility:hidden; /* Chrome and Safari */
|
29
|
+
-webkit-transform-style:preserve-3d;
|
30
|
+
backface-visibility: hidden;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
@mixin GIONEE_REST_ENV_REM(){
|
35
|
+
/*
|
36
|
+
* 1rem=20px for 320px(中低端分辨率).
|
37
|
+
* 1rem=22.5px for 360px(高端分辨率).
|
38
|
+
*/
|
39
|
+
html{font-size:20px; -webkit-text-size-adjust:none;}
|
40
|
+
@media all and (min-width:359px){.uc-hack{font-size:22.5px;}}
|
41
|
+
@media all and (min-width:359px) and (-webkit-min-device-pixel-ratio:1.5){html{font-size:22.5px;}}
|
42
|
+
/* @media all and (min-width:359px) and (-webkit-min-device-pixel-ratio:1.5) and (orientation:landscape){html{font-size:14px;}}
|
43
|
+
@media all and (max-width:320px) and (-webkit-device-pixel-ratio:1.5) and (orientation:landscape){html{font-size:14px;}} */
|
44
|
+
body{font:1rem/1 "\5FAE\8F6F\96C5\9ED1","\5b8b\4f53",Tahoma,Helvetica,Arial,sans-serif;}
|
45
|
+
|
46
|
+
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,dl,dt,dd,ol,ul,li,
|
47
|
+
a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,
|
48
|
+
s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,
|
49
|
+
fieldset,form,label,legend,able,caption,tbody,tfoot,thead,tr,th,td,
|
50
|
+
article,aside,canvas,details,embed,figure,figcaption,footer,header,
|
51
|
+
hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0; padding:0; -webkit-tap-highlight-color:rgba(0,0,0,0);}
|
52
|
+
|
53
|
+
fieldset,img{border:none;}
|
54
|
+
img{width:100%; max-width:16rem; height:auto;}
|
55
|
+
a{text-decoration:none;}
|
56
|
+
a, a:active{color:#333;}
|
57
|
+
|
58
|
+
address,caption,cite,code,dfn,em,th,var{font-style:normal; font-weight:normal;}
|
59
|
+
ul,ol,dl,li,dt,dd{list-style:none;}
|
60
|
+
h1,h2,h3,h4,h5,h6{font-size:1rem; font-weight:normal;}
|
61
|
+
q:before,q:after{content:"";}
|
62
|
+
abbr,acronym{border:none; font-variant:normal;}
|
63
|
+
|
64
|
+
/* to preserve line-height and selector appearance */
|
65
|
+
sup{vertical-align:text-top;}
|
66
|
+
sub{vertical-align:text-bottom;}
|
67
|
+
|
68
|
+
a:focus, input, textarea{outline:none; border:0;}
|
69
|
+
input,button,textarea,select{font-family:inherit; font-size:inherit; font-weight:inherit; outline:none;}
|
70
|
+
img,input,button,select{vertical-align:middle;}
|
71
|
+
textarea{resize:none;}
|
72
|
+
|
73
|
+
/* fixed-width elements */
|
74
|
+
pre,code,kbd,samp,tt{font-family:"CourierNew",Courier,monospace;}
|
75
|
+
|
76
|
+
/* reset HTML5 elements */
|
77
|
+
mark{background:#ff0;}
|
78
|
+
|
79
|
+
/* the dead elements */
|
80
|
+
s,u{text-decoration:none;}
|
81
|
+
b{font-weight:normal;}
|
82
|
+
i{font-style:normal;}
|
83
|
+
|
84
|
+
/***********************************************
|
85
|
+
* Common Class
|
86
|
+
***********************************************/
|
87
|
+
.hidden{display:none;}
|
88
|
+
.invisible{visibility:hidden;}
|
89
|
+
|
90
|
+
.floatleft{float:left !important;}
|
91
|
+
.floatright{float:right !important;}
|
92
|
+
|
93
|
+
.clearfix:after{content:"\0020"; display:block; height:0; clear:both;}
|
94
|
+
.clear{clear:both;}
|
95
|
+
.oz{overflow:hidden;}
|
96
|
+
}
|
97
|
+
|
98
|
+
@mixin GIONEE_REST_ENV_PC(){
|
99
|
+
//暂时放置 未优化时本地REST
|
100
|
+
/*CSS Reset*/
|
101
|
+
*{margin:0; padding:0;}
|
102
|
+
//*{-webkit-tap-highlight-color:rgba(0,0,0,0);}
|
103
|
+
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,textarea,select,optgroup,option,fieldset,legend,p,blockquote,th,td{
|
104
|
+
-webkit-tap-highlight-color:rgba(0,0,0,0);
|
105
|
+
-webkit-user-select: none;
|
106
|
+
-webkit-touch-callout: none;
|
107
|
+
}
|
108
|
+
input,button,textarea,select,optgroup,option {
|
109
|
+
font-family: inherit;
|
110
|
+
font-size: inherit;
|
111
|
+
font-style: inherit;
|
112
|
+
font-weight: inherit;
|
113
|
+
color: inherit;
|
114
|
+
}
|
115
|
+
article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary {
|
116
|
+
display:block;-webkit-tap-highlight-color:rgba(0,0,0,0);
|
117
|
+
}
|
118
|
+
|
119
|
+
table{border-collapse: collapse;border-spacing: 0;}
|
120
|
+
h1,h2,h3,h4,h5,h6{font-size: 100%;}
|
121
|
+
ul,ol,li{list-style: none;}
|
122
|
+
em,i{font-style:normal;}
|
123
|
+
img{border:none;}
|
124
|
+
input,img{vertical-align:middle;}
|
125
|
+
a{text-decoration:none;}
|
126
|
+
|
127
|
+
//html{font-size:100%;overflow-y:scroll;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}
|
128
|
+
|
129
|
+
/*
|
130
|
+
* 1rem=20px for 320px(中低端分辨率).
|
131
|
+
* 1rem=22.5px for 360px(高端分辨率).
|
132
|
+
*/
|
133
|
+
// html{font-size:20px; -webkit-text-size-adjust:none;}
|
134
|
+
// @media all and (min-width:359px){.uc-hack{font-size:22.5px;}}
|
135
|
+
// @media all and (min-width:359px) and (-webkit-min-device-pixel-ratio:1.5){html{font-size:22.5px;}}
|
136
|
+
// @media all and (min-width:359px) and (-webkit-min-device-pixel-ratio:1.5) and (orientation:landscape){html{font-size:14px;}}
|
137
|
+
// @media all and (max-width:320px) and (-webkit-device-pixel-ratio:1.5) and (orientation:landscape){html{font-size:14px;}}
|
138
|
+
//body{font:1rem/1 "\5FAE\8F6F\96C5\9ED1","\5b8b\4f53","微软雅黑E软雅黑6F\96C5\9ED1",Helvetica;}
|
139
|
+
body{
|
140
|
+
font:1rem/1 "\5FAE\8F6F\96C5\9ED1","\5b8b\4f53","微软雅黑E软雅黑6F\96C5\9ED1",Helvetica;
|
141
|
+
-webkit-user-select:none;
|
142
|
+
-webkit-text-size-adjust:none;
|
143
|
+
}
|
144
|
+
|
145
|
+
@media all and (min-width:360px){.uc-hack{font-size:15px;}}
|
146
|
+
@media all and (min-width:360px) and (-webkit-device-pixel-ratio:2){html{font-size:15px;}}
|
147
|
+
|
148
|
+
.none{display:none;}
|
149
|
+
.no-spacing{margin:0; padding:0;}
|
150
|
+
.margin-center{margin:0 auto; text-align:center;}
|
151
|
+
|
152
|
+
.clearfix::after {visibility:hidden; display:block; font-size:0; content:" "; clear:both; height:0;}
|
153
|
+
|
154
|
+
.no-flick{
|
155
|
+
//解决css3动画引起页面图片及文字抖动问题
|
156
|
+
-moz-backface-visibility: hidden; /* Firefox */
|
157
|
+
-webkit-backface-visibility:hidden; /* Chrome and Safari */
|
158
|
+
-webkit-transform-style:preserve-3d;
|
159
|
+
backface-visibility: hidden;
|
160
|
+
}
|
161
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
.ui-form{
|
2
|
+
margin:10*$px auto 0; width:80%; text-align:center; color:$text-form-color;
|
3
|
+
input[type="text"],input[type="password"],input[type="email"],input[type="tel"],input[type="number"],input[type="search"],select{
|
4
|
+
width:100%; height:40*$px; padding:0 10*$px;
|
5
|
+
-webkit-appearance:none; border:none; background:white; margin:0;
|
6
|
+
box-sizing:border-box; @include lg(top,#F4F4F4,#FFF);
|
7
|
+
}
|
8
|
+
|
9
|
+
& .form-field{
|
10
|
+
margin-bottom:10*$px;
|
11
|
+
}
|
12
|
+
|
13
|
+
& .ui-form-input, & .ui-form-select{
|
14
|
+
display:-webkit-box; -webkit-box-align:center;
|
15
|
+
section:nth-child(1){
|
16
|
+
min-width:60*$px; text-align:right;
|
17
|
+
}
|
18
|
+
section:nth-child(2){
|
19
|
+
-webkit-box-flex:1;
|
20
|
+
}
|
21
|
+
input:focus{
|
22
|
+
background:#FFF;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
& .form-text{
|
27
|
+
input{
|
28
|
+
border:1px solid #e3e3e3; border-top:none; width:100%; padding:0 5*$px;
|
29
|
+
@include border-radius(2px);
|
30
|
+
@include box-shadow(0 -1px 0 #e3e3e3 inset);
|
31
|
+
@include box-shadow(0 1px 0 #adadad inset);
|
32
|
+
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
& .ui-form-radio{
|
37
|
+
input[type="radio"],input[type="radio"] + label{
|
38
|
+
float:left; line-height:1.5;
|
39
|
+
}
|
40
|
+
|
41
|
+
& span{
|
42
|
+
margin-right:10*$px; display:inline-block;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
& .ui-form-select{
|
47
|
+
section:nth-child(2){
|
48
|
+
@include arrow($wh:5px,$mrt:-4px,$bw:2px,$der:bottom);
|
49
|
+
}
|
50
|
+
select{
|
51
|
+
border:1px solid #e3e3e3; border-top:none; width:100%; padding:0 5*$px;
|
52
|
+
@include border-radius(2px);
|
53
|
+
@include box-shadow(0 -1px 0 #e3e3e3 inset);
|
54
|
+
@include box-shadow(0 1px 0 #adadad inset);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/**
|
3
|
+
* --------------------------------------------------------------------------
|
4
|
+
* ++ 加载更多系列效果基本样式 STYLE
|
5
|
+
* -------------------------------------------------------------------------
|
6
|
+
*/
|
7
|
+
|
8
|
+
.ui-refresh{
|
9
|
+
.ui-refresh-up, .ui-refresh-down{
|
10
|
+
padding:15px; background:#DEDEDE; text-shadow:0 1px 1px #FFF; text-align:center;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.ui-slider{width:320*$px; height:auto;}
|
2
|
+
.ui-slider-pic > *{width:320*$px; height:auto;}
|
3
|
+
|
4
|
+
.ui-slider-handle{
|
5
|
+
position:absolute; left:0; bottom:0; width:100%; height:3*$px; overflow:hidden;
|
6
|
+
background:rgba(51,51,51,0.5); display:-webkit-box;
|
7
|
+
span{display:block; -webkit-box-flex:1; height:100%;}
|
8
|
+
span.on{background:#FF7E00;}
|
9
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/**
|
3
|
+
* --------------------------------------------------------------------------
|
4
|
+
* ++ 幻灯片效果基本样式 STYLE
|
5
|
+
* -------------------------------------------------------------------------
|
6
|
+
*/
|
7
|
+
|
8
|
+
.ui-slider{
|
9
|
+
position:relative;
|
10
|
+
margin:0 auto;
|
11
|
+
overflow:hidden;
|
12
|
+
}
|
13
|
+
|
14
|
+
.ui-slider-wrap{
|
15
|
+
position:relative;
|
16
|
+
height:100%;
|
17
|
+
overflow:hidden;
|
18
|
+
}
|
19
|
+
|
20
|
+
.ui-slider-pic{
|
21
|
+
display:-webkit-box;
|
22
|
+
-webkit-box-align:center;
|
23
|
+
}
|
24
|
+
|
25
|
+
.ui-slider-pic > *{
|
26
|
+
|
27
|
+
}
|
28
|
+
|
29
|
+
.ui-slider-handle{
|
30
|
+
position:absolute;
|
31
|
+
}
|
32
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* --------------------------------------------------------------------------
|
3
|
+
* ++ toolbar基本控制样式 STYLE
|
4
|
+
* -------------------------------------------------------------------------
|
5
|
+
*/
|
6
|
+
.ui-toolbar-wrap{height:40*$px; background:#dedede;}
|
7
|
+
|
8
|
+
.ui-toolbar-backbtn{background:#F1F1F1; border:1px solid #CCC; border-width:1px 1px 1px 0; margin:5*$px 0 0 20*$px; padding:0 8*$px 0 6*$px; height:30*$px; line-height:29*$px;}
|
9
|
+
.ui-toolbar-backbtn::before, .ui-toolbar-backbtn::after{content:""; position:absolute; left:-8*$px; top:-1*$px; width:0; height:0; display:block; border:solid; border-width:15*$px 8*$px 15*$px 0;}
|
10
|
+
.ui-toolbar-backbtn::before{border-color:transparent #ccc transparent transparent;}
|
11
|
+
.ui-toolbar-backbtn::after{border-color:transparent #F1F1F1 transparent transparent; left:-7*$px;}
|
12
|
+
|
13
|
+
.ui-toolbar-title{line-height:40*$px; text-align:center;}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
/**
|
2
|
+
* --------------------------------------------------------------------------
|
3
|
+
* ++ toolbar基本样式 STYLE
|
4
|
+
* -------------------------------------------------------------------------
|
5
|
+
*/
|
6
|
+
.ui-toolbar {
|
7
|
+
width:100%;
|
8
|
+
z-index: 999
|
9
|
+
}
|
10
|
+
|
11
|
+
.ui-toolbar-wrap {
|
12
|
+
position: relative;
|
13
|
+
}
|
14
|
+
|
15
|
+
.ui-toolbar-placeholder {
|
16
|
+
margin: 0;
|
17
|
+
padding: 0;
|
18
|
+
border: 0;
|
19
|
+
overflow: visible;
|
20
|
+
position: relative;
|
21
|
+
}
|
22
|
+
|
23
|
+
.ui-toolbar-title {
|
24
|
+
height: 100%;
|
25
|
+
}
|
26
|
+
|
27
|
+
.ui-toolbar-backbtn {
|
28
|
+
display: block;
|
29
|
+
position: relative;
|
30
|
+
float: left;
|
31
|
+
cursor: pointer;
|
32
|
+
-webkit-box-sizing:border-box;
|
33
|
+
box-sizing:border-box;
|
34
|
+
-webkit-user-select: none;
|
35
|
+
user-select: none;
|
36
|
+
}
|
37
|
+
|
38
|
+
.ui-toolbar-left, .ui-toolbar-right {
|
39
|
+
position: absolute;
|
40
|
+
top:0;
|
41
|
+
height: 100%;
|
42
|
+
}
|
43
|
+
|
44
|
+
.ui-toolbar-left {
|
45
|
+
left: 0;
|
46
|
+
}
|
47
|
+
.ui-toolbar-right {
|
48
|
+
top:0;
|
49
|
+
right:0;
|
50
|
+
}
|
51
|
+
.ui-toolbar-left > * {
|
52
|
+
display: inline-block;
|
53
|
+
float: left;
|
54
|
+
margin-right:5px;
|
55
|
+
text-align: center;
|
56
|
+
}
|
57
|
+
.ui-toolbar-right > * {
|
58
|
+
display: inline-block;
|
59
|
+
float: right;
|
60
|
+
margin-right:10px;
|
61
|
+
text-align: center;
|
62
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/*only support webkit browser*/
|
3
|
+
$experimental-support-for-mozilla: false;
|
4
|
+
$experimental-support-for-webkit: true;
|
5
|
+
$support-for-original-webkit-gradients: true;
|
6
|
+
$experimental-support-for-opera: false;
|
7
|
+
$experimental-support-for-microsoft: false;
|
8
|
+
$experimental-support-for-khtml: false;
|
9
|
+
|
10
|
+
/*public vars*/
|
11
|
+
$font-size: 1rem/15;
|
12
|
+
$font-x: 1px;
|
13
|
+
$font-xx: 1.5px;
|
14
|
+
$font-xxx: 2px;
|
15
|
+
$websize:480;
|
16
|
+
$rem: 1rem/20;
|
17
|
+
$px:1px;
|
18
|
+
|
19
|
+
|
20
|
+
$border-color-gray: #b1b1b1;
|
21
|
+
|
22
|
+
/*color vars*/
|
23
|
+
$standard-bg-color:#FFF;
|
24
|
+
$standard-main-color:#F40;
|
25
|
+
$standard-sub-color1:#F60;
|
26
|
+
$standard-sub-color2:#F90;
|
27
|
+
$standard-linear-l:#F8F8F8;
|
28
|
+
$standard-linear-r:#E6E6E6;
|
29
|
+
|
30
|
+
/*text vars*/
|
31
|
+
$text-main-color:#3a3a3a;
|
32
|
+
$text-shadow-color:#fff;
|
33
|
+
$text-form-color:#646464;
|
34
|
+
$text-highlight-color:#F40;
|
35
|
+
$text-sub-color:#666;
|
36
|
+
$text-em-color:#D40000;
|
37
|
+
$text-link-color:#3a3a3a;
|
38
|
+
$title-font-size:24px;
|
39
|
+
$tab-font-size:18px;
|
40
|
+
$big-font-size:16px;
|
41
|
+
$normal-font-size:14px;
|
42
|
+
$small-font-size:12px;
|
43
|
+
|
44
|
+
/*space vars*/
|
45
|
+
$page-padding-width:10px;
|
46
|
+
$list-margin-width:30px;
|
47
|
+
$first-list-margin-width:20px;
|
48
|
+
$list-item-margin-width:10px;
|
49
|
+
$group-list-margin-width:20px;
|
50
|
+
|
51
|
+
/*screen min-width, min-height*/
|
52
|
+
$screen-min-width:320px;
|
53
|
+
$screen-max-width:360px;
|
54
|
+
$screen-min-height:480px;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Make sure you list all the project template files here in the manifest.
|
2
|
+
stylesheet '_seeui.scss', :media => 'screen, projection'
|
3
|
+
#html 'lightbox.html'
|
4
|
+
#javascript 'lightbox.js'
|
5
|
+
|
6
|
+
#description "css-only lightboxes with optional javascript bootstrapping."
|
7
|
+
|
8
|
+
#help %Q{
|
9
|
+
#Installs some html, a stylesheet partial, and javascript bootstrapping that
|
10
|
+
#you can use directly or refer to as an example.
|
11
|
+
#}
|
12
|
+
|
13
|
+
#welcome_message %Q{
|
14
|
+
#Please refer to the lightbox.html file to see how the markup should be
|
15
|
+
#structured, the lightbox stylesheet partial to see how to use the library and
|
16
|
+
#apply it to your markup, and the lightbox.js script to see how
|
17
|
+
#bootstrapping works.
|
18
|
+
#}
|
metadata
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: seeui
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1.beta
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Hankewins
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-04-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: compass
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.11'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.11'
|
27
|
+
description: a mobile library seeui implementation for compass
|
28
|
+
email: hankewins@gmail.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- README.mkdn
|
34
|
+
- lib/seeui.rb
|
35
|
+
- stylesheets/seeui/_button.scss
|
36
|
+
- stylesheets/seeui/_func.scss
|
37
|
+
- stylesheets/seeui/_reset.scss
|
38
|
+
- stylesheets/seeui/_ui-form.scss
|
39
|
+
- stylesheets/seeui/_ui-refresh.scss
|
40
|
+
- stylesheets/seeui/_ui-slider.gionee.scss
|
41
|
+
- stylesheets/seeui/_ui-slider.scss
|
42
|
+
- stylesheets/seeui/_ui-toolbar.gionee.scss
|
43
|
+
- stylesheets/seeui/_ui-toolbar.scss
|
44
|
+
- stylesheets/seeui/_vars.scss
|
45
|
+
- stylesheets/_seeui.scss
|
46
|
+
- templates/project/manifest.rb
|
47
|
+
- templates/project/_seeui.scss
|
48
|
+
homepage: http://www.hankewins.com/
|
49
|
+
licenses: []
|
50
|
+
metadata: {}
|
51
|
+
post_install_message:
|
52
|
+
rdoc_options: []
|
53
|
+
require_paths:
|
54
|
+
- lib
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ! '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ! '>'
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 1.3.1
|
65
|
+
requirements: []
|
66
|
+
rubyforge_project:
|
67
|
+
rubygems_version: 2.0.3
|
68
|
+
signing_key:
|
69
|
+
specification_version: 4
|
70
|
+
summary: a mobile library seeui implementation for compass
|
71
|
+
test_files: []
|