forked from M3-Academy/challenge-vtex-io
feat: Adicionado o estilo dos tamanhos e cores
This commit is contained in:
parent
f5bdaa9afa
commit
18cd2fd075
@ -123,7 +123,6 @@
|
||||
"flex-layout.row#selling-price",
|
||||
"product-installments",
|
||||
"product-paymentPix-component",
|
||||
"product-separator",
|
||||
"sku-selector",
|
||||
"product-quantity",
|
||||
"product-assembly-options",
|
||||
|
10
styles/css/vtex.add-to-cart-button.css
Normal file
10
styles/css/vtex.add-to-cart-button.css
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
0 - 600PX: Phone
|
||||
600 - 900px: Table portrait
|
||||
900 - 1200px: Tablet landscape
|
||||
[1200 - 1800] is where our nortal styles apply
|
||||
1800px + : Big desktop
|
||||
*/
|
||||
/* Media Query M3 */
|
||||
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");
|
||||
/* Grid breakpoints */
|
13
styles/css/vtex.product-quantity.css
Normal file
13
styles/css/vtex.product-quantity.css
Normal file
@ -0,0 +1,13 @@
|
||||
/*
|
||||
0 - 600PX: Phone
|
||||
600 - 900px: Table portrait
|
||||
900 - 1200px: Tablet landscape
|
||||
[1200 - 1800] is where our nortal styles apply
|
||||
1800px + : Big desktop
|
||||
*/
|
||||
/* Media Query M3 */
|
||||
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");
|
||||
/* Grid breakpoints */
|
||||
.quantitySelectorTitle {
|
||||
display: none;
|
||||
}
|
@ -34,4 +34,117 @@
|
||||
font-weight: 300;
|
||||
font-size: 20px;
|
||||
line-height: 34px;
|
||||
} /*
|
||||
.skuSelectorContainer {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
.skuSelectorSubcontainer--cor {
|
||||
.skuSelectorName {
|
||||
font-size: 0;
|
||||
&::after {
|
||||
content: "OUTRAS CORES";
|
||||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
}
|
||||
}
|
||||
.skuSelectorSelectorImageValue {
|
||||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
text-transform: uppercase;
|
||||
}/*
|
||||
.frame-around {
|
||||
border-radius: 30px;
|
||||
}
|
||||
.skuSelectorItemImageValue,
|
||||
.skuSelectorInternalBox {
|
||||
border-radius: 21px;
|
||||
}
|
||||
}
|
||||
.skuSelectorSubcontainer--tamanho {
|
||||
.skuSelectorName {
|
||||
font-size: 0;
|
||||
&::after {
|
||||
content: "OUTROS TAMANHOS:";
|
||||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
}
|
||||
}
|
||||
.frame-around {
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.skuSelectorInternalBox {
|
||||
border-radius: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
.skuSelectorContainer {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
.skuSelectorContainer .valueWrapper .skuSelectorItemTextValue {
|
||||
margin-right: 5px;
|
||||
}
|
||||
.skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorName {
|
||||
font-size: 0;
|
||||
}
|
||||
.skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorName::after {
|
||||
content: "OUTRAS CORES";
|
||||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
}
|
||||
.skuSelectorContainer .skuSelectorSubcontainer--cor .frameAround {
|
||||
border-radius: 30px;
|
||||
}
|
||||
.skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorItemImageValue,
|
||||
.skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorInternalBox {
|
||||
border-radius: 21px;
|
||||
}
|
||||
.skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorName {
|
||||
font-size: 0;
|
||||
}
|
||||
.skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorName::after {
|
||||
content: "OUTROS TAMANHOS:";
|
||||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
}
|
||||
.skuSelectorContainer .skuSelectorSubcontainer--tamanho .frameAround {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
border-radius: 30px;
|
||||
}
|
||||
.skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorInternalBox {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 30px;
|
||||
padding: 0;
|
||||
margin: auto;
|
||||
}
|
||||
.skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorItemTextValue {
|
||||
padding: 0;
|
||||
margin: auto;
|
||||
}
|
2
styles/sass/pages/product/vtex.add-to-cart-button.scss
Normal file
2
styles/sass/pages/product/vtex.add-to-cart-button.scss
Normal file
@ -0,0 +1,2 @@
|
||||
.buttonText {
|
||||
}
|
3
styles/sass/pages/product/vtex.product-quantity.scss
Normal file
3
styles/sass/pages/product/vtex.product-quantity.scss
Normal file
@ -0,0 +1,3 @@
|
||||
.quantitySelectorTitle {
|
||||
display: none;
|
||||
}
|
@ -23,4 +23,122 @@
|
||||
font-weight: 300;
|
||||
font-size: 20px;
|
||||
line-height: 34px;
|
||||
} /*
|
||||
.skuSelectorContainer {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
.skuSelectorSubcontainer--cor {
|
||||
.skuSelectorName {
|
||||
font-size: 0;
|
||||
&::after {
|
||||
content: "OUTRAS CORES";
|
||||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
}
|
||||
}
|
||||
.skuSelectorSelectorImageValue {
|
||||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
text-transform: uppercase;
|
||||
}/*
|
||||
.frame-around {
|
||||
border-radius: 30px;
|
||||
}
|
||||
.skuSelectorItemImageValue,
|
||||
.skuSelectorInternalBox {
|
||||
border-radius: 21px;
|
||||
}
|
||||
}
|
||||
.skuSelectorSubcontainer--tamanho {
|
||||
.skuSelectorName {
|
||||
font-size: 0;
|
||||
&::after {
|
||||
content: "OUTROS TAMANHOS:";
|
||||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
}
|
||||
}
|
||||
.frame-around {
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.skuSelectorInternalBox {
|
||||
border-radius: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
.skuSelectorContainer {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
.valueWrapper .skuSelectorItemTextValue {
|
||||
margin-right: 5px;
|
||||
}
|
||||
.skuSelectorSubcontainer--cor {
|
||||
.skuSelectorName {
|
||||
font-size: 0;
|
||||
&::after {
|
||||
content: "OUTRAS CORES";
|
||||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
}
|
||||
}
|
||||
.frameAround {
|
||||
border-radius: 30px;
|
||||
}
|
||||
.skuSelectorItemImageValue,
|
||||
.skuSelectorInternalBox {
|
||||
border-radius: 21px;
|
||||
}
|
||||
}
|
||||
.skuSelectorSubcontainer--tamanho {
|
||||
.skuSelectorName {
|
||||
font-size: 0;
|
||||
&::after {
|
||||
content: "OUTROS TAMANHOS:";
|
||||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 19px;
|
||||
color: #929292;
|
||||
}
|
||||
}
|
||||
.frameAround {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.skuSelectorInternalBox {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 30px;
|
||||
padding: 0;
|
||||
margin: auto;
|
||||
}
|
||||
.skuSelectorItemTextValue {
|
||||
padding: 0;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user