2023-06-10 02:00:47 +02:00
|
|
|
$bp-m: 58rem;
|
|
|
|
$bp-l: 80rem;
|
|
|
|
|
2023-06-06 23:37:58 +02:00
|
|
|
.wiki-main {
|
2024-09-23 23:22:37 +02:00
|
|
|
position: relative;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: auto minmax(0, 1fr);
|
2023-06-08 16:05:12 +02:00
|
|
|
|
2024-09-23 23:22:37 +02:00
|
|
|
@media (min-width: $bp-m) {
|
|
|
|
grid-template-columns: 16rem minmax(0, 1fr);
|
|
|
|
}
|
2023-06-06 23:37:58 +02:00
|
|
|
|
2024-09-23 23:22:37 +02:00
|
|
|
@media (min-width: $bp-l) {
|
|
|
|
grid-template-columns: 16rem minmax(0, 1fr) 16rem;
|
|
|
|
}
|
2023-06-08 16:05:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.wiki-aside {
|
2024-09-23 23:22:37 +02:00
|
|
|
position: absolute;
|
|
|
|
width: 16rem;
|
|
|
|
height: 100%;
|
|
|
|
transition: margin-left linear 0.1s;
|
|
|
|
background-color: var(--c-bg-main);
|
|
|
|
z-index: 5;
|
|
|
|
|
|
|
|
@media (min-width: $bp-m) {
|
|
|
|
position: static;
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link-tree {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__slider {
|
|
|
|
position: absolute;
|
|
|
|
top: 0.5em;
|
|
|
|
right: -2em;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
@media (min-width: $bp-m) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2023-06-06 23:37:58 +02:00
|
|
|
}
|
|
|
|
|
2023-06-08 16:05:12 +02:00
|
|
|
#wiki-aside-shown {
|
2024-09-23 23:22:37 +02:00
|
|
|
&:checked {
|
|
|
|
~ .wiki-aside {
|
|
|
|
box-shadow: var(--shadow-m);
|
|
|
|
|
|
|
|
@media (min-width: $bp-m) {
|
|
|
|
box-shadow: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .wiki-aside__slider {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:checked) {
|
|
|
|
~ .wiki-aside {
|
|
|
|
margin-left: -16rem;
|
|
|
|
|
|
|
|
@media (min-width: $bp-m) {
|
|
|
|
margin-left: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 16:05:12 +02:00
|
|
|
}
|
2023-06-10 02:00:47 +02:00
|
|
|
|
|
|
|
.wiki-icon {
|
2024-09-23 23:22:37 +02:00
|
|
|
max-height: 1.5em;
|
|
|
|
max-width: 1.5em;
|
2023-06-10 02:00:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.wiki-article {
|
2024-09-23 23:22:37 +02:00
|
|
|
min-width: 0;
|
|
|
|
margin-inline: auto;
|
|
|
|
padding: 1em;
|
|
|
|
padding-top: 2em;
|
|
|
|
background-color: white;
|
|
|
|
transition:
|
|
|
|
margin ease-in-out 0.2s,
|
|
|
|
padding ease-in-out 0.2s;
|
|
|
|
|
|
|
|
@media (min-width: $bp-m) {
|
|
|
|
max-width: min(100%, 50em);
|
|
|
|
height: fit-content;
|
|
|
|
margin-block: 1em;
|
|
|
|
padding-top: 1em;
|
|
|
|
border-radius: 0.5em;
|
|
|
|
box-shadow: var(--shadow-l);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $bp-l) {
|
|
|
|
margin-block: 2em;
|
|
|
|
padding: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 2.5rem;
|
|
|
|
font-family: var(--serif);
|
|
|
|
font-weight: 500;
|
|
|
|
line-height: 1em;
|
|
|
|
margin-bottom: 0.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
gap: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tags {
|
|
|
|
display: inline;
|
|
|
|
list-style: none;
|
|
|
|
padding: 0px;
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: inline;
|
|
|
|
|
|
|
|
&:not(:last-child)::after {
|
|
|
|
content: ", ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__markdown {
|
|
|
|
max-width: calc(100vw - 2em);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-icon {
|
|
|
|
background-position: top right;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 20% auto;
|
|
|
|
|
|
|
|
&.icon-haskell {
|
|
|
|
background-image: url("/static/sketch/haskell.png");
|
|
|
|
}
|
|
|
|
}
|
2023-06-10 02:00:47 +02:00
|
|
|
}
|