fedi/css/menu.css

93 lines
1.5 KiB
CSS
Raw Normal View History

2020-02-18 10:43:32 +00:00
.topnav {
overflow: hidden;
background-color: #333;
}
.topnav a {
float: left;
display: block;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav .icon {
display: none;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
font-size: 17px;
2020-02-18 12:00:49 +00:00
border: 1px solid #888;
border-radius: 2px;
2020-02-18 10:43:32 +00:00
outline: none;
color: #bbb;
background-color: #335;
padding: 14px 16px;
font-family: inherit;
margin: 0;
}
.dropdown-content {
display: none;
position: absolute;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
color: #bbb;
background-color: #335;
2020-02-18 12:00:49 +00:00
border: 1px solid #888;
border-radius: 2px;
2020-02-18 10:43:32 +00:00
}
.dropdown-content a {
float: none;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown:hover .dropdown-content {
display: block;
}
@media screen and (max-width: 600px) {
.topnav a:not(:first-child), .dropdown .dropbtn {
display: none;
}
.topnav a.icon {
float: right;
display: block;
}
}
@media screen and (max-width: 600px) {
.topnav.responsive {position: relative;}
.topnav.responsive .icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
.topnav.responsive .dropdown {float: none;}
.topnav.responsive .dropdown-content {position: relative;}
.topnav.responsive .dropdown .dropbtn {
display: block;
width: 100%;
text-align: left;
}
}