aboutsummaryrefslogtreecommitdiff
path: root/assets/_main.scss
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-02-10 22:05:17 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-02-10 22:05:26 +0100
commita33bb33f189a565c848819181b1b87e66d020c58 (patch)
treed10f0e4ff9365115ebbeb4fa537144ed1d5ace79 /assets/_main.scss
parent7f25a125aa5bf015546568454f599ed6f56e1165 (diff)
Make translations list respect weight of languages
Diffstat (limited to 'assets/_main.scss')
-rw-r--r--assets/_main.scss30
1 files changed, 16 insertions, 14 deletions
diff --git a/assets/_main.scss b/assets/_main.scss
index 30f9160..977abcd 100644
--- a/assets/_main.scss
+++ b/assets/_main.scss
@@ -249,12 +249,23 @@ ul.pagination {
padding: $padding-16;
margin: -$padding-16;
+ ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+
+ li {
+ white-space: nowrap;
+ cursor: pointer;
+ }
+ }
+
&:hover,
&:focus,
&:focus-within {
.book-languages-list {
display: block;
- }
+ }
}
.book-languages-list {
@@ -268,15 +279,12 @@ ul.pagination {
background: $body-background;
box-shadow: 0 0 $padding-4 rgba(0, 0, 0, 0.1);
- li {
- white-space: nowrap;
- }
-
- img {
- opacity: 0.1;
+ li img {
+ opacity: 0.25;
}
- li.active img {
+ li.active img,
+ li:hover img {
opacity: 1;
}
@@ -285,12 +293,6 @@ ul.pagination {
padding: $padding-8 $padding-16;
}
}
-
- ul {
- margin: 0;
- padding: 0;
- list-style: none;
- }
}
.book-home {