Skip to content

Commit cbf4883

Browse files
committed
Make icons sizable, fixes #4
1 parent 07fb910 commit cbf4883

File tree

5 files changed

+122
-120
lines changed

5 files changed

+122
-120
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ See the demo source code for some concrete examples.
182182
| ----------------- | ------- | ----------- |
183183
| `--dark-mode-toggle-light-icon` | No icon | The icon for the light state in `background-image:` notation. |
184184
| `--dark-mode-toggle-dark-icon` | No icon | The icon for the dark state in `background-image:` notation. |
185+
| `--dark-mode-toggle-icon-size` | 1rem | The icon size in CSS length data type notation. |
185186
| `--dark-mode-toggle-remember-icon-checked` | No icon | The icon for the checked "remember the last selected mode" functionality in `background-image:` notation. |
186187
| `--dark-mode-toggle-remember-icon-unchecked` | No icon | The icon for the unchecked "remember the last selected mode" functionality in `background-image:` notation. |
187188
| `--dark-mode-toggle-color` | User-Agent stylesheet text color | The main text color in `color:` notation. |

demo/common.css

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ dark-mode-toggle {
129129
#dark-mode-toggle-2 {
130130
--dark-mode-toggle-light-icon: url("sun.svg");
131131
--dark-mode-toggle-dark-icon: url("moon.svg");
132+
--dark-mode-toggle-icon-size: 2rem;
132133
--dark-mode-toggle-icon-filter: invert(100%);
133134
}
134135

0 commit comments

Comments
 (0)