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"]]
:plugins [[lein-less "1.7.5"]]}}
:less {:source-paths ["resources/app/stylesheets"]
:target-path "resources/public/css"}
:hooks [leiningen.less])
:target-path "resources/public/css"})

@ -1,4 +1,6 @@
@ci-color: #ccc;
@accent-color: #efefef;
@border-stack: 1px solid @ci-color;
@text-padding-v: .2rem;
@text-padding-h: 1rem;
@accent-border-width: 1rem;
@ -18,6 +20,10 @@ a:active {
text-decoration: underline;
}
.thin-border {
border: @border-stack;
}
.grid {
display: grid;
grid-template-columns: 20% 70% 10%;
@ -27,8 +33,7 @@ a:active {
"footer footer footer";
margin: auto;
max-width: 900px;
border-top: 1px solid #ccc;
}
border-top: ;
nav {
grid-area: nav;
@ -42,8 +47,12 @@ aside {
grid-area: sidebar;
}
footer {
grid-area: footer;
}
header, footer, main, nav, aside {
border-bottom: 1px solid #ccc;
border-bottom: @border-stack;
padding: @text-padding-v @text-padding-h;
}
@ -52,8 +61,8 @@ header {
display: grid;
grid-template-columns: 40% 60%;
align-items: center;
border-left: @accent-border-width solid #ccc;
}
border-top: @border-stack;
border-left: @accent-border-width solid @ci-color;
.app-title {
grid-column: 1;
@ -76,9 +85,7 @@ header {
padding: @text-padding-v @text-padding-h / 2;
margin-right: @accent-border-width;
}
footer {
grid-area: footer;
}
}
form {
@ -101,8 +108,34 @@ form {
.flash {
grid-column: 1/3;
border: 1px solid #ccc;
.thin-border;
border-left-width: @accent-border-width;
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
ORDER BY s.created_at"
{:ident ident})
(map #(:data (get "s")))))
(map #(:data (get % "s")))))

Loading…
Cancel
Save