challenge-vtex-io-eleonora-otz/styles/sass/pages/product/vtex.tab-layout.scss

215 lines
4.6 KiB
SCSS
Raw Normal View History

2023-02-01 01:24:50 +00:00
// Descrição do produto
2023-01-28 22:19:19 +00:00
:global(.vtex-tab-layout-0-x-container) {
padding: 0 40px;
2023-01-31 17:21:27 +00:00
margin: 0;
2023-02-02 00:49:08 +00:00
@media screen and (min-width: 1920px) {
2023-01-31 17:21:27 +00:00
margin: 6px 360px;
padding: 0;
}
2023-01-28 22:19:19 +00:00
2023-02-01 01:24:50 +00:00
// Header descrição do produto
2023-01-28 22:19:19 +00:00
.listContainer--tabList {
border-bottom: 1px solid $gray-100;
height: 43px;
justify-content: space-between;
2023-02-02 00:49:08 +00:00
padding: 0 64px;
@media screen and (min-width: 1920px) {
height: 49px;
}
@media screen and (max-width: 1024px) {
border-top: 1px solid $gray-100;
flex-direction: column;
height: fit-content;
padding: 16px 0 0 0;
margin: 0;
}
2023-01-28 22:19:19 +00:00
2023-02-01 01:24:50 +00:00
// Títulos do header da descrição do produto
2023-01-28 22:19:19 +00:00
.listItem {
2023-02-02 00:49:08 +00:00
@media screen and (max-width: 1024px) {
align-self: flex-start;
flex-direction: column;
height: fit-content;
padding: 0 0 16px;
margin: 0;
}
2023-01-28 22:19:19 +00:00
:global(.vtex-button) {
2023-02-02 00:49:08 +00:00
border: none;
@media screen and (max-width: 1024px) {
width: 100%;
}
2023-01-28 22:19:19 +00:00
&:hover {
background-color: transparent;
2023-01-28 22:19:19 +00:00
}
}
:global(.vtex-button__label) {
font-weight: 400;
font-size: 18px;
line-height: 18px;
color: $gray-100;
text-transform: capitalize;
2023-01-30 15:09:57 +00:00
padding: 0.25em 10px 0.32em;
2023-01-28 22:19:19 +00:00
&:hover {
color: $gray-500;
}
2023-02-02 00:49:08 +00:00
@media screen and (min-width: 1920px) {
font-size: 24px;
line-height: 24px;
}
@media screen and (max-width: 1024px) {
text-align: left;
flex-direction: column;
height: fit-content;
padding: 0 !important;
font-size: 18px;
line-height: 18px;
2023-01-28 22:19:19 +00:00
}
}
}
2023-02-01 01:24:50 +00:00
// Título ativo do header da descrição do produto
2023-01-28 22:19:19 +00:00
.listItemActive {
2023-02-02 00:49:08 +00:00
@media screen and (max-width: 1024px) {
align-self: flex-start;
flex-direction: column;
height: fit-content;
padding: 0 0 16px;
margin: 0;
}
2023-01-28 22:19:19 +00:00
:global(.vtex-button) {
2023-02-02 00:49:08 +00:00
background-color: transparent;
width: 114px;
2023-01-28 22:19:19 +00:00
border: none;
2023-02-02 00:49:08 +00:00
@media screen and (max-width: 1024px) {
width: 100%;
}
2023-01-28 22:19:19 +00:00
}
2023-02-02 00:49:08 +00:00
2023-01-28 22:19:19 +00:00
:global(.vtex-button__label) {
color: $black;
2023-02-02 00:49:08 +00:00
background-color: transparent;
2023-01-28 22:19:19 +00:00
border-bottom: 2px solid $black;
2023-02-02 00:49:08 +00:00
padding: 0;
2023-01-28 22:19:19 +00:00
&:hover {
color: $black;
}
2023-02-02 00:49:08 +00:00
@media screen and (max-width: 1024px) {
flex-direction: column;
text-align: left;
height: fit-content;
padding: 0;
}
@media screen and (max-width: 1024px) {
border: none;
2023-01-28 22:19:19 +00:00
}
}
}
}
2023-02-01 01:24:50 +00:00
// Container do conteúdo
2023-01-28 22:19:19 +00:00
:global(.vtex-tab-layout-0-x-contentContainer) {
.contentItem {
display: flex;
flex-direction: row;
gap: 32px;
align-items: flex-start;
padding: 32px 32px 16px;
2023-02-02 00:49:08 +00:00
@media (max-width: 1024px) {
flex-direction: column;
gap: 16px;
padding: 16px 0 0 0;
border-bottom: 1px solid $gray-100;
}
// Imagem da descrição do produto
2023-01-31 17:21:27 +00:00
.productImagesContainer {
width: 50%;
max-width: 50%;
}
:global(.vtex-store-components-3-x-productImageTag) {
width: 100%;
max-width: 100%;
2023-01-31 00:37:44 +00:00
display: block;
// max-width: 872px;
2023-02-02 00:49:08 +00:00
// @media screen and (max-width: 1024px) {
// width: 100% !important;
// max-width: 100%;
// }
}
// Conteúdo de texto da descrição do produto
:global(.vtex-rich-text-0-x-container--description-rich-text) {
max-width: 50%;
2023-02-02 00:49:08 +00:00
@media screen and (max-width: 1024px) {
max-width: 100%;
}
// Título da descrição do produto
2023-02-01 01:24:50 +00:00
:global(.vtex-rich-text-0-x-heading) {
font-weight: 400;
font-size: 24px;
line-height: 32px;
color: $gray-600;
margin-top: 0;
@media screen and (min-width: 1920px) {
font-size: 32px;
line-height: 32px;
}
@media screen and (max-width: 1024px) {
font-size: 20px;
line-height: 32px;
}
}
2023-01-28 22:19:19 +00:00
// Texto descrição do produto
2023-02-01 01:24:50 +00:00
:global(.vtex-rich-text-0-x-paragraph) {
font-weight: 400;
font-size: 16px;
line-height: 22px;
color: $gray-500;
@media screen and (min-width: 1920px) {
font-size: 18px;
line-height: 25px;
}
@media screen and (max-width: 1024px) {
font-size: 14px;
line-height: 19px;
}
}
2023-01-28 22:19:19 +00:00
}
}
}
}