Skip to content

Commit 46011de

Browse files
committed
feat(hide): add ion-hide snippets
1 parent c781464 commit 46011de

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

Diff for: README.md

+6
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ Type part of a snippet, press enter, and the snippet unfolds.
157157

158158
| Snippet | Purpose |
159159
| ---------------------------- | ------------------------------------------------------------ |
160+
| `i-hide` | CSS Utilities Hide Element |
161+
| `i-hide-breakpoints` | CSS Utilities Hide Element with Display Breakpoints |
162+
| `i-hide-sm` | CSS Utilities Hide Element sm. Applies the modifier to the element when min-width: 576px (up) or max-width: 576px (down). |
163+
| `i-hide-md` | CSS Utilities Hide Element md. Applies the modifier to the element when min-width: 768px (up) or max-width: 768px (down). |
164+
| `i-hide-lg` | CSS Utilities Hide Element lg. Applies the modifier to the element when min-width: 992px (up) or max-width: 992px (down). |
165+
| `i-hide-xl` | CSS Utilities Hide Element xl. Applies the modifier to the element when min-width: 1200px (up) or max-width: 1200px (down). |
160166
| `i-text-alignment` | Text alignment such as left, right, center |
161167

162168
**[⬆ back to top](#overview)**

Diff for: snippets/html.json

+43-1
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,48 @@
438438
],
439439
"description": "<ion-header>"
440440
},
441+
"ion-hide": {
442+
"prefix": "i-hide",
443+
"body": [
444+
"class=\"ion-hide\""
445+
],
446+
"description": "CSS Utilities Hide Element"
447+
},
448+
"ion-hide-breakpoints": {
449+
"prefix": "i-hide-breakpoints",
450+
"body": [
451+
"class=\"ion-hide-${1|sm,md,lg,xl|}-${2|up,down|}\""
452+
],
453+
"description": "CSS Utilities Hide Element with Display Breakpoints"
454+
},
455+
"ion-hide-sm": {
456+
"prefix": "i-hide-sm",
457+
"body": [
458+
"class=\"ion-hide-sm-${1|up,down|}\""
459+
],
460+
"description": "CSS Utilities Hide Element sm. Applies the modifier to the element when min-width: 576px (up) or max-width: 576px (down)."
461+
},
462+
"ion-hide-md": {
463+
"prefix": "i-hide-md",
464+
"body": [
465+
"class=\"ion-hide-md-${1|up,down|}\""
466+
],
467+
"description": "CSS Utilities Hide Element md. Applies the modifier to the element when min-width: 768px (up) or max-width: 768px (down)."
468+
},
469+
"ion-hide-lg": {
470+
"prefix": "i-hide-lg",
471+
"body": [
472+
"class=\"ion-hide-lg-${1|up,down|}\""
473+
],
474+
"description": "CSS Utilities Hide Element lg. Applies the modifier to the element when min-width: 992px (up) or max-width: 992px (down)."
475+
},
476+
"ion-hide-xl": {
477+
"prefix": "i-hide-xl",
478+
"body": [
479+
"class=\"ion-hide-xl-${1|up,down|}\""
480+
],
481+
"description": "CSS Utilities Hide Element xl. Applies the modifier to the element when min-width: 1200px (up) or max-width: 1200px (down)."
482+
},
441483
"ion-icon": {
442484
"prefix": "i-icon",
443485
"body": [
@@ -1025,7 +1067,7 @@
10251067
"body": [
10261068
"text-${1|left,right,start,end,center,justify,wrap,nowrap|}"
10271069
],
1028-
"description": "text alignment"
1070+
"description": "CSS Utilities Text Alignment"
10291071
},
10301072
"ion-textarea": {
10311073
"prefix": "i-textarea",

0 commit comments

Comments
 (0)