-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit d7def19
Showing
4 changed files
with
581 additions
and
0 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,126 @@ | ||
/* make it responsive */ | ||
@media(min-width: 852px) { | ||
body { | ||
font-size: 22px; | ||
} | ||
} | ||
@media(max-width: 852px) { | ||
body { | ||
font-size: 14px; | ||
} | ||
} | ||
|
||
/* resets */ | ||
html, body { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
*::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
* { | ||
-ms-overflow-style: none; | ||
scrollbar-width: none; | ||
} | ||
|
||
* { | ||
-moz-box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
|
||
/* default */ | ||
body { | ||
margin: 0; | ||
background-color: var(--primary-bg-color); | ||
color: var(--foreground-color); | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
margin: 0em; | ||
} | ||
|
||
hr { | ||
width: 92%; | ||
} | ||
|
||
button { | ||
cursor: pointer; | ||
border: none; | ||
background-color: transparent; | ||
} | ||
button:hover { | ||
} | ||
button:active { | ||
} | ||
|
||
/* components */ | ||
.container { | ||
margin: 0 auto; | ||
padding: 1rem; | ||
} | ||
|
||
.centered { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.centered-w-only { | ||
position: absolute; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
} | ||
|
||
.centered-h-only { | ||
position: absolute; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
} | ||
|
||
.card { | ||
padding: 0; | ||
} | ||
|
||
.card-header { | ||
padding: 0.5rem 1rem; | ||
} | ||
|
||
.card-container { | ||
width: 96vw; | ||
height: 100%; | ||
gap: 1rem; | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.clean-a { | ||
text-decoration: underline; | ||
text-decoration-color: #006fc1; | ||
text-decoration-thickness: 2px; | ||
color: inherit; | ||
} | ||
|
||
.hover-underline { | ||
text-decoration: underline; | ||
text-decoration-color: #228039; | ||
text-decoration-thickness: 2px; | ||
color: inherit; | ||
} | ||
|
||
.flex-horizontal { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.vertical-separator { | ||
padding: 0 0.5rem; | ||
} |
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,162 @@ | ||
/* define colors */ | ||
:root { | ||
--primary-color: #a52e4d; | ||
--secondary-color: #228039; | ||
|
||
--red-color: #a52e4d; | ||
--green-color: #228039; | ||
--silver-color: #88808e; | ||
} | ||
@media(prefers-color-scheme: light) { | ||
:root { | ||
--primary-bg-color: #f0f0f0; | ||
--secondary-bg-color: #eeeeee; | ||
--foreground-color: #111111; | ||
--accent-color: #000000; | ||
} | ||
} | ||
@media(prefers-color-scheme: dark) { | ||
:root { | ||
--primary-bg-color: #111111; | ||
--secondary-bg-color: #131313; | ||
--foreground-color: #f0f0f0; | ||
--accent-color: #aaaaaa; | ||
} | ||
} | ||
|
||
/* font for all */ | ||
* { | ||
font-family: monospace; | ||
font-weight: 400; | ||
font-style: normal; | ||
} | ||
|
||
/* header */ | ||
.header { | ||
width: 96vw; | ||
|
||
padding: 0.5rem 2rem; | ||
gap: 0.5rem; | ||
|
||
background-color: var(--secondary-bg-color); | ||
color: var(--foreground-color); | ||
|
||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
|
||
border-radius: 10px; | ||
} | ||
@media(prefers-color-scheme: light) { | ||
.header { | ||
border-bottom: 2px solid var(--accent-color); | ||
box-shadow: 10px 10px 20px 2px rgba(0, 0, 0, 0.4); | ||
} | ||
} | ||
@media(prefers-color-scheme: dark) { | ||
.header { | ||
border-bottom: 2px solid var(--accent-color); | ||
box-shadow: 10px 10px 20px 2px rgba(255, 255, 255, 0.1); | ||
} | ||
} | ||
|
||
.last-updated-container { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
/* hide last updated container when width is too small */ | ||
@media(max-width: 852px) { | ||
.last-updated-container { | ||
display: none; | ||
} | ||
} | ||
|
||
.last-n-container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
/* stat card */ | ||
.stat-outer-container { | ||
padding: 2.5rem 0; | ||
gap: 1rem; | ||
} | ||
|
||
.stat-card { | ||
width: 100vw; | ||
max-width: 45rem; | ||
border-bottom: 2px solid var(--accent-color); | ||
} | ||
|
||
/* chartist */ | ||
.ct-label { | ||
color: var(--foreground-color); | ||
opacity: 0.6; | ||
} | ||
|
||
.ct-grid { | ||
stroke: var(--accent-color); | ||
opacity: 0.2; | ||
} | ||
|
||
.ct-line { | ||
stroke-width: 2px; | ||
} | ||
|
||
.ct-point { | ||
stroke-width: 4px; | ||
} | ||
|
||
/* chartist series colors */ | ||
/* tinybox red */ | ||
.ct-series-a .ct-line, | ||
.ct-series-a .ct-point { | ||
stroke: var(--red-color); | ||
} | ||
.ct-series-a .ct-area { | ||
fill: var(--red-color); | ||
} | ||
.ct-series-b .ct-line, | ||
.ct-series-b .ct-point { | ||
stroke: var(--red-color); | ||
} | ||
.ct-series-b .ct-area { | ||
fill: var(--red-color); | ||
} | ||
|
||
/* tinybox green */ | ||
.ct-series-c .ct-line, | ||
.ct-series-c .ct-point { | ||
stroke: var(--green-color); | ||
} | ||
.ct-series-c .ct-area { | ||
fill: var(--green-color); | ||
} | ||
.ct-series-d .ct-line, | ||
.ct-series-d .ct-point { | ||
stroke: var(--green-color); | ||
} | ||
.ct-series-d .ct-area { | ||
fill: var(--green-color); | ||
} | ||
|
||
/* mac */ | ||
.ct-series-e .ct-line, | ||
.ct-series-e .ct-point { | ||
stroke: var(--silver-color); | ||
} | ||
.ct-series-e .ct-area { | ||
fill: var(--silver-color); | ||
} | ||
|
||
/* fonts */ | ||
.megrim-regular { | ||
font-family: "Megrim", system-ui; | ||
font-weight: 400; | ||
font-style: normal; | ||
} |
Oops, something went wrong.