2024-11-06 15:33:09 +01:00
|
|
|
@import "markdown.css";
|
|
|
|
|
2024-11-06 17:54:02 +01:00
|
|
|
:root {
|
|
|
|
--max-width: 900px;
|
2024-11-27 19:56:37 +01:00
|
|
|
--sidebar-width: 20%;
|
2024-12-12 17:52:14 +01:00
|
|
|
--sidebar-padding: 10px;
|
2024-11-28 17:27:40 +01:00
|
|
|
--shift-icon-filetree: -10px;
|
|
|
|
|
|
|
|
/* Size of icon */
|
|
|
|
--shift-icon-filetree-size: 80%;
|
|
|
|
--shift-icon-filetree-height: 2;
|
2024-11-06 17:54:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
max-width: var(--max-width);
|
2024-12-12 17:52:14 +01:00
|
|
|
padding-inline: calc(var(--sidebar-width) + var(--sidebar-padding));
|
2024-11-06 17:54:02 +01:00
|
|
|
}
|
|
|
|
|
2024-04-01 18:11:46 +02:00
|
|
|
/* Filetree */
|
|
|
|
aside {
|
|
|
|
float: left;
|
2024-11-28 16:22:35 +01:00
|
|
|
z-index: 1;
|
2024-11-27 19:56:37 +01:00
|
|
|
position: absolute;
|
|
|
|
width: var(--sidebar-width);
|
2024-12-12 17:52:14 +01:00
|
|
|
padding-inline: var(--sidebar-padding);
|
2024-04-01 18:11:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
aside ul {
|
|
|
|
list-style: none;
|
|
|
|
padding-left: 0.6em;
|
|
|
|
}
|
|
|
|
|
|
|
|
aside li {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Element */
|
|
|
|
aside li:before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: -0.2em;
|
|
|
|
left: -1em;
|
|
|
|
height: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
aside li.collapsed > ul {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
aside li.directory::before {
|
2024-11-28 17:27:40 +01:00
|
|
|
content: "📁";
|
|
|
|
margin-left: var(--shift-icon-filetree);
|
|
|
|
font-size: var(--shift-icon-filetree-size);
|
|
|
|
line-height: var(--shift-icon-filetree-height);
|
2024-04-01 18:11:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
aside li:not(.collapsed).directory::before {
|
2024-11-28 17:27:40 +01:00
|
|
|
content: "📂";
|
|
|
|
margin-left: var(--shift-icon-filetree);
|
|
|
|
font-size: var(--shift-icon-filetree-size);
|
|
|
|
line-height: var(--shift-icon-filetree-height);
|
2024-04-01 18:11:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
aside li.directory {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2024-11-28 17:39:39 +01:00
|
|
|
aside a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2024-11-28 01:15:30 +01:00
|
|
|
/* Image */
|
2024-12-16 19:11:00 +01:00
|
|
|
main img,
|
|
|
|
main svg {
|
2024-11-27 19:56:37 +01:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2024-11-28 01:15:30 +01:00
|
|
|
/* Collapse filetree */
|
2024-11-28 00:00:48 +01:00
|
|
|
button#menu {
|
2024-11-27 19:56:37 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2024-11-28 01:15:30 +01:00
|
|
|
/* Search field */
|
2024-11-27 20:49:45 +01:00
|
|
|
input[type="text"] {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2024-11-28 01:15:30 +01:00
|
|
|
/* breakpoint */
|
2024-12-13 20:32:32 +01:00
|
|
|
@media only screen and (max-width: 740px) {
|
2024-04-01 18:11:46 +02:00
|
|
|
aside {
|
2024-11-13 16:56:24 +01:00
|
|
|
display: none;
|
2024-12-12 17:52:14 +01:00
|
|
|
width: unset;
|
2024-04-01 18:11:46 +02:00
|
|
|
}
|
2024-11-27 19:56:37 +01:00
|
|
|
|
|
|
|
main {
|
2024-12-12 14:31:55 +01:00
|
|
|
padding-inline: unset;
|
2024-11-27 19:56:37 +01:00
|
|
|
}
|
|
|
|
|
2024-11-28 00:00:48 +01:00
|
|
|
button#menu {
|
2024-11-27 19:56:37 +01:00
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
position: sticky;
|
|
|
|
top: 10px;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
2024-11-27 20:49:45 +01:00
|
|
|
width: 85vw;
|
2024-11-27 19:56:37 +01:00
|
|
|
}
|
2024-04-01 18:11:46 +02:00
|
|
|
}
|
|
|
|
|
2024-11-27 19:56:37 +01:00
|
|
|
@media print {
|
|
|
|
aside {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
2024-11-28 16:22:35 +01:00
|
|
|
padding-inline: unset;
|
2024-11-27 19:56:37 +01:00
|
|
|
}
|
2024-04-01 18:11:46 +02:00
|
|
|
}
|