www_projectmycelium_io/poc_threefold/static/css/faq.css

172 lines
3.3 KiB
CSS
Raw Normal View History

2024-11-08 15:31:50 +00:00
/* Import Google Fonts - if not already imported in ourworld.css */
2024-11-15 07:49:55 +00:00
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
2024-11-08 15:31:50 +00:00
/* Container styling */
.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;
}
/* Base styles for markdown content */
.markdown-content {
2024-11-15 07:49:55 +00:00
font-family: 'Inter';
2024-11-08 15:31:50 +00:00
font-weight: 200;
}
/* Heading styles */
.markdown-content h2,
.markdown-content h3 {
2024-11-15 07:49:55 +00:00
font-family: 'Inter';
2024-11-08 15:31:50 +00:00
}
/* 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 {
2024-11-15 07:49:55 +00:00
font-size: 1.2rem;
font-weight: 500;
2024-11-08 15:31:50 +00:00
line-height: 1.2;
margin-bottom: 1rem;
}
.markdown-content h3 {
2024-11-15 07:49:55 +00:00
font-size: 1rem;
font-weight: 500;
2024-11-08 15:31:50 +00:00
line-height: 1.3;
margin-bottom: 0.8rem;
}
/* Regular text styles */
.markdown-content p,
.markdown-content ul,
.markdown-content li {
2024-11-15 07:49:55 +00:00
font-family: 'Inter', sans-serif;
font-weight: 400;
2024-11-08 15:31:50 +00:00
}
/* Make list items and paragraphs consistent size */
.markdown-content p,
.markdown-content li {
2024-11-15 07:49:55 +00:00
font-size: 0.75rem;
font-weight: 200;
line-height: 1.25;
2024-11-08 15:31:50 +00:00
margin-bottom: 0.25rem;
2024-11-15 07:49:55 +00:00
padding-left: 1rem; /* Added indentation for paragraphs */
2024-11-08 15:31:50 +00:00
}
/* List specific styling */
.markdown-content ul {
2024-11-15 07:49:55 +00:00
font-weight: 200;
padding-left: 2.5rem; /* Increased padding for better alignment */
2024-11-08 15:31:50 +00:00
margin-bottom: 1rem;
}
/* FAQ section styling */
.faq-section {
flex: 1;
}
details {
border-bottom: 1px solid #ddd;
padding: 1em 0;
margin: 0;
}
summary {
2024-11-15 07:49:55 +00:00
font-family: 'Inter', sans-serif;
font-size: 0.8rem;
font-weight: 200;
2024-11-08 15:31:50 +00:00
cursor: pointer;
list-style: none;
margin: 0;
padding: 0;
outline: none;
}
.faq-section details summary {
2024-11-15 07:49:55 +00:00
color: #96989ead; /* ThreeFold blue color */
}
.faq-section details summary:before {
color: #2a2a2c; /* Makes the arrow icon match */
}
2024-11-08 15:31:50 +00:00
summary::marker {
display: none;
}
details[open] summary {
color: #000;
}
details p {
2024-11-15 07:49:55 +00:00
font-family: 'Inter', sans-serif;
2024-11-08 15:31:50 +00:00
margin: 0.5em 0 0 0;
color: #666;
2024-11-15 07:49:55 +00:00
font-size: 0.8rem;
2024-11-08 15:31:50 +00:00
line-height: 1.6;
2024-11-15 07:49:55 +00:00
font-weight: 400;
padding-left: 1.5rem; /* Added indentation for FAQ answers */
}
/* Links styling */
.markdown-content a,
details a {
font-size: 0.75rem; /* Match paragraph font size */
font-family: 'Inter', sans-serif;
2024-11-08 15:31:50 +00:00
font-weight: 200;
2024-11-15 07:49:55 +00:00
text-decoration: none;
2024-11-08 15:31:50 +00:00
}
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;
}
}