challenge-vtex-io-saulo-klein/styles/css/vtex.tab-layout.css

101 lines
2.7 KiB
CSS

/*
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;700&display=swap");
/* Grid breakpoints */
.container--tabLayout {
padding: 0 40px;
}
@media only screen and (min-width: 1920px) {
.container--tabLayout {
padding: 0 360px;
}
}
.container--tabLayout .listContainer {
border-bottom: 1px solid #b9b9b9;
justify-content: space-around;
}
@media only screen and (max-width: 1024px) {
.container--tabLayout .listContainer {
border-top: 1px solid #b9b9b9;
padding: 8px 0;
}
}
@media only screen and (max-width: 1024px) {
.container--tabLayout .listContainer {
flex-direction: column;
}
}
.container--tabLayout .listContainer .listItem {
margin: 0;
padding: 0;
}
@media only screen and (max-width: 1024px) {
.container--tabLayout .listContainer .listItem {
margin: 8px 0 8px;
}
}
.container--tabLayout .listContainer .listItem :global(.vtex-button) {
background-color: transparent;
border: none;
}
@media only screen and (max-width: 1024px) {
.container--tabLayout .listContainer .listItem :global(.vtex-button) {
width: 100%;
}
}
.container--tabLayout .listContainer .listItem :global(.vtex-button) :global(.vtex-button__label) {
font-weight: 400;
font-size: 18px;
line-height: 38px;
color: #bfbfbf;
text-transform: capitalize;
border: none;
padding: 0 !important;
}
@media only screen and (min-width: 1920px) {
.container--tabLayout .listContainer .listItem :global(.vtex-button) :global(.vtex-button__label) {
font-size: 24px;
}
}
@media only screen and (max-width: 1024px) {
.container--tabLayout .listContainer .listItem :global(.vtex-button) :global(.vtex-button__label) {
justify-content: flex-start;
}
}
@media only screen and (min-width: 1025px) {
.container--tabLayout .listContainer .listItemActive {
border-bottom: 2px solid #000;
}
}
@media only screen and (min-width: 1920px) {
.container--tabLayout .listContainer .listItemActive {
border-width: 3px;
}
}
.container--tabLayout .listContainer .listItemActive :global(.vtex-button) :global(.vtex-button__label) {
color: #000;
}
.container--tabLayout .contentContainer .contentItem {
display: grid;
grid-template-columns: repeat(2, 50%);
gap: 32px;
padding: 32px 32px 0;
}
@media only screen and (min-width: 1920px) {
.container--tabLayout .contentContainer .contentItem {
padding: 64px 32px 0;
}
}
@media only screen and (max-width: 1024px) {
.container--tabLayout .contentContainer .contentItem {
grid-template-columns: 100%;
padding: 16px 0 0;
gap: 16px;
}
}