hbuilder边框代码是什么_HBuilderCSS⾃定义代码块
32 require 'ruble'33
34 with_defaults :scope => "source.pe.property-name.css" do35
36 # snippet "!important CSS" do |s|37 # s.trigger = "!"38 # s.expansion = "${1:!important}"39 # end40
41 snippet "-webkit-" do |s|igger = "webkit"dApplyReContentAssist = pansion = '-webkit-'45
end46
47 snippet "-moz-" do |s|igger = "moz"dApplyReContentAssist = pansion = '-moz-'51 end52
53 snippet "-ms-" do |s|igger = "ms"dApplyReContentAssist = pansion = '-ms-'57 end58
59 snippet "background: image repeat attachment position" do |s|igger = "bg"dApplyReContentAssist =
pansion = "background: url($1) ${2:repeat/repeat-x/repeat-y/no-repeat}${3:scroll/fixed}${4:top left/top
center/top right/center left/center center/center right/bottom left/bottom center/bottom right/x-% y-%/x-pos y-
pos};$0"63 end64
65 snippet "background-color" do |s|igger = "bc"pansion = "background-color: $1"68
自主阅读71 snippet "background-color: \#" do |s|igger = "bch"pansion = "background-color: \#$1"74
77 snippet "background-color: rgb" do |s|igger = "bcr"pansion = "background-color:
rgb(${1:255},${2:255},${3:255})"80 end81
期末考试成绩分析
82 snippet "background-image" do |s|igger = "bi"pansion = "background-image: $1"85
人生来孤独88 snippet "background-image: url" do |s|igger = "biu"pansion = "background-image: url($1)"91
出成语
94 snippet "background-position" do |s|igger = "bp"pansion = "background-position: $1"97
氧气的物理性质100 snippet "border-color" do |s|igger = "boc"pansion = 'border-color: $1'103
106 snippet "border-style" do |s|igger = "bs"pansion = 'border-style: $1'dApplyReContentAssist = true110 end111
112 snippet "border-width" do |s|igger = "bw"pansion = 'border-width: $1'dApplyReContentAssist = true116 end117
118 snippet "display: none" do |s|igger = "dn"pansion = 'display: none'121 end122
123 snippet "overflow: hidden" do |s|igger = "ovh"pansion = 'overflow: hidden'126 end127
128 snippet "display: block" do |s|igger = "db"pansion = 'display: block'131 end132
133 snippet "font-family: family" do |s|igger = "ff"pansion = 'font-family: $1'136
139 snippet "font-size: size" do |s|igger = "fsize"pansion = 'font-size: $1'dApplyReContentAssist = true143 end144
145 snippet "height length" do |s|igger = "hei"pansion = 'height ${1}px;$0'148 end149
150 snippet "list-style-image: url" do |s|igger = "lsi"pansion = 'list-style-image: url($1);'153
156 snippet "properties{ }( } )" do |s|igger = "{"pansion = '{159 /*$1*/
160 $0161 '162 end163 # FIXME Doesn't work164 snippet "scrollbar" do |s|igger = "scrollbar"pansion = 'scrollbar-ba-color:${1:#CCCCCC};167 scrollbar-arrow-color: ${2:#000000};168 scrollbar-track-color: ${3:#999999};169 scrollbar-3dlight-color: ${4:#EEEEEE};170 scrollbar-highlight-color: ${5:#FFFFFF};171 scrollbar-face-color:
${6:#CCCCCC};172 scrollbar-shadow-color: ${7:#999999};173 scrollbar-darkshadow-color: ${8:#666666};'174 end175
176 snippet "text-align: left" do |s|igger = "tal"pansion = 'text-align: left;'179 end180
181 snippet "text-align: center" do |s|igger = "tac"pansion = 'text-align: center;'184 end185
186 snippet "text-align: right" do |s|igger = "tar"pansion = 'text-align: right;'189 end190
191 snippet "text-transform" do |s|igger = "tt"pansion = 'text-transform: $1'194
197 snippet "width length" do |s|igger = "wid"pansion = 'width: ${1}px;$0'200 end201
202 snippet "margin-top" do |s|igger = "mgt"pansion = 'margin-top: $1'205 end206
207 snippet "urlect:none" do |s|igger = "usn"pansion = '-webkit-ur-lect: none;210 -moz-ur-lect: none;211 -ms-ur-lect: none;'212 end213 end214
215 with_defaults :scope => "source.css entity.name.tag.css" do216 snippet "@font-face" do |s|igger =
"@fontface"218 s.locationType="CSS_OUTRULE"pansion = '@font-face{
220 font-family:$1;
221 src:url($2);
222 }'223 end224
225 snippet "@import" do |s|igger = "@import"227 s.locationType="CSS_OUTRULE"pansion = '@import
url("${1:global.css}");'229 end230
231 snippet "@chart" do |s|igger = "@chart"233 s.locationType="CSS_OUTRULE"pansion = '@chart "${1:utf-8}";'235 end236
237 snippet "@page" do |s|igger = "@page"239 s.locationType="CSS_OUTRULE"pansion =藕丸子的正宗做法
'@page:${1:first/left/right}{想必
241
242 }'243 end244 snippet "@keyframes" do |s|igger = "@keyframes"246 s.locationType="CSS_OUTRULE"247
248 from{$2}
249 to{$3}
250 }'251 end252
253 snippet "@-moz-keyframes" do |s|igger = "@keyframes"255 s.locationType="CSS_OUTRULE"pansion = '@-moz-keyframes ${1:name}{
257 from{$2}
258 to{$3}
259 }'260 end261
262 snippet "@-ms-keyframes" do |s|igger = "@keyframes"264 s.locationType="CSS_OUTRULE"pansion = '@-ms-keyframes ${1:name}{
266 from{$2}
267 to{$3}
268 }'269 end270
271 snippet "@-webkit-keyframes" do |s|igger = "@keyframes"273 s.locationType="CSS_OUTRULE"274中国诗词大全
275 from{$2}
276 to{$3}
277 }'278 end279
280 snippet "@document" do |s|igger = "@document"282 s.locationType="CSS_OUTRULE"pansion =
'@document ${1:url/url-prefix/domain/regexp}("$2"){
284 $3285 }'286 end287
288 snippet "@supports" do |s|igger = "@supports"290 s.locationType="CSS_OUTRULE"pansion =
'@supports(${1:prop}:${2:value}){
292 $3293 }'294 end295
296 snippet "@namespace" do |s|igger = "@namespace"298 s.locationType="CSS_OUTRULE"pansion =
'@namespace ${1:prefix}"$2";'300 end301
302
303 snippet "@media" do |s|igger = "@media"305 s.locationType="CSS_OUTRULE"pansion = '@media only screen and (min-width: $1px){
307 $2308 }'309 end310 end