Skip to content

Commit

Permalink
feat 深色模式
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaoca committed Jun 2, 2022
1 parent 34faf6d commit f91d397
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions dist/css/cxcalendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,14 @@
--cxcalendar-note-color: #888;
--cxcalendar-now-bg: #333;
--cxcalendar-set-bg: #8cc152;
--cxcalendar-range-bg: #29485d;
--cxcalendar-range-set-bg: #70a9ce;
--cxcalendar-btn-color: #333;
--cxcalendar-btn-bg: #ccc;
--cxcalendar-confirm-bg: #4a89dc
}
.cxcalendar.range .cxcalendar_bd ul li.selected.end,
.cxcalendar.range .cxcalendar_bd ul li.selected.start,
.cxcalendar_acts .confirm,
.cxcalendar_acts .confirm:hover,
.cxcalendar_bd ul li.selected,
Expand All @@ -552,9 +556,6 @@
.cxcalendar.range .cxcalendar_bd ul + ul:before {
background: linear-gradient(to bottom,rgba(255,255,255,0) 0,rgba(255,255,255,.1) 35%,rgba(255,255,255,.1) 65%,rgba(255,255,255,0) 100%)
}
.cxcalendar.range .cxcalendar_bd ul li.selected {
background-color: #29485d
}
.cxcalendar.has_weeknum .cxcalendar_bd .days li[data-week-num]:before {
background-color: rgba(255,255,255,.1);
color: #888
Expand Down
5 changes: 2 additions & 3 deletions dist/css/cxcalendar.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,8 @@

--cxcalendar-now-bg: #333;
--cxcalendar-set-bg: #8cc152;
--cxcalendar-range-bg: #29485d;
--cxcalendar-range-set-bg: #70a9ce;

--cxcalendar-btn-color: #333;
--cxcalendar-btn-bg: #ccc;
Expand All @@ -624,7 +626,9 @@
.cxcalendar_bd ul li.selected.sun,
.cxcalendar_bd ul li.selected:hover,
.cxcalendar_acts .confirm,
.cxcalendar_acts .confirm:hover {
.cxcalendar_acts .confirm:hover,
.cxcalendar.range .cxcalendar_bd ul li.selected.start,
.cxcalendar.range .cxcalendar_bd ul li.selected.end {
color: #fff;
}

Expand All @@ -634,9 +638,6 @@
.cxcalendar.range .cxcalendar_bd ul + ul:before {
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 35%, rgba(255, 255, 255, 0.1) 65%, rgba(255, 255, 255, 0) 100%);
}
.cxcalendar.range .cxcalendar_bd ul li.selected {
background-color: #29485d;
}
.cxcalendar.has_weeknum .cxcalendar_bd .days li[data-week-num]:before {
background-color: rgba(255, 255, 255, 0.1);
color: #888;
Expand Down

0 comments on commit f91d397

Please sign in to comment.