From a5b8a69cdae8dbeb4306272d619ea251c6b247b3 Mon Sep 17 00:00:00 2001 From: Bobby Date: Mon, 26 May 2025 18:47:47 +0530 Subject: refactor templates as per djlint --- static/css/_partials/weblog_list.css | 4 ++++ static/css/blog/post.css | 8 +++++++- static/css/shared/core.css | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) (limited to 'static') diff --git a/static/css/_partials/weblog_list.css b/static/css/_partials/weblog_list.css index f983fe6b..b6b3aa27 100644 --- a/static/css/_partials/weblog_list.css +++ b/static/css/_partials/weblog_list.css @@ -11,6 +11,10 @@ margin: 4px 0px 8px 0px; } +.author-info span:last-child { + margin-left: 4px; +} + .post-profile-image { width: 16px; height: 16px; diff --git a/static/css/blog/post.css b/static/css/blog/post.css index ca6fcff7..b6796914 100644 --- a/static/css/blog/post.css +++ b/static/css/blog/post.css @@ -17,7 +17,6 @@ top: 8px; } - .weblog-details { display: flex; justify-content: space-between; @@ -164,4 +163,11 @@ font-size: 12px; font-style: italic; color: #777; +} + +.post-tags { + display: flex; + flex-direction: row; + align-items: center; + gap: 4px; } \ No newline at end of file diff --git a/static/css/shared/core.css b/static/css/shared/core.css index 0c729e06..8e65c00f 100644 --- a/static/css/shared/core.css +++ b/static/css/shared/core.css @@ -51,6 +51,8 @@ a:active { color: #df23c4; } + + button { background: #4444b1; color: #fff; @@ -165,6 +167,38 @@ img { border-top: 1px solid #fff; } +/* Header Banner */ +.header-banner { + position: relative; + padding: 20px 0px; +} + +/* Link Button Mimic a Link */ +.link-button { + color: #8d8dff; + text-decoration: none; + cursor: pointer; + background-color: transparent; + border: none; + padding: 0; + font: inherit; + outline: none; +} + +.link-button:hover { + color: #df23c4; + background-color: transparent; + text-decoration: underline; +} + +.link-button:active { + color: #8d8dff; +} + +.link-button:focus { + outline: none; +} + /* Pamphlet Ads */ .pamphlet-big { width: 200px; -- cgit v1.2.3