docs refactor
All checks were successful
All checks were successful
This commit is contained in:
266
docs/styles/__file.document.css
Normal file
266
docs/styles/__file.document.css
Normal file
@ -0,0 +1,266 @@
|
||||
/* Document Layout - For documentation/blog post pages */
|
||||
/* Based on reference_post.html design */
|
||||
|
||||
:root {
|
||||
/* Document-specific spacing */
|
||||
--document-margin-x: 120px;
|
||||
--document-max-width: 1200px;
|
||||
}
|
||||
|
||||
/* Main content wrapper for document pages */
|
||||
.document-layout {
|
||||
/* max-width: var(--document-max-width); */
|
||||
margin: 0 auto;
|
||||
padding: var(--spacing-exp-7) var(--document-margin-x);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.document {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.document-header-holder {
|
||||
display: flex;
|
||||
height: 70vh;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
/* text-align: end; */
|
||||
}
|
||||
|
||||
/* Document header with metadata */
|
||||
.document-header {
|
||||
margin-bottom: var(--spacing-exp-6);
|
||||
max-width: 15%;
|
||||
}
|
||||
|
||||
.document-metadata {
|
||||
font-family: var(--fontFamily-mono);
|
||||
font-size: var(--fontSize-small);
|
||||
color: var(--swatch-4);
|
||||
margin-bottom: var(--spacing-2);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.document-title {
|
||||
font-size: 3.8rem;
|
||||
font-weight: 420;
|
||||
line-height: 1;
|
||||
margin: var(--spacing-2) 0;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.document-subtitle {
|
||||
font-size: 1.6rem;
|
||||
font-weight: 500;
|
||||
color: var(--swatch-2);
|
||||
line-height: var(--lineHeight-default);
|
||||
margin-top: var(--spacing-1);
|
||||
}
|
||||
|
||||
/* Document content area */
|
||||
|
||||
.document-quick-tips {
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
color: var(--swatch-2);
|
||||
line-height: var(--lineHeight-default);
|
||||
margin-top: var(--spacing-1);
|
||||
}
|
||||
|
||||
.document-content-wrapper {
|
||||
flex-grow: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
overflow-y: auto;
|
||||
margin-left: 1vw;
|
||||
margin-right: 1vw;
|
||||
}
|
||||
|
||||
.document-content {
|
||||
font-size: var(--fontSize-default);
|
||||
line-height: var(--lineHeight-default);
|
||||
width: fit-content;
|
||||
padding-bottom: var(--spacing-exp-7);
|
||||
}
|
||||
|
||||
.document-content > * + * {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.document-content h1 {
|
||||
font-size: 3.8rem;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
/* Section headers within document */
|
||||
.document-content h2 {
|
||||
margin-top: var(--spacing-exp-6);
|
||||
margin-bottom: var(--spacing-2);
|
||||
font-size: 2.4rem;
|
||||
}
|
||||
|
||||
.document-content h3 {
|
||||
margin-top: var(--spacing-exp-5);
|
||||
margin-bottom: var(--spacing-1);
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.document-content h4 {
|
||||
margin-top: var(--spacing-2);
|
||||
margin-bottom: var(--spacing-1);
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
/* Enhanced code blocks for documentation */
|
||||
.document-content pre {
|
||||
margin: var(--spacing-2) 0;
|
||||
background: var(--background-3);
|
||||
border-radius: var(--border-radius-small);
|
||||
overflow-x: auto;
|
||||
max-width: 120ch;
|
||||
}
|
||||
|
||||
.document-content pre code {
|
||||
font-family: var(--fontFamily-mono);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Document-specific column layouts */
|
||||
.document-content .column-set {
|
||||
margin: var(--spacing-exp-5) 0;
|
||||
}
|
||||
|
||||
/* Two-column code examples */
|
||||
.code-comparison {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--spacing-2);
|
||||
margin: var(--spacing-2) 0;
|
||||
}
|
||||
|
||||
/* Callout boxes for notes/warnings */
|
||||
.callout {
|
||||
padding: var(--spacing-2);
|
||||
margin: var(--spacing-2) 0;
|
||||
border-left: 3px solid var(--swatch-5);
|
||||
background: var(--background-3);
|
||||
}
|
||||
|
||||
.callout.note {
|
||||
border-left-color: var(--swatch-3);
|
||||
}
|
||||
|
||||
.callout.warning {
|
||||
border-left-color: var(--swatch-1);
|
||||
background: rgba(255, 200, 0, 0.1);
|
||||
}
|
||||
|
||||
/* Table of contents navigation */
|
||||
.document-toc {
|
||||
position: sticky;
|
||||
top: var(--spacing-2);
|
||||
font-size: var(--fontSize-secondary);
|
||||
padding: var(--spacing-2);
|
||||
background: var(--background-3);
|
||||
border-radius: var(--border-radius-small);
|
||||
}
|
||||
|
||||
.document-toc ul {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.document-toc li {
|
||||
margin: var(--spacing-half) 0;
|
||||
}
|
||||
|
||||
.document-toc a {
|
||||
color: var(--swatch-2);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.document-toc a:hover {
|
||||
color: var(--swatch-1);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Footer navigation (prev/next) */
|
||||
.document-footer {
|
||||
max-width: 15%;
|
||||
}
|
||||
|
||||
.document-footer-holder {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
height: 40vh;
|
||||
}
|
||||
|
||||
.document-nav-link {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-decoration: none;
|
||||
color: var(--swatch-2);
|
||||
}
|
||||
|
||||
.document-nav-link:hover {
|
||||
color: var(--swatch-1);
|
||||
}
|
||||
|
||||
.document-nav-label {
|
||||
font-size: var(--fontSize-small);
|
||||
font-family: var(--fontFamily-mono);
|
||||
color: var(--swatch-4);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: var(--spacing-half);
|
||||
}
|
||||
|
||||
.document-nav-label-selected {
|
||||
font-size: var(--fontSize-small);
|
||||
font-family: var(--fontFamily-mono);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: var(--spacing-half);
|
||||
color:rgb(236, 113, 42);
|
||||
}
|
||||
|
||||
.document-nav-title {
|
||||
font-size: var(--fontSize-header);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 1024px) {
|
||||
:root {
|
||||
--document-margin-x: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
:root {
|
||||
--document-margin-x: var(--spacing-2);
|
||||
}
|
||||
|
||||
.document-title {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.code-comparison {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.document-footer {
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-2);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user