201 lines
3.2 KiB
CSS
201 lines
3.2 KiB
CSS
:root {
|
|
--default-text: #000;
|
|
--default-text-invert: #fff;
|
|
|
|
--dim-text: #666;
|
|
|
|
--primary-color: #f55;
|
|
--primary-color-text: #fff;
|
|
--secondary-color: #ed0;
|
|
--secondary-color-text: #000;
|
|
|
|
--default-bg: #fff;
|
|
--second-bg: #ddd;
|
|
--third-bg: #bbb;
|
|
|
|
--darkest-bg: #222;
|
|
|
|
--inactive-item-bg: #eee;
|
|
--active-item-bg: #ccc;
|
|
|
|
--highlight-bg: #f55;
|
|
--highlight-text: #fff;
|
|
}
|
|
|
|
* {
|
|
transition: all .5s;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--default-text: #fff;
|
|
--default-text-invert: #000;
|
|
|
|
--dim-text: #999;
|
|
|
|
--default-bg: #222;
|
|
--second-bg: #777;
|
|
--third-bg: #aaa;
|
|
|
|
--darkest-bg: #111;
|
|
|
|
--inactive-item-bg: #333;
|
|
--active-item-bg: #666;
|
|
}
|
|
}
|
|
|
|
html {
|
|
color: var(--default-text);
|
|
background: var(--default-bg);
|
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
a {
|
|
color: var(--default-text);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--secondary-color);
|
|
}
|
|
|
|
|
|
.spread-h {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
ul li {
|
|
margin: 0.5rem 0;
|
|
border-bottom: 1px solid var(--second-bg);
|
|
}
|
|
|
|
ul.numbered {
|
|
counter-reset: li;
|
|
list-style: decimal;
|
|
}
|
|
|
|
ul.numbered li {
|
|
counter-increment: li;
|
|
}
|
|
|
|
.card {
|
|
background: var(--default-bg);
|
|
border: 1px solid var(--second-bg);
|
|
border-radius: 0.5rem;
|
|
padding: 1rem;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.clicky-card {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.clicky-card:hover .card {
|
|
background: var(--darkest-bg);
|
|
}
|
|
|
|
button.button,
|
|
a.button {
|
|
display: grid;
|
|
place-items: center;
|
|
align-content: center;
|
|
font-weight: bold;
|
|
min-height: 2rem;
|
|
min-width: 4rem;
|
|
background: var(--primary-color);
|
|
color: var(--primary-color-text);
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 0.5rem;
|
|
text-decoration: none;
|
|
outline: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button.button:hover,
|
|
a.button:hover {
|
|
background: var(--secondary-color);
|
|
color: var(--secondary-color-text);
|
|
}
|
|
|
|
button.button:active,
|
|
a.button:active {
|
|
background: var(--primary-color);
|
|
color: var(--primary-color-text);
|
|
}
|
|
|
|
button.button:disabled,
|
|
a.button:disabled {
|
|
background: var(--inactive-item-bg);
|
|
color: var(--dim-text);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
|
|
table td {
|
|
border: 1px solid var(--second-bg);
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
table th {
|
|
border: 1px solid var(--second-bg);
|
|
padding: 0.5rem;
|
|
background: var(--second-bg);
|
|
}
|
|
|
|
table tr:nth-child(even) {
|
|
background: var(--default-bg);
|
|
filter: brightness(0.7);
|
|
}
|
|
|
|
table tr:nth-child(odd) {
|
|
background: var(--default-bg);
|
|
}
|
|
|
|
table tr:hover {
|
|
background: var(--default-bg);
|
|
filter: brightness(1.2);
|
|
}
|
|
|
|
tr {
|
|
border: 1px solid var(--second-bg);
|
|
}
|
|
|
|
.hide {
|
|
display: none;
|
|
}
|
|
|
|
.op0 {
|
|
opacity: 0;
|
|
}
|
|
|
|
.mono {
|
|
font-family: monospace;
|
|
}
|
|
|
|
input.text {
|
|
/* generic input adjustments */
|
|
background: var(--second-bg);
|
|
color: var(--default-text);
|
|
border: none;
|
|
outline: none;
|
|
padding: 0.5rem;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
}
|