Difference between revisions of "Template:Main menu/styles.css"
Tag: Manual revert |
|||
Line 19: | Line 19: | ||
} | } | ||
.main-menu-container a | .main-menu-container a { | ||
display: block; | display: block; | ||
padding: 0.5rem 2rem; | padding: 0.5rem 2rem; | ||
background-color: #f1f1f1; | background-color: #f1f1f1; | ||
} | } | ||
.main-menu-container a:hover | .main-menu-container a:hover { | ||
background-color: #e0e0e0; | |||
} | |||
.main-menu-change-language span { | |||
display: block; | |||
padding: 0.5rem 2rem; | |||
background-color: #f1f1f1; | |||
} | |||
.main-menu-change-language span:hover { | |||
background-color: #e0e0e0; | background-color: #e0e0e0; | ||
} | } | ||
Line 36: | Line 45: | ||
transition: .5s; | transition: .5s; | ||
} | } | ||
.language-link { | |||
display: block; | display: block; | ||
padding: 0.5rem 2rem; | |||
background-color: #f1f1f1; | |||
} | } | ||
.language-link:hover { | |||
background-color: #e0e0e0; | background-color: #e0e0e0; | ||
} | } | ||
.main-menu-dropdown-content a { | |||
display: block; | |||
} | |||
.main-menu-dropdown-content a:hover { | |||
background-color: #e0e0e0; | |||
} | |||
.main-menu-home:hover .main-menu-dropdown-content, .main-menu-our-network:hover .main-menu-dropdown-content, .main-menu-change-language:hover .main-menu-dropdown-content { | .main-menu-home:hover .main-menu-dropdown-content, .main-menu-our-network:hover .main-menu-dropdown-content, .main-menu-change-language:hover .main-menu-dropdown-content { | ||
display: block; | display: block; | ||
} | } |
Revision as of 14:36, 14 February 2024
.main-menu-container {
display: flex;
justify-content: center;
align-items: center;
background-color: #f1f1f1;
}
.main-menu-container p {
margin: 0;
}
.main-menu-container a:hover {
text-decoration: none;
}
.main-menu-container > * {
position: relative;
display: inline-block;
}
.main-menu-container a {
display: block;
padding: 0.5rem 2rem;
background-color: #f1f1f1;
}
.main-menu-container a:hover {
background-color: #e0e0e0;
}
.main-menu-change-language span {
display: block;
padding: 0.5rem 2rem;
background-color: #f1f1f1;
}
.main-menu-change-language span:hover {
background-color: #e0e0e0;
}
.main-menu-dropdown-content {
display: none ;
position: absolute;
z-index: 101;
min-width: 180px;
background-color: #f1f1f1;
transition: .5s;
}
.language-link {
display: block;
padding: 0.5rem 2rem;
background-color: #f1f1f1;
}
.language-link:hover {
background-color: #e0e0e0;
}
.main-menu-dropdown-content a {
display: block;
}
.main-menu-dropdown-content a:hover {
background-color: #e0e0e0;
}
.main-menu-home:hover .main-menu-dropdown-content, .main-menu-our-network:hover .main-menu-dropdown-content, .main-menu-change-language:hover .main-menu-dropdown-content {
display: block;
}