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

71 lines
1.8 KiB
CSS
Raw Normal View History

/*
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;
}
.container--tabLayout .listContainer {
border-bottom: 1px solid #b9b9b9;
justify-content: space-evenly;
}
@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;
}
.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: 1025px) {
.container--tabLayout .listContainer .listItemActive {
border-bottom: 2px solid #000;
}
}
.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 (max-width: 1024px) {
.container--tabLayout .contentContainer .contentItem {
grid-template-columns: 100%;
padding: 16px 0 0;
gap: 16px;
}
}