Fix side menu and rename variables

This commit is contained in:
Peter J. Holzer 2018-06-01 14:50:28 +02:00
parent 9e50112dfc
commit b1f382e6fb
1 changed files with 16 additions and 13 deletions

View File

@ -1,6 +1,7 @@
body { body {
--yellow-light: #fecc04; --color-accent-light: #fecc04;
--yellow-dark: #feb204; --color-accent-dark: #feb204;
--width-column-left: auto
} }
@font-face { @font-face {
@ -16,7 +17,7 @@ body {
} }
header { header {
background-color: var(--yellow-light); background-color: var(--color-accent-light);
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
@ -27,7 +28,7 @@ header {
@media only screen and (min-width: 65rem) { @media only screen and (min-width: 65rem) {
body { body {
display: grid; display: grid;
grid-template-columns: 13rem auto 20rem; grid-template-columns: var(--width-column-left) auto 20rem;
grid-template-rows: 3rem auto auto auto; grid-template-rows: 3rem auto auto auto;
} }
@ -62,7 +63,7 @@ header {
@media only screen and (min-width: 40rem) and (max-width: 65rem) { @media only screen and (min-width: 40rem) and (max-width: 65rem) {
body { body {
display: grid; display: grid;
grid-template-columns: 13rem auto; grid-template-columns: var(--width-column-left) auto;
grid-template-rows: auto auto auto auto auto; grid-template-rows: auto auto auto auto auto;
} }
@ -97,14 +98,14 @@ header {
@media only screen and (max-width: 40rem) { @media only screen and (max-width: 40rem) {
body { body {
display: grid; display: grid;
grid-template-columns: 3rem auto; grid-template-columns: var(--width-column-left) auto;
grid-template-rows: auto auto auto auto auto; grid-template-rows: auto auto auto auto auto;
} }
#logo { #logo {
grid-column: 1; grid-column: 1;
grid-row: 1 / span 2; grid-row: 1 / span 2;
height: 3rem; width: 3rem;
} }
header { header {
@ -116,11 +117,13 @@ header {
grid-column: 1; grid-column: 1;
grid-row: 3; grid-row: 3;
overflow: hidden; overflow: hidden;
width: 3em;
} }
nav:hover { nav:hover {
overflow: visible; overflow: visible;
z-index: 1; z-index: 1;
width: auto;
} }
main { main {
@ -152,7 +155,7 @@ nav a:hover {
} }
nav a.current { nav a.current {
background-color: var(--yellow-dark); background-color: var(--color-accent-dark);
} }
input.leftfield { input.leftfield {
@ -192,11 +195,11 @@ h1 {
} }
footer { footer {
/* background-color: var(--yellow-dark); */ /* background-color: var(--color-accent-dark); */
color: #888; color: #888;
} }
nav { nav {
background-color: var(--yellow-light); background-color: var(--color-accent-light);
border-radius: 0em 0em 0em 1em; border-radius: 0em 0em 0em 1em;
margin-right: 1rem; margin-right: 1rem;
margin-top: 1rem; margin-top: 1rem;
@ -206,7 +209,7 @@ nav {
nav ul { nav ul {
list-style-type: none; list-style-type: none;
padding-left: 0.7em; padding-left: 0.7em;
background-color: var(--yellow-light); background-color: var(--color-accent-light);
} }
footer ul { footer ul {
@ -220,13 +223,13 @@ p, h2, h3, dl {
} }
h2 { h2 {
border-top: solid 2px var(--yellow-dark); border-top: solid 2px var(--color-accent-dark);
font-weight: normal; font-weight: normal;
font-size: 1.7rem; font-size: 1.7rem;
} }
h3 { h3 {
border-top: solid 1px var(--yellow-light); border-top: solid 1px var(--color-accent-light);
font-weight: normal; font-weight: normal;
font-size: 1.5rem; font-size: 1.5rem;
} }