challenge-vtex-io-bernardo-.../styles/sass/pages/product/vtex.flex-layout.scss

200 lines
3.4 KiB
SCSS

.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 0.5rem;
}
@media screen and (min-width: 40em) {
.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 1rem;
}
}
@media screen and (min-width: 80rem) {
.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 0.25rem;
}
}
.flexRowContent--menu-link {
background-color: #03044e;
color: #fff;
}
.flexRowContent--main-header {
background-color: #f0f0f0;
}
.flexRowContent--main-header-mobile {
align-items: center;
padding: 0.625rem 0.5rem;
background-color: #f0f0f0;
}
.flexRowContent--menu-link :global(.vtex-menu-2-x-styledLink) {
color: #ffffff;
font-size: 14px;
}
.flexRowContent--main-header :global(.vtex-menu-2-x-styledLink) {
color: #727273;
font-size: 14px;
}
.flexRow--deals {
background-color: #0F3E99;
padding: 14px 0px;
}
.flexRow--deals .stretchChildrenWidth {
align-items: center;
}
.flexRow--deals .flexCol {
align-items: center;
margin-bottom: 5px;
padding-top: 5px;
}
.flexCol--filterCol {
max-width: 500px;
min-width: 230px;
}
.flexCol--productCountCol {
align-items: flex-start;
}
.flexCol--orderByCol {
align-items: flex-end;
}
.flexCol--orderByMobileCol {
width: 42%;
}
.flexCol--filterMobileCol {
width: 38%;
}
.flexRow--quickviewMainRow {
display: flex;
max-height: 100%;
}
.flexColChild--quickviewDetails:first-child {
overflow-y: auto;
height: 66% !important;
overflow-x: hidden;
}
.flexColChild--quickviewDetails:last-child {
height: 34% !important;
}
.flexRow--addToCartRow {
padding-bottom: 1rem;
}
.flexRowContent--product__image {
padding: 0;
margin: 0;
@media #{$mq-tablet}, #{$mq-mobile} {
flex-direction: column;
}
.stretchChildrenWidth {
&:first-child {
padding-right: 16px;
margin-right: 16px;
}
@media #{$mq-tablet}, #{$mq-mobile}{
width: 100% !important;
padding-right: 0;
}
}
}
.flexRow--product__name, .flexRowContent--product__name {
height: 34px;
}
.flexRowContent--product__name .stretchChildrenWidth {
width: 100% !important;
height: 34px;
padding: 0 !important;
margin: 0 0 8px 0 !important;
}
.flexRow--quantityButton {
display: flex;
align-items: center;
column-gap: 10px;
height: 49px;
@media #{$mq-mobile} {
flex-direction: column !important;
align-items: flex-start !important;
row-gap: 10px;
height: auto;
}
.flexRowContent--quantityButton .stretchChildrenWidth{
&:first-child {
width: 128px !important;
padding: 0;
margin: 0 10px 0 0;
}
width: 100% !important;
}
.flexRow--buy-button .flexRowContent--buy-button{
.stretchChildrenWidth {
width: 100% !important;
padding: 0;
margin: 0;
height: 49px;
:global(.vtex-button) {
background: $color-black0;
border-radius: 0;
border: none;
}
:global(.vtex-add-to-cart-button-0-x-buttonText) {
font-size: 0;
&::after {
content: "ADICIONAR À SACOLA";
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 25px;
color: $color-white;
}
}
}
}
}
.flexRow--cep {
margin: 16px 0;
width: 409px;
@media #{$mq-mobile} {
width: 100%;
}
.flexRowContent--cep {
.stretchChildrenWidth {
padding: 0;
margin: 0;
}
}
}