From c33c6bbff080d453d3f4cb980ba682a9e28ef178 Mon Sep 17 00:00:00 2001 From: Ghighi Eftimie Date: Sat, 10 Oct 2020 12:39:52 +0300 Subject: [PATCH 1/2] fix for #1594 --- cps/static/css/caliBlur.min.css | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/cps/static/css/caliBlur.min.css b/cps/static/css/caliBlur.min.css index 9447cd18..cc1a283c 100644 --- a/cps/static/css/caliBlur.min.css +++ b/cps/static/css/caliBlur.min.css @@ -2174,7 +2174,7 @@ body.langlist > div.container-fluid > div > div.col-sm-10:before { content: "\e034" } -body.advsearch > div.container-fluid > div > div.col-sm-10:before, body.authorlist > div.container-fluid > div > div.col-sm-10 > div.container:before, body.catlist > div.container-fluid > div > div.col-sm-10 > div.container:before, body.langlist > div.container-fluid > div > div.col-sm-10 > div.container:before, body.me > div.container-fluid > div > div.col-sm-10 > div.discover:before, body.serieslist > div.container-fluid > div > div.col-sm-10 > div.container:before { +body.authorlist > div.container-fluid > div > div.col-sm-10 > div.container:before, body.catlist > div.container-fluid > div > div.col-sm-10 > div.container:before, body.langlist > div.container-fluid > div > div.col-sm-10 > div.container:before, body.me > div.container-fluid > div > div.col-sm-10 > div.discover:before, body.serieslist > div.container-fluid > div > div.col-sm-10 > div.container:before { top: 60px; font-size: 24px; color: #eee; @@ -2244,10 +2244,22 @@ body.langlist > div.container-fluid > div > div.col-sm-10 > div.container:before content: "Languages" } -body.advsearch > div.container-fluid > div > div.col-sm-10:before { +body.advsearch > div.container-fluid > div > div.col-sm-2:after { content: "Advanced Search"; - margin-left: 20%; - left: 0 + position: fixed; + display: flex; + align-items: center; + padding-left: 25px; + color: hsla(0, 0%, 100%, .7); + font-family: "Open Sans Semibold", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 15px; + line-height: 60px; + white-space: nowrap; + font-weight: 400; +} + +body.advsearch > div.container-fluid > div > div.col-sm-10 > div.col-md-10.col-lg-6{ + padding: 15px 10px 15px 40px; } body.me > div.container-fluid > div > div.col-sm-10 > div.discover:before { From 6dadc6fb1e88a8b26ccf15fa0838785a913634d1 Mon Sep 17 00:00:00 2001 From: Ghighi Eftimie Date: Sat, 10 Oct 2020 13:15:02 +0300 Subject: [PATCH 2/2] same fix but hopefully better --- cps/static/css/caliBlur.min.css | 22 +++++++--------------- cps/templates/search_form.html | 1 + cps/web.py | 4 ++-- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/cps/static/css/caliBlur.min.css b/cps/static/css/caliBlur.min.css index cc1a283c..3bf07110 100644 --- a/cps/static/css/caliBlur.min.css +++ b/cps/static/css/caliBlur.min.css @@ -2244,22 +2244,14 @@ body.langlist > div.container-fluid > div > div.col-sm-10 > div.container:before content: "Languages" } -body.advsearch > div.container-fluid > div > div.col-sm-2:after { - content: "Advanced Search"; - position: fixed; - display: flex; - align-items: center; - padding-left: 25px; - color: hsla(0, 0%, 100%, .7); - font-family: "Open Sans Semibold", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 15px; - line-height: 60px; - white-space: nowrap; - font-weight: 400; -} - -body.advsearch > div.container-fluid > div > div.col-sm-10 > div.col-md-10.col-lg-6{ +body.advsearch > div.container-fluid > div > div.col-sm-10 > div.col-md-10.col-lg-6 { padding: 15px 10px 15px 40px; +} + +@media screen and (max-width: 992px) { + body.advsearch > div.container-fluid > div > div.col-sm-10 > div.col-md-10.col-lg-6 { + padding-left: 20px; + } } body.me > div.container-fluid > div > div.col-sm-10 > div.discover:before { diff --git a/cps/templates/search_form.html b/cps/templates/search_form.html index f1ea250f..e713fb93 100644 --- a/cps/templates/search_form.html +++ b/cps/templates/search_form.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% block body %} +

{{title}}