-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
201 additions
and
105 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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/* dark mode */ | ||
* { | ||
transition: color 0.3s; | ||
transition: background-color 0.5s; | ||
} | ||
::selection { | ||
color: rgb(87, 58, 189); | ||
background: #ddd; | ||
} | ||
body { | ||
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#00a4e0+0,46137a+100 */ | ||
background: #00a4e0; /* Old browsers */ | ||
background: -moz-linear-gradient(left, #00a4e0 0%, #46137a 100%); /* FF3.6-15 */ | ||
background: -webkit-linear-gradient(left, #00a4e0 0%,#46137a 100%); /* Chrome10-25,Safari5.1-6 */ | ||
background: linear-gradient(to right, #00a4e0 0%,#46137a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ | ||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00a4e0', endColorstr='#46137a',GradientType=1 ); /* IE6-9 */ | ||
} | ||
#header { | ||
background: #111; | ||
box-shadow: #000 0 0 10px 5px; | ||
} | ||
.head { | ||
background-image: url('../img/day.png'); | ||
} | ||
#welcome, #result { | ||
background: #111; | ||
box-shadow: #000 0 0 10px 5px; | ||
color: rgb(252, 252, 252); | ||
} | ||
.logo { | ||
opacity: 1; | ||
} | ||
.logo:hover { | ||
opacity: 0.8; | ||
} | ||
.time-logo, .foot, .pin { | ||
filter: invert(100%); | ||
} | ||
#title-box + div > input { | ||
color: #fff; | ||
background-color: #111; | ||
border: 1.5px solid #fff; | ||
} | ||
.warning { | ||
color: rgb(231, 20, 20, 1.0); | ||
} | ||
.highlight { | ||
color: rgb(0, 205, 245); | ||
font-weight: bolder; | ||
} | ||
#footer { | ||
background: #111; | ||
box-shadow: #000 0 0 15px 2px; | ||
color: rgb(252, 252, 252); | ||
} | ||
.box { | ||
background: #111; | ||
box-shadow: none; | ||
border: 3px solid #000; | ||
color: rgb(252, 252, 252); | ||
} | ||
.a:hover, .a:focus { | ||
border: 3px solid #ddd; | ||
background: #fff; | ||
color: #000; | ||
} | ||
.status-bar { | ||
border: 3px solid #111; | ||
background: #333; | ||
} | ||
.status { | ||
background-color: rgba(191, 168, 255, 1.0); | ||
} | ||
.wait { | ||
color: rgb(252, 252, 252); | ||
} | ||
.art { | ||
box-shadow: #333 0px 0px 10px 5px; | ||
} | ||
hr { | ||
border: 1.5px dashed #ddd; | ||
} | ||
#share-box { | ||
background: #666; | ||
} | ||
.btn { | ||
background: rgba(167, 105, 218, 1.0); | ||
} | ||
.btn:hover { | ||
background: rgba(167, 105, 218, 0.7); | ||
} | ||
.pro_pic { | ||
opacity: 1.0; | ||
} | ||
.pro_pic:hover { | ||
opacity: 0.7; | ||
} | ||
.caution > p > a { | ||
color: rgba(94, 134, 255, 1.0); | ||
} | ||
.caution > p > a:hover { | ||
color: rgba(94, 134, 255, 0.7); | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
let flag = 0; | ||
const head = document.getElementsByTagName('head')[0]; | ||
const dark_css = document.createElement('link'); | ||
dark_css.rel = 'stylesheet'; | ||
dark_css.type = 'text/css'; | ||
dark_css.href = 'css/darkmode.css'; | ||
|
||
function goDark() { | ||
flag = 1; | ||
head.appendChild(dark_css); | ||
} | ||
|
||
function goLight() { | ||
flag = 0; | ||
if (head.lastChild === dark_css) | ||
head.removeChild(dark_css); | ||
} | ||
|
||
function isDarkMode() { | ||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) | ||
goDark(); | ||
else | ||
goLight(); | ||
} | ||
|
||
function switchMode() { | ||
if (flag) | ||
goLight(); | ||
else | ||
goDark(); | ||
} | ||
|
||
isDarkMode(); |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"use strict"; | ||
|
||
var flag = 0; | ||
var head = document.getElementsByTagName('head')[0]; | ||
var dark_css = document.createElement('link'); | ||
dark_css.rel = 'stylesheet'; | ||
dark_css.type = 'text/css'; | ||
dark_css.href = 'css/darkmode.css'; | ||
|
||
function goDark() { | ||
flag = 1; | ||
head.appendChild(dark_css); | ||
} | ||
|
||
function goLight() { | ||
flag = 0; | ||
if (head.lastChild === dark_css) head.removeChild(dark_css); | ||
} | ||
|
||
function isDarkMode() { | ||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) goDark();else goLight(); | ||
} | ||
|
||
function switchMode() { | ||
if (flag) goLight();else goDark(); | ||
} | ||
|
||
isDarkMode(); |
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