Skip to content

Commit

Permalink
feat(scss): add thumbnail, title, toggle and toolbar css custom props
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjulian committed Jan 15, 2019
1 parent c83880b commit 35e52b2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,12 @@ Type part of a snippet, press enter, and the snippet unfolds.
| `i-dark-mode-media-query` | Dark mode media query for Mac OS |
| `i-root` | `:root { }` |
| `i-stepped-color` | Stepped colors add to `:root` |
| `i-thumbnail-props` | Thumbnail CSS custom properties |
| `i-title-props` | Title CSS custom properties |
| `i-toast-props` | Toast CSS custom properties |
| `i-toast-example` | Toast CSS custom example style for success, warning or danger toasts |
| `i-toggle-props` | Toggle CSS custom properties |
| `i-toolbar-props` | Toolbar CSS custom properties |


**[⬆ back to top](#overview)**
Expand Down
42 changes: 42 additions & 0 deletions snippets/scss.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,21 @@
],
"description": "Stepped colors add to :root"
},
"ion-thumbnail-props": {
"prefix": "i-thumbnail-props",
"body": [
"--border-radius: ${1:8px};",
"--size: ${2:64px};"
],
"description": "Title CSS custom properties"
},
"ion-title-props": {
"prefix": "i-title-props",
"body": [
"--color: ${1:#3880ff};"
],
"description": "Title CSS custom properties"
},
"ion-toast-props": {
"prefix": "i-toast-props",
"body": [
Expand Down Expand Up @@ -146,5 +161,32 @@
"}"
],
"description": "Toast CSS custom example style for success, warning or danger toasts"
},
"ion-toggle-props": {
"prefix": "i-toggle-props",
"body": [
"--background: ${1:#ffffff};",
"--background-checked: ${2:#3880ff};",
"--handle-background: ${3:#ffffff};",
"--handle-background-checked: ${4:#3880ff};"
],
"description": "Toggle CSS custom properties"
},
"ion-toolbar-props": {
"prefix": "i-toolbar-props",
"body": [
"--background: ${1:#ffffff};",
"--border-color: ${2:#3880ff};",
"--border-style: ${3:solid};",
"--border-width: ${4:8px};",
"--color: ${5:#3880ff};",
"--min-height: ${6:56px};",
"--opacity: ${7:56px};",
"--padding-bottom: ${8:4px};",
"--padding-end: ${9:4px};",
"--padding-start: ${10:4px};",
"--padding-top: ${11:4px};"
],
"description": "Toolbar CSS custom properties"
}
}

0 comments on commit 35e52b2

Please sign in to comment.