css
This commit is contained in:
@@ -1,194 +1,120 @@
|
|||||||
/*!
|
/* --- Global Styles --- */
|
||||||
* Simple Blog Template
|
|
||||||
* Copyright 2016 Seunghun Lee (https://github.com/earlbread/simple-blog-template)
|
|
||||||
* Licensed under MIT (https://github.com/earlbread/simple-blog-template/blob/master/LICENSE)
|
|
||||||
*/
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding-top: 70px; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */
|
padding-top: 80px;
|
||||||
}
|
font-family:
|
||||||
|
"Inter",
|
||||||
footer {
|
-apple-system,
|
||||||
margin: 50px 0;
|
BlinkMacSystemFont,
|
||||||
|
"Segoe UI",
|
||||||
|
Roboto,
|
||||||
|
sans-serif;
|
||||||
|
background-color: #fcfcfc;
|
||||||
|
color: #333;
|
||||||
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
.container {
|
.container {
|
||||||
width: 750px;
|
width: 780px;
|
||||||
}
|
} /* Slightly wider for better readability */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* navigation */
|
/* --- Navigation --- */
|
||||||
nav {
|
nav {
|
||||||
text-transform: uppercase;
|
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 {
|
.navbar-inverse .navbar-brand {
|
||||||
color: white;
|
color: #fff !important;
|
||||||
font-weight: bold;
|
font-weight: 700;
|
||||||
font-size: 25px;
|
font-size: 20px; /* Scaled down slightly for elegance */
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-inverse .navbar-nav > li > a {
|
/* --- Post List --- */
|
||||||
color: white;
|
.post-preview {
|
||||||
|
margin-bottom: 50px;
|
||||||
|
padding-bottom: 30px;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Posts */
|
|
||||||
.post-title {
|
.post-title {
|
||||||
font-size: 3em;
|
font-size: 2.4rem; /* Balanced size */
|
||||||
|
font-weight: 700;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
letter-spacing: -0.02em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-title a {
|
.post-title a {
|
||||||
color: inherit;
|
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;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
/* --- Terminal Style (Code Blocks) --- */
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-custom {
|
|
||||||
margin-top: 20px;
|
|
||||||
margin-right: 10px;
|
|
||||||
float: right;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
.pager li > a {
|
|
||||||
color: inherit;
|
|
||||||
border-radius: 0;
|
|
||||||
border: 0;
|
|
||||||
padding: 0.9em 1.4em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Login, Sign up, New post */
|
|
||||||
.login,
|
|
||||||
.signup {
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login h1,
|
|
||||||
.signup h1,
|
|
||||||
.newpost h1 {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login .form-control,
|
|
||||||
.signup .form-control,
|
|
||||||
.newpost .form-control {
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login button,
|
|
||||||
.signup button {
|
|
||||||
margin-top: 20px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group label {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.newpost textarea {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Basic terminal style */
|
|
||||||
.terminal-style {
|
.terminal-style {
|
||||||
font-family: "Courier New", monospace; /* Monospaced font for terminal look */
|
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
||||||
background-color: #000; /* Black background */
|
background-color: #0d1117; /* GitHub Dark theme background */
|
||||||
color: #fff; /* Classic green text color */
|
color: #e6edf3;
|
||||||
padding: 10px; /* Padding around the text */
|
padding: 16px;
|
||||||
border-radius: 4px; /* Slightly rounded corners */
|
border-radius: 8px;
|
||||||
border: 1px solid #333; /* Light border for separation */
|
border: 1px solid #30363d;
|
||||||
/*white-space: pre-wrap; */
|
font-size: 0.9rem;
|
||||||
white-space: pre-wrap;
|
line-height: 1.45;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
margin: 20px 0;
|
||||||
.pager {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.pager span {
|
/* --- Comments Section --- */
|
||||||
font-weight: bold;
|
|
||||||
color: #777;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Optional: Make the disabled buttons look more "faded" */
|
|
||||||
.pager .disabled a {
|
|
||||||
color: #ccc !important;
|
|
||||||
pointer-events: none;
|
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
.blog-content {
|
|
||||||
position: relative;
|
|
||||||
z-index: 1; /* Ensures text stays on top */
|
|
||||||
}
|
|
||||||
|
|
||||||
.background-svg {
|
|
||||||
position: fixed; /* This keeps it in the corner even when scrolling */
|
|
||||||
bottom: 100px; /* Small gap from the edge looks cleaner */
|
|
||||||
right: 200px;
|
|
||||||
width: 200px; /* Adjust to your preference */
|
|
||||||
height: auto;
|
|
||||||
z-index: -1; /* Places it behind the text */
|
|
||||||
pointer-events: none; /* VERY IMPORTANT: allows you to select text "over" the SVG */
|
|
||||||
opacity: 0.6; /* Makes it subtle so it doesn't distract from the blog */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Modernizing the container */
|
|
||||||
.comment-card {
|
.comment-card {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border: 1px solid #e1e4e8;
|
border: 1px solid #e1e4e8;
|
||||||
border-radius: 8px;
|
border-radius: 12px;
|
||||||
padding: 24px;
|
padding: 30px;
|
||||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
|
||||||
margin-top: 30px;
|
margin-top: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-card h4 {
|
|
||||||
margin-top: 0;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #333;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Styling the inputs */
|
|
||||||
.comment-card .form-control {
|
|
||||||
border-radius: 6px;
|
|
||||||
border: 1px solid #d1d5da;
|
|
||||||
box-shadow: none;
|
|
||||||
transition:
|
|
||||||
border-color 0.2s,
|
|
||||||
box-shadow 0.2s;
|
|
||||||
padding: 10px 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-card .form-control:focus {
|
|
||||||
border-color: #007bff;
|
|
||||||
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Making the button pop */
|
|
||||||
.comment-card .btn-primary {
|
|
||||||
background-color: #007bff;
|
|
||||||
border: none;
|
|
||||||
padding: 8px 20px;
|
|
||||||
font-weight: 500;
|
|
||||||
border-radius: 6px;
|
|
||||||
margin-top: 15px;
|
|
||||||
transition: background 0.2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-card .btn-primary:hover {
|
|
||||||
background-color: #0056b3;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Comment List Styling */
|
|
||||||
.comment-item {
|
.comment-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
@@ -197,63 +123,44 @@ nav {
|
|||||||
border-bottom: 1px solid #f0f0f0;
|
border-bottom: 1px solid #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-item:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar-img {
|
.avatar-img {
|
||||||
border-radius: 50%; /* Circular avatars look much cleaner */
|
border-radius: 50%;
|
||||||
object-fit: cover;
|
border: 1px solid #eee;
|
||||||
background: #f8f9fa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-body {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-header {
|
|
||||||
display: flex;
|
|
||||||
align-items: baseline;
|
|
||||||
gap: 10px;
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-author {
|
.comment-author {
|
||||||
font-weight: 700;
|
|
||||||
color: #24292e;
|
|
||||||
margin: 0;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-date {
|
|
||||||
font-size: 0.85rem;
|
|
||||||
color: #6a737d;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-text {
|
|
||||||
color: #444;
|
|
||||||
line-height: 1.5;
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Refined Button */
|
|
||||||
.btn-modern {
|
|
||||||
background-color: #0366d6; /* GitHub-style blue */
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
padding: 10px 24px;
|
|
||||||
font-weight: 600;
|
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;
|
border-radius: 6px;
|
||||||
cursor: pointer;
|
|
||||||
transition:
|
|
||||||
background 0.2s,
|
|
||||||
transform 0.1s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-modern:hover {
|
.pager li > a:hover {
|
||||||
background-color: #005cc5;
|
background-color: #f6f8fa;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-modern:active {
|
/* --- Background Decor --- */
|
||||||
transform: translateY(1px);
|
.background-svg {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 50px;
|
||||||
|
right: 50px;
|
||||||
|
width: 150px;
|
||||||
|
z-index: -1;
|
||||||
|
pointer-events: none;
|
||||||
|
opacity: 0.3; /* More subtle */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,12 @@
|
|||||||
<meta name="author" content="" />
|
<meta name="author" content="" />
|
||||||
|
|
||||||
<title>{% block title %}Default Title{% endblock %}</title>
|
<title>{% block title %}Default Title{% endblock %}</title>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
|
<link
|
||||||
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
|
||||||
|
rel="stylesheet"
|
||||||
|
/>
|
||||||
|
|
||||||
<link
|
<link
|
||||||
href="{{ url_for('static', filename='css/bootstrap.min.css') }}"
|
href="{{ url_for('static', filename='css/bootstrap.min.css') }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user