mirror of
https://codeberg.org/vegvisir/website.git
synced 2025-09-14 00:43:42 +02:00
200 lines
No EOL
3.2 KiB
CSS
200 lines
No EOL
3.2 KiB
CSS
[vv-shell-id="/"] {
|
|
display: grid;
|
|
min-height: calc(100svh - var(--running-size) - var(--border-style-width));
|
|
grid-template-columns: 400px 1fr;
|
|
max-width: var(--max-width);
|
|
gap: calc(var(--padding) * 2);
|
|
margin: auto;
|
|
}
|
|
|
|
[vv-shell-id="6ccb0465"] {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: calc(var(--padding) * 2);
|
|
margin-top: calc(var(--padding) * 2);
|
|
}
|
|
|
|
hr {
|
|
border: unset;
|
|
border-top: var(--border-style);
|
|
}
|
|
|
|
/* # Aside */
|
|
|
|
aside {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--padding) 0;
|
|
border-right: var(--border-style);
|
|
}
|
|
|
|
aside button {
|
|
width: calc(100% - var(--padding));
|
|
text-align: left;
|
|
}
|
|
|
|
aside hr {
|
|
margin: var(--padding) 0;
|
|
}
|
|
|
|
aside ul {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
}
|
|
|
|
aside ul ul {
|
|
padding-left: var(--padding);
|
|
}
|
|
|
|
aside ul > p {
|
|
margin: var(--padding) 0;
|
|
}
|
|
|
|
/* ---- */
|
|
|
|
aside .cc + ul {
|
|
display: none;
|
|
}
|
|
|
|
aside .cc.php button {
|
|
background-color: rgba(122, 134, 184, .2);
|
|
}
|
|
|
|
aside .cc.js button {
|
|
background-color: rgba(240, 219, 79, .3);
|
|
}
|
|
|
|
[vv-page^="/docs/API/PHP"] aside .cc.php + ul,
|
|
[vv-page^="/docs/API/JS"] aside .cc.js + ul {
|
|
display: initial;
|
|
}
|
|
|
|
/* # Collapsible */
|
|
|
|
details {
|
|
border: 1px solid #aaa;
|
|
border-radius: 4px;
|
|
padding: 0.5em 0.5em 0;
|
|
}
|
|
|
|
summary {
|
|
margin: -0.5em -0.5em 0;
|
|
padding: 0.5em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
details[open] {
|
|
width: 100%;
|
|
padding: 0.5em;
|
|
}
|
|
|
|
details[open] summary {
|
|
border-bottom: 1px solid #aaa;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
/* # Sections */
|
|
|
|
/* ## Inset */
|
|
|
|
section.inset {
|
|
padding-left: var(--padding);
|
|
}
|
|
|
|
/* ## Markdown */
|
|
|
|
section.md container {
|
|
padding-top: 0;
|
|
flex-direction: column;
|
|
align-items: baseline;
|
|
}
|
|
|
|
section.md :is(h1, h2, h3) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
section.md h1::before {
|
|
content: "#";
|
|
opacity: 1;
|
|
padding: 0 10px;
|
|
margin-right: .5em;
|
|
color: var(--color-light);
|
|
background-color: var(--color-deep);
|
|
}
|
|
|
|
section.md h2::before {
|
|
content: "#";
|
|
opacity: 1;
|
|
margin-right: .5em;
|
|
color: var(--color-deep);
|
|
}
|
|
|
|
/* ## Code inline */
|
|
|
|
:is(h1, h2, h3, a, p, quote) > code {
|
|
padding: 5px;
|
|
border-radius: 6px;
|
|
white-space: nowrap;
|
|
font-family: 'Courier New', monospace;
|
|
background-color: rgba(0, 0, 0, .05);
|
|
}
|
|
|
|
code.tag::before {
|
|
content: "<";
|
|
}
|
|
|
|
code.tag::after {
|
|
content: ">";
|
|
}
|
|
|
|
/* ## Code block */
|
|
|
|
section.md pre {
|
|
width: 100%;
|
|
tab-size: 3;
|
|
}
|
|
|
|
section.md pre code {
|
|
--copy-size: 37px;
|
|
--copy-inset: 5px;
|
|
--copy-border-size: 1px;
|
|
|
|
position: relative;
|
|
padding-right: calc(var(--copy-size) + (var(--copy-inset) * 2) + var(--padding));
|
|
border-radius: 6px;
|
|
}
|
|
|
|
section.md pre code::after {
|
|
content: "📋";
|
|
display: grid;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
position: absolute;
|
|
border-radius: 4px;
|
|
align-items: center;
|
|
justify-items: center;
|
|
top: var(--copy-inset);
|
|
width: var(--copy-size);
|
|
right: var(--copy-inset);
|
|
height: var(--copy-size);
|
|
border: solid 1px rgba(255, 255, 255, .1);
|
|
background-color: rgba(255, 255, 255, .1);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
section.md h1:hover::before {
|
|
background-color: black;
|
|
}
|
|
|
|
section.md :is(h1, h2, h3):hover::after {
|
|
content: " <- click to copy link";
|
|
font-size: .5em;
|
|
opacity: .5;
|
|
}
|
|
|
|
section.md pre code:hover::after {
|
|
border: solid 1px rgba(255, 255, 255, .3);
|
|
background-color: rgba(255, 255, 255, .2);
|
|
}
|
|
} |