basewiki/bootstrap.local.css: clean-up language-switcher css

This commit is contained in:
Antoine Martin 2024-06-21 13:54:54 -04:00
parent 6583c32afa
commit 1bb95607f8
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -59,7 +59,7 @@ body {
/* Not required for template or sticky footer method. */
body > .container {
padding: 60px 15px 0;
padding: 60px 15px 15px;
}
.container .text-muted {
margin: 20px 0;
@ -440,95 +440,24 @@ header h1::before {
/* Language switchers */
#language-switcher-top {
position: relative;
margin-top: 7px;
.language-switcher {
background: #f8f8f8;
color: #333;
border-color: #ccc;
}
.language-switcher:hover {
background: #e6e6e6;
color: #333;
border-color: #ccc;
}
.language-switcher-top {
display: block;
padding-top: 9px;
width: 120px; /* Force size to prevent overflowing breadcrumbs */
height: 35px;
z-index: 5;
}
#language-switcher-bottom {
position: relative;
margin: 0 auto;
max-width: 986px;
padding: 30px 30px 15px 30px;
background: var(--medium-dark-gray);
}
#language-switcher-bottom .language-switcher {
position: absolute;
right: 30px;
}
#language-switcher-top .language-switcher {
background: #f8f8f8;
}
#language-switcher-bottom .language-switcher {
background: var(--medium-light-gray);
}
.language-switcher {
width: 120px;
font-family: "Source Sans Pro Regular", "DejaVu Sans", "Verdana", sans-serif;
font-size: 16px;
color: black;
border-radius: 5px;
}
.current-language, .other-languages {
width: 100%;
}
.other-languages {
display: none;
margin: 0;
cursor: pointer;
}
.language-switcher:hover {
border: 1px solid var(--medium-light-gray);
border-radius: 5px;
}
.language-switcher:hover .current-language {
border: none;
}
.language-switcher:hover .other-languages {
display: block;
}
.current-language, .other-languages li a {
padding: 6px;
padding-right: 34px;
text-align: right;
}
.current-language {
border: 1px solid transparent;
background: url(wikiicons/languages.png) no-repeat 92px 9px;
}
.other-languages li {
display: block;
margin: 0;
}
.other-languages li a {
display: block;
color: black;
}
.other-languages li a:hover {
background: var(--background-gray);
text-decoration: underline;
}
.other-languages li:last-child a {
border-radius: 0 0 5px 5px;
}
.other-languages li.improve-translations {
font-size: 12px;
}