From feabfb44a0341a54a72d5b28382f1a1b729ac5b7 Mon Sep 17 00:00:00 2001 From: m Date: Sun, 15 Mar 2026 03:26:48 +0100 Subject: [PATCH] css --- static/css/simple-blog-template.css | 70 +++++++++++++++++++++++++---- 1 file changed, 62 insertions(+), 8 deletions(-) diff --git a/static/css/simple-blog-template.css b/static/css/simple-blog-template.css index ef8d576..57d1cb9 100644 --- a/static/css/simple-blog-template.css +++ b/static/css/simple-blog-template.css @@ -9,9 +9,13 @@ body { Roboto, sans-serif; background-color: #fcfcfc; - color: #222; /* Darker for better contrast */ - font-size: 18px; /* Larger body text for readability */ - line-height: 1.75; /* Increased breathing room between lines */ + color: #222; + font-size: 16px; + line-height: 1.5; +} + +footer { + margin: 50px 0; } /* Narrower container improves readability by limiting line length */ @@ -93,9 +97,9 @@ nav { /* --- Buttons & UI --- */ .btn-read-more { float: right; - background: #f8f9fa; /* Light gray background instead of white */ + background: #f8f9fa; border: 1px solid #e1e4e8; - color: #0366d6; /* Use your brand blue for the text */ + color: #666; border-radius: 6px; padding: 8px 20px; font-size: 0.85rem; @@ -109,10 +113,8 @@ nav { } .btn-read-more:hover { - background-color: #0366d6; - border-color: #0366d6; + background-color: #e1e4e8; color: #ffffff; /* Invert colors on hover */ - box-shadow: 0 4px 8px rgba(3, 102, 214, 0.2); transform: translateY(-1px); } @@ -231,3 +233,55 @@ nav { pointer-events: none; opacity: 0.2; } + +/* 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; +} + +.blog-content { + position: relative; + z-index: 1; /* Ensures text stays on top */ +}