diff --git a/static/css/simple-blog-template.css b/static/css/simple-blog-template.css index 7582d8a..3a2440c 100644 --- a/static/css/simple-blog-template.css +++ b/static/css/simple-blog-template.css @@ -1,194 +1,120 @@ -/*! - * 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) - */ - +/* --- Global Styles --- */ 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; + 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: 750px; - } + width: 780px; + } /* Slightly wider for better readability */ } -/* navigation */ +/* --- 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: white; - font-weight: bold; - font-size: 25px; + color: #fff !important; + font-weight: 700; + font-size: 20px; /* Scaled down slightly for elegance */ } -.navbar-inverse .navbar-nav > li > a { - color: white; +/* --- Post List --- */ +.post-preview { + margin-bottom: 50px; + padding-bottom: 30px; + border-bottom: 1px solid #eee; } -/* Posts */ .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 { - 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; } -.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 (Code Blocks) --- */ .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; + 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; -} -.pager { - display: flex; - justify-content: space-between; - align-items: center; + margin: 20px 0; } -.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 */ +/* --- Comments Section --- */ .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; + border-radius: 12px; + padding: 30px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); + 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 { display: flex; gap: 16px; @@ -197,63 +123,44 @@ nav { 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; + border-radius: 50%; + border: 1px solid #eee; } .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; + 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; - cursor: pointer; - transition: - background 0.2s, - transform 0.1s; } -.btn-modern:hover { - background-color: #005cc5; +.pager li > a:hover { + background-color: #f6f8fa; } -.btn-modern:active { - transform: translateY(1px); +/* --- Background Decor --- */ +.background-svg { + position: fixed; + bottom: 50px; + right: 50px; + width: 150px; + z-index: -1; + pointer-events: none; + opacity: 0.3; /* More subtle */ } diff --git a/templates/base.html b/templates/base.html index 3064740..ba53854 100644 --- a/templates/base.html +++ b/templates/base.html @@ -8,6 +8,12 @@ {% block title %}Default Title{% endblock %} + + +