From 955331f64bf388b3bebef0ebe007bfb6604d0f9d Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Fri, 15 Dec 2017 01:34:07 +0530 Subject: [PATCH] carousel height changed to min height, other style fixes --- .../static/ungleich_page/css/ungleich.css | 31 ++++++++++++------- .../ungleich_page/includes/_header.html | 26 ++++++++-------- 2 files changed, 32 insertions(+), 25 deletions(-) diff --git a/ungleich_page/static/ungleich_page/css/ungleich.css b/ungleich_page/static/ungleich_page/css/ungleich.css index 8b984c4f..082354e7 100644 --- a/ungleich_page/static/ungleich_page/css/ungleich.css +++ b/ungleich_page/static/ungleich_page/css/ungleich.css @@ -1,3 +1,9 @@ +@media (min-width: 768px) and (max-width: 991px) { + .navbar > .container { + width: 100%; + } +} + .btn-trans { color: #fff; border: 2px solid #fff; @@ -143,14 +149,14 @@ } } -.header_slider { - height: 95vh; +.header_slider > .carousel .carousel-inner { + min-height: 95vh; + display: flex; } -.header_slider > .carousel, -.header_slider > .carousel .carousel-inner, -.header_slider > .carousel .item { - height: 100%; +.header_slider > .carousel .carousel-inner > .next, +.header_slider > .carousel .carousel-inner > .prev { + bottom: 0; } .header_slider .carousel-indicators { @@ -180,6 +186,11 @@ margin-top: -50px; } +.header_slider > .carousel .item { + background: rgba(0,0,0,0.5); + flex: 1; +} + .header_slider > .carousel .item .container { overflow: auto; padding: 50px 20px 60px; @@ -190,16 +201,12 @@ /* background: rgba(0,0,0,0.5); */ } -.header_slider > .carousel .item { - background: rgba(0,0,0,0.5); -} - .header_slider .intro-cap { text-align: right; line-height: 1.1; font-size: 23px; margin-bottom: 12px; - padding: 30px; + padding: 30px 0; } .header_slider .btn-trans { @@ -245,7 +252,7 @@ text-align: right; line-height: 1.4; margin-bottom: 20px; - padding: 15px; + padding: 15px 0; } @media (max-width: 768px) { diff --git a/ungleich_page/templates/ungleich_page/includes/_header.html b/ungleich_page/templates/ungleich_page/includes/_header.html index a704d7ad..5f61351d 100644 --- a/ungleich_page/templates/ungleich_page/includes/_header.html +++ b/ungleich_page/templates/ungleich_page/includes/_header.html @@ -1,7 +1,7 @@ {% load static i18n %}
-