관리-도구
편집 파일: _offcanvas.scss
@use '../utils' as *; /*----------------------------------------*/ /* 2.10 Offcanvas /*----------------------------------------*/ .body-overlay{ position: fixed; top: 0; left: 0; z-index: 9999; width: 100%; height: 100%; background: rgba(24, 24, 24, 0.8); visibility: hidden; opacity: 0; transition: 0.45s ease-in-out; &.apply{ opacity: 1; visibility: visible; } &:hover{ cursor: url(../img/cross-out.png), pointer; } } .tpoffcanvas { background-position: center; background-size: cover; background-repeat: no-repeat; position: fixed; top: 0; right: -100%; width: 480px; bottom: 0; box-shadow: 0 16px -32px 0 rgba(0, 0, 0, .8); background-color:var(--tp-common-black); z-index: 999999; padding: 50px; scrollbar-width: none; opacity: 0; visibility: hidden; transition: 0.45s ease-in-out; overflow-y: scroll; & .homemenu{ margin-bottom: 30px; &-title { color: var(--tp-common-white); } } & .tp-main-menu-mobile{ margin-bottom: 50px; } & .tp-main-menu-mobile{ margin-bottom: 50px; } &.opened { opacity: 1; visibility: visible; } @media #{$xs,} { width: 300px; padding: 40px 35px; } @media #{$sm} { width: 400px; padding: 40px; } &.opened { right: 0; -webkit-transition: all .4s cubic-bezier(0.785, 0.135, 0.15, 0.86); -moz-transition: all .4s cubic-bezier(0.785, 0.135, 0.15, 0.86); transition: all .4s cubic-bezier(0.785, 0.135, 0.15, 0.86); transition-duration: .6s; } &__title{ & p{ font-size: 15px; color: rgba(255, 255, 255, 0.49); font-weight: 500; line-height: 1.6; margin-bottom: 50px; } } &__contact-title{ & h5{ font-size: 14px; color: #888888; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; display: inline-block; } } &__input-title{ & h4{ font-size: 14px; color: #888888; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; display: inline-block; } } &__input{ margin-bottom: 100px; & input{ background: rgba(118, 118, 130, 0.3); border: transparent; height: 60px; width: 100%; padding-left: 20px; padding-right: 80px; color: var(--tp-common-white); @include placeholder { color: var(--tp-common-white); } } & button{ height: 60px; width: 60px; background-color: var(--tp-theme-1); color: var(--tp-common-white); font-size: 16px; position: absolute; top: 0; right: 0; } } &__contact-info{ margin-bottom: 50px; & ul{ & li{ font-size: 14px; margin-bottom: 15px; list-style-type: none; letter-spacing: 1.2px; color: var(--tp-common-white); @media #{$xs}{ font-size: 14px; } &:last-child{ margin-bottom: 0; } & a{ margin-left: 10px; transition: .3s; &:hover{ color: var(--tp-theme-1); } } } } } &__logo { margin-bottom: 60px; @media #{$md} { padding-top: 0; } @media #{$xs,$md} { padding-top: 0; } } &__close-btn { & button{ position: absolute; right: 30px; top: 30px; transition: 1s; -webkit-transition: all .4s cubic-bezier(0.785, 0.135, 0.15, 0.86); -moz-transition: all .4s cubic-bezier(0.785, 0.135, 0.15, 0.86); transition: all .4s cubic-bezier(0.785, 0.135, 0.15, 0.86); transition-duration: .3s; height: 40px; width: 40px; line-height: 45px; color: var(--tp-common-white); &:hover{ & i{ transform: rotate(360deg); } } & i{ font-weight: 300; font-size: 20px; transition: .9s; } } } &__social{ margin-top: 30px; & .social-icon{ & a{ height: 55px; width: 55px; line-height: 58px; text-align: center; font-size: 16px; background-color: rgba(251, 251, 253, 0.08); color: var(--tp-common-white); margin-right: 15px; transition: .3s; display: inline-block; border-radius: 50%; @media #{$xs} { margin-right: 3px; height: 50px; width: 50px; line-height: 53px; font-size: 15px; } &:hover{ background-color: var(--tp-theme-1); color: var(--tp-common-white); } } } } }