Skip to content

Commit

Permalink
light globe icon for dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jackocnr committed Jul 11, 2024
1 parent 4db9144 commit 33d47c0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,13 @@ Dark mode example:
```css
@media (prefers-color-scheme: dark) {
.iti {
--iti-border-color: #30363d;
--iti-border-color: #5b5b5b;
--iti-dialcode-color: #999999;
--iti-dropdown-bg: #0d1117;
--iti-arrow-color: #aaaaaa;
--iti-hover-color: #30363d;
--iti-path-globe-1x: url("path/to/globe_light.png");
--iti-path-globe-2x: url("path/to/[email protected]");
}
}
```
Expand All @@ -356,7 +358,7 @@ NOTE: this assumes you already have your own dark mode styling in place for gene
background-color: #0d1117;
}
input {
border-color: #30363d;
border-color: #5b5b5b;
}
input::placeholder {
color: #8d96a0;
Expand Down
8 changes: 5 additions & 3 deletions build/css/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,18 @@ input::placeholder {
background-color: #0d1117;
}
input {
border-color: #30363d;
border-color: #5b5b5b;
}
input::placeholder {
color: #8d96a0;
}
:root {
--iti-border-color: #30363d;
.iti {
--iti-border-color: #5b5b5b;
--iti-dialcode-color: #999999;
--iti-dropdown-bg: #0d1117;
--iti-arrow-color: #aaaaaa;
--iti-hover-color: #30363d;
--iti-path-globe-1x: url("../img/globe_light.png");
--iti-path-globe-2x: url("../img/[email protected]");
}
}
Binary file added build/img/globe_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/css/demo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,19 @@ input::placeholder {
background-color: #0d1117;
}
input {
border-color: #30363d;
border-color: #5b5b5b;
}
input::placeholder {
color: #8d96a0;
}
// intl-tel-input styling
.iti {
--iti-border-color: #30363d;
--iti-border-color: #5b5b5b;
--iti-dialcode-color: #999999;
--iti-dropdown-bg: #0d1117;
--iti-arrow-color: #aaaaaa;
--iti-hover-color: #30363d;
--iti-path-globe-1x: url("../img/globe_light.png");
--iti-path-globe-2x: url("../img/[email protected]");
}
}

0 comments on commit 33d47c0

Please sign in to comment.