289 lines
4.3 KiB
CSS
289 lines
4.3 KiB
CSS
* {
|
|
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;
|
|
}
|
|
|
|
#contentWrap, header, nav, footer {
|
|
max-width: 90rem;
|
|
margin: auto;
|
|
}
|
|
|
|
#stickyWrap {
|
|
position: sticky;
|
|
top: 0;
|
|
transition: 0.2s box-shadow, 0.2s background;
|
|
z-index: 255;
|
|
}
|
|
|
|
#stickyWrap.lifted {
|
|
background: var(--glass);
|
|
backdrop-filter: blur(32px);
|
|
-webkit-backdrop-filter: blur(32px);
|
|
box-shadow: var(--shadow);
|
|
border-bottom: 1px solid var(--shine);
|
|
}
|
|
|
|
nav {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.buttonList {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.buttonList li {
|
|
display: inline;
|
|
}
|
|
|
|
.buttonList li:not(:last-child) {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
header {
|
|
padding: 0 1rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
}
|
|
|
|
header .buttonList {
|
|
display: inline;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#contentWrap {
|
|
padding: 1rem;
|
|
}
|
|
|
|
@media not screen and (min-width: 60rem) {
|
|
aside {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
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%);
|
|
}
|
|
|
|
nav > .buttonListWrap {
|
|
text-align: center;
|
|
}
|
|
|
|
nav > .buttonListWrap:last-child {
|
|
margin-top: 1rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 60rem) {
|
|
#contentWrap {
|
|
display: grid;
|
|
grid-gap: 2rem;
|
|
grid-template-columns: 24rem auto;
|
|
}
|
|
|
|
nav {
|
|
display: grid;
|
|
grid-grid: 1rem;
|
|
grid-template-columns: auto auto;
|
|
}
|
|
|
|
nav > .buttonListWrap:last-child {
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
@media not screen and (min-width: 80rem) {
|
|
.collapse {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 80rem) {
|
|
#contentWrap {
|
|
grid-template-columns: 36rem auto;
|
|
}
|
|
}
|
|
|
|
.linkedPath {
|
|
color: var(--subtle-foreground);
|
|
}
|
|
|
|
.files {
|
|
border-collapse:collapse;
|
|
border: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.files tr {
|
|
display: grid;
|
|
grid-template-columns: 30% auto min-content;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.files td {
|
|
border: none;
|
|
padding: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.files td > * {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
max-width: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.files td time {
|
|
color: var(--subtle-foreground);
|
|
}
|
|
|
|
.hiddenLabel {
|
|
display: none;
|
|
}
|
|
|
|
.files .file::before,
|
|
.files .directory::before,
|
|
.notificationsButton::before,
|
|
.profileButton::before,
|
|
.dashboardButton::before,
|
|
.watchButton::before,
|
|
.starButton::before,
|
|
.forkButton::before,
|
|
.cloneButton::before
|
|
{
|
|
content: "";
|
|
width: 16px;
|
|
height: 16px;
|
|
background-repeat: no-repeat;
|
|
display: inline-block;
|
|
filter: var(--icon-filter);
|
|
margin-right: 0.5em;
|
|
vertical-align: sub;
|
|
}
|
|
|
|
.files .file::before {
|
|
background-image: url("icons/file.svg");
|
|
}
|
|
|
|
.files .directory::before {
|
|
background-image: url("icons/directory.svg");
|
|
}
|
|
|
|
.dashboardButton::before {
|
|
background-image: url("icons/home.svg");
|
|
}
|
|
|
|
.profileButton::before {
|
|
background-image: url("icons/profile.svg");
|
|
}
|
|
|
|
.notificationsButton::before {
|
|
background-image: url("icons/notifications.svg");
|
|
}
|
|
|
|
.watchButton::before {
|
|
background-image: url("icons/watch.svg");
|
|
}
|
|
|
|
.starButton::before {
|
|
background-image: url("icons/star.svg");
|
|
}
|
|
|
|
.forkButton::before {
|
|
background-image: url("icons/fork.svg");
|
|
}
|
|
|
|
.cloneButton::before {
|
|
background-image: url("icons/clone.svg");
|
|
}
|
|
|
|
.previewLabel {
|
|
color: var(--subtle-foreground);
|
|
}
|
|
|
|
footer {
|
|
padding: 0 1rem 1rem 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 }
|