Files
woonoow-docs/styles/override.css

219 lines
3.7 KiB
CSS

/* Fresh Lime Theme - Syntax Highlighting */
/* Light Mode */
.keyword {
color: hsl(85 70% 30%);
/* Dark lime green */
}
.function {
color: hsl(85 65% 35%);
/* Slightly lighter lime */
}
.punctuation {
color: hsl(85 15% 50%);
/* Muted green-gray */
}
.comment {
color: hsl(85 15% 50%);
/* Muted green-gray */
font-style: italic;
}
.string,
.constant,
.annotation,
.boolean,
.number {
color: hsl(85 50% 35%);
/* Medium lime green */
}
.tag {
color: hsl(85 70% 25%);
/* Darker lime */
}
.attr-name {
color: hsl(85 60% 35%);
/* Lime green */
}
.attr-value {
color: hsl(85 70% 30%);
/* Dark lime green */
}
/* Dark Mode */
.dark .keyword {
color: hsl(85 75% 65%);
/* Bright lime */
}
.dark .function {
color: hsl(85 75% 60%);
/* Slightly less bright lime */
}
.dark .string,
.dark .constant,
.dark .annotation,
.dark .boolean,
.dark .number {
color: hsl(85 60% 70%);
/* Light lime */
}
.dark .tag {
color: hsl(85 70% 70%);
/* Bright lime */
}
.dark .attr-name {
color: hsl(85 65% 70%);
/* Light lime */
}
.dark .attr-value {
color: hsl(85 75% 65%);
/* Bright lime */
}
.dark .comment {
color: hsl(85 15% 60%);
/* Light gray-green */
}
.dark .punctuation {
color: hsl(85 20% 70%);
/* Light gray-green */
}
/* Custom styling for code blocks */
.code-block-container {
position: relative;
margin: 1.5rem 0;
border: 1px solid hsl(var(--border));
overflow: hidden;
font-size: 0.875rem;
border-radius: 0.75rem;
}
.code-block-header {
display: flex;
align-items: center;
gap: 0.5rem;
background-color: hsl(var(--muted));
padding: 0.5rem 1rem;
border-bottom: 1px solid hsl(var(--border));
color: hsl(var(--muted-foreground));
font-family: monospace;
font-size: 0.8rem;
}
.code-block-actions {
position: absolute;
top: 0.5rem;
right: 0.75rem;
z-index: 10;
}
.code-block-actions button {
color: hsl(var(--muted-foreground));
transition: color 0.2s ease-in-out;
}
.code-block-actions button:hover {
color: hsl(var(--foreground));
}
.code-block-body pre[class*="language-"] {
margin: 0 !important;
padding: 0 !important;
background: transparent !important;
}
.line-numbers-wrapper {
position: absolute;
top: 0;
left: 0;
width: 3rem;
padding-top: 1rem;
text-align: right;
color: var(--line-number-color);
user-select: none;
}
.line-highlight {
position: absolute;
left: 0;
right: 0;
background: hsl(var(--primary) / 0.1);
border-left: 2px solid hsl(var(--primary));
pointer-events: none;
}
.code-block-body pre[data-line-numbers="true"] .line-highlight {
padding-left: 3.5rem;
}
.code-block-body::-webkit-scrollbar {
height: 8px;
}
.code-block-body::-webkit-scrollbar-track {
background: transparent;
}
.code-block-body::-webkit-scrollbar-thumb {
background: hsl(var(--border));
border-radius: 4px;
}
.code-block-body::-webkit-scrollbar-thumb:hover {
background: hsl(var(--muted));
}
/* Custom styling for youtube blocks */
.youtube {
position: relative;
padding-bottom: 56.25%;
/* Aspect Ratio 16:9 */
height: 0;
overflow: hidden;
background: #000;
/* Black background to blend the player */
border-radius: 8px;
/* Rounded corners */
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
/* Soft shadow */
}
.youtube iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
border-radius: 8px;
/* Rounded corners on iframe */
}
/* Hide main navbar and footer when docs layout is active */
body:has(.docs-layout) #main-navbar,
body:has(.docs-layout) #main-footer {
display: none;
}
/* Remove container constraints for docs pages */
body:has(.docs-layout) #main-content {
max-width: none;
width: 100%;
padding: 0;
margin: 0;
}