quickshell-web/src/styles/docs/docs.css
outfoxxed 24d3b1bfd2
adjust media query page sizes
Ensures its actually possible to read a page at a given size. Needs
future work to add a stage between phone UI and half a 1080p monitor.
2024-10-12 00:39:34 -07:00

133 lines
1.7 KiB
CSS

@import "./docs-config.css";
@import "./docs-types.css";
.docslayout-root {
margin-inline: 0.618rem;
margin-top: 3.5rem;
}
.docs,
.docslayout-root {
display: flex;
flex-direction: column;
}
.spacer-desktop {
display: none;
}
.c-breadcrumbs {
--color-link-breadcrumbs: hsl(var(--accent-600));
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] {
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) {
margin-block: 0.724rem;
}
}
.markdown-alert-title {
text-transform: lowercase;
text-transform: capitalize;
}
@media (min-width: 65rem) {
.docs,
.docslayout-root {
gap: 0.648rem;
}
.docslayout-root {
justify-content: center;
display: flex;
flex-direction: row;
}
.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: 85rem) {
.docs {
display: flex;
flex-direction: row;
}
.docs-content {
& section {
max-width: 45svw;
}
}
.docslayout-inner {
min-width: 33.8rem;
}
}
.docslayout-inner {
flex-grow: 1;
max-width: 100rem;
}