quickshell-web/src/styles/docs/docs.css

126 lines
1.6 KiB
CSS
Raw Normal View History

2024-09-27 23:35:19 +00:00
@import "./docs-config.css";
@import "./docs-types.css";
.docslayout-root {
margin-inline: 0.618rem;
2024-09-27 23:35:19 +00:00
margin-top: 3.5rem;
}
.docs,
.docslayout-root {
display: flex;
flex-direction: column;
}
.spacer-desktop {
display: none;
}
.c-breadcrumbs {
margin-top: 1.056rem;
margin-bottom: 0.318rem;
max-width: 100svw;
}
.docs-content {
& section {
max-width: 95svw;
margin-block: 1.618rem;
}
& p {
margin-block: 0.618rem;
}
& hr {
margin-top: 0;
margin-bottom: 0.318rem;
}
}
.heading {
&>[id] {
2024-09-27 23:35:19 +00:00
width: max-content;
}
& .heading-hashtag {
& svg {
width: 24px;
height: 24px;
opacity: 0.5;
transition: opacity 0.5s;
&:hover {
opacity: 1;
cursor: pointer;
}
}
}
}
hr {
opacity: 0.3;
}
ul {
margin-left: 2.478rem;
}
.markdown-alert {
margin-block: 0.618rem;
&>*:not(:first-child) {
2024-09-27 23:35:19 +00:00
margin-block: 0.724rem;
}
}
.markdown-alert-title {
text-transform: lowercase;
text-transform: capitalize;
}
@media (min-width: 768px) {
2024-09-27 23:35:19 +00:00
.docs,
.docslayout-root {
gap: 0.648rem;
}
.docslayout-root {
margin-left: calc(1.618rem + 260px);
padding-bottom: 3rem;
2024-09-27 23:35:19 +00:00
}
.docs-content {
margin-inline: 1.272rem;
& section {
margin-block: 1.884rem;
}
& p {
margin-block: 1.217rem;
}
}
.c-breadcrumbs {
margin-inline: 1.272rem;
}
}
@media (min-width: 1280px) {
.docs-content {
& section {
max-width: 45svw;
}
}
.docslayout-root {
margin-inline: calc(10svw + 260px);
}
.docslayout-inner {
min-width: 33.8rem;
}
2024-09-27 23:35:19 +00:00
}