mirror of
https://github.com/Noratrieb/hugos-lieblingsflugzeuge.git
synced 2026-01-16 12:45:12 +01:00
plane hugo
This commit is contained in:
parent
ec7929a9ba
commit
ea8fe969a4
7 changed files with 190 additions and 131 deletions
103
src/app.css
103
src/app.css
|
|
@ -21,10 +21,105 @@ main {
|
|||
grid-area: main;
|
||||
}
|
||||
|
||||
.model {
|
||||
display: inline-block;
|
||||
:root {
|
||||
--nav-color: rgb(176, 194, 206);
|
||||
--nav-hover-color: darkgrey;
|
||||
}
|
||||
|
||||
.model img {
|
||||
height: 200px;
|
||||
header {
|
||||
grid-area: header;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
main {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
/*Navigation*/
|
||||
nav {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: visible;
|
||||
background-color: var(--nav-color);
|
||||
width: 100%;
|
||||
|
||||
position: fixed;
|
||||
top: 0;
|
||||
height: 50px;
|
||||
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/*main ul*/
|
||||
nav ul {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/*nav li item*/
|
||||
nav ul li {
|
||||
float: left;
|
||||
border-right: 1px solid gray;
|
||||
height: 100%;
|
||||
width: 15%;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
font-size: 1.5em;
|
||||
background-color: var(--nav-color);
|
||||
cursor: pointer;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/*nav li item on hover*/
|
||||
nav ul li:hover {
|
||||
background-color: darkgray;
|
||||
color: var(--nav-hover-color);
|
||||
transition-duration: 0.4s;
|
||||
}
|
||||
|
||||
/*all nav a*/
|
||||
nav ul li a {
|
||||
display: block;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: var(--nav-color);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*all nav a focus - remove outline so it looks like a normal link*/
|
||||
nav ul li a:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/*all nav a hover*/
|
||||
nav ul li a:hover {
|
||||
background-color: var(--nav-hover-color);
|
||||
}
|
||||
|
||||
/*drop menu*/
|
||||
nav ul li .content {
|
||||
display: none;
|
||||
background-color: var(--nav-color);
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/*drop menu main hover*/
|
||||
nav ul li:hover .content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*drop menu a*/
|
||||
nav ul li .content a {
|
||||
padding: 8px 0 8px 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue