Skip to content

Commit afac0a2

Browse files
authored
Merge pull request #8 from L13/feature/pointer-events
Feature/pointer events
2 parents 46fc1d6 + c214f11 commit afac0a2

File tree

7 files changed

+56
-16
lines changed

7 files changed

+56
-16
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Change Log
22
All notable changes to the "CSS and SCSS Snippets" extension will be documented in this file.
33

4+
## [0.16.0] - 2021-05-26
5+
6+
### Added
7+
- Added `pointer-events` and `position: sticky;` for CSS.
8+
- Added `@forward`, `@use` and `@at-root` for SCSS.
9+
10+
### Fixed
11+
- Fixed some snippets.
12+
413
## [0.15.0] - 2020-07-05
514

615
### Added

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
This extension contains property snippets for CSS and rule snippets for SCSS.
44

5-
## What's new in CSS Snippets 0.15.0
5+
## What's new in CSS Snippets 0.16.0
66

7-
- Added values `round` and `space` for `background-repeat`.
7+
- Added `pointer-events` and `position: sticky;` for CSS.
8+
- Added `@forward`, `@use` and `@at-root` for SCSS.
89

910
## Index
1011

@@ -80,8 +81,8 @@ __The following prefixes are just examples to explain the rules.__ To see the co
8081

8182
| Prefix | Snippet |
8283
| -------:| ------- |
83-
| `r$3` | <b>r</b>gb<b>(0, 0, 0)</b>; |
84-
| `r$4` | <b>r</b>gba<b>(0, 0, 0, 1)</b>; |
84+
| `r$3` | <b>r</b>gb<b>(0, 0, 0)</b> |
85+
| `r$4` | <b>r</b>gba<b>(0, 0, 0, 1)</b> |
8586

8687
## Shortcut rules for SCSS snippets
8788

@@ -106,7 +107,7 @@ __The following prefixes are just examples to explain the rules.__ To see the co
106107
| `@i$` | <b>@i</b>nclude NAME <b>()</b>; |
107108
| `@i$_` | <b>@i</b>nclude NAME <b>()</b> <b>{</b> ... <b>}</b>; |
108109

109-
### 5. The number "1" defines a one liner.
110+
### 5. The number "1" defines a one line snippet.
110111

111112
| Prefix | Snippet |
112113
| -------:| ------- |

SNIPPETS.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ Complete list of all CSS and SCSS snippets for Visual Studio Code. The rules for
658658
| `lhn` | `line-height: normal;` |
659659
| `lsn` | `list-style: none;` |
660660
| `lsin` | `list-style-image: none;` |
661-
| `lsiu` | `list-style-image: url($1);` |
661+
| `lsiu` | `list-style-image: url($0);` |
662662
| `lspi` | `list-style-position: inside;` |
663663
| `lspo` | `list-style-position: outside;` |
664664
| `lsta` | `list-style-type: armenian;` |
@@ -706,7 +706,7 @@ Complete list of all CSS and SCSS snippets for Visual Studio Code. The rules for
706706
| `oo1_` | `outline: outset ${1:0} ${0:#000000};` |
707707
| `or1_` | `outline: ridge ${1:0} ${0:#000000};` |
708708
| `os1_` | `outline: solid ${1:0} ${0:#000000};` |
709-
| `oc_` | `outline: ${0:#000000};` |
709+
| `oc_` | `outline-color: ${0:#000000};` |
710710
| `oo1` | `outline-offset: ${0:0};` |
711711
| `osd` | `outline-style: dashed;` |
712712
| `osd` | `outline-style: dotted;` |
@@ -750,6 +750,16 @@ Complete list of all CSS and SCSS snippets for Visual Studio Code. The rules for
750750
| `pbbr` | `page-break-before: right;` |
751751
| `pbia` | `page-break-inside: auto;` |
752752
| `pbia` | `page-break-inside: avoid;` |
753+
| `pea` | `pointer-events: all;` |
754+
| `pea` | `pointer-events: auto;` |
755+
| `pef` | `pointer-events: fill;` |
756+
| `pen` | `pointer-events: none;` |
757+
| `pep` | `pointer-events: painted;` |
758+
| `pes` | `pointer-events: stroke;` |
759+
| `pev` | `pointer-events: visible;` |
760+
| `pevF` | `pointer-events: visibleFill;` |
761+
| `pevP` | `pointer-events: visiblePainted;` |
762+
| `pevS` | `pointer-events: visibleStroke;` |
753763
| `-p1` | `-moz-perspective: ${0:0}; -webkit-perspective: ${0:0}; perspective: ${0:0};` |
754764
| `p1` | `perspective: ${0:0};` |
755765
| `-pn` | `-moz-perspective: none; -webkit-perspective: none; perspective: none;` |
@@ -778,6 +788,7 @@ Complete list of all CSS and SCSS snippets for Visual Studio Code. The rules for
778788
| `pf` | `position: fixed;` |
779789
| `pr` | `position: relative;` |
780790
| `ps` | `position: static;` |
791+
| `ps` | `position: sticky;` |
781792
| `qn` | `quotes: none;` |
782793
| `q` | `quotes: '«' '»';` |
783794
| `-ri` | `-moz-resize: both; resize: both;` |
@@ -931,8 +942,8 @@ Complete list of all CSS and SCSS snippets for Visual Studio Code. The rules for
931942
| `vh` | `visibility: hidden;` |
932943
| `vv` | `visibility: visible;` |
933944
| `wsn` | `white-space: normal;` |
934-
| `wsp` | `white-space: pre;` |
935945
| `wsn` | `white-space: nowrap;` |
946+
| `wsp` | `white-space: pre;` |
936947
| `wspl` | `white-space: pre-line;` |
937948
| `wspw` | `white-space: pre-wrap;` |
938949
| `w1` | `width: ${0:0};` |
@@ -954,13 +965,16 @@ Complete list of all CSS and SCSS snippets for Visual Studio Code. The rules for
954965
| `@d1` | `@debug ${0:message};` |
955966
| `@w1` | `@warn ${0:message};` |
956967
| `@e1` | `@error ${0:message};` |
968+
| `@f1` | `@forward '$0';` |
969+
| `@u1` | `@use '$0';` |
957970
| `i$3` | `if(${1:condition}, ${2:true}, ${0:false})` |
958971
| `@i_` | `@if ${0:condition} { }` |
959972
| `@ei_` | `@else if ${0:condition} { }` |
960973
| `@e_` | `@else { $0 }` |
961974
| `@fft_` | `@for ${1:$i} from ${2:1} through ${0:$end} { }` |
962975
| `@ei_` | `@each ${1:$item} in ${0:$items} { }` |
963976
| `@w_` | `@while ${0:condition} { }` |
977+
| `@ar_` | `@at-root$1 { $0 }` |
964978
| `@c1` | `@content;` |
965979
| `@e1` | `@extend ${0:name};` |
966980
| `@i$` | `@include ${0:name}();` |

images/icon.png

-27 Bytes
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "l13-css-snippets",
33
"displayName": "CSS and SCSS Snippets",
44
"description": "Snippets for CSS and SCSS",
5-
"version": "0.15.0",
5+
"version": "0.16.0",
66
"publisher": "L13RARY",
77
"license": "SEE LICENCE IN LICENCE.md",
88
"homepage": "https://github.com/l13/vscode-css-snippets/blob/master/README.md",

snippets/css.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@
761761
"list-style: none;": { "prefix": "lsn", "body": ["list-style: none;"], "description": "" },
762762

763763
"list-style-image: none;": { "prefix": "lsin", "body": ["list-style-image: none;"], "description": "" },
764-
"list-style-image: url(...);": { "prefix": "lsiu", "body": ["list-style-image: url($1);"], "description": "" },
764+
"list-style-image: url(...);": { "prefix": "lsiu", "body": ["list-style-image: url($0);"], "description": "" },
765765

766766
"list-style-position: inside;": { "prefix": "lspi", "body": ["list-style-position: inside;"], "description": "" },
767767
"list-style-position: outside;": { "prefix": "lspo", "body": ["list-style-position: outside;"], "description": "" },
@@ -825,7 +825,7 @@
825825
"outline: ridge 0 #000000;": { "prefix": "or1_", "body": ["outline: ridge ${1:0} ${0:#000000};"], "description": "" },
826826
"outline: solid 0 #000000;": { "prefix": "os1_", "body": ["outline: solid ${1:0} ${0:#000000};"], "description": "" },
827827

828-
"outline-color: #000000;": { "prefix": "oc_", "body": ["outline: ${0:#000000};"], "description": "" },
828+
"outline-color: #000000;": { "prefix": "oc_", "body": ["outline-color: ${0:#000000};"], "description": "" },
829829

830830
"outline-offset: 0;": { "prefix": "oo1", "body": ["outline-offset: ${0:0};"], "description": "" },
831831

@@ -883,6 +883,17 @@
883883

884884
"page-break-inside: auto;": { "prefix": "pbia", "body": ["page-break-inside: auto;"], "description": "" },
885885
"page-break-inside: avoid;": { "prefix": "pbia", "body": ["page-break-inside: avoid;"], "description": "" },
886+
887+
"pointer-events: all;": { "prefix": "pea", "body": ["pointer-events: all;"], "description": "" },
888+
"pointer-events: auto;": { "prefix": "pea", "body": ["pointer-events: auto;"], "description": "" },
889+
"pointer-events: fill;": { "prefix": "pef", "body": ["pointer-events: fill;"], "description": "" },
890+
"pointer-events: none;": { "prefix": "pen", "body": ["pointer-events: none;"], "description": "" },
891+
"pointer-events: painted;": { "prefix": "pep", "body": ["pointer-events: painted;"], "description": "" },
892+
"pointer-events: stroke;": { "prefix": "pes", "body": ["pointer-events: stroke;"], "description": "" },
893+
"pointer-events: visible;": { "prefix": "pev", "body": ["pointer-events: visible;"], "description": "" },
894+
"pointer-events: visibleFill;": { "prefix": "pevF", "body": ["pointer-events: visibleFill;"], "description": "" },
895+
"pointer-events: visiblePainted;": { "prefix": "pevP", "body": ["pointer-events: visiblePainted;"], "description": "" },
896+
"pointer-events: visibleStroke;": { "prefix": "pevS", "body": ["pointer-events: visibleStroke;"], "description": "" },
886897

887898
"-prefix-perspective: 0;": { "prefix": "-p1", "body": ["-moz-perspective: ${0:0};", "-webkit-perspective: ${0:0};", "perspective: ${0:0};"], "description": "" },
888899
"perspective: 0;": { "prefix": "p1", "body": ["perspective: ${0:0};"], "description": "" },
@@ -914,6 +925,7 @@
914925
"position: fixed;": { "prefix": "pf", "body": ["position: fixed;"], "description": "" },
915926
"position: relative;": { "prefix": "pr", "body": ["position: relative;"], "description": "" },
916927
"position: static;": { "prefix": "ps", "body": ["position: static;"], "description": "" },
928+
"position: sticky;": { "prefix": "ps", "body": ["position: sticky;"], "description": "" },
917929

918930
"quotes: none;": { "prefix": "qn", "body": ["quotes: none;"], "description": "" },
919931
"quotes: '«' '»';": { "prefix": "q", "body": ["quotes: '«' '»';"], "description": "" },
@@ -1093,8 +1105,8 @@
10931105
"visibility: visible;": { "prefix": "vv", "body": ["visibility: visible;"], "description": "" },
10941106

10951107
"white-space: normal;": { "prefix": "wsn", "body": ["white-space: normal;"], "description": "" },
1096-
"white-space: pre;": { "prefix": "wsp", "body": ["white-space: pre;"], "description": "" },
10971108
"white-space: nowrap;": { "prefix": "wsn", "body": ["white-space: nowrap;"], "description": "" },
1109+
"white-space: pre;": { "prefix": "wsp", "body": ["white-space: pre;"], "description": "" },
10981110
"white-space: pre-line;": { "prefix": "wspl", "body": ["white-space: pre-line;"], "description": "" },
10991111
"white-space: pre-wrap;": { "prefix": "wspw", "body": ["white-space: pre-wrap;"], "description": "" },
11001112

@@ -1112,5 +1124,5 @@
11121124
"word-wrap: normal;": { "prefix": "wwn", "body": ["word-wrap: normal;"], "description": "" },
11131125

11141126
"z-index: 0;": { "prefix": "zi1", "body": ["z-index: ${0:0};"], "description": "" },
1115-
"z-index: auto;": { "prefix": "zia", "body": ["z-index: auto;"], "description": "o;"}
1127+
"z-index: auto;": { "prefix": "zia", "body": ["z-index: auto;"], "description": ""}
11161128
}

snippets/scss.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"@debug __MESSAGE__;": { "prefix": "@d1", "body": ["@debug ${0:message};"], "description": "" },
3-
"@warn __MESSAGE__;": { "prefix": "@w1", "body": ["@warn ${0:message};"], "description": "" },
4-
"@error __MESSAGE__;": { "prefix": "@e1", "body": ["@error ${0:message};"], "description": "" },
2+
"@debug;": { "prefix": "@d1", "body": ["@debug ${0:message};"], "description": "" },
3+
"@warn;": { "prefix": "@w1", "body": ["@warn ${0:message};"], "description": "" },
4+
"@error;": { "prefix": "@e1", "body": ["@error ${0:message};"], "description": "" },
55

6+
"@forward '';": { "prefix": "@f1", "body": ["@forward '$0';"], "description": "" },
7+
"@use '';": { "prefix": "@u1", "body": ["@use '$0';"], "description": "" },
8+
69
"if()": { "prefix": "i$3", "body": ["if(${1:condition}, ${2:true}, ${0:false})"], "description": "" },
710
"@if {}": { "prefix": "@i_", "body": ["@if ${0:condition} {", "\t", "}"], "description": "" },
811
"@if {} @else if {}": { "prefix": "@ei_", "body": ["@else if ${0:condition} {", "\t", "}"], "description": "" },
@@ -12,6 +15,7 @@
1215
"@each in {}": { "prefix": "@ei_", "body": ["@each ${1:$item} in ${0:$items} {", "\t", "}"], "description": "" },
1316
"@while {}": { "prefix": "@w_", "body": ["@while ${0:condition} {", "\t", "}"], "description": "" },
1417

18+
"@at-root {}": { "prefix": "@ar_", "body": ["@at-root$1 {", "\t$0", "}"], "description": "" },
1519
"@content;": { "prefix": "@c1", "body": ["@content;"], "description": "" },
1620
"@extend ;": { "prefix": "@e1", "body": ["@extend ${0:name};"], "description": "" },
1721
"@include ()": { "prefix": "@i$", "body": ["@include ${0:name}();"], "description": "" },

0 commit comments

Comments
 (0)