Files
flask_blog/static/css/simple-blog-template.css
2026-03-14 21:22:01 +01:00

181 lines
3.2 KiB
CSS

/* --- Global Styles --- */
body {
padding-top: 80px;
font-family:
"Inter",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
sans-serif;
background-color: #fcfcfc;
color: #333;
line-height: 1.6;
}
@media (min-width: 1200px) {
.container {
width: 780px;
} /* Slightly wider for better readability */
}
/* --- Navigation --- */
nav {
text-transform: uppercase;
letter-spacing: 0.05em;
}
.navbar-inverse {
background-color: #1a1a1a;
border: none;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar-inverse .navbar-brand {
color: #fff !important;
font-weight: 700;
font-size: 20px; /* Scaled down slightly for elegance */
}
/* --- Post List --- */
.post-preview {
margin-bottom: 50px;
padding-bottom: 30px;
border-bottom: 1px solid #eee;
}
.post-title {
font-size: 2.4rem; /* Balanced size */
font-weight: 700;
margin-top: 0;
margin-bottom: 10px;
letter-spacing: -0.02em;
}
.post-title a {
color: #1a1a1a;
text-decoration: none;
transition: color 0.2s;
}
.post-title a:hover {
color: #0366d6;
}
.post-meta {
color: #666;
font-size: 0.95rem;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 8px;
}
/* --- Buttons & UI --- */
.btn-read-more {
float: right;
background: #fff;
border: 1px solid #ddd;
color: #555;
border-radius: 6px;
padding: 6px 16px;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.2s;
}
.btn-read-more:hover {
border-color: #0366d6;
color: #0366d6;
background: #f0f7ff;
text-decoration: none;
}
/* Subtle 'press' effect when clicked */
.btn-read-more:active {
transform: translateY(1px);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.12);
}
/* Ensure it behaves like a button block in the flow */
.btn-read-more {
display: inline-block;
text-align: center;
vertical-align: middle;
user-select: none;
}
/* --- Terminal Style (Code Blocks) --- */
.terminal-style {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
background-color: #0d1117; /* GitHub Dark theme background */
color: #e6edf3;
padding: 16px;
border-radius: 8px;
border: 1px solid #30363d;
font-size: 0.9rem;
line-height: 1.45;
overflow-x: auto;
margin: 20px 0;
}
/* --- Comments Section --- */
.comment-card {
background: #ffffff;
border: 1px solid #e1e4e8;
border-radius: 12px;
padding: 30px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
margin-top: 40px;
}
.comment-item {
display: flex;
gap: 16px;
margin-bottom: 24px;
padding-bottom: 20px;
border-bottom: 1px solid #f0f0f0;
}
.avatar-img {
border-radius: 50%;
border: 1px solid #eee;
}
.comment-author {
font-weight: 600;
color: #1a1a1a;
}
/* --- Pager (Pagination) --- */
.pager {
display: flex;
justify-content: space-between;
padding: 20px 0;
border-top: 1px solid #eee;
}
.pager li > a {
color: #0366d6;
font-weight: 500;
text-decoration: none;
padding: 10px 20px;
border: 1px solid #ddd;
border-radius: 6px;
}
.pager li > a:hover {
background-color: #f6f8fa;
}
/* --- Background Decor --- */
.background-svg {
position: fixed;
bottom: 50px;
right: 50px;
width: 150px;
z-index: -1;
pointer-events: none;
opacity: 0.3; /* More subtle */
}