sass cleanup

This commit is contained in:
Zed 2019-09-13 19:52:05 +02:00
parent 0c1b8b0190
commit a687188dd1
6 changed files with 26 additions and 32 deletions

View file

@ -68,9 +68,6 @@ ul.about-list {
.container {
display: flex;
flex-wrap: wrap;
}
#content {
box-sizing: border-box;
padding-top: 50px;
margin: auto;

View file

@ -1,27 +1,25 @@
@import '_variables';
nav {
z-index: 1000;
background-color: $bg_overlays;
box-shadow: 0 0 4px $shadow;
}
.nav-bar {
padding: 0;
width: 100%;
display: flex;
align-items: center;
position: fixed;
background-color: $bg_overlays;
box-shadow: 0 0 4px $shadow;
padding: 0;
width: 100%;
height: 50px;
z-index: 1000;
}
.inner-nav {
margin: auto;
box-sizing: border-box;
padding: 0 10px;
display: flex;
align-items: center;
flex-basis: 920px;
height: 50px;
}
.inner-nav {
margin: auto;
box-sizing: border-box;
padding: 0 10px;
display: flex;
align-items: center;
flex-basis: 920px;
height: 50px;
}
.site-name {
@ -39,7 +37,7 @@ nav {
height: 35px;
}
.item {
.nav-item {
display: flex;
flex: 1;
line-height: 50px;

View file

@ -4,13 +4,13 @@
@import 'card';
@import 'photo-rail';
.profile-timeline, .profile-tabs {
@include panel(auto, 900px);
}
.profile-tabs {
> .timeline-tab {
@include panel(auto, 900px);
.timeline-container {
float: right;
width: 68% !important;
max-width: unset;
}
}

View file

@ -3,7 +3,6 @@
.conversation {
@include panel(100%, 600px);
background-color: $bg_color !important;
}
.main-thread {

View file

@ -6,14 +6,14 @@ import ../utils, ../types
const doctype = "<!DOCTYPE html>\n"
proc renderNavbar*(title, path, rss: string): VNode =
buildHtml(nav(id="nav", class="nav-bar container")):
buildHtml(nav):
tdiv(class="inner-nav"):
tdiv(class="item"):
tdiv(class="nav-item"):
a(class="site-name", href="/"): text title
a(href="/"): img(class="site-logo", src="/logo.png")
tdiv(class="item right"):
tdiv(class="nav-item right"):
if rss.len > 0:
icon "rss", title="RSS Feed", href=rss
icon "info-circled", title="About", href="/about"
@ -55,7 +55,7 @@ proc renderMain*(body: VNode; prefs: Prefs; title="Nitter"; titleText=""; desc="
body:
renderNavbar(title, path, rss)
tdiv(id="content", class="container"):
tdiv(class="container"):
body
result = doctype & $node

View file

@ -21,7 +21,7 @@ proc renderReplyThread(thread: Thread; prefs: Prefs; path: string): VNode =
proc renderConversation*(conversation: Conversation; prefs: Prefs; path: string): VNode =
let hasAfter = conversation.after != nil
buildHtml(tdiv(class="conversation", id="posts")):
buildHtml(tdiv(class="conversation")):
tdiv(class="main-thread"):
if conversation.before != nil:
tdiv(class="before-tweet thread-line"):