Fix Title and Navbar

This commit is contained in:
spikecodes 2020-12-31 16:45:10 -08:00
parent a6dc7ee043
commit 93c1db502d
3 changed files with 12 additions and 8 deletions

View File

@ -35,7 +35,7 @@ nav {
background: var(--outside); background: var(--outside);
padding: 5px 15px; padding: 5px 15px;
font-size: 20px; font-size: 20px;
height: 40px; min-height: 40px;
} }
nav #lib, nav #github, nav #version { color: white; } nav #lib, nav #github, nav #version { color: white; }
@ -198,7 +198,7 @@ input[type="submit"]:hover { color: var(--accent); }
#search_sort { #search_sort {
background: var(--highlighted); background: var(--highlighted);
border-radius: 5px; border-radius: 5px;
overflow: hidden; overflow: auto;
} }
#search_sort > #search { #search_sort > #search {
@ -230,7 +230,7 @@ input[type="submit"]:hover { color: var(--accent); }
box-shadow: var(--black-contrast); box-shadow: var(--black-contrast);
background: var(--outside); background: var(--outside);
display: flex; display: flex;
overflow: hidden; overflow: auto;
} }
#sort_options > a, footer > a { #sort_options > a, footer > a {
@ -571,7 +571,8 @@ td, th {
max-width: 100%; max-width: 100%;
} }
#user, #sidebar { #user, #sidebar { margin: 20px 0; }
margin: 20px 0; #logo { margin: 5px auto; }
} #searchbox { width: 100%; }
#github { display: none; }
} }

View File

@ -14,7 +14,7 @@
</head> </head>
<body style="visibility: hidden;"> <body style="visibility: hidden;">
<nav> <nav>
<a href="/"><span id="lib">lib</span>reddit. <span id="version">v{{ env!("CARGO_PKG_VERSION") }}</span></a> <a id="logo" href="/"><span id="lib">lib</span>reddit. <span id="version">v{{ env!("CARGO_PKG_VERSION") }}</span></a>
{% block search %}{% endblock %} {% block search %}{% endblock %}
<a id="github" href="https://github.com/spikecodes/libreddit">GITHUB</a> <a id="github" href="https://github.com/spikecodes/libreddit">GITHUB</a>
</nav> </nav>

View File

@ -1,7 +1,10 @@
{% extends "base.html" %} {% extends "base.html" %}
{% import "utils.html" as utils %} {% import "utils.html" as utils %}
{% block title %}r/{{ sub.name }}: {{ sub.description }}{% endblock %} {% block title %}
{% if sub.name != "" %}r/{{ sub.name }}: {{ sub.description }}
{% else %}Libreddit{% endif %}
{% endblock %}
{% block search %} {% block search %}
{% call utils::search(["/r/", sub.name.as_str()].concat(), "") %} {% call utils::search(["/r/", sub.name.as_str()].concat(), "") %}