drobná úprava vzhledu

This commit is contained in:
2020-12-20 13:15:26 +01:00
parent 3e1238cd49
commit 2e91df6260
2 changed files with 51 additions and 43 deletions

View File

@@ -1,4 +1,5 @@
body, html { body,
html {
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 100%; height: 100%;
@@ -8,6 +9,7 @@ nav {
border-bottom: 2px solid #ccc; border-bottom: 2px solid #ccc;
margin: 0; margin: 0;
grid-area: nav; grid-area: nav;
padding: 0.3em 2em;
} }
ul { ul {
@@ -20,17 +22,21 @@ ul:nth-child(1) {
padding: 1em 1em; padding: 1em 1em;
} }
li:hover {
background-color: blue;
}
li::before { li::before {
content: ''; content: "";
margin-right: 5pt; margin-right: 5pt;
width: 1em; width: 1em;
height: 1em; height: 1em;
display: inline-block; display: inline-block;
} }
li[style]::before { li[style]::before {
content: ''; content: "";
display: inline-block; display: inline-block;
background-image: url('../img/arrow-down.svg'); background-image: url("../img/arrow-down.svg");
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
@@ -42,7 +48,7 @@ li[style]::before {
.container { .container {
display: grid; display: grid;
grid-template-columns: max-content auto; grid-template-columns: max-content auto;
grid-template-rows: 3em auto auto; grid-template-rows: max-content auto max-content;
height: 100%; height: 100%;
grid-template-areas: grid-template-areas:
"nav nav" "nav nav"
@@ -66,5 +72,4 @@ footer {
grid-area: footer; grid-area: footer;
text-align: right; text-align: right;
padding: 0.3em 2em; padding: 0.3em 2em;
} }

View File

@@ -14,7 +14,10 @@
<div class="container"> <div class="container">
<nav></nav> <nav>
<button class="clone">Clone</button>
<button class="purge">Purge</button>
</nav>
<aside> <aside>
<ul> <ul>