From 58d9d284c77e54b3ff2bd07ae93a682e610f90cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C4=ABna=20Lukjanovi=C4=8Da?= Date: Mon, 29 Apr 2024 09:01:21 +0000 Subject: [PATCH] Update static/css/main.css --- static/css/main.css | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/static/css/main.css b/static/css/main.css index c9656ed..161e371 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -297,7 +297,7 @@ textarea:hover { } /* Button */ -button, input { +button, input, .btn.btn-primary.mb-3 { align-items: center; appearance: none; background-color: #FCFCFD; @@ -328,16 +328,16 @@ button, input { font-size: 18px; } -button:focus, input:focus { +button:focus, input:focus, .btn.btn-primary.mb-3:focus { box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset; } -button:hover, input:hover { +button:hover, input:hover, .btn.btn-primary.mb-3:hover { box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset; transform: translateY(-2px); } -button:active, input:active { +button:active, input:active, .btn.btn-primary.mb-3:active { box-shadow: #D6D6E7 0 3px 7px inset; transform: translateY(2px); } @@ -445,6 +445,30 @@ i.far.fa-comment { height: auto; } +.forum-link:hover::before { + transform: scaleX(1); +} + +.forum-link { + font-size: larger; + color: #fff; + text-decoration: none; + position: relative; +} + +.forum-link::before { + content: ""; + position: absolute; + display: block; + width: 100%; + height: 2px; + bottom: -2px; + left: 0; + background-color: #fff; + transform: scaleX(0); + transition: transform 0.3s ease; +} + .upvote-btn, .downvote-btn { cursor: pointer; @@ -541,4 +565,4 @@ i.far.fa-comment { width: 100%; height: auto; } -} +} \ No newline at end of file