From 1bb95607f84afda8edff76db41366afd41510c60 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 21 Jun 2024 13:54:54 -0400 Subject: [PATCH] basewiki/bootstrap.local.css: clean-up language-switcher css --- basewiki/bootstrap.local.css | 105 ++++++----------------------------- 1 file changed, 17 insertions(+), 88 deletions(-) diff --git a/basewiki/bootstrap.local.css b/basewiki/bootstrap.local.css index 6cdf6a7..a0b2f5c 100644 --- a/basewiki/bootstrap.local.css +++ b/basewiki/bootstrap.local.css @@ -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; -}