Add button + fix CSS

This commit is contained in:
Michel Roux 2019-12-12 22:55:16 +01:00
parent 872dd984b3
commit fea6339cb8
3 changed files with 32 additions and 16 deletions

View File

@ -15,10 +15,32 @@ a.navbar-item:hover {
background-color: #292929; background-color: #292929;
} }
div.navbar-end {
flex-basis: min-content;
}
th.error { th.error {
color: red; color: red;
} }
img.favicon {
width: 16px;
height: 16px;
position: relative;
top: 2px;
}
button.fa-button {
padding: 0;
cursor: pointer;
background: none;
border: none;
}
label.checkbox {
margin: 1.2rem 1.2rem 0;
}
.hidden { .hidden {
display: none; display: none;
} }
@ -67,25 +89,13 @@ th.error {
white-space: nowrap; white-space: nowrap;
} }
.checkbox {
margin: 1.2rem 1.2rem 0;
}
#quick_scroll { #quick_scroll {
float: right; float: right;
margin-top: -2rem; margin-top: -2rem;
} }
.favicon { @media screen and (min-width: 1088px) {
width: 16px; .tooltip:hover::before, .tooltip:hover::after {
height: 16px; display: none !important;
position: relative;
top: 2px;
} }
.fa-button {
padding: 0;
cursor: pointer;
background: none;
border: none;
} }

View File

@ -1,5 +1,10 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block title %}Admin List{% endblock %} {% block title %}Admin List{% endblock %}
{% block add_button %}
<a class="navbar-item tooltip has-tooltip-bottom" data-tooltip="Add entry" href="{{ url_for('admin_add') }}">
<i class="fa fa-plus"></i><i>&nbsp;</i><span class="is-hidden-mobile">Add entry</span>
</a>
{% endblock %}
{% block body %} {% block body %}
<p id="quick_scroll"> <p id="quick_scroll">
Quick Scroll : Quick Scroll :

View File

@ -26,6 +26,7 @@
href="{{ url_for('list_animes') }}"> href="{{ url_for('list_animes') }}">
<i class="fa fa-cloud-download"></i><i>&nbsp;</i><span class="is-hidden-mobile">My seeded torrents</span> <i class="fa fa-cloud-download"></i><i>&nbsp;</i><span class="is-hidden-mobile">My seeded torrents</span>
</a> </a>
{% block add_button %}{% endblock %}
{% if request.args.get('q') %} {% if request.args.get('q') %}
<a class="navbar-item tooltip has-tooltip-bottom" data-tooltip="TVDB" <a class="navbar-item tooltip has-tooltip-bottom" data-tooltip="TVDB"
href="https://www.thetvdb.com/search?menu%5Btype%5D=TV&query={{ request.args.get('q') }}" href="https://www.thetvdb.com/search?menu%5Btype%5D=TV&query={{ request.args.get('q') }}"