switching/css/menu.css

98 lines
1.6 KiB
CSS
Raw Normal View History

2020-02-18 10:43:32 +00:00
.topnav {
overflow: hidden;
2020-02-21 09:13:22 +00:00
background-color: #1f2833;
2020-02-18 10:43:32 +00:00
}
.topnav a {
float: left;
2020-02-21 06:32:32 +00:00
display: flex;
2020-02-18 10:43:32 +00:00
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
2020-02-21 06:32:32 +00:00
border-radius: 2px;
2020-02-18 10:43:32 +00:00
}
.topnav .icon {
display: none;
}
.dropdown {
overflow: hidden;
2020-02-21 06:32:32 +00:00
display: flex;
2020-02-18 10:43:32 +00:00
}
.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;
2020-02-21 09:13:22 +00:00
color: #c5c6c7;
background-color: #1e2832;
2020-02-21 06:32:32 +00:00
padding: 16px 16px;
2020-02-18 10:43:32 +00:00
font-family: inherit;
2020-02-21 06:32:32 +00:00
display: flex;
2020-02-18 10:43:32 +00:00
}
.dropdown-content {
display: none;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
2020-02-21 09:35:32 +00:00
color: #c5c6c7;
2020-02-21 09:13:22 +00:00
background-color: #1e2832;
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;
2020-02-21 06:32:32 +00:00
display: flex;
2020-02-18 10:43:32 +00:00
text-align: left;
}
.dropdown:hover .dropdown-content {
2020-02-21 09:57:27 +00:00
display: inline-block;
2020-02-18 10:43:32 +00:00
}
@media screen and (max-width: 600px) {
.topnav a:not(:first-child), .dropdown .dropbtn {
display: none;
}
.topnav a.icon {
float: right;
2020-02-21 06:32:32 +00:00
display: flex;
2020-02-18 10:43:32 +00:00
}
}
@media screen and (max-width: 600px) {
.topnav.responsive {position: relative;}
.topnav.responsive .icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
2020-02-21 09:57:27 +00:00
display: inline-block;
2020-02-18 10:43:32 +00:00
text-align: left;
}
.topnav.responsive .dropdown {float: none;}
.topnav.responsive .dropdown-content {position: relative;}
.topnav.responsive .dropdown .dropbtn {
2020-02-21 09:57:27 +00:00
display: inline-block;
2020-02-18 10:43:32 +00:00
width: 100%;
text-align: left;
}
}
2020-02-21 06:32:32 +00:00
.active a {
color: #433;
}