diff options
author | Masafumi Koba <ybiquitous@gmail.com> | 2018-05-04 22:06:28 +0900 |
---|---|---|
committer | Masafumi Koba <ybiquitous@gmail.com> | 2018-05-04 22:07:44 +0900 |
commit | 2ae02c3a46434899bc351dd228d9ddbe650531d3 (patch) | |
tree | 11890c8372942401e4d5bc84dc7724f6d75e0a57 | |
parent | 4fa0386996004b63904d2d41e875a092bb027be0 (diff) | |
download | emmet-mode-2ae02c3a46434899bc351dd228d9ddbe650531d3.tar.lz emmet-mode-2ae02c3a46434899bc351dd228d9ddbe650531d3.tar.xz emmet-mode-2ae02c3a46434899bc351dd228d9ddbe650531d3.zip |
Update to latest CSS snippets from 'github.com/emmetio/emmet'
Copy from <https://github.com/emmetio/emmet/blob/master/lib/snippets.json>.
-rw-r--r-- | conf/snippets.json | 130 |
1 files changed, 96 insertions, 34 deletions
diff --git a/conf/snippets.json b/conf/snippets.json index 94228b1..12208c0 100644 --- a/conf/snippets.json +++ b/conf/snippets.json @@ -1,6 +1,5 @@ { "css": { - "snippets": { "@i": "@import url(|);", "@import": "@import url(|);", @@ -8,37 +7,27 @@ "@media": "@media ${1:screen} {\n\t|\n}", "@f": "@font-face {\n\tfont-family:|;\n\tsrc:url(|);\n}", "@f+": "@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}", - "@kf": "@-webkit-keyframes ${1:identifier} {\n\t${2:from} { ${3} }${6}\n\t${4:to} { ${5} }\n}\n@-o-keyframes ${1:identifier} {\n\t${2:from} { ${3} }${6}\n\t${4:to} { ${5} }\n}\n@-moz-keyframes ${1:identifier} {\n\t${2:from} { ${3} }${6}\n\t${4:to} { ${5} }\n}\n@keyframes ${1:identifier} {\n\t${2:from} { ${3} }${6}\n\t${4:to} { ${5} }\n}", - - "anim": "animation:|;", "anim-": "animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode};", "animdel": "animation-delay:${1:time};", - "animdir": "animation-direction:${1:normal};", "animdir:n": "animation-direction:normal;", "animdir:r": "animation-direction:reverse;", "animdir:a": "animation-direction:alternate;", "animdir:ar": "animation-direction:alternate-reverse;", - "animdur": "animation-duration:${1:0}s;", - "animfm": "animation-fill-mode:${1:both};", "animfm:f": "animation-fill-mode:forwards;", "animfm:b": "animation-fill-mode:backwards;", "animfm:bt": "animation-fill-mode:both;", "animfm:bh": "animation-fill-mode:both;", - "animic": "animation-iteration-count:${1:1};", "animic:i": "animation-iteration-count:infinite;", - "animn": "animation-name:${1:none};", - "animps": "animation-play-state:${1:running};", "animps:p": "animation-play-state:paused;", "animps:r": "animation-play-state:running;", - "animtf": "animation-timing-function:${1:linear};", "animtf:e": "animation-timing-function:ease;", "animtf:ei": "animation-timing-function:ease-in;", @@ -46,9 +35,7 @@ "animtf:eio": "animation-timing-function:ease-in-out;", "animtf:l": "animation-timing-function:linear;", "animtf:cb": "animation-timing-function:cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1});", - - "ap": "appearance:${1:none};", - + "ap": "appearance:${none};", "!": "!important", "pos": "position:${1:relative};", "pos:s": "position:static;", @@ -74,7 +61,6 @@ "cl:l": "clear:left;", "cl:r": "clear:right;", "cl:b": "clear:both;", - "colm": "columns:|;", "colmc": "column-count:|;", "colmf": "column-fill:|;", @@ -85,12 +71,14 @@ "colmrw": "column-rule-width:|;", "colms": "column-span:|;", "colmw": "column-width:|;", - "d": "display:${1:block};", "d:n": "display:none;", "d:b": "display:block;", + "d:f": "display:flex;", + "d:if": "display:inline-flex;", "d:i": "display:inline;", "d:ib": "display:inline-block;", + "d:ib+": "display: inline-block;\n*display: inline;\n*zoom: 1;", "d:li": "display:list-item;", "d:ri": "display:run-in;", "d:cp": "display:compact;", @@ -180,9 +168,24 @@ "ol:n": "outline:none;", "olo": "outline-offset:|;", "olw": "outline-width:|;", + "olw:tn": "outline-width:thin;", + "olw:m": "outline-width:medium;", + "olw:tc": "outline-width:thick;", "ols": "outline-style:|;", - "olc": "outline-color:${1:#000};", + "ols:n": "outline-style:none;", + "ols:dt": "outline-style:dotted;", + "ols:ds": "outline-style:dashed;", + "ols:s": "outline-style:solid;", + "ols:db": "outline-style:double;", + "ols:g": "outline-style:groove;", + "ols:r": "outline-style:ridge;", + "ols:i": "outline-style:inset;", + "ols:o": "outline-style:outset;", + "olc": "outline-color:#${1:000};", "olc:i": "outline-color:invert;", + "bfv": "backface-visibility:|;", + "bfv:h": "backface-visibility:hidden;", + "bfv:v": "backface-visibility:visible;", "bd": "border:|;", "bd+": "border:${1:1px} ${2:solid} ${3:#000};", "bd:n": "border:none;", @@ -191,7 +194,7 @@ "bdcl": "border-collapse:|;", "bdcl:c": "border-collapse:collapse;", "bdcl:s": "border-collapse:separate;", - "bdc": "border-color:${1:#000};", + "bdc": "border-color:#${1:000};", "bdc:t": "border-color:transparent;", "bdi": "border-image:url(|);", "bdi:n": "border-image:none;", @@ -254,7 +257,7 @@ "bdt:n": "border-top:none;", "bdts": "border-top-style:|;", "bdts:n": "border-top-style:none;", - "bdtc": "border-top-color:${1:#000};", + "bdtc": "border-top-color:#${1:000};", "bdtc:t": "border-top-color:transparent;", "bdr": "border-right:|;", "br": "border-right:|;", @@ -262,7 +265,7 @@ "bdr:n": "border-right:none;", "bdrst": "border-right-style:|;", "bdrst:n": "border-right-style:none;", - "bdrc": "border-right-color:${1:#000};", + "bdrc": "border-right-color:#${1:000};", "bdrc:t": "border-right-color:transparent;", "bdb": "border-bottom:|;", "bb": "border-bottom:|;", @@ -270,7 +273,7 @@ "bdb:n": "border-bottom:none;", "bdbs": "border-bottom-style:|;", "bdbs:n": "border-bottom-style:none;", - "bdbc": "border-bottom-color:${1:#000};", + "bdbc": "border-bottom-color:#${1:000};", "bdbc:t": "border-bottom-color:transparent;", "bdl": "border-left:|;", "bl": "border-left:|;", @@ -278,18 +281,18 @@ "bdl:n": "border-left:none;", "bdls": "border-left-style:|;", "bdls:n": "border-left-style:none;", - "bdlc": "border-left-color:${1:#000};", + "bdlc": "border-left-color:#${1:000};", "bdlc:t": "border-left-color:transparent;", "bdrs": "border-radius:|;", "bdtrrs": "border-top-right-radius:|;", "bdtlrs": "border-top-left-radius:|;", "bdbrrs": "border-bottom-right-radius:|;", "bdblrs": "border-bottom-left-radius:|;", - "bg": "background:|;", + "bg": "background:#${1:000};", "bg+": "background:${1:#fff} url(${2}) ${3:0} ${4:0} ${5:no-repeat};", "bg:n": "background:none;", "bg:ie": "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1:x}.png',sizingMethod='${2:crop}');", - "bgc": "background-color:${1:#fff};", + "bgc": "background-color:#${1:fff};", "bgc:t": "background-color:transparent;", "bgi": "background-image:url(|);", "bgi:n": "background-image:none;", @@ -322,7 +325,7 @@ "bgsz:a": "background-size:auto;", "bgsz:ct": "background-size:contain;", "bgsz:cv": "background-size:cover;", - "c": "color:${1:#000};", + "c": "color:#${1:000};", "c:r": "color:rgb(${1:0}, ${2:0}, ${3:0});", "c:ra": "color:rgba(${1:0}, ${2:0}, ${3:0}, .${4:5});", "cm": "/* |${child} */", @@ -335,8 +338,6 @@ "cnt:a": "content:attr(|);", "cnt:c": "content:counter(|);", "cnt:cs": "content:counters(|);", - - "tbl": "table-layout:|;", "tbl:a": "table-layout:auto;", "tbl:f": "table-layout:fixed;", @@ -424,7 +425,7 @@ "tj:d": "text-justify:distribute;", "tj:k": "text-justify:kashida;", "tj:t": "text-justify:tibetan;", - "tov": "text-overflow:${1:ellipsis};", + "tov": "text-overflow:${ellipsis};", "tov:e": "text-overflow:ellipsis;", "tov:c": "text-overflow:clip;", "to": "text-outline:|;", @@ -453,10 +454,17 @@ "trf:sc": "transform: scale(${1:x}, ${2:y});", "trf:scx": "transform: scaleX(${1:x});", "trf:scy": "transform: scaleY(${1:y});", + "trf:scz": "transform: scaleZ(${1:z});", + "trf:sc3": "transform: scale3d(${1:x}, ${2:y}, ${3:z});", "trf:r": "transform: rotate(${1:angle});", + "trf:rx": "transform: rotateX(${1:angle});", + "trf:ry": "transform: rotateY(${1:angle});", + "trf:rz": "transform: rotateZ(${1:angle});", "trf:t": "transform: translate(${1:x}, ${2:y});", "trf:tx": "transform: translateX(${1:x});", "trf:ty": "transform: translateY(${1:y});", + "trf:tz": "transform: translateZ(${1:z});", + "trf:t3": "transform: translate3d(${1:tx}, ${2:ty}, ${3:tz});", "trfo": "transform-origin:|;", "trfs": "transform-style:${1:preserve-3d};", "trs": "transition:${1:prop} ${2:time};", @@ -480,8 +488,6 @@ "wob": "word-break:|;", "wob:n": "word-break:normal;", "wob:k": "word-break:keep-all;", - "wob:l": "word-break:loose;", - "wob:bs": "word-break:break-strict;", "wob:ba": "word-break:break-all;", "wos": "word-spacing:|;", "wow": "word-wrap:|;", @@ -489,7 +495,18 @@ "wow:n": "word-wrap:none;", "wow:u": "word-wrap:unrestricted;", "wow:s": "word-wrap:suppress;", + "wow:b": "word-wrap:break-word;", + "wm": "writing-mode:${1:lr-tb};", + "wm:lrt": "writing-mode:lr-tb;", + "wm:lrb": "writing-mode:lr-bt;", + "wm:rlt": "writing-mode:rl-tb;", + "wm:rlb": "writing-mode:rl-bt;", + "wm:tbr": "writing-mode:tb-rl;", + "wm:tbl": "writing-mode:tb-lr;", + "wm:btl": "writing-mode:bt-lr;", + "wm:btr": "writing-mode:bt-rl;", "lts": "letter-spacing:|;", + "lts-n": "letter-spacing:normal;", "f": "font:|;", "f+": "font:${1:1em} ${2:Arial,sans-serif};", "fw": "font-weight:|;", @@ -497,7 +514,7 @@ "fw:b": "font-weight:bold;", "fw:br": "font-weight:bolder;", "fw:lr": "font-weight:lighter;", - "fs": "font-style:${1:italic};", + "fs": "font-style:${italic};", "fs:n": "font-style:normal;", "fs:i": "font-style:italic;", "fs:o": "font-style:oblique;", @@ -513,6 +530,9 @@ "ff:c": "font-family:cursive;", "ff:f": "font-family:fantasy;", "ff:m": "font-family:monospace;", + "ff:a": "font-family: Arial, \"Helvetica Neue\", Helvetica, sans-serif;", + "ff:t": "font-family: \"Times New Roman\", Times, Baskerville, Georgia, serif;", + "ff:v": "font-family: Verdana, Geneva, sans-serif;", "fef": "font-effect:|;", "fef:n": "font-effect:none;", "fef:eg": "font-effect:engrave;", @@ -543,6 +563,7 @@ "fst:ee": "font-stretch:extra-expanded;", "fst:ue": "font-stretch:ultra-expanded;", "op": "opacity:|;", + "op+": "opacity: $1;\nfilter: alpha(opacity=$2);", "op:ie": "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);", "op:ms": "-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)';", "rsz": "resize:|;", @@ -550,7 +571,7 @@ "rsz:b": "resize:both;", "rsz:h": "resize:horizontal;", "rsz:v": "resize:vertical;", - "cur": "cursor:${1:pointer};", + "cur": "cursor:${pointer};", "cur:a": "cursor:auto;", "cur:d": "cursor:default;", "cur:c": "cursor:crosshair;", @@ -559,6 +580,47 @@ "cur:m": "cursor:move;", "cur:p": "cursor:pointer;", "cur:t": "cursor:text;", + "fxd": "flex-direction:|;", + "fxd:r": "flex-direction:row;", + "fxd:rr": "flex-direction:row-reverse;", + "fxd:c": "flex-direction:column;", + "fxd:cr": "flex-direction:column-reverse;", + "fxw": "flex-wrap: |;", + "fxw:n": "flex-wrap:nowrap;", + "fxw:w": "flex-wrap:wrap;", + "fxw:wr": "flex-wrap:wrap-reverse;", + "fxf": "flex-flow:|;", + "jc": "justify-content:|;", + "jc:fs": "justify-content:flex-start;", + "jc:fe": "justify-content:flex-end;", + "jc:c": "justify-content:center;", + "jc:sb": "justify-content:space-between;", + "jc:sa": "justify-content:space-around;", + "ai": "align-items:|;", + "ai:fs": "align-items:flex-start;", + "ai:fe": "align-items:flex-end;", + "ai:c": "align-items:center;", + "ai:b": "align-items:baseline;", + "ai:s": "align-items:stretch;", + "ac": "align-content:|;", + "ac:fs": "align-content:flex-start;", + "ac:fe": "align-content:flex-end;", + "ac:c": "align-content:center;", + "ac:sb": "align-content:space-between;", + "ac:sa": "align-content:space-around;", + "ac:s": "align-content:stretch;", + "ord": "order:|;", + "fxg": "flex-grow:|;", + "fxsh": "flex-shrink:|;", + "fxb": "flex-basis:|;", + "fx": "flex:|;", + "as": "align-self:|;", + "as:a": "align-self:auto;", + "as:fs": "align-self:flex-start;", + "as:fe": "align-self:flex-end;", + "as:c": "align-self:center;", + "as:b": "align-self:baseline;", + "as:s": "align-self:stretch;", "pgbb": "page-break-before:|;", "pgbb:au": "page-break-before:auto;", "pgbb:al": "page-break-before:always;", @@ -573,9 +635,9 @@ "pgba:l": "page-break-after:left;", "pgba:r": "page-break-after:right;", "orp": "orphans:|;", - "us": "user-select:${1:none};", + "us": "user-select:${none};", "wid": "widows:|;", - "wfsm": "-webkit-font-smoothing:${1:antialiased};", + "wfsm": "-webkit-font-smoothing:${antialiased};", "wfsm:a": "-webkit-font-smoothing:antialiased;", "wfsm:s": "-webkit-font-smoothing:subpixel-antialiased;", "wfsm:sa": "-webkit-font-smoothing:subpixel-antialiased;", |