From: Radek Czajka Date: Wed, 22 Jul 2020 14:12:42 +0000 (+0200) Subject: Language menu move. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/94ca8037f9a5891b7ded1c92c639e0fbc676e67b?ds=inline Language menu move. --- diff --git a/src/wolnelektury/static/img/contrib/language/attribution.txt b/src/wolnelektury/static/img/contrib/language/attribution.txt new file mode 100644 index 000000000..bfc9d4def --- /dev/null +++ b/src/wolnelektury/static/img/contrib/language/attribution.txt @@ -0,0 +1,6 @@ +OOjs UI icon language-ltr + +Author: Mun May Tee-Galloway (Wikimedia Foundation) +Source: https://creativecommons.org/licenses/by-sa/3.0/deed.en +License: CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/deed.en) + diff --git a/src/wolnelektury/static/img/contrib/language/language.svg b/src/wolnelektury/static/img/contrib/language/language.svg new file mode 100644 index 000000000..2b8f5f9ba --- /dev/null +++ b/src/wolnelektury/static/img/contrib/language/language.svg @@ -0,0 +1,58 @@ + + + + + + image/svg+xml + + + + + + + + language + + + diff --git a/src/wolnelektury/static/scss/main/header.scss b/src/wolnelektury/static/scss/main/header.scss index 14516b818..9e6bb6b13 100644 --- a/src/wolnelektury/static/scss/main/header.scss +++ b/src/wolnelektury/static/scss/main/header.scss @@ -68,6 +68,9 @@ header#main { @include size(top, 3px); @include size(left, 255px); @include size(font-size, 13px); + margin: 0; + @include size(line-height, 43px); + @media screen and (min-width: 1024px) { display: block; @@ -83,7 +86,8 @@ header#main { @include mono; #lang-button { - display: block; + display: block; + cursor: pointer; @include size(font-size, 10px); @include size(line-height, 17px); @@ -100,9 +104,8 @@ header#main { } } - .lang-flag { - @include size(font-size, 13px); - @include size(line-height, 15px); + img { + vertical-align: middle; } } @@ -134,7 +137,7 @@ header#main { } } - &:hover, &.hover { + &.hover { #lang-menu-items { position: absolute; padding: 0; @@ -146,6 +149,9 @@ header#main { } } + @media screen and (min-width: 1024px) { + right: 300px; + } } #main-menu-toggle { diff --git a/src/wolnelektury/static/scss/main/menu.scss b/src/wolnelektury/static/scss/main/menu.scss index 9cb8c32fa..bbe9d4179 100644 --- a/src/wolnelektury/static/scss/main/menu.scss +++ b/src/wolnelektury/static/scss/main/menu.scss @@ -98,8 +98,10 @@ body.menu-on { #user-info { @include mono; position: absolute; - right: 150px; - top: 4px; + right: 0px; + top: 3px; + margin: 0; + @include size(line-height, 43px); @include size(font-size, 10px); list-style: none; diff --git a/src/wolnelektury/templates/base/app.html b/src/wolnelektury/templates/base/app.html index b2150817f..72ca20508 100644 --- a/src/wolnelektury/templates/base/app.html +++ b/src/wolnelektury/templates/base/app.html @@ -39,7 +39,7 @@
- ⚐ + {% trans {% trans "Language" %}
diff --git a/src/wolnelektury/templates/base/superbase.html b/src/wolnelektury/templates/base/superbase.html index 13cf50d52..30bfdda58 100644 --- a/src/wolnelektury/templates/base/superbase.html +++ b/src/wolnelektury/templates/base/superbase.html @@ -66,7 +66,7 @@
- ⚐ + {% trans {% trans "Language" %}