TimberTrust/business_information/static/assets/scss/layout/_header.scss

972 lines
29 KiB
SCSS
Raw Normal View History

2024-04-07 18:03:42 +08:00
@use "../utilities" as *;
/**----------------------------------------
START: Theme Header CSS
----------------------------------------*/
// Header //
.header {
background-color: transparent;
width: 100%;
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 99;
@include breakpoint(md) {
position: inherit;
}
.top-bar{
@include breakpoint(md){
display: none;
}
.top-bar-inner{
@include flex-vertical-center;
justify-content: space-between;
padding: 7px 0;
@include breakpoint(md){
flex-direction: column;
row-gap: 15px;
justify-content: center;
border-bottom: 1px solid var(--lt-color-border-1);
padding: 10px 0;
}
.top-bar-list{
@include flex-vertical-center;
list-style: none;
column-gap: 30px;
flex-wrap: wrap;
row-gap: 15px;
@include breakpoint(sm){
row-gap: 10px;
justify-content: center;
}
li{
font-size: 14px;
color: var(--lt-color-common-white);
font-weight: 400;
@include breakpoint(md){
color: var(--lt-color-heading-primary);
}
i{
margin-right: 10px;
}
a{
&:hover{
color: var(--lt-color-theme-primary);
}
}
}
}
.top-social{
@include flex-vertical-center;
list-style: none;
column-gap: 10px;
li{
&:not(:last-of-type){
margin-right: 8px;
}
a{
color: var(--lt-color-common-white);
font-size: 14px;
@include breakpoint(md){
color: var(--lt-color-heading-primary);
}
&:hover{
color: var(--lt-color-theme-primary);
}
}
}
}
}
}
}
.primary-header-inner {
background-color: var(--lt-color-common-white);
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
padding: 0 30px;
@include breakpoint(md) {
padding: 20px 0;
}
.header-logo {
img {
max-width: 170px;
}
}
.header-menu-wrap {
display: flex !important;
align-items: center;
.sub-menu {
margin: 0;
padding: 0;
list-style: none;
@include breakpoint(md) {
display: none;
}
li {
display: inline-block;
position: relative;
margin: 0 18px;
@include breakpoint(lg) {
margin: 0 15px;
}
a {
font-family: "Roboto", sans-serif;
color: var(--lt-color-heading-primary);
display: block;
font-size: 16px;
padding: 30px 0;
letter-spacing: 0;
font-weight: 500;
text-transform: capitalize;
position: relative;
text-decoration: none;
-webkit-font-smoothing: antialiased;
transition: all 0.3s ease-in-out;
i {
font-size: 13px;
}
&:before {
content: "";
background-color: var(--lt-color-theme-primary);
width: 0;
height: 3px;
position: absolute;
bottom: 30px;
transition: all 0.4s ease-in-out;
}
}
ul {
background-color: var(--lt-color-common-white);
display: block;
width: 220px;
padding: 0;
-webkit-box-shadow: 0px 50px 100px 0px rgba(64, 1, 4, 0.1),
0px -6px 0px 0px rgba(248, 99, 107, 0.004);
box-shadow: 0px 50px 100px 0px rgba(64, 1, 4, 0.1), 0px -6px 0px 0px rgba(248, 99, 107, 0.004);
position: absolute;
left: 0;
top: 86px;
opacity: 0;
visibility: hidden;
z-index: 0;
-webkit-transform: rotate3d(1, 0, 0, -90deg);
transform: rotate3d(1, 0, 0, -90deg);
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
transition: all 0.6s ease;
}
&:hover > ul {
visibility: visible;
transition: all 0.6s ease;
opacity: 1;
transform: none;
}
li {
display: flex;
justify-content: space-between;
text-align: left;
position: relative;
transition: all 0.3s ease-in-out;
margin: 0;
padding: 0 20px;
&:last-child {
margin: 0;
border-bottom: none;
}
&:hover {
background-color: var(--lt-color-theme-primary);
}
a {
display: block;
height: auto;
line-height: inherit;
color: var(--lt-color-common-black);
font-weight: 500;
font-size: 14px;
line-height: 45px;
padding: 0;
letter-spacing: 0;
width: 100%;
-webkit-font-smoothing: antialiased;
margin: 0;
&:hover {
padding-left: 10px;
color: var(--lt-color-common-white);
}
&:before {
display: none;
}
}
}
&:hover a:before {
width: 100%;
}
}
}
}
.header-right {
display: flex;
align-items: center;
.header-logo {
@include breakpoint(sm) {
img {
width: 90px;
}
}
}
.header-btn {
background-color: var(--lt-color-heading-primary);
color: var(--lt-color-common-white);
margin-left: 20px;
&:before{
background-color: var(--lt-color-theme-primary);
}
@include breakpoint(md) {
margin-left: 0;
margin-right: 30px;
}
@include breakpoint(sm) {
display: none;
}
}
.sidebar-trigger {
background-color: var(--lt-color-heading-primary);
display: flex;
flex-direction: column;
justify-content: flex-start;
row-gap: 7px;
padding: 15px 10px;
margin-left: 40px;
border-radius: 3px;
@include breakpoint(md) {
display: none;
}
span {
background-color: var(--lt-color-common-white);
width: 30px;
height: 3px;
display: block;
border-radius: 2px;
transition: all 0.3s ease-in-out;
&:nth-child(2) {
width: 20px;
}
&:nth-child(3) {
width: 25px;
}
}
&:hover {
span {
&:nth-child(2) {
width: 25px;
}
&:nth-child(3) {
width: 20px;
}
}
}
}
.header-right-item {
display: flex;
align-items: center;
@include breakpoint(md) {
line-height: 1;
}
.mobile-side-menu-toggle {
color: var(--lt-color-heading-primary);
font-size: 30px;
}
.search-icon {
font-size: 16px;
margin-left: 55px;
cursor: pointer;
@include breakpoint(md) {
margin-right: 20px;
}
}
}
}
@include breakpoint(md) {
.mean-push {
display: none;
}
}
}
// Sticky Header
.sticky-header-wrap{
width: 100%;
position: fixed;
left: 0;
top: 0;
display: none;
z-index: 99;
&.fixed {
background-color: var(--lt-color-common-white);
display: block;
animation-name: menuSticky;
-webkit-animation-name: menuSticky;
animation-duration: 1s;
-webkit-animation-duration: 1s;
animation-timing-function: ease;
-webkit-animation-timing-function: ease;
box-shadow: 0px 1px 3px 0px rgba(17, 17, 17, 0.1);
}
}
@include keyframes(menuSticky){
0% {
@include transform(translateY(-100%))
}
100% {
@include transform(translateY(0%))
}
}
@include breakpoint(md) {
.mobile-side-menu .header-right {
display: none !important;
}
}
.side-menu-icon {
position: absolute;
right: 20px;
top: 25px;
z-index: 100;
display: block;
cursor: pointer;
@include breakpoint(md) {
display: none;
}
}
// Mobile Side menu
.mobile-side-menu-overlay,
.mobile-side-menu {
display: none;
}
@include breakpoint(md) {
.mobile-side-menu {
background-color: var(--lt-color-common-white);
position: fixed;
overflow-y: auto;
top: 0;
right: 0;
width: 80%;
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
height: 100%;
display: block;
z-index: 100;
padding: 40px;
-webkit-transition: transform 0.5s ease;
-o-transition: transform 0.5s ease;
transition: transform 0.5s ease;
backface-visibility: hidden;
@include breakpoint(sm) {
padding: 40px 20px;
width: 100%;
max-width: 320px;
}
&.is-open {
-webkit-transform: translateX(0);
-ms-transform: translateX(0);
transform: translateX(0);
}
.side-menu-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 50px;
.mobile-side-menu-close {
position: fixed;
top: 30px;
right: 40px;
color: var(--lt-color-heading-primary);
font-size: 22px;
height: 50px;
width: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--lt-color-border-1);
@include breakpoint(sm) {
right: 16px;
}
&:hover {
background-color: var(--lt-color-theme-primary);
color: var(--lt-color-common-white);
}
}
}
.side-menu-wrap {
overflow: hidden;
margin-bottom: 50px;
}
p {
color: var(--lt-color-common-white);
margin-bottom: 50px;
}
.list-header {
color: var(--lt-color-common-white);
font-family: var(--lt-ff-body);
font-weight: 400;
margin-bottom: 30px;
}
.side-menu-list {
margin-bottom: 50px;
li {
font-size: 20px;
color: var(--lt-color-common-white);
display: flex;
align-items: center;
margin-bottom: 20px;
@include breakpoint(sm) {
font-size: 12px;
}
p {
font-size: 20px;
margin-bottom: 0;
@include breakpoint(sm) {
font-size: 12px;
}
}
i {
background-color: var(--lt-color-theme-primary);
font-size: 12px;
color: var(--lt-color-common-black);
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
transition: all 0.2s ease-in-out;
margin-right: 20px;
}
:last-child {
margin-bottom: 0;
}
}
}
.side-menu-social {
ul {
display: flex;
align-items: center;
column-gap: 10px;
list-style: none;
li {
a {
background-color: var(--lt-color-theme-bg-dark-deep);
color: var(--lt-color-theme-primary);
font-size: 18px;
width: 50px;
padding: 15px 0;
line-height: 1;
text-align: center;
border: 1px solid var(--lt-color-border-6);
border-radius: 2px;
display: block;
margin-bottom: 10px;
transition: all 0.3s ease-in-out;
&:hover {
background-color: var(--lt-color-theme-primary);
color: var(--lt-color-common-white);
}
}
}
}
}
.mean-bar {
background-color: transparent;
min-height: auto;
padding: 0;
.meanmenu-reveal {
display: none !important;
}
.mean-nav {
background-color: transparent;
margin-top: 0;
padding-top: 20px;
&.mean-nav > ul {
display: block !important;
li {
position: relative;
float: none;
display: block;
width: auto;
&:not(:last-of-type) {
margin-bottom: 24px;
padding-bottom: 20px;
border-bottom: 1px solid var(--lt-color-border-1);
}
a {
color: var(--lt-color-heading-primary);
font-size: 22px;
font-weight: 500;
line-height: 1;
border-top: none;
padding: 0;
float: none;
@include breakpoint(sm) {
font-size: 16px;
}
}
a.mean-expand {
background-color: var(--lt-color-theme-primary);
color: var(--lt-color-common-white);
position: absolute;
padding: 0;
top: -3px;
right: 0;
width: 25px;
height: 25px;
@include flex-center;
&:before,
&:after {
font-size: 14px;
font-family: "Font Awesome 6 Pro";
font-weight: 900;
}
&:before {
content: "\2b";
}
&.mean-clicked:after {
content: "\f068";
}
&.mean-clicked:before {
display: none;
}
i {
display: none;
}
}
ul {
padding: 0 0 0 30px;
margin-top: 20px;
li {
&:not(:last-of-type) {
padding-bottom: 15px;
margin-bottom: 15px;
}
a {
padding: 0;
font-size: 20px;
font-weight: 500;
text-transform: capitalize;
@include breakpoint(sm) {
font-size: 14px;
}
}
}
}
}
}
}
}
}
.mobile-side-menu-overlay {
background-color: rgba(0, 0, 0, 0.7);
height: 100%;
width: 0%;
position: fixed;
top: 0;
z-index: 9;
right: 0;
opacity: 0;
visibility: hidden;
-webkit-transition: all 600ms ease;
-o-transition: all 600ms ease;
transition: all 600ms ease;
z-index: 10;
display: block;
&.is-open {
width: 100%;
opacity: 0.5;
visibility: visible;
}
}
}
#popup-search-box {
background-color: var(--lt-color-common-white);
position: fixed;
width: 100%;
height: 30%;
top: -100%;
left: 0;
right: 0;
white-space: nowrap;
z-index: 9999;
opacity: 0;
visibility: hidden;
-webkit-transition: 500ms ease all;
-moz-transition: 500ms ease all;
transition: 500ms ease all;
.box-inner-wrap {
position: relative;
width: 100%;
height: 100%;
form {
position: relative;
width: 100%;
max-width: 560px;
margin: 0 auto;
padding: 0 15px;
input {
width: 100%;
padding: 20px 15px;
padding-right: 80px;
background: transparent;
border: none;
color: #ddd;
border: 1px solid var(--lt-color-border-1);
@include tp-placeholder {
color: #666;
font-size: 16px;
}
&:focus {
outline: none;
}
}
}
&:hover {
cursor: url(../img/cross.png), auto;
}
.search-close{
position: absolute;
top: 30px;
right: 50px;
color: var(--lt-color-heading-primary);
border: 1px solid var(--lt-color-border-1);
height: 50px;
width: 50px;
@include flex-center;
font-size: 20px;
border-radius: 50%;
@include transition(all 0.3s ease-in-out);
cursor: pointer;
@include breakpoint(sm){
top: 20px;
right: 10px;
}
&:hover{
background-color: var(--lt-color-theme-primary);
border: 1px solid var(--lt-color-theme-primary);
color: var(--lt-color-common-white);
}
}
}
&.toggled {
top: 0;
opacity: 1;
visibility: visible;
}
}
/* Header 2 */
.header-2{
.primary-header{
position: relative;
z-index: 1;
}
.primary-header-bg{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
overflow: hidden;
.container{
position: relative;
width: 100%;
height: 100%;
&:before{
background-color: var(--lt-color-common-white);
content: "";
height: 100%;
width: 3000px;
position: absolute;
top: 0;
left: 15px;
}
}
}
.primary-header-inner {
position: relative;
z-index: 1;
padding-right: 0;
.lt-primary-btn{
@include breakpoint(md){
margin-right: 20px;
}
@include breakpoint(sm){
display: none;
}
}
}
}
/* Header 3 */
.header-3{
.header{
position: relative;
z-index: 99;
.header-bg{
background-color: var(--lt-color-common-white);
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
overflow: hidden;
z-index: -1;
.container{
height: 100%;
display: grid;
grid-template-columns: 130px 1fr;
div:nth-child(1){
height: 100%;
position: relative;
&:before{
background-color: var(--lt-color-theme-primary);
content: "";
height: 100%;
width: 3000px;
position: absolute;
top: 0;
right: 15px;
}
}
div:nth-child(2){
position: relative;
height: 100%;
&:before{
background-color: #FFEEE9;
content: "";
height: 33px;
width: 3000px;
position: absolute;
top: 0;
left: 80px;
}
@include breakpoint(md){
display: none;
}
}
}
}
.main-header-inner{
position: relative;
z-index: 1;
display: grid;
align-items: center;
grid-template-columns: 139px 1fr;
grid-gap: 90px;
.main-header-left{
position: relative;
z-index: 1;
height: 120px;
@include flex-vertical-center;
clip-path: inset(0px -80px 0px 0px);
@include breakpoint(md){
height: 100px;
}
&:before{
background-color: var(--lt-color-theme-primary);
content: "";
width: 127px;
height: 127px;
position: absolute;
left: 35px;
top: 0;
z-index: -1;
transform: rotate(-45deg);
box-shadow: 0px 0px 0px 8px rgba(254, 86, 36, 0.5);
@include breakpoint(md){
height: 100px;
width: 100px;
left: 45px;
}
}
}
.main-header-right{
width: 100%;
.top-bar-list{
padding-left: 15px;
}
}
}
.top-bar{
background-color: #FFEEE9;
position: relative;
z-index: 1;
@include breakpoint(md){
display: none;
}
&:before{
background-color: #FFEEE9;
content: "";
width: 56px;
height: 35px;
position: absolute;
top: -2px;
left: -67px;
clip-path: polygon(100% 0, 0 0, 100% 152%);
}
.top-bar-bg{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
overflow: hidden;
.container{
position: relative;
width: 100%;
height: 100%;
&:before{
background-color: #FFEEE9;
content: "";
height: 100%;
width: 3000px;
position: absolute;
top: 0;
left: 15px;
}
}
}
.top-bar-inner{
padding: 3px 0;
.top-bar-list{
li{
color: var(--lt-color-heading-primary);
}
}
.top-social{
li{
a{
color: var(--lt-color-heading-primary);
}
}
}
}
}
.primary-header-inner{
padding: 0;
.sticky-logo{
display: none;
}
.header-right{
.search-icon{
font-size: 20px;
color: var(--lt-color-heading-primary);
margin-right: 20px;
cursor: pointer;
}
.lt-primary-btn{
@include breakpoint(md){
margin-right: 20px;
}
@include breakpoint(sm){
display: none;
}
}
}
}
}
}
.header-3{
.sticky-header-wrap.fixed{
.primary-header-inner{
max-width: 1185px;
margin: 0 auto;
padding: 0 15px;
width: 100%;
.header-right{
.search-icon{
font-size: 20px;
color: var(--lt-color-heading-primary);
margin-right: 20px;
cursor: pointer;
}
}
}
}
}
/* Header 4 */
.header-4{
.header{
position: inherit;
.top-bar{
background-color: var(--lt-color-theme-primary);
@include breakpoint(md){
background-color: var(--lt-color-common-white);
}
.top-bar-list{
li a:hover{
color: var(--lt-color-common-white);
}
}
.top-social{
li a:hover{
color: var(--lt-color-common-white);
}
}
}
.primary-header-inner{
padding: 0;
@include breakpoint(md){
padding: 20px 0;
}
.header-right{
.header-btn{
margin-left: 0;
}
.search-icon{
font-size: 20px;
color: var(--lt-color-heading-primary);
margin-right: 20px;
cursor: pointer;
}
}
}
}
}
.header-4{
.sticky-header-wrap.fixed{
.primary-header-inner{
.header-right{
.search-icon{
font-size: 20px;
color: var(--lt-color-heading-primary);
margin-right: 20px;
cursor: pointer;
}
.header-btn{
margin-left: 0;
}
}
}
}
}
/* !END: Theme Header CSS */