Skip to content

Commit

Permalink
feat(hide): add ion-hide snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjulian committed Mar 16, 2019
1 parent c781464 commit 46011de
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ Type part of a snippet, press enter, and the snippet unfolds.

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

**[⬆ back to top](#overview)**
Expand Down
44 changes: 43 additions & 1 deletion snippets/html.json
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,48 @@
],
"description": "<ion-header>"
},
"ion-hide": {
"prefix": "i-hide",
"body": [
"class=\"ion-hide\""
],
"description": "CSS Utilities Hide Element"
},
"ion-hide-breakpoints": {
"prefix": "i-hide-breakpoints",
"body": [
"class=\"ion-hide-${1|sm,md,lg,xl|}-${2|up,down|}\""
],
"description": "CSS Utilities Hide Element with Display Breakpoints"
},
"ion-hide-sm": {
"prefix": "i-hide-sm",
"body": [
"class=\"ion-hide-sm-${1|up,down|}\""
],
"description": "CSS Utilities Hide Element sm. Applies the modifier to the element when min-width: 576px (up) or max-width: 576px (down)."
},
"ion-hide-md": {
"prefix": "i-hide-md",
"body": [
"class=\"ion-hide-md-${1|up,down|}\""
],
"description": "CSS Utilities Hide Element md. Applies the modifier to the element when min-width: 768px (up) or max-width: 768px (down)."
},
"ion-hide-lg": {
"prefix": "i-hide-lg",
"body": [
"class=\"ion-hide-lg-${1|up,down|}\""
],
"description": "CSS Utilities Hide Element lg. Applies the modifier to the element when min-width: 992px (up) or max-width: 992px (down)."
},
"ion-hide-xl": {
"prefix": "i-hide-xl",
"body": [
"class=\"ion-hide-xl-${1|up,down|}\""
],
"description": "CSS Utilities Hide Element xl. Applies the modifier to the element when min-width: 1200px (up) or max-width: 1200px (down)."
},
"ion-icon": {
"prefix": "i-icon",
"body": [
Expand Down Expand Up @@ -1025,7 +1067,7 @@
"body": [
"text-${1|left,right,start,end,center,justify,wrap,nowrap|}"
],
"description": "text alignment"
"description": "CSS Utilities Text Alignment"
},
"ion-textarea": {
"prefix": "i-textarea",
Expand Down

0 comments on commit 46011de

Please sign in to comment.