sophokles187_data-cards/docs/assets/css/custom.css
2025-04-06 15:54:47 +02:00

969 lines
22 KiB
CSS

/* DataCards Documentation - Meeres-Dämmerung Style */
:root {
/* Primary Colors */
--background-primary: #0A0A0A;
--background-secondary: #121214;
--surface: #19191C;
--surface-elevated: #1D1D22;
--accent-primary: #5F7A8A;
--accent-secondary: #7A93A0;
/* Text Colors */
--text-primary: #F0EBE0;
--text-secondary: #D3CEC4;
--text-tertiary: #A8A296;
/* Border & Divider Colors */
--border-primary: #26262A;
--border-secondary: #3E3E44;
/* Functional Colors */
--success: #4CAF82;
--error: #E6745F;
--neutral: #8996AE;
/* Gradients */
--background-gradient: linear-gradient(120deg, #0A0A0A, #121214);
--surface-gradient: linear-gradient(135deg, #18181B, #1D1D22);
--accent-gradient: linear-gradient(135deg, #5F7A8A, #7A93A0);
/* Base Settings */
--theme-color: var(--accent-primary);
--sidebar-width: 300px;
--content-max-width: 950px;
/* Typography */
--base-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--base-line-height: 1.5;
--base-font-size: 16px;
/* Heading Styles */
--heading-h1-font-size: 32px;
--heading-h1-font-weight: 400;
--heading-h1-line-height: 1.3;
--heading-h2-font-size: 24px;
--heading-h2-font-weight: 500;
--heading-h2-line-height: 1.4;
--heading-h3-font-size: 20px;
--heading-h3-font-weight: 500;
--heading-h3-line-height: 1.4;
/* Spacing - 4px base unit */
--spacing-compact: 4px;
--spacing-default: 8px;
--spacing-comfortable: 16px;
--spacing-loose: 24px;
--spacing-extra-loose: 32px;
/* Border Radius */
--radius-small: 4px;
--radius-medium: 6px;
--radius-large: 8px;
--radius-extra-large: 12px;
/* Content Styles */
--content-padding: var(--spacing-comfortable) var(--spacing-loose);
/* Code Block Styles */
--code-theme-background: var(--background-secondary);
--code-font-family: 'JetBrains Mono', monospace;
/* Link Colors */
--link-color: var(--accent-primary);
--link-hover-color: var(--accent-secondary);
/* Table Styles */
--table-head-background: rgba(95, 122, 138, 0.1);
--table-row-odd-background: rgba(255, 255, 255, 0.03);
/* Border/Divider Colors */
--border-color: var(--border-primary);
}
/* Apply noise texture to all elements */
html::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
opacity: 0.12;
pointer-events: none;
z-index: -1;
}
/* Body and Base Styles */
body {
font-family: var(--base-font-family);
font-size: var(--base-font-size);
line-height: var(--base-line-height);
color: var(--text-primary);
background: var(--background-gradient);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: relative;
overflow-y: auto;
height: auto;
}
/* Enhanced Sidebar Styling */
.sidebar {
background: linear-gradient(135deg, rgba(15, 15, 17, 0.95), rgba(18, 18, 20, 0.95));
backdrop-filter: blur(10px);
border-right: 1px solid var(--border-primary);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
padding-top: var(--spacing-comfortable);
color: var(--text-secondary);
}
.sidebar > h1 {
font-weight: 500;
margin: var(--spacing-comfortable) 0 var(--spacing-loose);
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.sidebar > h1 a img {
max-width: 70%;
margin: 0 auto;
display: block;
transition: all 0.2s ease;
border-radius: var(--radius-small);
}
.sidebar > h1 a img:hover {
transform: scale(1.05);
}
/* Sidebar Links */
.sidebar ul li a {
font-size: 15px;
font-weight: 400;
color: var(--text-secondary);
padding: 10px var(--spacing-default);
padding-left: 24px;
transition: all 0.2s ease;
border-radius: 0;
display: flex;
align-items: center;
}
.sidebar ul li a:hover {
text-decoration: none;
color: var(--text-primary);
background-color: rgba(95, 122, 138, 0.1);
}
.sidebar ul li.active > a {
color: var(--accent-secondary);
font-weight: 500;
background-color: rgba(95, 122, 138, 0.15);
border-left: 3px solid var(--accent-primary);
border-radius: 0;
}
/* Sidebar Sections */
.sidebar ul p {
margin: var(--spacing-loose) 0 var(--spacing-compact);
font-weight: 600;
color: var(--text-secondary);
border-bottom: 1px solid var(--border-primary);
padding: 12px 16px;
padding-bottom: var(--spacing-compact);
font-size: 15px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Nested Lists */
.sidebar ul ul {
padding-left: 16px;
}
/* Sidebar Collapse Button */
.sidebar-toggle {
background-color: var(--background-secondary);
border-radius: 0 var(--radius-small) var(--radius-small) 0;
transition: background-color 0.2s ease;
}
.sidebar-toggle span {
background-color: var(--accent-primary);
}
.sidebar-toggle:hover {
background-color: var(--surface);
}
/* Content Area */
.content {
transition: opacity 0.2s ease;
padding-top: 0;
background: var(--background-primary);
}
.markdown-section {
max-width: var(--content-max-width);
margin: 0 auto;
padding: var(--content-padding);
}
/* Headings */
.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section h5,
.markdown-section h6 {
margin-top: var(--spacing-extra-loose);
margin-bottom: var(--spacing-comfortable);
color: var(--text-primary);
font-weight: 500;
position: relative;
}
.markdown-section h1 {
font-size: var(--heading-h1-font-size);
line-height: var(--heading-h1-line-height);
font-weight: 600;
margin-bottom: var(--spacing-loose);
}
.markdown-section h2 {
font-size: var(--heading-h2-font-size);
line-height: var(--heading-h2-line-height);
font-weight: 500;
margin-top: var(--spacing-extra-loose);
border-bottom: 1px solid var(--border-primary);
position: relative;
display: inline-block;
}
.markdown-section h3 {
font-size: var(--heading-h3-font-size);
line-height: var(--heading-h3-line-height);
font-weight: var(--heading-h3-font-weight);
margin-top: var(--spacing-loose);
}
.markdown-section h2::after {
content: "";
position: absolute;
bottom: -8px;
left: 0;
width: 40px;
height: 3px;
background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
border-radius: 3px;
}
/* Paragraph and Text Elements */
.markdown-section p {
margin-top: 0;
margin-bottom: var(--spacing-comfortable);
line-height: var(--base-line-height);
color: var(--text-secondary);
font-size: 16px;
}
/* Links */
.markdown-section a {
color: var(--link-color);
text-decoration: none;
border-bottom: 1px dotted var(--link-color);
transition: all 0.2s ease;
}
.markdown-section a:hover {
color: var(--link-hover-color);
border-bottom: 1px solid var(--link-hover-color);
text-decoration: none;
}
/* Images */
.markdown-section img {
max-width: 100%;
border-radius: var(--radius-medium);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
transition: all 0.2s ease;
}
.markdown-section img:hover {
transform: scale(1.02);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
/* Code Blocks */
.markdown-section pre {
position: relative;
margin: var(--spacing-loose) 0;
border-radius: var(--radius-large);
background-color: rgba(10, 10, 10, 0.6);
padding: 20px;
overflow: auto;
border: 1px solid var(--border-primary);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
}
/* Hide docsify-generated language label */
.markdown-section pre::after {
content: none !important;
display: none !important;
}
/* Custom language label */
.markdown-section pre::before {
content: attr(data-lang);
position: absolute;
top: 0;
right: 0;
background: rgba(25, 25, 28, 0.7);
backdrop-filter: blur(5px);
padding: 6px 12px;
border-radius: 0 6px 0 6px;
font-size: 12px;
color: var(--text-tertiary);
font-family: var(--code-font-family);
font-weight: 400;
z-index: 1;
}
.markdown-section pre > code {
line-height: 1.5;
font-family: var(--code-font-family);
font-size: 14px;
}
.markdown-section code {
font-family: var(--code-font-family);
font-size: 14px;
background-color: rgba(95, 122, 138, 0.1);
color: var(--text-primary);
padding: 2px 6px;
border-radius: var(--radius-small);
margin: 0 2px;
}
/* Tables */
.markdown-section table {
width: 100%;
border-spacing: 0;
border-collapse: separate;
margin-bottom: var(--spacing-loose);
border-radius: var(--radius-medium);
overflow: hidden;
border: 1px solid var(--border-primary);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.markdown-section table thead {
background-color: rgba(29, 29, 34, 0.5);
color: var(--text-primary);
}
.markdown-section tr:nth-child(odd) {
background-color: var(--table-row-odd-background);
}
.markdown-section th {
font-weight: 500;
text-align: left;
padding: var(--spacing-default) var(--spacing-comfortable);
border-bottom: 1px solid var(--border-primary);
font-size: 15px;
}
.markdown-section td {
padding: var(--spacing-default) var(--spacing-comfortable);
border-top: 1px solid var(--border-primary);
color: var(--text-secondary);
font-size: 15px;
}
/* Blockquotes */
.markdown-section blockquote {
position: relative;
margin: var(--spacing-loose) 0;
padding: var(--spacing-comfortable) var(--spacing-comfortable) var(--spacing-comfortable) var(--spacing-loose);
border-left: 4px solid var(--accent-primary);
background-color: rgba(95, 122, 138, 0.07);
border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
color: var(--text-secondary);
}
/* Cards */
.card {
background: linear-gradient(135deg, rgba(25, 25, 28, 0.7), rgba(29, 29, 34, 0.7));
backdrop-filter: blur(10px);
border-radius: var(--radius-large);
margin-bottom: 32px;
overflow: hidden;
position: relative;
border: 1px solid rgba(255, 255, 255, 0.05);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.card::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
opacity: 0.1;
pointer-events: none;
z-index: 0;
}
.card:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
border-color: rgba(95, 122, 138, 0.2);
}
.card-header {
padding: 20px 24px;
border-bottom: 1px solid var(--border-primary);
position: relative;
z-index: 1;
}
.card-title {
font-size: 20px;
font-weight: 500;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 10px;
margin: 0;
}
.card-title svg, .card-title i {
width: 20px;
height: 20px;
color: var(--accent-primary);
}
.card-body {
padding: 24px;
position: relative;
z-index: 1;
}
/* Feature Cards Grid */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
margin: 24px 0;
}
.feature-card {
background: linear-gradient(135deg, rgba(29, 29, 34, 0.5), rgba(35, 35, 40, 0.5));
backdrop-filter: blur(10px);
border-radius: 8px;
padding: 20px;
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.03);
height: 100%;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
opacity: 0.1;
pointer-events: none;
z-index: 0;
}
.feature-card:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.feature-icon {
margin-bottom: 16px;
color: var(--accent-primary);
position: relative;
z-index: 1;
}
.feature-title {
font-size: 18px;
font-weight: 500;
margin-bottom: 12px;
color: var(--text-primary);
position: relative;
z-index: 1;
}
.feature-description {
color: var(--text-secondary);
font-size: 15px;
line-height: 1.5;
position: relative;
z-index: 1;
margin: 0;
}
/* Buttons */
.buttons {
display: flex;
gap: 12px;
margin: 24px 0;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
/* Primary Button */
.get-started-button, .button {
display: inline-flex;
align-items: center;
padding: 10px 18px;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
color: white;
border: none;
border-radius: 6px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
text-decoration: none;
transition: all 0.2s ease;
gap: 8px;
position: relative;
overflow: hidden;
}
.button::before, .get-started-button::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
opacity: 0.2;
pointer-events: none;
}
.get-started-button:hover, .button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(95, 122, 138, 0.3);
text-decoration: none;
}
/* Secondary Button */
.github-button, .button-secondary {
background-color: rgba(29, 29, 34, 0.5);
color: var(--text-secondary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-medium);
padding: 10px 18px;
font-weight: 500;
font-size: 16px;
backdrop-filter: blur(5px);
cursor: pointer;
transition: all 0.2s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: var(--spacing-default);
}
.github-button:hover, .button-secondary:hover {
background-color: rgba(29, 29, 34, 0.7);
color: var(--text-primary);
border-color: var(--border-secondary);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
text-decoration: none;
}
/* Ko-fi Button */
.kofi-button {
background: rgba(41, 171, 224, 0.15);
color: #29ABE0;
border: 1px solid rgba(41, 171, 224, 0.3);
border-radius: var(--radius-medium);
padding: 10px 18px;
font-weight: 500;
font-size: 16px;
backdrop-filter: blur(5px);
cursor: pointer;
transition: all 0.2s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: var(--spacing-default);
}
.kofi-button:hover {
background: rgba(41, 171, 224, 0.25);
color: #4CC0ED;
border-color: rgba(41, 171, 224, 0.5);
transform: translateY(-2px);
text-decoration: none;
}
/* Tags */
.tag {
display: inline-block;
padding: 5px 12px;
border-radius: var(--radius-small);
font-size: 14px;
font-weight: 500;
color: var(--accent-primary);
background: rgba(95, 122, 138, 0.05);
border: 1px solid rgba(95, 122, 138, 0.2);
margin-right: var(--spacing-default);
margin-bottom: var(--spacing-default);
transition: all 0.2s ease;
}
.features-highlights {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
margin-bottom: 24px;
width: 100%;
}
/* Tabs */
.tabs {
margin: var(--spacing-loose) 0;
border-radius: var(--radius-medium);
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
border: 1px solid var(--border-primary);
}
.tabs label {
display: inline-block;
padding: var(--spacing-default) var(--spacing-comfortable);
font-weight: 500;
text-align: center;
color: var(--text-secondary);
background-color: var(--surface);
cursor: pointer;
transition: all 0.2s ease;
border-bottom: 2px solid transparent;
margin-right: var(--spacing-compact);
}
.tabs label:hover {
color: var(--text-primary);
}
.tabs input[type="radio"] {
display: none;
}
.tabs input[type="radio"]:checked + label {
color: var(--accent-primary);
border-bottom: 2px solid var(--accent-primary);
}
.tabs .tab-content {
display: none;
padding: var(--spacing-comfortable);
}
.tabs input[type="radio"]:checked + label + .tab-content {
display: block;
}
/* Cover Page */
section.cover {
background: var(--background-primary) !important;
min-height: 100vh;
position: relative;
}
/* Ensure the cover image doesn't override our background */
section.cover .cover-background {
background: none !important;
}
section.cover::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
opacity: 0.12;
pointer-events: none;
z-index: 0;
}
/* Fix z-index for cover main container */
section.cover .cover-main {
z-index: 1;
position: relative;
max-width: 800px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: var(--spacing-extra-loose);
width: 100%;
}
.cover-logo {
max-width: 650px;
margin-bottom: 32px;
border-radius: var(--radius-medium);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.cover-main-content {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
width: 100%;
max-width: 800px;
margin: 0 auto;
padding: 0 20px;
}
.cover-footer {
margin-top: 40px;
color: var(--text-tertiary);
font-size: 14px;
}
section.cover .cover-main h1 {
font-size: 42px;
font-weight: 600;
margin-bottom: var(--spacing-comfortable);
line-height: 1.3;
color: var(--text-primary);
width: 100%;
margin-left: -30px; /* Shift left to compensate for backticks */
text-align: center; /* Ensure text is centered */
}
section.cover .cover-main h1 small {
font-size: 24px;
font-weight: 400;
opacity: 0.8;
display: block;
margin-top: 8px;
}
section.cover .cover-main p {
font-size: 18px;
line-height: 1.5;
margin-bottom: var(--spacing-loose);
color: var(--text-secondary);
text-align: center;
max-width: 600px;
width: 100%;
}
/* Breadcrumb */
.breadcrumb {
display: flex;
align-items: center;
margin-bottom: 24px;
color: var(--text-tertiary);
font-size: 15px;
}
.breadcrumb a {
color: var(--text-secondary);
text-decoration: none;
transition: color 0.2s ease;
}
.breadcrumb a:hover {
color: var(--accent-secondary);
}
.breadcrumb .separator {
margin: 0 8px;
}
/* Page Header */
.page-header {
margin-bottom: 32px;
}
.page-title {
font-size: 32px;
font-weight: 600;
margin-bottom: 16px;
color: var(--text-primary);
}
.page-description {
font-size: 18px;
color: var(--text-secondary);
max-width: 800px;
line-height: 1.5;
}
/* Steps List */
.steps-list {
list-style: none;
margin: 24px 0;
position: relative;
counter-reset: steps;
}
.steps-list li {
padding-left: 40px;
position: relative;
margin-bottom: 20px;
counter-increment: steps;
}
.steps-list li::before {
content: counter(steps);
position: absolute;
left: 0;
top: 0;
width: 28px;
height: 28px;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
font-size: 14px;
}
/* Scrollbar customization */
::-webkit-scrollbar {
width: 8px;
height: 8px;
background-color: rgba(15, 15, 17, 0.5);
}
::-webkit-scrollbar-track {
background-color: rgba(15, 15, 17, 0.5);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background-color: rgba(95, 122, 138, 0.3);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(95, 122, 138, 0.5);
}
/* Ambient Glow Container */
.glow-container {
position: relative;
overflow-x: hidden;
}
/* Ambient Glow Effects */
.glow {
position: absolute;
width: 60px;
height: 60px;
border-radius: 100%;
background: rgba(95, 122, 138, 0.3);
filter: blur(30px);
opacity: 0.3;
pointer-events: none;
z-index: 0;
}
.glow.glow-1 {
top: 20%;
left: 5%;
width: 300px;
height: 300px;
animation: float 20s ease-in-out infinite;
}
.glow.glow-2 {
bottom: 10%;
right: 5%;
width: 200px;
height: 200px;
animation: float 15s ease-in-out infinite reverse;
}
/* Animation Keyframes */
@keyframes float {
0% { transform: translate(0, 0); }
25% { transform: translate(-10px, 10px); }
50% { transform: translate(0, 20px); }
75% { transform: translate(10px, 10px); }
100% { transform: translate(0, 0); }
}
/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
.cover-logo {
max-width: 200px;
}
section.cover .cover-main h1 {
font-size: 32px;
}
section.cover .cover-main h1 small {
font-size: 20px;
}
.buttons {
flex-direction: column;
align-items: stretch;
}
}
@media screen and (max-width: 480px) {
.cover-logo {
max-width: 150px;
}
section.cover .cover-main h1 {
font-size: 28px;
}
section.cover .cover-main p {
font-size: 16px;
}
}
/* Showcase Gallery Styles */
.showcase-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust minmax for desired image size */
gap: 16px;
margin-top: 24px;
}
.showcase-gallery img {
width: 100%; /* Make images fill their grid cells */
height: auto; /* Maintain aspect ratio */
object-fit: cover; /* Crop/resize images to fit */
}