From fb4e88e290e34cb274636e7107808f24987cbe41 Mon Sep 17 00:00:00 2001 From: Ben PC Date: Wed, 30 Mar 2022 09:17:42 +0200 Subject: [PATCH] Header Searchbar center fix, Search page integration --- static/css/header.css | 47 ++++++++++++++++++++++----------------- views/partials/header.ejs | 34 +++++++++++++++++++++++----- 2 files changed, 55 insertions(+), 26 deletions(-) diff --git a/static/css/header.css b/static/css/header.css index 25b310e..6b1fcfe 100644 --- a/static/css/header.css +++ b/static/css/header.css @@ -1,12 +1,23 @@ /* UTIL */ - .vertical-center { +.vertical-center { float: left; top: 50%; position: relative; transform: translateY(-50%); } +body { + margin: 0; +} + + /* BACKGROUND */ +.headerDIV { + width: 100%; + height: 65px; + background-color: #414854; + margin: 0; +} .headerDIV > div { height: 100%; text-align: center; @@ -16,7 +27,7 @@ /* LOGO PART */ .headerDIVLogo { - width: 35px; + width: 20%; } .headerDIVLogo > img { float: left; @@ -47,11 +58,21 @@ height: 30px; } +/* LOGIN PART */ +.headerDIVLogin { + width: 20%; +} +.headerDIVLogin > button { + height: 30px; + float: right; + margin-right: 10px; +} + /* BUTTON PART */ -.headerDIVButton { +.headerDIVUser { float: right; } -.headerDIVButton button { +.headerDIVUser button { height: 30px; float: right; margin-right: 5px; @@ -77,20 +98,6 @@ background-color: rgb(206, 50, 50); } - -.headerDIVButton > button:hover { +.headerDIVUser > button:hover { background-color: rgb(23, 114, 167); -} - -.headerDIV { - width: 100%; - height: 65px; - background-color: #414854; - margin: 0; -} - -@media only screen and (max-width: 800px) { - .headerDIVSearch { - - } - } \ No newline at end of file +} \ No newline at end of file diff --git a/views/partials/header.ejs b/views/partials/header.ejs index ac5ba4b..d80a0a6 100644 --- a/views/partials/header.ejs +++ b/views/partials/header.ejs @@ -1,10 +1,14 @@
- -
+ +
+ +
+ + +
+ +
<% if(user){ %> @@ -13,4 +17,22 @@ <% } %>
-
\ No newline at end of file + + + + \ No newline at end of file