2024-05-16 09:28:52 +02:00
body {
2024-05-16 09:08:13 +02:00
min-width : 100 % ;
margin : 0 ;
}
2024-05-16 09:28:52 +02:00
2024-05-16 09:08:13 +02:00
. wrapper {
display : flex ;
flex-flow : row wrap ;
font-weight : bold ;
text-align : center ;
background-color : # 333333 ;
}
2024-05-16 09:28:52 +02:00
. wrapper > * {
2024-05-16 09:08:13 +02:00
/*padding: 10px;*/
flex : 1 100 % ;
}
2024-05-16 09:28:52 +02:00
. container {
2024-05-16 09:08:13 +02:00
/* We first create a flex layout context */
display : flex ;
/ * Then we define the flow direction
and if we allow the items to wrap
* Remember this is the same as :
* flex-direction : row ;
* flex-wrap : wrap ;
* /
flex-flow : row wrap ;
/* Then we define how is distributed the remaining space */
justify-content : space-around ;
margin-right : auto ;
margin-left : auto ;
min-height : auto ;
max-width : 1200px ;
min-width : auto ;
}
2024-05-16 09:28:52 +02:00
. container_menu {
2024-05-16 09:08:13 +02:00
/* We first create a flex layout context */
display : flex ;
/ * Then we define the flow direction
and if we allow the items to wrap
* Remember this is the same as :
* flex-direction : row ;
* flex-wrap : wrap ;
* /
flex-flow : row wrap ;
/* Then we define how is distributed the remaining space */
justify-content : left ;
margin-right : auto ;
margin-left : auto ;
min-height : auto ;
max-width : 1200px ;
min-width : auto ;
}
/******* header *******/
2024-05-16 09:28:52 +02:00
header {
2024-05-16 09:08:13 +02:00
background-color : # 151b54 ;
}
# header . flex-item {
padding : 5px ;
margin : 5px ;
width : auto ;
height : 30px ;
line-height : 30px ;
color : white ;
font-weight : bold ;
font-size : 1em ;
text-align : center ;
}
2024-05-16 09:28:52 +02:00
# header p {
2024-05-16 09:08:13 +02:00
margin : 0 ;
padding : 0 ;
}
/* navigation */
/* Add a black background color to the top navigation */
2024-05-16 09:28:52 +02:00
nav {
2024-05-16 09:08:13 +02:00
background-color : # 333 ;
2024-05-16 09:25:11 +02:00
display : flex ;
flex-direction : row ;
2024-05-16 09:08:13 +02:00
}
2024-05-16 09:28:52 +02:00
2024-05-16 09:08:13 +02:00
. topnav {
background-color : # 333 ;
overflow : hidden ;
}
/* Style the links inside the navigation bar */
. topnav a {
color : # f2f2f2 ;
text-align : center ;
padding : 14px 16px ;
text-decoration : none ;
font-size : 17px ;
}
/* Add an active class to highlight the current page */
. active {
background-color : # 000080 ;
color : white ;
}
/* Hide the link that should open and close the topnav on small screens */
. topnav . icon {
display : none ;
}
/* Dropdown container - needed to position the dropdown content */
. dropdown {
float : left ;
overflow : hidden ;
}
/* Style the dropdown button to fit inside the topnav */
. dropdown . dropbtn {
font-size : 17px ;
border : none ;
outline : none ;
color : white ;
padding : 14px 16px ;
background-color : inherit ;
font-family : inherit ;
margin : 0 ;
}
/* Style the dropdown content (hidden by default) */
. dropdown-content {
display : none ;
position : absolute ;
2024-05-16 09:31:26 +02:00
background-color : # 575757 ;
2024-05-16 09:08:13 +02:00
min-width : 160px ;
2024-05-16 09:28:52 +02:00
box-shadow : 0px 8px 16px 0px rgba ( 0 , 0 , 0 , 0 . 2 ) ;
2024-05-16 09:08:13 +02:00
z-index : 1 ;
}
/* Style the links inside the dropdown */
. dropdown-content a {
float : none ;
2024-05-16 09:31:26 +02:00
color : rgb ( 255 , 255 , 255 ) ;
2024-05-16 09:08:13 +02:00
padding : 12px 16px ;
text-decoration : none ;
display : block ;
text-align : left ;
}
/* Add a dark background on topnav links and the dropdown button on hover */
2024-05-16 09:28:52 +02:00
. topnav a : hover ,
. dropdown : hover . dropbtn {
2024-05-16 09:08:13 +02:00
background-color : # 555 ;
color : white ;
}
/* Add a grey background to dropdown links on hover */
. dropdown-content a : hover {
2024-05-16 09:31:26 +02:00
background-color : # 5d3e3e ;
color : rgb ( 211 , 211 , 211 ) ;
2024-05-16 09:08:13 +02:00
}
/* Show the dropdown menu when the user moves the mouse over the dropdown button */
. dropdown : hover . dropdown-content {
display : block ;
}
2024-05-16 09:28:52 +02:00
main {
2024-05-16 09:31:26 +02:00
background-color : # 313131 ;
2024-05-16 09:08:13 +02:00
}
2024-05-16 09:28:52 +02:00
. topnav . responsive . dropdown-content {
position : relative ;
display : flex ;
flex-direction : column ;
max-height : 0 ;
}
. dropbtn : hover + . dropdown-content {
max-height : unset ;
}
2024-05-16 09:08:13 +02:00
/* Medium screens */
@ media all and ( max-width : 600px ) {
2024-05-16 09:28:52 +02:00
2024-05-16 09:08:13 +02:00
/******* header *******/
# header {
/* When on medium sized screens, we center it by evenly distributing empty space around items */
flex-flow : column wrap ;
}
2024-05-16 09:28:52 +02:00
# header . flex-item {
2024-05-16 09:08:13 +02:00
padding : 2px ;
margin : 2px ;
line-height : 25px ;
height : 25px ;
margin-left : 0 ! important ;
}
/******* navigation *******/
}
/* Small screens */
@ media all and ( max-width : 500px ) {
2024-05-16 09:28:52 +02:00
2024-05-16 09:08:13 +02:00
/******* header *******/
# header {
/* On small screens, we are no longer using row direction but column */
flex-flow : column wrap ;
}
2024-05-16 09:28:52 +02:00
# header . flex-item {
2024-05-16 09:08:13 +02:00
padding : 2px ;
margin : 2px ;
line-height : 25px ;
height : 25px ;
color : black ;
}
/******* navigation *******/
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
2024-05-16 09:28:52 +02:00
. topnav a : not ( : first-child ) ,
. dropdown . dropbtn {
2024-05-16 09:08:13 +02:00
display : none ;
}
2024-05-16 09:28:52 +02:00
2024-05-16 09:08:13 +02:00
. topnav a . icon {
float : right ;
display : block ;
}
2024-05-16 09:28:52 +02:00
. container_menu {
2024-05-16 09:08:13 +02:00
display : flex ;
flex-flow : row ;
}
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
2024-05-16 09:28:52 +02:00
. topnav . responsive {
position : relative ;
}
2024-05-16 09:08:13 +02:00
. topnav . responsive a . icon {
position : absolute ;
right : 0 ;
top : 0 ;
}
2024-05-16 09:28:52 +02:00
2024-05-16 09:08:13 +02:00
. topnav . responsive a {
float : none ;
display : block ;
text-align : left ;
}
2024-05-16 09:28:52 +02:00
. topnav . responsive . dropdown {
float : none ;
}
2024-05-16 09:08:13 +02:00
. topnav . responsive . dropdown . dropbtn {
display : block ;
width : 100 % ;
text-align : left ;
}
2024-05-16 09:28:52 +02:00
. responsive {
2024-05-16 09:08:13 +02:00
display : flex ;
flex-flow : column ;
}
}