www_projectmycelium_io/poc_threefold/static/css/faq.css
2024-11-18 19:36:27 +03:00

173 lines
3.3 KiB
CSS

.faq-container {
display: flex;
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
/* Markdown content styling */
.markdown-content {
flex: 1;
padding-right: 2rem;
border-right: 1px solid #a4b6ba;
font-family: var(--font-family);
}
/* Base styles for markdown content */
.markdown-content {
font-weight: 200;
}
/* Heading styles */
.markdown-content h2,
.markdown-content h3 {
font-family: var(--font-family);
}
/* Light theme colors */
.light-theme .markdown-content h2,
.light-theme .markdown-content h3,
.light-theme .markdown-content p,
.light-theme .markdown-content ul,
.light-theme .markdown-content li {
color: #444444 !important;
}
/* Dark theme colors */
.markdown-content h2,
.markdown-content h3,
.markdown-content p,
.markdown-content ul,
.markdown-content li {
color: #cccccc !important;
}
.markdown-content h2 {
font-size: 1.2rem;
font-weight: 500;
line-height: 1.2;
margin-bottom: 1rem;
}
.markdown-content h3 {
font-size: 1rem;
font-weight: 500;
line-height: 1.3;
margin-bottom: 0.8rem;
}
/* Regular text styles */
.markdown-content p,
.markdown-content ul,
.markdown-content li {
font-weight: 400;
font-family: var(--font-family);
}
/* Make list items and paragraphs consistent size */
.markdown-content p,
.markdown-content li {
font-size: 0.75rem;
font-weight: 200;
line-height: 1.25;
margin-bottom: 0.25rem;
padding-left: 1rem; /* Added indentation for paragraphs */
}
/* List specific styling */
.markdown-content ul {
font-weight: 200;
padding-left: 2.5rem; /* Increased padding for better alignment */
margin-bottom: 1rem;
}
/* FAQ section styling */
.faq-section {
flex: 1;
font-family: var(--font-family);
}
.faq-section h4 {
font-family: var(--font-family);
}
details {
border-bottom: 1px solid #ddd;
padding: 1em 0;
margin: 0;
font-family: var(--font-family);
}
summary {
font-size: 0.8rem;
font-family: var(--font-family);
cursor: pointer;
list-style: none;
margin: 0;
padding: 0;
outline: none;
}
.faq-section details summary {
color: #96989ead; /* ThreeFold blue color */
}
.faq-section details summary:before {
color: #2a2a2c; /* Makes the arrow icon match */
}
summary::marker {
display: none;
}
details[open] summary {
color: #000;
}
details p {
margin: 0.5em 0 0 0;
color: #666;
font-size: 0.8rem;
line-height: 1.6;
font-weight: 400;
padding-left: 1.5rem; /* Added indentation for FAQ answers */
font-family: var(--font-family);
}
/* Links styling */
.markdown-content a,
details a {
font-size: 0.75rem; /* Match paragraph font size */
font-family: var(--font-family);
font-weight: 200;
text-decoration: none;
}
summary:before {
content: "▶";
display: inline-block;
transform: rotate(0deg);
transition: transform 0.3s ease;
margin-right: 0.5em;
color: #000;
}
details[open] summary:before {
transform: rotate(90deg);
}
/* Responsive design */
@media (max-width: 768px) {
.faq-container {
flex-direction: column;
}
.markdown-content {
border-right: none;
border-bottom: 1px solid #ddd;
padding-right: 0;
padding-bottom: 2rem;
}
}