123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- /********************************
- offcanvas menu style
- ********************************/
- body {
- &.offcanvas-open {
- overflow-y: hidden;
- padding-right: 17px;
- @include max-screen(991) {
- padding-right: 0px;
- }
- }
- }
-
- .offcanvas-overlay {
- position: fixed;
- z-index: 999;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- display: none;
- background-color: $overlay-color;
- }
-
- // offcanvas
- .offcanvas {
- &.offcanvas-open {
- @include transform(translateX(0));
- }
- &.offcanvas-mobile-menu {
- right: auto;
- left: 0;
- transform: translateX(-100%);
- &.offcanvas-open {
- transform: translateX(0);
- }
- }
- visibility: visible;
- font-size: 14px;
- font-weight: fontweight(regular);
- position: fixed;
- z-index: 1000;
- top: 0;
- right: 0;
- left: auto;
- display: block;
- overflow: hidden;
- width: 400px;
- @include max-screen(480) {
- width: 300px;
- }
- height: 100vh;
- @include transform(translateX(100%));
- background-color: $color-white;
- box-shadow: none;
- @include transition(0.5s ease-in-out);
-
- .inner {
- padding: 20px;
- @include max-screen(991) {
- overflow-y: scroll;
- height: 660px;
- }
- @include max-screen(767) {
- height: calc(100% - 30px);
- }
-
- @include max-screen(480) {
- padding: 10px;
- }
- }
-
- .title {
- color: $color-dark;
- font-weight: fontweight(medium);
- }
- .offcanvas-close {
- position: relative;
- width: 20px;
- height: 50px !important;
- text-indent: -9999px;
- border: 0;
- background-color: transparent;
- &::after {
- position: absolute;
- top: calc(50% - 1px);
- left: 0;
- width: 20px;
- height: 2px;
- content: "";
- @include transition(0.5s ease-in-out);
- @include transform(rotate(-45deg));
- background-color: $color-dark;
- }
- &:hover:after {
- @include transform(rotate(0deg));
- }
- &::before {
- position: absolute;
- top: calc(50% - 1px);
- left: 0;
- width: 20px;
- height: 2px;
- content: "";
- @include transition(0.5s ease-in-out);
- @include transform(rotate(45deg));
- background-color: $color-dark;
- }
- &:hover:before {
- @include transform(rotate(180deg));
- }
- }
-
- .offcanvas-menu ul {
- li {
- position: relative;
- display: block;
- line-height: 28px;
- a {
- // color: $color-dark;
- display: block;
- position: relative;
- padding: 8px 20px;
- text-transform: capitalize;
- border-top: 1px solid $border-color2;
- font-size: 14px;
-
- font-weight: fontweight(medium);
- line-height: 30px;
- }
- .offcanvas-submenu {
- position: static;
- top: auto;
- display: none;
- visibility: visible;
- width: 100%;
- min-width: auto;
- transition: none;
- opacity: 1;
- box-shadow: none;
- li {
- line-height: inherit;
- position: relative;
- a {
- font-weight: fontweight(regular);
- padding-left: 40px;
- }
- ul a {
- padding-left: 60px;
- }
- }
- }
-
- .menu-expand {
- position: absolute;
- z-index: 2;
- top: 0;
- right: 0;
- width: 24px;
- height: 44px;
- cursor: pointer;
- background-color: transparent;
- &::before,
- &::after {
- position: absolute;
- top: 50%;
- left: 0;
- width: 14px;
- height: 2px;
- content: "";
- @include transition(0.5s ease-in-out);
- background-color: $color-dark;
- }
-
- &::after {
- @include transform(rotate(90deg));
- }
- }
- &.active > .menu-expand {
- &::after {
- @include transform(rotate(0) scale(0.75));
- }
- }
- }
- }
-
- .offcanvas-social {
- li {
- display: inline-block;
- margin: 0 10px 10px 0;
- line-height: 40px;
- padding: 0;
- a {
- position: relative;
- display: inline-block;
- vertical-align: middle;
- font-size: 16px;
- line-height: 40px;
- width: 40px;
- height: 40px;
- @include border-radius(50%);
- text-align: center;
- border: 2px solid transparent;
- z-index: 1;
- }
- }
- }
- }
-
- // offcanvas-menu
- // theme1
- .theme1 {
- .offcanvas-menu {
- li > {
- &:hover .menu-expand:after {
- background: $theme-color;
- }
- &:hover .menu-expand:before {
- background: $theme-color;
- }
- }
- }
- }
-
- // offcanvas-menu
-
- // offcanvas-social
- .theme1 {
- .offcanvas-social {
- a {
- color: $color-white;
- background: $theme-color;
- &:hover {
- background: transparent;
- color: $theme-color;
- border-color: $theme-color;
- }
- }
- }
- }
-
- // offcanvas-social
-
- /********************************
- offcanvas menu style ENd
- ********************************/
|