nicer design

integration-tests
Josha von Gizycki 6 years ago
parent 2c8d501a1e
commit bf0c9814b4

@ -4,7 +4,10 @@
@border-stack: 1px solid @ci-color; @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: .3rem;
@accent-border: @accent-border-width solid @ci-color;
@element-margin: .6rem;
@element-background: #F0F0F0;
body { body {
font-family: sans-serif; font-family: sans-serif;
@ -33,6 +36,13 @@ h2 {
border: @border-stack; border: @border-stack;
} }
.accent-border-element {
border-left: @accent-border;
background-color: @element-background;
margin: @element-margin;
padding: 1rem;
}
.grid { .grid {
display: grid; display: grid;
grid-template-columns: 20% 70% 10%; grid-template-columns: 20% 70% 10%;
@ -43,14 +53,15 @@ h2 {
margin: auto; margin: auto;
min-width: 900px; min-width: 900px;
width: 80%; width: 80%;
border-top: ;
nav { nav {
grid-area: nav; grid-area: nav;
.accent-border-element;
} }
main { main {
grid-area: main; grid-area: main;
.accent-border-element;
.schema-title__name { .schema-title__name {
font-weight: normal; font-weight: normal;
@ -59,14 +70,15 @@ h2 {
aside { aside {
grid-area: sidebar; grid-area: sidebar;
.accent-border-element;
} }
footer { footer {
grid-area: footer; grid-area: footer;
.accent-border-element;
} }
header, footer, main, nav, aside { header, footer, main, nav, aside {
border-bottom: @border-stack;
padding: @text-padding-v @text-padding-h; padding: @text-padding-v @text-padding-h;
} }
@ -75,8 +87,7 @@ h2 {
display: grid; display: grid;
grid-template-columns: 40% 60%; grid-template-columns: 40% 60%;
align-items: center; align-items: center;
border-top: @border-stack; .accent-border-element;
border-left: @accent-border-width solid @ci-color;
.app-title { .app-title {
grid-column: 1; grid-column: 1;
@ -96,8 +107,16 @@ h2 {
.header-content__link { .header-content__link {
display: inline-block; display: inline-block;
padding: @text-padding-v @text-padding-h / 2; padding: @text-padding-v * 2 @text-padding-h;
margin-right: @accent-border-width; margin-right: @accent-border-width;
background-color: #E0E0E0;
border: 0;
border-bottom: .3rem solid @ci-color;
cursor: pointer;
&:hover {
background-color: darken(#E0E0E0, 3%);
}
} }
} }
} }

Loading…
Cancel
Save