Files
getgreen-backend/resources/sass/components/_widgets.scss

1373 lines
23 KiB
SCSS
Executable File

.lang {
position: relative;
cursor: pointer;
z-index: 223;
font-size: 14px;
font-weight: normal;
text-align: right;
color: #000;
&-selected {
i {
font-size: 12px;
}
}
&-list {
opacity: 0;
visibility: hidden;
position: absolute;
top: 50px;
transition: all 0.2s ease-in;
left: -10px;
width: 100%;
color: white;
// background-color: $my-dark-gray;
background-color: #fff;
width: 40px;
box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.15);
@include mq("tablet-wide", max) {
// left: 35px;
left: -3px;
}
a {
display: block;
font-weight: normal;
font-size: 16px;
color: black;
margin-right: 0 !important;
padding: 5px 10px;
&:not(:last-of-type) {
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
&.active,
&:hover {
// background-color: $my-dark-gray;
color: $my-orange;
text-decoration: none;
}
}
}
&:hover {
.lang {
&-list {
visibility: visible;
opacity: 1;
top: 27px;
@include mq("tablet-wide", max) {
// top: -10px;
top: 25px;
}
}
}
}
}
// .balance {
// margin-left: 40px;
// display: flex;
// align-items: center;
// font-weight: normal;
// color: rgb(0, 0, 0);
// span {
// margin: 0 10px 0 10px;
// @include mq("phone-small", max) {
// margin: 0 5px;
// }
// }
// i {
// font-size: 16px;
// }
// @include mq("tablet", max) {
// margin-left: 5px;
// margin-right: 5px;
// }
// input {
// display: block;
// cursor: pointer;
// color: white;
// font-size: 14px;
// position: relative;
// background-color: $my-dark-gray;
// width: 23px;
// height: 23px;
// border-radius: 50%;
// text-align: center;
// border: 0;
// }
// }
.search {
min-width: 450px;
position: relative;
@include mq("desktop", max) {
min-width: 300px;
}
@include mq("tablet-wide", max) {
order: 11;
margin-left: auto !important;
margin-right: auto !important;
position: absolute;
z-index: 222;
top: 65px;
width: 80%;
background: white;
transition: 0.2s transform ease-out;
transform: translateX(0px);
left: -100%;
&-active {
transform: translateX(127%);
border-radius: 22.5px;
}
&::after {
content: "";
position: absolute;
width: 100%;
height: 50px;
top: -3px;
left: 0;
z-index: -1;
background-color: #fff;
border-top-right-radius: 22.5px;
border-bottom-right-radius: 22.5px;
}
}
@include mq("phablet", max) {
min-width: 200px;
}
input {
width: 100%;
background-color: #efefef;
height: 45px;
font-weight: normal;
color: rgb(0, 0, 0);
font-size: 14px;
border-radius: 22.5px;
border: 1px solid #efefef;
padding: 8px 15px;
@extend %tr02;
&::placeholder {
color: rgb(0, 0, 0);
}
&:focus {
border-color: $my-orange;
}
@include mq("tablet-wide", max) {
// display: none;
padding: 8px 15px 8px 10px;
}
@include mq("tablet-wide", max) {
display: block;
background-color: #fff;
}
}
a {
position: absolute;
right: 15px;
@extend %v-c;
i {
position: relative;
color: white;
font-size: 14px;
&::after {
content: "";
position: absolute;
width: 35px;
height: 35px;
background-color: $my-orange;
z-index: -1;
@extend %c-c;
border-radius: 50%;
}
}
}
}
.just-call {
display: flex;
align-items: center;
@include mq("tablet", max) {
display: none;
}
a {
&:nth-of-type(1) {
font-size: 20px;
font-weight: bold;
color: rgb(0, 0, 0);
line-height: 1;
margin-right: 35px;
@include mq("tablet-wide", max) {
margin-right: 20px;
}
@include mq("phone-small", max) {
margin-right: 10px;
}
i {
position: relative;
color: #fff;
font-size: 18px;
@include mq("tablet-wide", min) {
display: none;
}
&::after {
position: absolute;
@extend %c-c;
content: "";
background-color: $my-dark-gray;
border-radius: 50%;
width: 35px;
height: 35px;
z-index: -1;
}
}
span {
@include mq("tablet-wide", max) {
display: none;
}
}
}
&:nth-of-type(2) {
font-size: 16px;
font-weight: normal;
color: rgb(0, 0, 0);
text-decoration: underline;
&:hover {
text-decoration: none;
}
@include mq("tablet", max) {
display: none;
}
}
&:hover {
color: $my-orange;
}
}
}
.selected-products {
display: flex;
align-items: center;
.favorite,
.basket {
margin-right: 30px;
}
.balance-link {
margin-right: 30px;
}
}
.favorite,
.basket,
.balance {
position: relative;
cursor: pointer;
display: block;
i {
position: relative;
color: #c2c2c2;
&::after {
position: absolute;
@extend %c-c;
content: "";
background-color: rgb(239, 239, 239);
border-radius: 50%;
width: 36px;
height: 36px;
z-index: -1;
}
}
div {
position: absolute;
top: -15px;
right: -8px;
z-index: 1;
input {
position: relative;
cursor: pointer;
color: #fff;
display: block;
font-weight: 600;
font-size: 12px;
text-align: center;
line-height: 1;
border: 0;
background-color: $my-orange;
border-radius: 50%;
width: 18px;
height: 18px;
// &::after {
// position: absolute;
// @extend %c-c;
// content: "";
// z-index: -1;
// }
}
}
}
.topbar-top__left {
.balance {
i {
font-size: 14px;
&::after {
width: 32px;
height: 32px;
}
}
margin-left: 8px;
}
.balance div {
top: -9px;
right: -15px;
}
}
.logo {
display: block;
// transform: translateY(-5px);
img {
max-height: 100%;
max-width: 150px;
// width: 100%;
}
@include mq("tablet", max) {
img {
max-width: 120px;
}
margin-right: 30px !important;
}
@include mq("phone-small", max) {
img {
// max-width: 100px;
}
}
}
.breadcrumb {
background-color: transparent;
padding-left: 0;
padding-right: 0;
font-size: 14px;
font-weight: normal;
color: rgb(34, 34, 34);
line-height: 1.429;
text-align: left;
&-item {
a {
&:hover {
color: $my-orange;
}
}
}
}
.socials {
display: flex;
a {
display: block;
&:not(:last-of-type) {
@include mq("tablet-wide", max) {
margin-right: 25px;
}
}
i {
font-size: 14px;
position: relative;
z-index: 2;
color: white;
&::after {
content: "";
position: absolute;
border-radius: 50%;
@extend %c-c;
width: 26px;
height: 26px;
background-color: #5b5b5b;
z-index: -2;
@extend %tr02;
}
}
&:hover {
span {
text-decoration: underline;
}
i::after {
background-color: $my-orange;
}
}
}
}
.share {
a {
&:not(:last-of-type) {
margin-right: 25px;
}
}
p {
font-size: 16px;
font-weight: bold;
color: rgb(0, 0, 0);
line-height: 1.313;
}
}
.product-color {
display: flex;
align-items: center;
margin-right: 50px;
p {
margin-right: 10px;
font-size: 16px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.5;
}
}
.colors ul {
list-style: none;
padding: 0;
margin: 0;
}
.colors li {
display: inline-block;
}
.colors label {
margin-bottom: 14px;
cursor: pointer;
}
.colors input {
display: none;
}
.colors input[type="radio"]:checked + .swatch {
box-shadow: inset 0 0 0 2px white;
}
.swatch {
display: inline-block;
vertical-align: middle;
width: 25px;
height: 25px;
@extend %tr02;
cursor: pointer;
margin-right: 5px;
margin-left: 5px;
border-width: 1px;
border-style: solid;
border-radius: 50%;
}
.all_tabs {
font-weight: normal;
.conversation {
padding: 5px;
margin: 0;
}
.message-wrap {
padding: 0;
}
.msg {
padding: 5px;
margin: 0;
}
.msg-wrap {
padding: 0 10px;
}
.time {
color: #bfbfbf;
}
.send-wrap {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
padding: 10px;
/*background: #f8f8f8;*/
}
.send-message {
resize: none;
}
.highlight {
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
.send-message-btn {
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.btn-panel {
background: #f7f7f9;
}
.btn-panel .btn {
color: #b8b8b8;
transition: 0.2s all ease-in-out;
}
.btn-panel .btn:hover {
color: #666;
background: #f8f8f8;
}
.btn-panel .btn:active {
background: #f8f8f8;
box-shadow: 0 0 1px #ddd;
}
.btn-panel-conversation .btn,
.btn-panel-msg .btn {
background: #f8f8f8;
}
.btn-panel-conversation .btn:first-child {
border-right: 1px solid #ddd;
}
.msg-wrap .media-heading {
color: #000;
font-weight: 500;
font-size: 20px;
font-weight: 600;
}
.msg-date {
background: none;
text-align: center;
color: #aaa;
border: none;
box-shadow: none;
border-bottom: 1px solid #ddd;
}
}
.all_tabs {
$color__main: #444;
$color__active: grey;
$background__active: #f2f4f6;
$width__tabs-side: 150px;
$breakpoint: 800px;
@mixin tab-active() {
color: $my-orange;
border-bottom-color: $my-orange;
}
ul {
margin: 0;
padding: 0;
list-style: none;
width: 100%;
margin: 0;
padding: 0;
font-weight: 600;
background-color: #f2f4f6;
display: flex;
li {
cursor: pointer;
height: auto;
overflow: hidden;
position: relative;
background: $background__active;
margin-left: 1.5rem;
margin-right: 1.5rem;
padding: 1em 0;
border-bottom: 2px solid transparent;
font-size: 18px;
font-weight: 600;
&.active {
@include tab-active();
}
}
}
.tab_container {
border: 1px solid #f2f4f6;
border-top: none;
width: 100%;
background: #fff;
overflow: auto;
}
.tab_content {
padding: 20px;
display: none;
@media screen and (max-width: 768px) {
padding: 15px;
}
}
.tab_drawer_heading {
display: none;
}
@media screen and (max-width: 768px) {
.tabs {
display: none;
}
.tab_drawer_heading {
background-color: #f2f4f6;
margin: 5px 0;
padding: 15px;
display: block;
cursor: pointer;
// user-select: none;
border-bottom: 2px solid transparent;
font-size: 18px;
font-weight: 600;
&:first-of-type {
margin-top: 0;
}
&:last-of-type {
margin-bottom: 0;
}
}
.d_active {
color: $my-orange;
}
}
}
.address {
&-add,
&-delete {
span {
font-size: 18px;
font-weight: normal;
color: rgb(26, 26, 26);
line-height: 1.333;
margin-left: 10px;
}
i {
color: $my-orange;
}
border: 0;
background-color: transparent;
border-radius: 0;
display: flex;
align-items: center;
}
&-delete {
@include mq("tablet-wide", min) {
position: absolute;
right: -30px;
top: -68px;
span {
display: none;
}
}
@include mq("tablet-wide", max) {
margin: 0 0 5px auto;
}
}
}
.v-line {
color: #efefef;
transform: scaleY(4) translateX(5px) translateY(-2px);
@include mq("desktop", max) {
display: none;
}
}
.sum-of-products {
margin-right: 50px;
@include mq("tablet-wide", max) {
margin-right: 0;
margin-bottom: 10px;
}
@include mq("tablet", max) {
margin-top: 30px;
}
h3 {
font-size: 18px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.2;
text-align: right;
span {
font-weight: bold;
font-size: 24px;
}
margin-bottom: 0;
@include mq("tablet", max) {
text-align: center;
font-size: 16px;
span {
font-size: 22px;
}
}
}
h5 {
font-size: 18px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.2;
text-align: right;
color: rgb(168, 168, 168);
span {
font-weight: bold;
font-size: 24px;
}
margin-bottom: 0;
@include mq("tablet", max) {
text-align: center;
font-size: 16px;
span {
font-size: 22px;
}
}
}
h2 {
margin-top: 10px;
font-size: 22px;
font-weight: 600;
color: rgb(255, 99, 25);
font-weight: bold;
line-height: 1.2;
@include mq("tablet", max) {
text-align: center;
font-size: 22px;
span {
font-size: 22px;
}
}
}
}
#return-to-top {
position: fixed;
bottom: 50px;
right: 15px;
background: rgb(0, 0, 0);
background: rgba(0, 0, 0, 0.7);
width: 50px;
height: 50px;
display: block;
text-decoration: none;
border-radius: 35px;
display: none;
transition: all 0.3s ease;
z-index: 444;
@include mq("desktop", max) {
bottom: 90px;
}
}
#return-to-top i {
color: #fff;
margin: 0;
position: relative;
left: 16px;
top: 13px;
font-size: 19px;
transition: all 0.3s ease;
}
#return-to-top:hover {
background: rgba(0, 0, 0, 0.9);
}
#return-to-top:hover i {
color: #fff;
top: 5px;
}
.pagination {
.page {
&-item {
&.active {
.page-link {
background-color: #000;
}
}
&:first-of-type {
margin-right: 20px;
}
&:last-of-type {
margin-left: 20px;
.page-link {
background-color: transparent;
}
}
margin-right: 5px;
margin-left: 5px;
}
&-link {
width: 35px;
height: 35px;
display: flex;
justify-content: center;
align-items: center;
border: 0;
border-radius: 50%;
color: rgb(34, 34, 34);
font-size: 18px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.25;
text-align: center;
&:focus {
box-shadow: none;
}
}
}
}
.accordion {
.card {
border: none;
h2 {
background: url(https://cdn0.iconfinder.com/data/icons/entypo/91/arrow56-512.png)
no-repeat calc(100%) 10px;
background-size: 20px;
cursor: pointer;
@extend %tr02;
&.collapsed {
background-image: url(https://cdn0.iconfinder.com/data/icons/arrows-android-l-lollipop-icon-pack/24/expand2-256.png);
}
}
&-body {
padding-left: 0;
padding-right: 0;
}
}
}
.sorting {
display: flex;
align-items: center;
justify-content: flex-start;
padding-left: 0;
list-style-type: none;
flex-wrap: wrap;
@include mq("tablet", max) {
margin-top: 20px;
}
&-item {
margin-right: 20px;
a {
font-size: 16px;
font-weight: bold;
color: rgb(34, 34, 34);
line-height: 2.572;
text-align: right;
padding: 5px 0;
border-bottom: 2px solid transparent;
&.active,
&:focus {
border-bottom-color: $my-orange;
}
@include mq("tablet", max) {
font-size: 14px;
}
}
}
}
.selected-tags {
margin-bottom: 10px;
ul {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
align-items: center;
flex-wrap: wrap;
}
ul li {
margin-right: 10px;
margin-bottom: 10px;
padding: 5px 10px;
text-decoration: none;
color: black;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
font-weight: normal;
color: rgb(34, 34, 34);
border-style: solid;
border-width: 1px;
border-color: rgb(203, 204, 211);
border-radius: 3px;
background-color: rgba(255, 255, 255, 0);
height: 32px;
}
.clear-all {
background-color: rgb(157, 157, 157);
color: rgb(255, 255, 255);
cursor: pointer;
}
.close {
cursor: pointer;
margin-left: 10px;
i {
font-size: 16px;
}
}
.close:hover {
color: $my-orange;
}
}
.catalog-on-mobile {
width: 100%;
position: absolute;
top: 71px;
left: 0;
right: 0;
z-index: 55;
height: 65px;
background-color: #f77c44;
ul {
padding: 0;
margin: 0;
list-style-type: none;
}
.outer-ul {
display: flex;
align-items: center;
&.two-li {
& > li {
width: 50% !important;
&:not(:last-of-type) {
border-right: 1px solid #fff !important;
}
}
}
&.one-li {
& > li {
width: 100% !important;
&:not(:last-of-type) {
border-right: 0 !important;
}
}
}
& > li {
font-size: 15px;
font-weight: normal;
color: rgb(255, 255, 255);
height: 65px;
background-color: rgb(247, 124, 68);
width: 33%;
background-color: $my-orange;
display: flex;
justify-content: center;
align-items: center;
&:not(:last-of-type) {
border-right: 1px solid #fff;
}
cursor: pointer;
& > i {
margin-left: 5px;
&::before {
@extend %tr02;
}
}
}
}
.inner-ul {
position: absolute;
padding-top: 5px;
padding-bottom: 5px;
width: 100%;
left: 0;
right: 0;
top: 100%;
z-index: 44;
background-color: #fff;
background-color: rgb(255, 255, 255);
box-shadow: 0px 0px 19.2px 0.8px rgba(5, 8, 9, 0.15);
max-height: calc(100vh - 131px);
// max-height: 400px;
overflow-y: auto;
opacity: 0;
visibility: hidden;
@extend %tr02;
.card-link {
&::after {
content: "\f078";
}
&.collapsed {
&::after {
content: "\f078";
}
}
}
li {
&:not(:last-of-type) {
a {
border-bottom: 1px solid rgba(34, 34, 34, 0.102);
}
}
margin: 0 15px;
a {
display: block;
padding: 12px 0;
font-size: 16px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.3;
&.active,
&:hover {
color: $my-orange;
}
}
}
}
.outer-ul > li.active {
& > i {
&:before {
content: "\f0d8";
}
}
.inner-ul {
opacity: 1;
visibility: visible;
}
}
.active + .inner-ul {
opacity: 1 !important;
visibility: visible !important;
}
}
.steps {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0;
margin: 0;
list-style-type: none;
margin-top: 30px;
margin-bottom: 30px;
&-one {
.steps-item {
&:nth-of-type(1) {
a {
border-bottom-color: $my-orange;
}
}
}
}
&-two {
.steps-item {
&:nth-of-type(1) {
a {
border-bottom-color: $my-orange;
background-color: $my-orange;
color: white;
}
}
&:nth-of-type(2) {
a {
border-bottom-color: $my-orange;
}
}
}
}
&-three {
.steps-item {
&:nth-of-type(1) {
a {
border-bottom-color: $my-orange;
background-color: $my-orange;
color: white;
}
}
&:nth-of-type(2) {
a {
border-bottom-color: $my-orange;
background-color: $my-orange;
color: white;
}
}
&:nth-of-type(3) {
a {
border-bottom-color: $my-orange;
}
}
}
}
&-item {
width: 33%;
text-align: center;
a {
height: 60px;
background-color: rgb(248, 248, 248);
display: flex;
justify-content: center;
align-items: center;
border-bottom: 3px solid transparent;
font-size: 22px;
font-weight: 600;
line-height: 1.091;
color: rgb(0, 0, 0);
@include mq("tablet", max) {
height: 45px;
font-size: 18px;
}
}
}
}
.all_sum {
span,
p {
font-size: 18px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.2;
text-align: left;
margin-bottom: 0;
}
a {
text-decoration: underline;
font-size: 14px;
font-weight: normal;
color: rgb(0, 0, 0);
text-decoration: underline;
line-height: 1.286;
}
border-radius: 20px;
background-color: rgb(248, 248, 248);
padding: 15px 20px;
margin-bottom: 75px;
}
.added-to-basket {
position: absolute;
bottom: -75px;
left: 0;
z-index: 33;
border-radius: 3px;
background-color: rgb(255, 255, 255);
box-shadow: 0px 3px 9.2px 0.8px rgba(5, 8, 9, 0.15);
height: 50px;
padding: 10px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
min-width: 200px;
opacity: 0;
visibility: hidden;
@extend %tr02;
font-size: 16px;
font-weight: normal;
color: rgb(1, 1, 1);
b {
font-weight: normal;
margin-left: 4px;
color: $my-orange;
}
&.alert-is-active {
visibility: visible;
opacity: 1;
bottom: -55px;
}
}
.back-to {
font-size: 16px;
font-weight: normal;
color: rgb(1, 1, 1);
}
.item,
.item1 {
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.lg-backdrop {
background-color: #000000bb !important;
}
.lg-on {
main,
.topbar,
.my-navbar,
.breadcrumb,
.back-to {
filter: blur(4px);
}
}
.now-no-product {
display: flex;
justify-content: flex-start;
align-items: center;
p {
font-size: 18px;
font-weight: bold;
margin-bottom: 0;
margin-right: 30px;
display: inline-block;
min-width: 250px;
padding: 15px;
border: 1px solid transparent;
font-size: 18px;
font-weight: 600;
line-height: 1;
vertical-align: middle;
text-align: center;
background-color: rgb(90, 160, 144);
border-radius: 6px;
border-color: #5aa090;
color: white;
background-image: url("../img/now-no-product.png"),
linear-gradient(to right, rgb(90, 160, 144), rgb(90, 160, 144));
background-position: center;
background-size: cover;
background-repeat: no-repeat;
box-shadow: 0px 0px 26.4px 3.6px rgba(90, 160, 144, 0.35);
}
button {
display: inline-block;
padding: 15px;
border: 1px solid transparent;
border-radius: 27.5px;
font-size: 18px;
font-weight: normal;
line-height: 1;
vertical-align: middle;
text-align: center;
text-decoration: none;
min-width: 150px;
background-color: $my-orange;
border-color: $my-orange;
@extend %tr02;
color: white;
&:hover {
color: white;
box-shadow: 0px 5px 14.25px 0.75px rgba($my-orange, 0.35);
}
}
@include mq("tablet", max) {
flex-wrap: wrap;
p {
width: 100%;
margin-right: 0;
margin-bottom: 10px;
}
button {
margin-left: auto;
margin-right: auto;
}
}
}