From afa81118d2aae89d17753dcfbfd23f7cee8a1809 Mon Sep 17 00:00:00 2001 From: abhishekspeer Date: Sat, 21 Mar 2020 01:53:32 +0530 Subject: [PATCH] Remove design glitches, improve responsive CSS --- systers_portal/static/css/style.css | 83 ++++++++++++++++++++++++++--- systers_portal/templates/base.html | 38 +++++++++++-- 2 files changed, 109 insertions(+), 12 deletions(-) diff --git a/systers_portal/static/css/style.css b/systers_portal/static/css/style.css index 1914bb64..44f4112c 100755 --- a/systers_portal/static/css/style.css +++ b/systers_portal/static/css/style.css @@ -56,7 +56,8 @@ body > .container-fluid { -------------------------------------------------- */ .messages { margin-top: 54px; - margin-bottom: -60px; + margin-bottom: -15px; + text-align: center; } .message { @@ -147,13 +148,13 @@ body > .container-fluid { top:20px; font-size: 16px; font-weight: bolder; - font-family: 'Cairo'; + font-family: 'Cairo'; } #line { width: 70%; z-index: 2; - height: 4px; + height: 4px; } #systers-logo { @@ -163,12 +164,13 @@ body > .container-fluid { } #log-btn { - background-color: #47bca0; + background-color: #47bca0; } #signup-btn { background-color: #8d2165; right: 20%; + border-radius: 5px; } .auth-img { @@ -220,7 +222,7 @@ body > .container-fluid { background-color: #e2e2e2; border-color: #dadada; color: #555555; - padding: 8px 12px 7px; + padding: 8px 12px 7px; } @media screen and (max-width: 991px) { @@ -275,7 +277,7 @@ body > .container-fluid { } .search-options { - font-family: Cairo; + font-family: Cairo; font-size: 15px; margin: 0 4px 0 0; color: #888b8d; @@ -347,7 +349,7 @@ input { #filters { float: right; - width: 30%; + width: 30%; } #meetup-location-input,#location-input { @@ -395,7 +397,7 @@ input { background-color: white; border: none; box-shadow: none; - width: auto; + width: auto; font-family: Cairo; } @@ -649,4 +651,69 @@ table.decoration-none tr a { .featurette .img-responsive { margin: 0 auto; } + #systers-logo { + height: 70px; + width: 298px; + margin: 6px; + } + #upper-nav { + display: none; + } +} + +@media (max-width: 991px) { + .navbar-header { + float: none; + } + .navbar-toggle { + display: block; + } + .navbar-collapse { + border-top: 1px solid transparent; + box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); + } + .navbar-collapse.collapse { + display: none; + } + .navbar-nav { + float: none; + margin: 7.5px -15px; + } + .navbar-nav>li { + float: none; + } + .navbar-nav>li>a { + padding-top: 10px; + padding-bottom: 10px; + } + .navbar-text { + float: none; + margin: 15px 0; + } + .navbar-collapse.collapse.in { + display: block; + } + .collapsing { + overflow: hidden; + } + #log-btn { + margin-right: 19px; + margin-top: 3px; + } + #signup-btn { + margin-left: 19px; + margin-bottom: 3px; + } +} + +@media (min-width: 769px) { + #log-btn-menu { + display: none; + } + #signup-btn-menu { + display: none; + } + #user-dropdown-menu { + display: none; + } } diff --git a/systers_portal/templates/base.html b/systers_portal/templates/base.html index 46d87a4d..69ea2af5 100644 --- a/systers_portal/templates/base.html +++ b/systers_portal/templates/base.html @@ -59,7 +59,7 @@ {% url 'unapproved_community_requests' as url %}
  • - View community requests + View community requests
  • {% endif %} {% if user.is_authenticated and user.is_active and user.is_staff %} @@ -72,7 +72,7 @@