mintea/prototype/style.css

218 lines
3.4 KiB
CSS
Raw Normal View History

2022-10-08 18:58:40 -06:00
/* mint theme
2022-10-08 17:20:43 -06:00
:root {
2022-10-08 19:12:23 -06:00
--glass: url("frost.webp"), #EEEEEE77;
2022-10-08 17:20:43 -06:00
--background: #EEE;
--foreground: #333;
--subtle-foreground: #888;
--outline: #00000015;
--accent: #209D6E;
--subtle-accent: #209D6E30;
--shadow: 0 4px 32px #03281A12;
2022-10-08 18:58:40 -06:00
} */
/* martian theme */
:root {
2022-10-08 19:12:23 -06:00
--glass: url("frost.webp"), hsla(0, 20%, 7%, 0.5);
2022-10-08 18:58:40 -06:00
--background: hsl(0, 20%, 7%);
--foreground: hsl(0, 25%, 90%);
--subtle-foreground: hsl(0, 35%, 55%);
--outline: #FFFFFF10;
--accent: hsl(0, 80%, 40%);
--subtle-accent: hsla(0, 80%, 40%, 0.2);
--shadow: 0 4px 32px #00000070;
2022-10-08 17:20:43 -06:00
}
* {
box-sizing: border-box;
scrollbar-color: var(--accent) transparent;
}
*::selection {
background-color: var(--subtle-accent);
}
body {
background: var(--background);
color: var(--foreground);
font-size: 10pt;
font-family: monospace;
margin: 0;
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h1 {
font-size: 2em;
font-weight: bold;
border-bottom: 1px solid var(--outline);
margin: 0.5em 0;
padding-bottom: 0.2em;
}
h2 {
font-size: 1.5em;
font-weight: bold;
margin: 1em 0;
}
h3 {
font-size: 1em;
font-weight: bold;
margin: 1em 0;
}
2022-10-08 18:07:20 -06:00
#contentWrap, header, nav, footer {
2022-10-08 17:20:43 -06:00
max-width: 90rem;
margin: auto;
}
#stickyWrap {
position: sticky;
top: 0;
transition: 0.2s box-shadow;
z-index: 255;
}
#stickyWrap.lifted {
background: var(--glass);
backdrop-filter: blur(32px);
box-shadow: var(--shadow);
border-bottom: 1px solid var(--outline);
}
nav {
padding: 1rem;
}
.buttonList {
margin: 0;
padding: 0;
}
.buttonList li {
display: inline;
}
2022-10-08 19:06:39 -06:00
.buttonList li:not(:last-child) {
2022-10-08 17:20:43 -06:00
margin-right: 1em;
}
header {
padding: 0 1rem;
}
#contentWrap {
padding: 1rem;
}
2022-10-08 19:27:33 -06:00
@media screen and not (min-width: 67rem) {
2022-10-08 18:07:20 -06:00
nav .buttonListWrap {
position: relative;
}
nav .buttonListWrap .buttonList {
overflow-x: auto;
white-space: nowrap;
scrollbar-width: thin;
width: 100%;
}
nav .buttonListWrap::after {
position: absolute;
display: block;
width: 1rem;
height: 100%;
top: 0;
right: 0;
content: "";
background-image: linear-gradient(
to right,
transparent 0%,
var(--background) 100%);
}
2022-10-08 17:20:43 -06:00
2022-10-08 19:27:33 -06:00
nav > .buttonListWrap:last-child {
margin-top: 1rem;
2022-10-08 17:20:43 -06:00
}
2022-10-08 19:27:33 -06:00
}
@media screen and (min-width: 67rem) {
2022-10-08 18:07:20 -06:00
nav {
display: grid;
grid-grid: 1rem;
grid-template-columns: auto auto;
}
nav > .buttonListWrap:last-child {
text-align: right;
}
2022-10-08 17:20:43 -06:00
}
2022-10-08 19:27:33 -06:00
@media screen and not (min-width: 60rem) {
aside {
margin-bottom: 1rem;
}
}
@media screen and (min-width: 60rem) {
#contentWrap {
display: grid;
grid-gap: 2rem;
grid-template-columns: 24rem auto;
}
}
2022-10-08 17:20:43 -06:00
@media screen and (min-width: 80rem) {
#contentWrap {
grid-template-columns: 36rem auto;
}
}
.files {
border-collapse:collapse;
border: none;
width: 100%;
}
.files tr {
display: grid;
2022-10-08 19:27:33 -06:00
grid-template-columns: 30% auto min-content;
gap: 1rem;
2022-10-08 17:20:43 -06:00
}
.files td {
border: none;
padding: 0;
2022-10-08 19:27:33 -06:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2022-10-08 17:20:43 -06:00
}
.files td:last-child {
text-align: right;
}
.files tr:not(:last-child) {
border-bottom: 1px solid var(--outline);
padding-bottom: 0.5rem;
margin-bottom: 0.5rem;
}
footer {
padding: 1rem;
text-align: center;
color: var(--subtle-foreground);
}
/* please leave this at the very bottom */
*:first-child { margin-top: 0 }
*:last-child { margin-bottom: 0 }