fixed button layout

This commit is contained in:
Paul Liverman III 2018-05-01 16:55:25 -07:00
parent 49d65805e9
commit fa2abc6f38
2 changed files with 4 additions and 10 deletions

View File

@ -20,16 +20,15 @@ class extends Widget
link rel: "stylesheet", href: "/static/main.css" link rel: "stylesheet", href: "/static/main.css"
body -> body ->
div class: "container", -> div class: "container", ->
h1(@title or "Simplex")
div class: "row", -> div class: "row", ->
div class: "column column-25 btns", -> div class: "column btns", ->
if @user if @user
a class: "button", href: @url_for("index"), "Tasks" a class: "button", href: @url_for("index"), "Tasks"
else else
a class: "button", href: @url_for("index"), "About" a class: "button", href: @url_for("index"), "About"
a class: "button", href: @url_for("docs_v1"), "API Docs" 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 if @user
a class: "button", href: @url_for("user_me"), "You" a class: "button", href: @url_for("user_me"), "You"
a class: "button", href: @url_for("user_logout"), "Log Out" a class: "button", href: @url_for("user_logout"), "Log Out"

View File

@ -22,10 +22,5 @@ h1 {
} }
.btns { .btns {
display: flex !important; justify-content: center;
justify-content: flex-end;
align-items: center;
}
.btns > a {
margin: 1rem;
} }