challenge-vtex-io-saulo-klein/styles/sass/pages/product/vtex.store-components.scss

452 lines
9.1 KiB
SCSS

.productDescriptionContainer {
.productDescriptionTitle {
font-weight: 400;
font-size: 24px;
line-height: 32px;
color: $color-gray7;
margin: 0 0 8px;
@include mq(lg, max) {
font-size: 20px;
}
}
.productDescriptionText {
font-weight: 400;
font-size: 16px;
line-height: 22px;
color: $color-gray6;
@include mq(lg, max) {
font-size: 14px;
line-height: 19px;
}
}
}
.productImageTag--productImage2--main {
max-height: auto !important;
object-fit: fill !important;
}
.container {
padding: 0;
.carouselContainer {
display: flex;
flex-direction: column-reverse;
.carouselGaleryThumbs {
position: static;
margin: 16px 0 0;
}
.carouselThumbBorder {
height: fit-content;
}
}
.productImagesGallerySlide {
@include mq(lg, max) {
width: 100% !important;
}
}
.productImagesThumb {
max-height: 90px !important;
margin: 0 16px 0 0;
width: fit-content !important;
.figure,
.figure .thumbImg {
max-height: 90px;
max-width: 90px;
min-height: 90px;
object-fit: fill;
border-radius: 8px;
}
}
.productImageTag--main {
object-fit: fill !important;
max-width: 664px;
min-height: 664px;
@include mq(lg, max) {
min-height: 994px;
max-width: auto;
}
@include mq(md, max) {
min-height: auto;
}
}
.productNameContainer {
text-align: right;
@include mq(lg, max) {
text-align: left;
}
.productBrand--quickview {
font-weight: 300;
font-size: 20px;
line-height: 34px;
color: $color-gray7;
}
}
.skuSelectorContainer {
display: flex;
flex-direction: column-reverse;
.skuSelectorSubcontainer {
margin: 0;
margin: 16px 0 10px;
.skuSelectorTextContainer {
margin: 0 0 8px 0;
.skuSelectorName {
font-size: 0;
&::before {
content: "OUTROS TAMANHOS:";
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-gray6;
}
}
}
.skuSelectorOptionsList {
margin: 0;
row-gap: 16px;
.skuSelectorItem {
margin: 0 16px 0 0;
.frameAround {
display: none;
}
.skuSelectorInternalBox {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid $color-gray9;
.valueWrapper {
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-gray15;
}
.diagonalCross {
border-radius: 50%;
background-image: linear-gradient(
to top left,
transparent 44%,
$color-gray11,
transparent 52%
);
}
}
&--selected .skuSelectorInternalBox {
border: 2px solid $color-black2;
.valueWrapper {
color: $color-black2;
}
}
}
}
.skuSelectorNameContainer {
margin: 0;
}
&:first-child {
margin: 0 0 16px;
.skuSelectorTextContainer {
.skuSelectorName::before {
content: "OUTRAS CORES:";
}
.skuSelectorSelectorImageValue,
.skuSelectorNameSeparator {
display: none;
}
}
.skuSelectorOptionsList {
margin: 0;
}
}
}
}
.subscriberContainer {
margin: 24px 0 0;
:global(.vtex-store-components-3-x-title) {
font-size: 0;
margin: 0;
&::before {
content: "Produto indisponível";
font-weight: 700;
font-size: 14px;
line-height: 19px;
color: $color-gray12;
}
}
:global(.vtex-store-components-3-x-subscribeLabel) {
font-size: 0;
&::before {
content: "Deseja saber quando estiver disponível?";
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-gray12;
}
}
:global(.vtex-store-components-3-x-form) {
margin: 0;
:global(.vtex-store-components-3-x-content) {
display: grid;
grid-template-columns: repeat(2, 1fr);
column-gap: 10px;
row-gap: 15px;
margin: 16px 0 0;
width: 100%;
max-width: initial;
:global(.vtex-store-components-3-x-input) {
margin: 0;
:global(.vtex-input) {
:global(.vtex-input-prefix__group) {
padding: 12px 14px;
border: 1px solid $color-gray9;
:global(.vtex-styleguide-9-x-input) {
padding: 0;
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: $color-gray9;
}
}
}
}
:global(.vtex-store-components-3-x-submit) {
margin: 0;
grid-area: 2 / 1 / 2 / 3;
:global(.vtex-button) {
padding: 12px 0;
width: 100%;
border: none;
background: $color-black2;
:global(.vtex-button__label) {
font-size: 0;
&::before {
content: "AVISE-ME";
font-weight: 600;
font-size: 18px;
line-height: 25px;
color: $color-white;
}
}
}
}
}
}
}
.shippingContainer {
display: flex;
position: relative;
padding: 27px 0 0;
@include mq(cstm, max) {
margin: 0 0 24px;
width: 100%;
}
width: 280px;
:global(.vtex-button) {
width: auto;
:global(.vtex-button__label) {
font-size: 0;
padding: 15px;
padding-top: 15px !important;
padding-bottom: 15px !important;
&::before {
content: "OK";
font-weight: 600;
font-size: 14px;
line-height: 19px;
}
}
}
:global(.vtex-address-form__postalCode) {
flex: 1;
padding: 0;
:global(.vtex-input) {
:global(.vtex-input__label) {
position: absolute;
top: 0;
left: 0;
margin: 0;
font-size: 0;
&::before {
content: "CALCULAR FRETE:";
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-gray6;
}
}
:global(.vtex-input-prefix__group) {
height: 100%;
}
:global(.vtex-input__suffix) {
display: none;
}
:global(.vtex-input__error) {
display: none;
}
}
:global(.vtex-address-form-4-x-input) {
padding: 16px;
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: $color-gray10;
&:focus::before {
display: none;
}
&::before {
content: "asdasd";
}
}
:global(.vtex-address-form__postalCode-forgottenURL) {
padding: 0;
position: absolute;
top: calc(16px + 27px);
left: calc(100% + 32px);
white-space: nowrap;
text-decoration-line: underline;
@include mq(cstm, max) {
left: auto;
top: calc(100% + 8px);
right: 0;
}
:global(.vtex__icon-external-link) {
display: none;
}
}
}
}
.shippingTable {
margin: 16px 0 0;
padding: 0;
border: none;
width: fit-content;
.shippingTableHead {
display: table-header-group;
.shippingTableRow {
text-align: left;
display: grid;
grid-template-columns: repeat(3, 1fr);
.shippingTableHeadDeliveryEstimate {
grid-area: 1 / 3 / 1 / 3;
&::before {
content: "PRAZO";
}
}
.shippingTableHeadDeliveryName::before {
content: "ENTREGA";
}
.shippingTableHeadDeliveryPrice::before {
content: "FRETE";
}
.shippingTableHeadDeliveryEstimate,
.shippingTableHeadDeliveryName,
.shippingTableHeadDeliveryPrice {
font-size: 0;
&::before {
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-black3;
}
}
}
}
.shippingTableBody {
font-weight: 400 !important;
font-size: 12px !important;
line-height: 16px;
color: $color-gray10;
.shippingTableRow {
margin: 15px 0 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: 1;
.shippingTableCell {
padding: 0;
.shippingTableRadioBtn {
display: none;
}
}
.shippingTableCellDeliveryEstimate {
grid-area: 1 / 3 / 1 / 3;
}
}
}
}
}