1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 12:30:00 +00:00

same fix but hopefully better

This commit is contained in:
Ghighi Eftimie 2020-10-10 13:15:02 +03:00
parent c33c6bbff0
commit 6dadc6fb1e
3 changed files with 10 additions and 17 deletions

View File

@ -2244,22 +2244,14 @@ body.langlist > div.container-fluid > div > div.col-sm-10 > div.container:before
content: "Languages" content: "Languages"
} }
body.advsearch > div.container-fluid > div > div.col-sm-2:after { body.advsearch > div.container-fluid > div > div.col-sm-10 > div.col-md-10.col-lg-6 {
content: "Advanced Search"; padding: 15px 10px 15px 40px;
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{ @media screen and (max-width: 992px) {
padding: 15px 10px 15px 40px; 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 { body.me > div.container-fluid > div > div.col-sm-10 > div.discover:before {

View File

@ -1,5 +1,6 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block body %} {% block body %}
<h1 class="{{page}}">{{title}}</h1>
<div class="col-md-10 col-lg-6"> <div class="col-md-10 col-lg-6">
<form role="form" id="search" action="{{ url_for('web.advanced_search_form') }}" method="POST"> <form role="form" id="search" action="{{ url_for('web.advanced_search_form') }}" method="POST">
<div class="form-group"> <div class="form-group">

View File

@ -951,7 +951,7 @@ def render_prepare_search_form(cc):
else: else:
languages = None languages = None
return render_title_template('search_form.html', tags=tags, languages=languages, extensions=extensions, return render_title_template('search_form.html', tags=tags, languages=languages, extensions=extensions,
series=series, title=_(u"search"), cc=cc, page="advsearch") series=series, title=_(u"Advanced Search"), cc=cc, page="advsearch")
def render_search_results(term, offset=None, order=None, limit=None): def render_search_results(term, offset=None, order=None, limit=None):
@ -1392,7 +1392,7 @@ def render_adv_search_results(term, offset=None, order=None, limit=None):
pagination=pagination, pagination=pagination,
entries=q[offset:limit_all], entries=q[offset:limit_all],
result_count=result_count, result_count=result_count,
title=_(u"search"), page="advsearch") title=_(u"Advanced Search"), page="advsearch")