From fa2abc6f388a50769e7053cfc3b6bd86e46e0e20 Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Tue, 1 May 2018 16:55:25 -0700 Subject: [PATCH] fixed button layout --- layouts/main.moon | 7 +++---- static/main.css | 7 +------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/layouts/main.moon b/layouts/main.moon index 024feed..9553c41 100644 --- a/layouts/main.moon +++ b/layouts/main.moon @@ -20,16 +20,15 @@ class extends Widget link rel: "stylesheet", href: "/static/main.css" body -> div class: "container", -> + h1(@title or "Simplex") div class: "row", -> - div class: "column column-25 btns", -> + div class: "column btns", -> if @user a class: "button", href: @url_for("index"), "Tasks" else a class: "button", href: @url_for("index"), "About" a class: "button", href: @url_for("docs_v1"), "API Docs" - div class: "column column-100", -> - h1(@title or "Simplex") - div class: "column column-25 btns", -> + if @user a class: "button", href: @url_for("user_me"), "You" a class: "button", href: @url_for("user_logout"), "Log Out" diff --git a/static/main.css b/static/main.css index c00676b..083738e 100644 --- a/static/main.css +++ b/static/main.css @@ -22,10 +22,5 @@ h1 { } .btns { - display: flex !important; - justify-content: flex-end; - align-items: center; -} -.btns > a { - margin: 1rem; + justify-content: center; }