-
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.
- Loading branch information
Showing
9 changed files
with
2,293 additions
and
13 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
window.onload = () => { | ||
document.querySelectorAll('[data-selects]') | ||
.forEach(el => { | ||
el.addEventListener('click', () => { | ||
const target = document.querySelector(`#${el.dataset.selects}`) | ||
|
||
const range = document.createRange() | ||
range.selectNode(target) | ||
window.getSelection().removeAllRanges() | ||
window.getSelection().addRange(range) | ||
}) | ||
}) | ||
|
||
document.querySelectorAll('[data-copies]') | ||
.forEach(el => { | ||
el.addEventListener('click', () => { | ||
const target = document.querySelector(`#${el.dataset.copies}`) | ||
|
||
const range = document.createRange() | ||
range.selectNode(target) | ||
window.getSelection().removeAllRanges() | ||
window.getSelection().addRange(range) | ||
|
||
document.execCommand("copy"); | ||
}) | ||
}) | ||
} |
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,131 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@400;700&display=swap'); | ||
@import url('https://fonts.googleapis.com/css2?family=PT+Mono&display=swap'); | ||
|
||
:root { | ||
--accent: #1A659E; /* sapphire blue */ | ||
--accent2: #0E3858; /* prussian blue */ | ||
} | ||
|
||
body { | ||
font-family: "Commissioner", -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial, sans-serif; | ||
color: #444; | ||
background-color: #FFFFFA; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
align-items: center; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
color: var(--accent); | ||
} | ||
a:hover { | ||
color: var(--accent2); | ||
} | ||
code { | ||
padding: 5px; | ||
display: block; | ||
word-break: break-word; | ||
background-color: #ddd; | ||
} | ||
|
||
code.inline { | ||
display: inline-block; | ||
} | ||
|
||
pre { | ||
margin: 0; | ||
} | ||
|
||
.numeric, .mono { | ||
font-family: 'PT Mono', Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; | ||
} | ||
|
||
/* --- NAVIGATION --- */ | ||
|
||
nav { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
|
||
align-self: stretch; | ||
} | ||
|
||
nav img { | ||
height: 30px; | ||
width: 30px; | ||
} | ||
|
||
.nav__brand, .nav__login { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
} | ||
|
||
.nav__title, .nav__name { | ||
margin: 0 1ch; | ||
} | ||
|
||
.nav__login { | ||
position: relative; | ||
cursor: pointer; | ||
} | ||
|
||
.nav__login:hover > .nav__logout { | ||
opacity: 0.95; | ||
} | ||
.nav__logout { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
background-color: white; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
transition: opacity 0.25s cubic-bezier(0,0,0.3,1); | ||
opacity: 0; | ||
} | ||
|
||
|
||
/* --- layout --- */ | ||
|
||
@media (min-width: 768px) { | ||
main { | ||
width: 80ch; | ||
} | ||
} | ||
|
||
table { | ||
width: 100%; | ||
} | ||
|
||
table th { | ||
text-align: left; | ||
} | ||
|
||
.spinner { | ||
animation: spin 1s cubic-bezier(1,0,0,1) forwards infinite; | ||
width: 50px; | ||
height: 50px; | ||
border-radius: 50%; | ||
border: 1px solid black; | ||
border-top: 1px solid transparent; | ||
} | ||
|
||
@keyframes spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
Oops, something went wrong.