File: /mnt/data/dreamssalon-wp-market/wp-content/themes/dreamsalon/assets/scss/pages/_service.scss
/*============================
23. Service
============================*/
@use "../utils/mixins" as *;
@use '../variables' as *;
.service-section {
position: relative;
z-index: 1;
.service-bg-01 {
position: absolute;
top: -25px;
right: 180px;
z-index: -1;
}
.service-bg-02 {
position: absolute;
bottom: 60px;
left: 0;
width: 63px;
height: 70px;
}
}
.service-item {
border: 1px solid transparent;
padding: 20px;
border-radius: $border-radius-md;
text-align: center;
position: relative;
background: rgba(30, 27, 27, 0.3);
backdrop-filter: blur(8px);
@include transition(all 0.5s);
z-index: 1;
overflow: hidden;
&::before,
&::after {
content: "";
position: absolute;
border: 1px solid $primary;
border-radius: $border-radius-md;
width: 0%;
height: 100%;
top: 0;
transition: width 0.4s ease;
z-index: -1;
}
&::before {
left: 0;
border-right: none;
border-left: 1px solid transparent;
border-radius: $border-radius-md 0 0 $border-radius-md;
}
&::after {
right: 0;
border-left: none;
border-right: 1px solid transparent;
border-radius: 0 $border-radius-md $border-radius-md 0;
}
&:hover::before,
&:hover::after {
width: 50%;
}
&:hover::before {
border-color: $primary;
}
&:hover::after {
border-color: $primary;
}
.service-bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 143px;
z-index: -1;
}
.service-icon {
width: 60px;
height: 60px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: $border-radius-md;
margin-bottom: 24px;
flex-shrink: 0;
@include transition(all 0.5s);
}
h3 {
a {
color: $darkmode-white;
&:hover {
color: $primary;
}
}
}
p {
color: $darkmode-light;
margin-bottom: 24px;
}
.view-link {
color: $primary;
font-size: 14px;
text-decoration: none;
position: relative;
&::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1px;
background-color: currentColor;
transform: scaleX(0);
transform-origin: center;
transition: transform 0.4s ease;
}
&:hover::after {
transform: scaleX(1);
}
}
&:hover {
background: $darkmode-dark;
@include transition(all 0.5s);
.service-icon {
@include transition(all 0.5s);
background: $darkmode-dark;
animation: verticalRotate 0.5s linear 1;
}
}
&-two {
border-radius: $border-radius-md;
padding: 20px;
background: $white;
@include transition(all 0.5s);
.service-icon {
width: 46px;
height: 46px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: $border-radius-md;
background: $darkmode-dark;
margin-bottom: 20px;
flex-shrink: 0;
@include transition(all 0.5s);
img {
filter: brightness(0) invert(1);
}
}
h6 {
a {
&:hover {
color: $primary;
}
}
}
p {
@include transition(all 0.5s);
}
&:hover {
@include transition(all 0.5s);
background: $light;
border-color: $border-color;
.service-icon {
background: $primary;
img {
filter: brightness(0) invert(1);
}
}
h6 {
a {
color: $gray-900;
&:hover {
color: $primary;
}
}
}
p {
color: $body-color;
@include transition(all 0.5s);
}
}
}
&-three {
background-color: $white;
box-shadow: $box-shadow;
position: relative;
&:hover {
box-shadow: $box-shadow-sm;
&::before {
opacity: 1;
@include transition(all 0.5s);
}
}
&::before {
opacity: 0;
box-shadow: $box-shadow-inset;
position: absolute;
content: "";
transform: rotate(-1.6deg);
width: 94%;
height: 20%;
@include transition(all 0.5s);
border-radius: 30px;
z-index: -1;
left: 3%;
bottom: -12px;
}
.service-two-image {
margin-bottom: 23px;
}
}
&-four {
border-radius: $border-radius-md;
background: $white;
box-shadow: $box-shadow;
border: 1px solid $border-color;
.listing-img {
img {
border-radius: $border-radius-md $border-radius-md 0 0;
}
}
.listing-content {
padding: 20px;
text-align: center;
}
&:hover {
box-shadow: $box-shadow-sm;
}
}
}
.service-section-three {
.listing-item-content {
.btn {
transform: none;
}
}
}
.service-slider {
.slick-slide {
margin: 0 12px;
.listing-item {
box-shadow: none;
&:hover {
transform: none;
}
.slick-slide {
margin: 0;
}
}
}
}