This commit is contained in:
Michel Roux 2019-12-15 18:34:20 +01:00
parent 225e5ec001
commit 91f151b9b7
3 changed files with 14 additions and 15 deletions

View File

@ -3,7 +3,7 @@ section {
padding-top: 2rem !important; padding-top: 2rem !important;
} }
nav, nav > div, nav form { nav, nav > div {
display: flex; display: flex;
align-items: center; align-items: center;
} }
@ -91,7 +91,6 @@ label.checkbox {
} }
#quick_scroll { #quick_scroll {
float: right;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@ -100,7 +99,7 @@ label.checkbox {
} }
@media screen and (min-width: 1088px) { @media screen and (min-width: 1088px) {
.tooltip:hover::before, .tooltip:hover::after { [data-tooltip]:hover::before, [data-tooltip]:hover::after {
display: none !important; display: none !important;
} }
} }

View File

@ -1,19 +1,19 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block title %}Admin List{% endblock %} {% block title %}Admin List{% endblock %}
{% block add_button %} {% block add_button %}
<a class="navbar-item tooltip has-tooltip-bottom" data-tooltip="Add entry" href="{{ url_for('admin_edit') }}"> <a class="navbar-item has-tooltip-bottom" data-tooltip="Add entry" href="{{ url_for('admin_edit') }}">
<i class="fa fa-plus"></i><i>&nbsp;</i><span class="is-hidden-mobile">Add entry</span> <i class="fa fa-plus"></i><i>&nbsp;</i><span class="is-hidden-mobile">Add entry</span>
</a> </a>
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<p id="quick_scroll"> <div id="quick_scroll" class="level-right">
Quick Scroll : <span class="level-item">Quick Scroll :</span>
{% for folder in folders %} {% for folder in folders %}
{% if loop.index0 %} {% if loop.index0 %}
<a href="#{{ folder.name }}">{{ folder.name }}</a> <a class="level-item" href="#{{ folder.name }}">{{ folder.name }}</a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</p> </div>
<table class="table is-bordered is-striped is-narrow is-fullwidth is-hoverable is-size-7"> <table class="table is-bordered is-striped is-narrow is-fullwidth is-hoverable is-size-7">
<thead> <thead>

View File

@ -16,28 +16,28 @@
<nav class="navbar is-dark" role="navigation" aria-label="main navigation"> <nav class="navbar is-dark" role="navigation" aria-label="main navigation">
<div class="navbar-start"> <div class="navbar-start">
<a class="navbar-item tooltip has-tooltip-bottom" data-tooltip="Home" href="{{ url_for('home') }}"> <a class="navbar-item has-tooltip-bottom" data-tooltip="Home" href="{{ url_for('home') }}">
𝛑 😼 た 𝛑 😼 た
</a> </a>
<a class="navbar-item tooltip has-tooltip-bottom" data-tooltip="Latest torrents" href="{{ url_for('latest') }}"> <a class="navbar-item has-tooltip-bottom" data-tooltip="Latest torrents" href="{{ url_for('latest') }}">
<i class="fa fa-newspaper-o"></i><i>&nbsp;</i><span class="is-hidden-mobile">Latest torrents</span> <i class="fa fa-newspaper-o"></i><i>&nbsp;</i><span class="is-hidden-mobile">Latest torrents</span>
</a> </a>
<a class="navbar-item tooltip has-tooltip-bottom" data-tooltip="My seeded torrents" <a class="navbar-item has-tooltip-bottom" data-tooltip="My seeded torrents"
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 %} {% 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 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') }}"
target="_blank"> target="_blank">
<i class="fa fa-television"></i><i>&nbsp;</i><span class="is-hidden-mobile">TVDB</span> <i class="fa fa-television"></i><i>&nbsp;</i><span class="is-hidden-mobile">TVDB</span>
</a> </a>
<a class="navbar-item tooltip has-tooltip-bottom" data-tooltip="Nautiljon" <a class="navbar-item has-tooltip-bottom" data-tooltip="Nautiljon"
href="https://www.nautiljon.com/search.php?q={{ request.args.get('q') }}" target="_blank"> href="https://www.nautiljon.com/search.php?q={{ request.args.get('q') }}" target="_blank">
<i class="fa fa-rss"></i><i>&nbsp;</i><span class="is-hidden-mobile">Nautiljon</span> <i class="fa fa-rss"></i><i>&nbsp;</i><span class="is-hidden-mobile">Nautiljon</span>
</a> </a>
<a class="navbar-item tooltip has-tooltip-bottom" data-tooltip="Animes-Mangas-DDL" <a class="navbar-item has-tooltip-bottom" data-tooltip="Animes-Mangas-DDL"
href="https://animemangaddl.com/?s={{ request.args.get('q') }}" target="_blank"> href="https://animemangaddl.com/?s={{ request.args.get('q') }}" target="_blank">
<i class="fa fa-adn"></i><i>&nbsp;</i><span class="is-hidden-mobile">A-M-DDL</span> <i class="fa fa-adn"></i><i>&nbsp;</i><span class="is-hidden-mobile">A-M-DDL</span>
</a> </a>
@ -75,7 +75,7 @@
{% endif %} {% endif %}
{% if action_form.message %} {% if action_form.message %}
<div class="notification is-success"> <div class="notification is-success">
<button class="delete"></button> <button class="delete" onclick="this.parentNode.style.display = 'none'"></button>
{{ action_form.message }} {{ action_form.message }}
</div> </div>
{% endif %} {% endif %}