Skip to content

Commit

Permalink
Hide language name when the sidebar is collapsed
Browse files Browse the repository at this point in the history
Fix the issue on Firefox and extend clickable area also to the language icon,
when the sidebar is collapsed.
  • Loading branch information
mfrecchiami authored and kennyadsl committed Oct 30, 2019
1 parent 9cbeda3 commit 719b33c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ nav.menu {
margin: 1em;
position: relative;

&:before {
&::after {
content: "\f0ac";
font-family: "FontAwesome";
position: absolute;
Expand All @@ -314,6 +314,7 @@ nav.menu {
padding: .5rem 0 .5rem .25rem;
opacity: 0;
transition: opacity .4s cubic-bezier(.5,.32,.01,1);
z-index: -1;
}

.admin-nav-hidden & {
Expand All @@ -323,13 +324,17 @@ nav.menu {
background-size: 8px 9px;
border: 0;
opacity: .6;
position: relative;
overflow: hidden;
text-indent: 1rem;
z-index: 1;

&:focus {
box-shadow: none;
}
}

&::before {
&::after {
opacity: 1;
}
}
Expand Down

0 comments on commit 719b33c

Please sign in to comment.