forked from mskocik/svelty-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mskocik#137 from Mero-Plaform/docs-theme-improvement
CSS vars & DOCS theme improvements
- Loading branch information
Showing
6 changed files
with
484 additions
and
420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,66 @@ | ||
<script> | ||
import SveltyPicker from 'svelty-picker'; | ||
import SveltyPicker from "svelty-picker"; | ||
</script> | ||
|
||
The picker's mode responds to website light/dark mode setting. | ||
<SveltyPicker pickerOnly mode="datetime" /> | ||
|
||
<style> | ||
:global(.dark) { | ||
--sdt-bg-main: #585858; | ||
--sdt-shadow-color: #777; | ||
--sdt-color: #eee; | ||
--sdt-header-color: #eee; | ||
--sdt-primary: #e1ac4a; | ||
--sdt-disabled-date: #b22222; | ||
--sdt-disabled-date-bg: var(--sdt-bg-main); | ||
--sdt-btn-bg-hover: #777; | ||
--sdt-btn-header-bg-hover: #777; | ||
--sdt-color-selected: #fff; | ||
--sdt-today-indicator: #ccc; | ||
--sdt-clock-bg: #999; | ||
/* custom buttons */ | ||
--sdt-today-bg: #e4a124; | ||
--sdt-today-color: #fff; | ||
--sdt-clear-color: #666; | ||
--sdt-clear-bg: #ddd; | ||
--sdt-clear-hover-color: #fff; | ||
--sdt-clear-hover-bg: #dc3545; | ||
} | ||
:global(.light) { | ||
--sdt-bg-main: #fff; | ||
--sdt-shadow-color: #ccc; | ||
--sdt-color: inherit; | ||
--sdt-primary: #286090; | ||
--sdt-disabled-date: #b22222; | ||
--sdt-disabled-date-bg: var(--sdt-bg-main); | ||
--sdt-btn-bg-hover: #eee; | ||
--sdt-btn-header-bg-hover: #dfdfdf; | ||
--sdt-color-selected: #fff; | ||
--sdt-today-indicator: #ccc; | ||
--sdt-clock-bg: #eeeded; | ||
/* custom buttons */ | ||
--sdt-today-bg: #1e486d; | ||
--sdt-today-color: #fff; | ||
--sdt-clear-color: #dc3545; | ||
--sdt-clear-bg: #fff; | ||
--sdt-clear-hover-color: #fff; | ||
--sdt-clear-hover-bg: #dc3545; | ||
} | ||
:global(.dark) { | ||
--sdt-bg-main: #585858; | ||
--sdt-shadow-color: #777; | ||
--sdt-color: #eee; | ||
--sdt-clock-color: var(--sdt-color); | ||
--sdt-clock-color-hover: var(--sdt-color); | ||
--sdt-clock-time-bg: transparent; | ||
--sdt-clock-time-bg-hover: transparent; | ||
--sdt-clock-disabled: #b22222; | ||
--sdt-clock-disabled-bg: var(--sdt-bg-main); | ||
--sdt-clock-selected-bg: var(--sdt-bg-selected); | ||
--sdt-header-color: #eee; | ||
--sdt-bg-selected: #e1ac4a; | ||
--sdt-table-disabled-date: #b22222; | ||
--sdt-table-disabled-date-bg: var(--sdt-bg-main); | ||
--sdt-table-data-bg-hover: #777; | ||
--sdt-table-selected-bg: var(--sdt-bg-selected); | ||
--sdt-header-btn-bg-hover: #777; | ||
--sdt-color-selected: #fff; | ||
--sdt-table-today-indicator: #ccc; | ||
--sdt-clock-bg: #999; | ||
/* custom buttons */ | ||
--sdt-today-bg: #e4a124; | ||
--sdt-today-color: #fff; | ||
--sdt-clear-color: #666; | ||
--sdt-clear-bg: #ddd; | ||
--sdt-clear-hover-color: #fff; | ||
--sdt-clear-hover-bg: #dc3545; | ||
} | ||
:global(.light) { | ||
--sdt-bg-main: #fff; | ||
--sdt-shadow-color: #ccc; | ||
--sdt-color: inherit; | ||
--sdt-clock-color: var(--sdt-color); | ||
--sdt-clock-color-hover: var(--sdt-color); | ||
--sdt-clock-time-bg: transparent; | ||
--sdt-clock-time-bg-hover: transparent; | ||
--sdt-clock-disabled: #b22222; | ||
--sdt-clock-disabled-bg: var(--sdt-bg-main); | ||
--sdt-clock-selected-bg: var(--sdt-bg-selected); | ||
--sdt-bg-selected: #286090; | ||
--sdt-table-disabled-date: #b22222; | ||
--sdt-table-disabled-date-bg: var(--sdt-bg-main); | ||
--sdt-table-data-bg-hover: #eee; | ||
--sdt-table-selected-bg: var(--sdt-bg-selected); | ||
--sdt-header-btn-bg-hover: #dfdfdf; | ||
--sdt-color-selected: #fff; | ||
--sdt-table-today-indicator: #ccc; | ||
--sdt-clock-bg: #eeeded; | ||
/* custom buttons */ | ||
--sdt-today-bg: #1e486d; | ||
--sdt-today-color: #fff; | ||
--sdt-clear-color: #dc3545; | ||
--sdt-clear-bg: #fff; | ||
--sdt-clear-hover-color: #fff; | ||
--sdt-clear-hover-bg: #dc3545; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.