You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
775 B
54 lines
775 B
* { |
|
margin: 0; |
|
padding: 0; |
|
} |
|
|
|
.container { |
|
background-color: beige; |
|
height: 100vh; |
|
} |
|
|
|
.navbar { |
|
height: 10vh; |
|
background-color: black; |
|
display: flex; |
|
|
|
} |
|
|
|
.logo { |
|
display: flex; |
|
flex: 1; |
|
align-items: center; |
|
font-size: xx-large; |
|
color: blue; |
|
} |
|
|
|
.menu { |
|
display: flex; |
|
flex: 2; |
|
} |
|
|
|
.menu-items { |
|
/* navbar has a height of 10vh of any element inside it, if it has the same line height it will be centred */ |
|
line-height: 10vh; |
|
flex: 1; |
|
font-size: 1.2rem; |
|
text-align: center; |
|
} |
|
|
|
a { |
|
text-decoration: none; |
|
} |
|
|
|
.sub-menu { |
|
display: none; |
|
} |
|
|
|
.menu-items:hover .sub-menu { |
|
display: block; |
|
|
|
} |
|
|
|
.menu-items:hover { |
|
background-color: blue; |
|
} |