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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
First-Website/resources/css/navbar.css

91 lines
1.4 KiB

.navigation {
position: fixed;
top: 0px;
height: 55px;
width: 100%;
background-color: #101012;
z-index: 3;
}
.navigation button {
padding: .5rem;
height: 100%;
transition: color .5s;
border: 0;
background-color: transparent;
color: white;
display: inline;
}
.navigation button:focus {
outline: 0;
}
.navbarList {
list-style: none;
margin: 0;
padding: 0;
}
.navList {
float: left;
}
.navigation i {
margin: 10px 15px 10px 10px;
}
.dropdownList {
background-color: #101012;
margin: 0;
padding: 0;
transition: opacity .5s;
list-style: none;
}
.dropdownButton {
width: 100%;
}
.navList:hover .dropdownList {
opacity: 1!important;
}
.navigation button:hover {
color: #9c9c9c!important;
}
/* Switch */
.appearance {
position: absolute;
display: inline-block;
width: 60px;
height: 34px;
top: .7rem;
right: 1.5rem;
}
.appearance input {
opacity: 0;
width: 0;
height: 0;
}
.appearanceSlider {
position: absolute;
cursor: pointer;
border-radius: 34px;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .3s;
}
.appearanceSlider:before {
position: absolute;
border-radius: 50%;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .3s;
}
input:checked + .appearanceSlider {
background-color: #2E3747;
}
input:checked + .appearanceSlider:before {
transform: translateX(25px);
}