-
Notifications
You must be signed in to change notification settings - Fork 0
/
css.json
183 lines (177 loc) · 12 KB
/
css.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
// Place your snippets for css here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
//自定义css属性=============================
//自定义css属性=============================
//自定义css属性=============================
//IE兼容css属性
"-IE-filter-自定义IE透明度兼容css": {
"prefix": "iefilter filter",
"body": "filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#9F000000,endColorstr=#9F000000);",
"description": "自定义IE透明度兼容css"
},
//手机750rem
"code_iphone_rem750px": {
"prefix": "code_iphone_rem750px cirem750 手机750",
"body": [
"@media all and (min-width: 320px){html{font-size:42.66667px !important}}@media all and (min-width: 360px){html{font-size:48px !important}}",
"@media all and (min-width: 375px){html{font-size:50px !important}}@media all and (min-width: 384px){html{font-size:51.2px !important}}",
"@media all and (min-width: 412px){html{font-size:54.93333px !important}}@media all and (min-width: 414px){html{font-size:55.2px !important}}",
"@media all and (min-width: 480px){html{font-size:64px !important}}@media all and (min-width: 550px){html{font-size:73.33333px !important}}",
"@media all and (min-width: 600px){html{font-size:80px !important}}@media all and (min-width: 640px){html{font-size:85.33333px !important}}",
"@media all and (min-width: 700px){html{font-size:93.33333px !important}}@media all and (min-width: 765px){html{font-size:102px !important}}",
"@media all and (min-width: 768px){html{font-size:102.4px !important}}@media all and (min-width: 800px){html{font-size:106.66667px !important}}",
"@media all and (min-width: 850px){html{font-size:113.33333px !important}}@media all and (min-width: 917px){html{font-size:122.26667px !important}}",
"@media all and (min-width: 1024px){html{font-size:136.53333px !important}}@media all and (min-width: 1080px){html{font-size:144px !important}}",
"@media all and (min-width: 1152px){html{font-size:153.6px !important}}@media all and (min-width: 1280px){html{font-size:170.66667px !important}}",
"@media all and (min-width: 1360px){html{font-size:181.33333px !important}}@media all and (min-width: 1366px){html{font-size:182.13333px !important}}",
"@media all and (min-width: 1440px){html{font-size:192px !important}}@media all and (min-width: 1550px){html{font-size:206.66667px !important}}",
"@media all and (min-width: 1600px){html{font-size:213.33333px !important}}@media all and (min-width: 1680px){html{font-size:224px !important}}",
"@media all and (min-width: 1901px){html{font-size:253.46667px !important}}@media all and (min-width: 1920px){html{font-size:256px !important}}"
],
"description": "手机rem扩展自适应代码块750"
},
//手机640rem
"code_iphone_rem640px": {
"prefix": "code_iphone_rem640px cirem640 手机640",
"body": [
"@media all and (min-width: 320px){html{font-size:50px !important}}",
"@media all and (min-width: 360px){html{font-size:56.25px !important}}@media all and (min-width: 375px){html{font-size:58.59375px !important}}",
"@media all and (min-width: 384px){html{font-size:60px !important}}@media all and (min-width: 412px){html{font-size:64.375px !important}}",
"@media all and (min-width: 414px){html{font-size:64.6875px !important}}@media all and (min-width: 480px){html{font-size:75px !important}}",
"@media all and (min-width: 550px){html{font-size:85.9375px !important}}@media all and (min-width: 600px){html{font-size:93.75px !important}}",
"@media all and (min-width: 640px){html{font-size:100px !important}}@media all and (min-width: 700px){html{font-size:109.375px !important}}",
"@media all and (min-width: 765px){html{font-size:119.53125px !important}}@media all and (min-width: 768px){html{font-size:120px !important}}",
"@media all and (min-width: 800px){html{font-size:125px !important}}@media all and (min-width: 850px){html{font-size:132.8125px !important}}",
"@media all and (min-width: 917px){html{font-size:143.28125px !important}}@media all and (min-width: 1024px){html{font-size:160px !important}}",
"@media all and (min-width: 1080px){html{font-size:168.75px !important}}@media all and (min-width: 1152px){html{font-size:180px !important}}",
"@media all and (min-width: 1280px){html{font-size:200px !important}}@media all and (min-width: 1360px){html{font-size:212.5px !important}}",
"@media all and (min-width: 1366px){html{font-size:213.4375px !important}}@media all and (min-width: 1440px){html{font-size:225px !important}}",
"@media all and (min-width: 1550px){html{font-size:242.1875px !important}}@media all and (min-width: 1600px){html{font-size:250px !important}}",
"@media all and (min-width: 1680px){html{font-size:262.5px !important}}@media all and (min-width: 1901px){html{font-size:297.03125px !important}}",
"@media all and (min-width: 1920px){html{font-size:300px !important}}"
],
"description": "手机rem扩展自适应代码块640"
},
//手机750px 75基数
"code_iphone_rem750px_75": {
"prefix": "code_iphone_rem750px_75 cirem75075 手机75075",
"body": [
"@media all and (min-width: 320px) { html { font-size: 32px !important; } }",
"@media all and (min-width: 360px) { html { font-size: 36px !important; } }",
"@media all and (min-width: 375px) { html { font-size: 37.5px !important; } }",
"@media all and (min-width: 384px) { html { font-size: 38.4px !important; } }",
"@media all and (min-width: 412px) { html { font-size: 41.2px !important; } }",
"@media all and (min-width: 414px) { html { font-size: 41.4px !important; } }",
"@media all and (min-width: 480px) { html { font-size: 48px !important; } }",
"@media all and (min-width: 550px) { html { font-size: 55px !important; } }",
"@media all and (min-width: 600px) { html { font-size: 60px !important; } }",
"@media all and (min-width: 640px) { html { font-size: 64px !important; } }",
"@media all and (min-width: 700px) { html { font-size: 70px !important; } }",
"@media all and (min-width: 765px) { html { font-size: 76.5px !important; } }",
"@media all and (min-width: 768px) { html { font-size: 76.8px !important; } }",
"@media all and (min-width: 800px) { html { font-size: 80px !important; } }",
"@media all and (min-width: 850px) { html { font-size: 85px !important; } }",
"@media all and (min-width: 917px) { html { font-size: 91.7px !important; } }",
"@media all and (min-width: 1024px) { html { font-size: 102.4px !important; } }",
"@media all and (min-width: 1080px) { html { font-size: 108px !important; } }",
"@media all and (min-width: 1152px) { html { font-size: 115.2px !important; } }",
"@media all and (min-width: 1280px) { html { font-size: 128px !important; } }",
"/* @media all and (min-width: 1360px) { html { font-size: 136px !important; } }",
"@media all and (min-width: 1366px) { html { font-size: 136.6px !important; } }",
"@media all and (min-width: 1440px) { html { font-size: 144px !important; } }",
"@media all and (min-width: 1550px) { html { font-size: 155px !important; } }",
"@media all and (min-width: 1600px) { html { font-size: 160px !important; } }",
"@media all and (min-width: 1680px) { html { font-size: 168px !important; } }",
"@media all and (min-width: 1901px) { html { font-size: 190.1px !important; } }",
"@media all and (min-width: 1920px) { html { font-size: 192px !important; } } */",
],
"description": "手机rem扩展自适应代码块750px 75rem基数"
},
//头部预定义初始化样式=================
//头部预定义初始化样式=================
//头部预定义初始化样式=================
"code_initialization": {
"prefix": "code_initialization cinitialization 初始化",
"body": [
"@font-face {font-family:;src: url();}",
"a,button,input,select{outline:none;-webkit-appearance:none;appearance:none;-moz-appearance:none;-ms-appearance:none;border: 0px solid;cursor: pointer;}",
"select::-ms-expand { display: none; }",
"*{margin:0;padding:0;font-family:'微软雅黑';}",
"a{text-decoration:none}",
"a:link{text-decoration:none;}",
"a:visited{text-decoration:none;}",
"a:hover{text-decoration:none;}",
"a:active{text-decoration:none;}",
"ul li{list-style-type:none;list-style: none;}"
],
"description": "头部预定义初始化样式"
},
//模块代码注释=================
//模块代码注释=================
//模块代码注释=================
//模块注释 简化版 名字
"notes_modu_name": {
"prefix": "notes_modular_name nmn",
"body": "/*xb: modularName:$1 */",
"description": "注释:模块注释 简化版 名字"
},
//模块注释 模块类型 模块介绍
"notes_modu": {
"prefix": "notes_modular nm",
"body": "/*xb:\n type:模块\n purpose:$1\n describe: \n*/",
"description": "注释:模块注释 类型 功能 介绍"
},
//常用样式兼容模式=================
//常用样式兼容模式=================
//常用样式兼容模式=================
//过度效果 transition 兼容
"code_transition": {
"prefix": "code_transition ctransition",
"body": "transition: all 0.5s;-webkit-transition: all 0.5s;-o-transition: all 0.5s;-ms-transition: all 0.5s;-moz-transition: all 0.5s;",
"description": "过度效果 transition 兼容"
},
//变形属性 transform 放大缩小 兼容
"code_transform ": {
"prefix": "code_transform ctransform",
"body": "transform:scale(1.05,1.05);-webkit-transform:scale(1.05,1.05);-o-transform:scale(1.05,1.05);-ms-transform:scale(1.05,1.05);-moz-transform:scale(1.05,1.05);",
"description": "变形属性 transform 放大缩小 兼容"
},
//变形属性 transform css 动画兼容模板
"code_transform_keyframes ": {
"prefix": "code_transform_keyframes ctkeyframes",
"body": [" @keyframes xb_button{",
" 0%{transform:scale(1,1);}",
" 50%{transform:scale(1.05,1.05);}",
" 100%{transform:scale(1,1);}",
"}",
"@-webkit-keyframes xb_button{",
" 0%{-webkit-transform:scale(1,1);}",
" 50%{-webkit-transform:scale(1.05,1.05);}",
" 100%{-webkit-transform:scale(1,1);}",
"}",
"@-moz-keyframes xb_button{",
" 0%{-moz-transform:scale(1,1);}",
" 50%{-moz-transform:scale(1.05,1.05);}",
" 100%{-moz-transform:scale(1,1);}",
"}",
"@-ms-keyframes xb_button{",
" 0%{-ms-transform:scale(1,1);}",
" 50%{-ms-transform:scale(1.05,1.05);}",
" 100%{-ms-transform:scale(1,1);}",
"}"],
"description": "transform动画keyframes兼容模板"
},
//常用样式模板=================
//常用样式模板=================
//常用样式模板=================
//默认宽度百分比,高度自适应
"code_whf": {
"prefix": "code_whf codewhf",
"body": "width: 100%;height: auto;float: left;",
"description": "默认宽度百分比,高度自适应"
},
}