Fix Title and Navbar
This commit is contained in:
parent
a6dc7ee043
commit
93c1db502d
@ -35,7 +35,7 @@ nav {
|
||||
background: var(--outside);
|
||||
padding: 5px 15px;
|
||||
font-size: 20px;
|
||||
height: 40px;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
nav #lib, nav #github, nav #version { color: white; }
|
||||
@ -198,7 +198,7 @@ input[type="submit"]:hover { color: var(--accent); }
|
||||
#search_sort {
|
||||
background: var(--highlighted);
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#search_sort > #search {
|
||||
@ -230,7 +230,7 @@ input[type="submit"]:hover { color: var(--accent); }
|
||||
box-shadow: var(--black-contrast);
|
||||
background: var(--outside);
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#sort_options > a, footer > a {
|
||||
@ -571,7 +571,8 @@ td, th {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
#user, #sidebar {
|
||||
margin: 20px 0;
|
||||
}
|
||||
#user, #sidebar { margin: 20px 0; }
|
||||
#logo { margin: 5px auto; }
|
||||
#searchbox { width: 100%; }
|
||||
#github { display: none; }
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
</head>
|
||||
<body style="visibility: hidden;">
|
||||
<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 %}
|
||||
<a id="github" href="https://github.com/spikecodes/libreddit">GITHUB</a>
|
||||
</nav>
|
||||
|
@ -1,7 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
{% 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 %}
|
||||
{% call utils::search(["/r/", sub.name.as_str()].concat(), "") %}
|
||||
|
Loading…
Reference in New Issue
Block a user