remove less hook, some layouting, fix error

integration-tests
Josha von Gizycki 7 years ago
parent d90a5bede2
commit 254ac47edc

@ -20,5 +20,4 @@
[ring/ring-mock "0.3.0"]] [ring/ring-mock "0.3.0"]]
:plugins [[lein-less "1.7.5"]]}} :plugins [[lein-less "1.7.5"]]}}
:less {:source-paths ["resources/app/stylesheets"] :less {:source-paths ["resources/app/stylesheets"]
:target-path "resources/public/css"} :target-path "resources/public/css"})
:hooks [leiningen.less])

@ -1,4 +1,6 @@
@ci-color: #ccc; @ci-color: #ccc;
@accent-color: #efefef;
@border-stack: 1px solid @ci-color;
@text-padding-v: .2rem; @text-padding-v: .2rem;
@text-padding-h: 1rem; @text-padding-h: 1rem;
@accent-border-width: 1rem; @accent-border-width: 1rem;
@ -18,6 +20,10 @@ a:active {
text-decoration: underline; text-decoration: underline;
} }
.thin-border {
border: @border-stack;
}
.grid { .grid {
display: grid; display: grid;
grid-template-columns: 20% 70% 10%; grid-template-columns: 20% 70% 10%;
@ -27,58 +33,59 @@ a:active {
"footer footer footer"; "footer footer footer";
margin: auto; margin: auto;
max-width: 900px; max-width: 900px;
border-top: 1px solid #ccc; border-top: ;
}
nav { nav {
grid-area: nav; grid-area: nav;
} }
main { main {
grid-area: main; grid-area: main;
} }
aside { aside {
grid-area: sidebar; grid-area: sidebar;
} }
header, footer, main, nav, aside { footer {
border-bottom: 1px solid #ccc; grid-area: footer;
}
header, footer, main, nav, aside {
border-bottom: @border-stack;
padding: @text-padding-v @text-padding-h; padding: @text-padding-v @text-padding-h;
} }
header { header {
grid-area: header; grid-area: header;
display: grid; display: grid;
grid-template-columns: 40% 60%; grid-template-columns: 40% 60%;
align-items: center; align-items: center;
border-left: @accent-border-width solid #ccc; border-top: @border-stack;
} border-left: @accent-border-width solid @ci-color;
.app-title { .app-title {
grid-column: 1; grid-column: 1;
font-size: 1.5rem; font-size: 1.5rem;
} }
.app-title__hello { .app-title__hello {
font-size: 1rem; font-size: 1rem;
margin-left: @text-padding-h; margin-left: @text-padding-h;
font-weight: normal; font-weight: normal;
font-style: italic; font-style: italic;
} }
.header-content { .header-content {
grid-column: 2; grid-column: 2;
} }
.header-content__link { .header-content__link {
display: inline-block; display: inline-block;
padding: @text-padding-v @text-padding-h / 2; padding: @text-padding-v @text-padding-h / 2;
margin-right: @accent-border-width; margin-right: @accent-border-width;
} }
}
footer {
grid-area: footer;
} }
form { form {
@ -101,8 +108,34 @@ form {
.flash { .flash {
grid-column: 1/3; grid-column: 1/3;
border: 1px solid #ccc; .thin-border;
border-left-width: @accent-border-width; border-left-width: @accent-border-width;
padding: .7rem; padding: .7rem;
} }
} }
table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
margin-top: 1rem;
margin-bottom: 1rem;
td, th {
border-bottom: @border-stack;
padding: @text-padding-v * 2 @text-padding-h / 2h;
}
thead {
th {
padding: @text-padding-v @text-padding-h;
border-bottom: @accent-border-width / 5 solid @ci-color;
}
}
tbody {
tr:hover {
background-color: @accent-color;
}
}
}

@ -11,4 +11,4 @@
RETURN s RETURN s
ORDER BY s.created_at" ORDER BY s.created_at"
{:ident ident}) {:ident ident})
(map #(:data (get "s"))))) (map #(:data (get % "s")))))

Loading…
Cancel
Save