challenge-vtex-io-bernardo-.../styles/sass/pages/product/vtexComponents/vtex.store-components.scss

494 lines
10 KiB
SCSS

.container {
padding:16px 360px;
margin: 0;
max-width: 100%;
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
padding: 16px 40px;
}
}
.swiperCaretNext, .swiperCaretPrev {
display: none;
}
.carouselGaleryCursor {
cursor: initial;
}
.productImageTag--main, .videoContainer {
object-fit: unset !important;
max-height: 904px !important;
cursor: url(https://agenciamagma.vtexassets.com/_v/public/assets/v1/published/vtex.store-components@3.164.0/public/react/91618bbaeb77d5f5b0173112a38a893e.svg) 8 8, default;
@media #{$mq-desktop} {
max-height: 664px !important;
}
@media #{$mq-tablet} {
max-height: 944px !important;
}
@media #{$mq-mobile} {
max-height: 296px !important;
}
}
.videoContainer {
padding: 50% !important;
}
.carouselGaleryThumbs {
margin-top: 0;
@media #{$mq-mobile}, #{$mq-tablet} {
display: block !important;
}
.productImagesThumb {
width: 90px !important;
height: 90px !important;
margin: 16px 16px 0 0;
border-radius: 8px;
max-width: calc(100% - 16px);
.figure, .thumbImg{
width: 100%;
height: 100%;
border-radius: 8px;
}
}
}
.productNameContainer--quickview {
display: flex;
justify-content: end;
align-items: center;
font-family: $font-family;
padding: 0;
// margin: 0 0 8px 0;
font-style: normal;
font-weight: 300;
font-size: 20px;
line-height: 34px;
color: $color-gray7;
@media #{$mq-tablet}, #{$mq-mobile} {
justify-content: flex-start;
// margin-top: 32px;
}
}
.skuSelectorContainer--sku-product {
display: flex;
flex-direction: column-reverse;
margin-bottom: 16px;
.skuSelectorSubcontainer--tamanho {
.skuSelectorNameContainer {
margin: 0;
.skuSelectorTextContainer {
margin-bottom: 8px;
.skuSelectorName {
font-size: 0;
&::after {
content: "OUTROS TAMANHOS";
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-gray6;
}
}
}
.skuSelectorOptionsList {
column-gap: 16px;
margin: 0;
.skuSelectorItem {
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #989898;
box-sizing: border-box;
border-radius: 50%;
width: 40px;
height: 40px;
margin: 0;
padding: 0;
.frameAround--sku-product {
border-color: $color-black0;
border-width: 2px;
border-radius: 24px;
top: 0;
bottom: 0;
right: 0;
left: 0;
z-index: 5;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
}
.skuSelectorInternalBox {
border: none;
.diagonalCross--sku-product {
transform: rotate(45deg);
border-radius: 24px;
background: #D5D5D5;
width: 1px;
height: 100%;
margin: 0 auto;
}
}
.skuSelectorItemTextValue {
padding: 0;
margin: 0 auto;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-gray8;
}
}
.skuSelectorItem--selected {
.skuSelectorItemTextValue {
color: $color-black0;
}
}
}
}
}
.skuSelectorSubcontainer--cor {
.skuSelectorNameContainer {
margin: 0;
.skuSelectorSelectorImageValue {
display: none;
}
.skuSelectorTextContainer {
margin-bottom: 8px;
.skuSelectorName {
font-size: 0;
&::after {
content: "OUTRAS CORES";
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-gray6;
}
}
}
.skuSelectorOptionsList {
column-gap: 16px;
margin: 0;
.skuSelectorItem {
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #989898;
border-radius: 24px;
width: 48px;
height: 48px;
margin: 0;
padding: 0;
.frameAround--sku-product {
border-color: $color-black0;
border-width: 2px;
border-radius: 24px;
width: 48px;
height: 48px;
top: 0;
bottom: 0;
right: 0;
left: 0;
z-index: 5;
}
.skuSelectorInternalBox {
border: none;
.diagonalCross--sku-product {
transform: rotate(45deg);
border-radius: 24px;
background: #D5D5D5;
width: 1px;
height: 100%;
margin: 0 auto;
}
.valueWrapper--unavailable {
border: 1px solid #989898;
border-radius: 24px;
.skuSelectorItemImageValue {
height: 48px;
width: 48px;
}
}
}
}
.valueWrapper--sku-product {
height: 48px;
width: 48px;
.skuSelectorItemImageValue {
border-radius: 24px;
padding: 0;
}
}
.skuSelectorItem--selected {
.skuSelectorItemTextValue {
color: $color-black0;
}
}
}
}
}
}
.shippingContainer {
display: flex;
align-items: flex-end;
width: 409px;
position: relative;
@media #{$mq-mobile}{
width: 296px;
}
:global(.vtex-input__label) {
font-size: 0;
margin-bottom: 8px;
&::after {
content: "CALCULAR FRETE:";
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-gray6;
}
}
:global(.vtex-address-form__postalCode){
padding: 0;
:global(.vtex-input__error){
position: absolute;
}
}
:global(.vtex-input-prefix__group) {
width: 250px;
height: 49px;
border: none;
border-radius: 0;
}
:global(.vtex-address-form-4-x-input){
width: 250px;
height: 49px;
padding: 16px;
border: 1px solid #CCC;
border-radius: 0;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
color: #AFAFAF;
@media (max-width:360) and (min-width: 280px) {
width: 100px;
}
}
:global(.vtex-input__suffix) {
display: none;
}
:global(.vtex-button) {
background-color: $color-black0;
border: none;
border-radius: 0;
width: 49px;
height: 49px;
}
:global(.vtex-button__label){
font-size: 0;
&::after{
content: ("OK");
font-family: $font-family;
font-style: normal;
font-weight: 600;
font-size: 14px;
line-height: 19px;
color: $color-white;
}
}
:global(.vtex-address-form__postalCode-forgottenURL) {
position: absolute;
// width: 100%;
left: 312px;
bottom: 18px;
// transform: translate(0, -50%);
padding: 0;
@media #{$mq-mobile}{
left: 200px;
bottom: -24px;
}
:last-child{
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
text-decoration-line: underline;
color: $color-black0;
padding: 0;
margin: 0;
}
:global(.vtex__icon-external-link) {
display: none;
}
}
}
.shippingTable {
border: none;
padding: 0;
margin: 16px 0 0;
width: 326px;
@media #{$mq-mobile}{
width: 100%;
margin: 32px 0 0;
}
.shippingTableHead {
display: block;
.shippingTableRow {
display: grid;
grid-template-columns: repeat(3, 33.3%);
grid-template-areas: "entrega frete prazo";
@media #{$mq-mobile}{
grid-template-columns: 30% 18% 39%;
}
.shippingTableHeadDeliveryName,
.shippingTableHeadDeliveryEstimate,
.shippingTableHeadDeliveryPrice {
padding: 0;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #202020;
text-transform: uppercase;
}
.shippingTableHeadDeliveryName {
text-align: left;
grid-area: entrega;
}
.shippingTableHeadDeliveryPrice{
text-align: center;
grid-area: frete;
font-size: 0;
&::after {
content: ("FRETE");
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #202020;
}
}
.shippingTableHeadDeliveryEstimate{
text-align: right;
grid-area: prazo;
}
}
}
.shippingTableBody {
.shippingTableRow{
display: grid;
grid-template-columns: repeat(3, 33.3%);
grid-template-areas: "entrega valor prazo";
column-gap: 32px;
margin-top: 15px;
@media #{$mq-mobile}{
grid-template-columns: 30% 18% 39%;
column-gap: 16px;
}
.shippingTableCellDeliveryName {
grid-area: entrega;
}
.shippingTableCellDeliveryEstimate {
white-space: nowrap;
grid-area: prazo;
}
.shippingTableCellDeliveryPrice {
grid-area: valor;
}
.shippingTableCell {
padding: 0;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
color: #AFAFAF;
}
.shippingTableLabel {
.shippingTableRadioBtn {
display: none;
}
}
}
}
}