carget
Version:
optimization js code for carget website
473 lines (414 loc) • 8.69 kB
CSS
:root {
--main-box-shadow: 0px 0px 6px 1px #ccc;
--highlight-color: #db2424;
}
.carget-acordion-color {
width: 100% ;
}
.elementor-accordion-item .elementor-widget-wrap {
gap: 16px;
}
.carget-acordion-color,
.carget-acordion-disk,
.carget-acordion-salon {
width: 100% ;
height: auto ;
}
#carget-models .elementor-row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 16px;
}
#header-loader {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100vw;
height: 100vh;
z-index: 49;
background: #242325;
opacity: 1;
}
.loader {
position: fixed;
width: 100px;
height: 100px;
z-index: 50;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: auto;
background: #242325;
opacity: 1;
}
.loader:before,
.loader:after {
content: '';
border-radius: 50%;
position: absolute;
inset: 0;
box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.3) inset;
}
.loader:after {
box-shadow: 0 4px 0 #ff3d00 inset;
animation: rotate 2s linear infinite;
}
@keyframes rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
.loader-text {
position: fixed;
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-size: 16px;
text-align: center;
width: 100%;
margin-top: 32px;
z-index: 99;
}
#loader-car {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: auto;
height: auto;
font-size: 16px;
z-index: 99;
}
.loaderCar-text {
line-height: 1;
}
@media screen and (max-width: 640px) {
.header-contacts .elementor-widget-wrap {
display: flex;
gap: 4px;
}
.header-totalprice-wrapper {
font-size: 14px ;
}
.carProModel {
margin-top: 8px;
}
.elementor-accordion
.elementor-tab-title
.elementor-accordion-icon.elementor-accordion-icon-right {
text-align: center ;
transform: translateY(16px) ;
}
.elementor-accordion-title {
font-size: 18px ;
}
.dop-options-wrapper .elementor-widget-wrap {
gap: 32px;
}
.dop-option-container {
display: flex;
flex-direction: column;
gap: 8px;
}
.dop-option-title {
font-weight: 900;
}
.dop-option-description {
font-size: 14px;
font-weight: 500;
}
.check-list-image {
order: 0;
}
.check-list-body {
order: 1;
}
.check-list-wrapper .elementor-row {
display: flex ;
flex-direction: column-reverse ;
}
.check-list-wrapper .check-list-image {
margin-bottom: 16px;
}
#carget-acordion-color-image .swiper-slide-image {
width: 100% ;
height: auto ;
max-height: 200px ;
}
#carget-acordion-disk-image .swiper-slide-image {
width: 100% ;
height: auto ;
max-height: 200px ;
}
#carget-acordion-salon-color .swiper-slide-image {
width: 100% ;
height: auto ;
max-height: 200px ;
}
.check-list-image .swiper-slide-image {
width: 100% ;
height: auto ;
max-height: 200px ;
}
.header-wrapper .elementor-widget-wrap {
margin: 0 ;
padding: 0 ;
}
.header-wrapper .elementor-column.elementor-col-33:first-child {
width: 32% ;
}
.header-wrapper
.elementor-column.elementor-col-33:first-child
.elementor-heading-title {
font-size: 10px ;
}
.header-wrapper .elementor-column.elementor-col-33:nth-child(2) {
width: 36% ;
}
.header-wrapper .elementor-column.elementor-col-33:last-child {
width: 32% ;
}
.header-wrapper
.elementor-column.elementor-col-33:last-child
.elementor-element.elementor-widget-image {
width: 80% ;
margin-left: auto ;
}
.header-wrapper .elementor-section.elementor-inner-section.elementor-element {
padding: 8px ;
}
}
@media screen and (min-width: 640px) {
.carget-models .elementor-column {
width: auto ;
}
.check-list-image .swiper-slide-active {
width: 100% ;
transform: none ;
}
.dop-options-wrapper .elementor-widget-wrap {
display: flex;
justify-content: space-between;
gap: 16px;
}
.dop-options-wrapper .elementor-section {
width: 48%;
margin: 0;
}
}
.dop-option-container {
display: flex;
flex-direction: column;
gap: 8px;
}
.dop-option-title {
font-weight: 900;
}
.dop-option-description {
font-size: 14px;
font-weight: 500;
}
header .elementor-inner-section {
max-width: 100vw ;
}
header .elementor-container {
max-width: 1400px ;
}
.elementor-container {
max-width: 1200px;
}
.elementor-container.elementor-column-gap-default {
justify-content: center ;
row-gap: 8px ;
flex-wrap: nowrap;
}
.header-wrapper {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 50;
}
.header-contact-icons > .elementor-widget-wrap {
display: flex;
width: 100%;
}
.icon-header-contact {
height: 24px;
}
.header-totalprice-wrapper {
font-size: 16px;
font-weight: 600;
text-align: center;
background: #db2424;
line-height: initial;
padding: 4px;
}
#accordion-car-model .elementor-accordion-icon {
margin-top: 5%;
}
#carget-acordion-color-price,
#carget-acordion-wheels-price,
#carget-acordion-interiorColor-price {
font-size: 16px;
}
#carget-acordion-color .swiper-slide-active .swiper-slide-image,
#carget-acordion-disk .swiper-slide-active .swiper-slide-image,
#carget-acordion-salon .swiper-slide-active .swiper-slide-image {
border-width: 2px;
border-radius: 50px;
}
.generate-pdf {
cursor: pointer;
}
#my-html,
#js-code,
#js-editor-code {
display: none;
}
.hidden {
display: none;
}
.accordion-ul {
margin: 0;
list-style-type: none;
}
.swiper-slide-image {
height: min-content ;
cursor: pointer;
}
.check-dop-option {
flex-direction: column;
justify-content: space-around ;
align-items: center ;
}
.check-dop-option-price {
flex-direction: column;
align-items: flex-end ;
justify-content: space-around ;
}
@media screen and (max-width: 770px) {
.check-list-item {
font-size: 10px;
}
.check-list-item-price {
font-size: 12px;
}
.check-list-row-price-descr {
font-size: 10px;
}
.check-list-item-price {
font-size: 12px ;
}
.check-list-wrapper-block {
box-shadow: none ;
}
.check-list-row.check-list-row-discount {
font-size: 12px ;
}
.check-list-items-discount .check-list-item {
font-size: 12px ;
font-weight: 500;
border: none;
}
}
.check-list-wrapper-block {
border-radius: 10px;
padding: 8px ;
transition: box-shadow 0.4s ease;
box-shadow: none;
}
.check-list-wrapper-block:hover {
box-shadow: var(--main-box-shadow);
}
.check-list-wrapper {
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 0;
padding: 0;
}
.check-list-items {
width: 100%;
display: flex;
margin: 0;
padding: 0;
list-style-type: none;
}
.check-list-row {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0 2px;
font-size: 12px;
}
.check-list-item:first-child {
text-align: left;
justify-content: flex-start;
}
.check-list-item:last-child {
text-align: left;
justify-content: flex-end;
}
.check-list-item {
display: flex;
justify-content: center;
align-items: flex-end;
border-bottom: 1px solid #ccc;
width: 100%;
height: 100%;
}
.check-list-item.check-disk {
text-align: center;
}
.check-list-row-price {
width: 100%;
}
.check-list-item-price {
color: var(--highlight-color);
font-size: 18px;
font-weight: 700;
border-bottom: none;
width: auto;
}
.check-list-row-price-first {
display: flex;
flex-direction: column;
}
.check-list-row-price-descr {
flex-direction: column;
width: 70%;
text-align: left;
font-size: 12px;
}
.check-list-item-price-descr {
border-bottom: none;
}
.check-list-item-price-descr:last-child {
justify-content: flex-start;
}
.check-dop-option {
text-align: center;
}
.check-list-row.check-list-row-price .total-price-car {
align-items: flex-start ;
}
.check-list-row.check-list-row-discount {
color: #fff;
}
.check-list-item.check-list-item-price {
line-height: 18px;
}
.check-list-items-discount .check-list-item {
font-size: 16px;
font-weight: 500;
border: none;
}