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

260 lines
4.6 KiB
CSS

/*!
* 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 {
padding-top: 70px; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */
}
footer {
margin: 50px 0;
}
@media (min-width: 1200px) {
.container {
width: 750px;
}
}
/* navigation */
nav {
text-transform: uppercase;
}
.navbar-inverse .navbar-brand {
color: white;
font-weight: bold;
font-size: 25px;
}
.navbar-inverse .navbar-nav > li > a {
color: white;
}
/* Posts */
.post-title {
font-size: 3em;
}
.post-title a {
color: inherit;
text-decoration: none;
}
.btn {
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 {
font-family: "Courier New", monospace; /* Monospaced font for terminal look */
background-color: #000; /* Black background */
color: #fff; /* Classic green text color */
padding: 10px; /* Padding around the text */
border-radius: 4px; /* Slightly rounded corners */
border: 1px solid #333; /* Light border for separation */
/*white-space: pre-wrap; */
white-space: pre-wrap;
overflow-x: auto;
}
.pager {
display: flex;
justify-content: space-between;
align-items: center;
}
.pager span {
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 {
background: #ffffff;
border: 1px solid #e1e4e8;
border-radius: 8px;
padding: 24px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
margin-top: 30px;
}
.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 {
display: flex;
gap: 16px;
margin-bottom: 24px;
padding-bottom: 20px;
border-bottom: 1px solid #f0f0f0;
}
.comment-item:last-child {
border-bottom: none;
}
.avatar-img {
border-radius: 50%; /* Circular avatars look much cleaner */
object-fit: cover;
background: #f8f9fa;
}
.comment-body {
flex: 1;
}
.comment-header {
display: flex;
align-items: baseline;
gap: 10px;
margin-bottom: 4px;
}
.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;
border-radius: 6px;
cursor: pointer;
transition:
background 0.2s,
transform 0.1s;
}
.btn-modern:hover {
background-color: #005cc5;
}
.btn-modern:active {
transform: translateY(1px);
}