fix icon padding, and hamburger menu icon placement

This commit is contained in:
FarisZR 2022-03-03 15:27:34 +03:00
parent 3f8f4a05a2
commit 7bbf219fe2

View File

@ -6,7 +6,7 @@
* @link https://github.com/jonsuh/hamburgers * @link https://github.com/jonsuh/hamburgers
*/ */
.hamburger { .hamburger {
padding-top: 10px; padding-top: 10px;
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
@ -97,6 +97,14 @@
transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1); transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
} }
// change menu icon placement to follow the RTL Direction
.direction-rtl{
#toggle-menu {
left: 30px;
right: unset;
}
}
#toggle-menu { #toggle-menu {
background: none; background: none;
border: none; border: none;
@ -121,6 +129,18 @@
} }
} }
// fix icon padding in RTL menu
.direction-rtl{
.menu {
li {
svg {
margin-left: 40px;
margin-right: unset;
}
}
}
}
/* Menu style */ /* Menu style */
.menu { .menu {
padding-left: 0; padding-left: 0;