Stig-Ørjan Smelror 7521c744bd Improve qsgen3 theme system: complete theme override and new minimal theme
- Remove legacy themes (black-orange, minimal) with old .tpl structure
- Create new minimal theme with proper qsgen3 structure:
  - Complete layouts/ directory with all required templates
  - Modern CSS with responsive design and clean styling
  - Proper theme documentation in README.md
- Update THEMES-HOWTO.md to accurately reflect theme behavior:
  - Clarify complete layout override (no fallback to defaults)
  - Document included minimal theme example
  - Correct layout processing documentation
- Update site.conf to use new minimal theme CSS path
- Ensure themes are complete packages when specified
2025-05-31 03:14:36 +02:00

268 lines
4.0 KiB
CSS

/* Minimal Theme for qsgen3 */
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #fff;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 0 1rem;
}
/* Header */
.site-header {
background: #f8f9fa;
border-bottom: 1px solid #e9ecef;
padding: 2rem 0;
margin-bottom: 2rem;
}
.site-title {
font-size: 2rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.site-title a {
color: #333;
text-decoration: none;
}
.site-title a:hover {
color: #007bff;
}
.site-tagline {
color: #6c757d;
font-size: 1.1rem;
}
/* Main content */
.main-content {
min-height: calc(100vh - 200px);
margin-bottom: 3rem;
}
/* Posts grid */
.posts-grid {
display: grid;
gap: 2rem;
margin-top: 1rem;
}
.post-card {
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 1.5rem;
background: #fff;
transition: box-shadow 0.2s ease;
}
.post-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.post-card h3 {
margin-bottom: 0.5rem;
}
.post-card h3 a {
color: #333;
text-decoration: none;
}
.post-card h3 a:hover {
color: #007bff;
}
.post-date {
color: #6c757d;
font-size: 0.9rem;
margin-bottom: 0.5rem;
}
.post-summary {
color: #555;
line-height: 1.5;
}
.no-posts {
text-align: center;
color: #6c757d;
font-style: italic;
padding: 2rem;
}
/* Post page */
.post {
max-width: none;
}
.post-header {
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid #e9ecef;
}
.post-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
line-height: 1.2;
}
.post-meta {
color: #6c757d;
font-size: 0.9rem;
}
.post-meta span {
margin-right: 1rem;
}
.post-content {
font-size: 1.1rem;
line-height: 1.7;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
margin-top: 2rem;
margin-bottom: 1rem;
font-weight: 600;
}
.post-content p {
margin-bottom: 1rem;
}
.post-content ul,
.post-content ol {
margin-bottom: 1rem;
padding-left: 2rem;
}
.post-content li {
margin-bottom: 0.5rem;
}
.post-content blockquote {
border-left: 4px solid #007bff;
padding-left: 1rem;
margin: 1.5rem 0;
font-style: italic;
color: #555;
}
.post-content code {
background: #f8f9fa;
padding: 0.2rem 0.4rem;
border-radius: 3px;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
font-size: 0.9em;
}
.post-content pre {
background: #f8f9fa;
padding: 1rem;
border-radius: 6px;
overflow-x: auto;
margin: 1.5rem 0;
}
.post-content pre code {
background: none;
padding: 0;
}
/* Page content */
.page {
max-width: none;
}
.page-header {
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid #e9ecef;
}
.page-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
line-height: 1.2;
}
.page-content {
font-size: 1.1rem;
line-height: 1.7;
}
/* Navigation */
.post-nav,
.page-nav {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid #e9ecef;
}
.back-link {
color: #007bff;
text-decoration: none;
font-weight: 500;
}
.back-link:hover {
text-decoration: underline;
}
/* Footer */
.site-footer {
background: #f8f9fa;
border-top: 1px solid #e9ecef;
padding: 2rem 0;
margin-top: auto;
color: #6c757d;
text-align: center;
}
/* Responsive design */
@media (max-width: 768px) {
.container {
padding: 0 0.75rem;
}
.site-header {
padding: 1.5rem 0;
}
.site-title {
font-size: 1.5rem;
}
.post-title,
.page-title {
font-size: 2rem;
}
.post-content,
.page-content {
font-size: 1rem;
}
}