1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-01-29 23:02:49 -05:00

Use sass instead of pure css

This commit is contained in:
Zed
2019-09-13 10:44:21 +02:00
parent 08239a3fae
commit de828bdd79
21 changed files with 1452 additions and 6 deletions

View File

@@ -56,14 +56,14 @@ proc renderMain*(body: VNode; prefs: Prefs; title="Nitter"; titleText=""; desc="
result = doctype & $node
proc renderSearch*(): VNode =
buildHtml(tdiv(class="panel")):
buildHtml(tdiv(class="panel-container")):
tdiv(class="search-panel"):
form(`method`="post", action="/search"):
input(`type`="text", name="query", autofocus="", placeholder="Enter usernames...")
button(`type`="submit"): icon "search"
proc renderError*(error: string): VNode =
buildHtml(tdiv(class="panel")):
buildHtml(tdiv(class="panel-container")):
tdiv(class="error-panel"):
span: text error