169 lines
2.8 KiB
SCSS
169 lines
2.8 KiB
SCSS
|
|
.section__product,
|
||
|
|
.store__nav {
|
||
|
|
max-width: 1000px;
|
||
|
|
margin-left: auto;
|
||
|
|
margin-right: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.store__nav {
|
||
|
|
padding-top: calc(var(--spacing) * 1);
|
||
|
|
|
||
|
|
a {
|
||
|
|
text-decoration: none;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
text-decoration: underline;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
a::before {
|
||
|
|
content: '← ';
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.section__product {
|
||
|
|
figure {
|
||
|
|
aspect-ratio: 1/1;
|
||
|
|
|
||
|
|
img {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
object-fit: contain;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
#list-size {
|
||
|
|
list-style: none;
|
||
|
|
display: flex;
|
||
|
|
margin-top: calc(var(--spacing) * 0.5);
|
||
|
|
margin-bottom: calc(var(--spacing) * 0.5);
|
||
|
|
gap: 2ch;
|
||
|
|
|
||
|
|
li {
|
||
|
|
position: relative;
|
||
|
|
|
||
|
|
input[type='radio'] {
|
||
|
|
position: fixed;
|
||
|
|
opacity: 0;
|
||
|
|
pointer-events: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
label {
|
||
|
|
font-family: var(--title);
|
||
|
|
font-size: var(--fs-normal);
|
||
|
|
height: 4ch;
|
||
|
|
width: 4ch;
|
||
|
|
border-radius: 50%;
|
||
|
|
border: var(--border);
|
||
|
|
border-color: transparent;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
padding-top: 0px;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
input[type='radio']:checked + label {
|
||
|
|
border-color: var(--color-txt);
|
||
|
|
}
|
||
|
|
|
||
|
|
input[type='radio']:not(:checked) + label:hover {
|
||
|
|
border-color: var(--grey-600);
|
||
|
|
background-color: var(--grey-800);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.hero {
|
||
|
|
margin-bottom: calc(var(--spacing) * 1);
|
||
|
|
padding-top: calc(var(--spacing) * 0.5);
|
||
|
|
border-top: var(--border-light);
|
||
|
|
|
||
|
|
.p__baseline-big {
|
||
|
|
margin: 0;
|
||
|
|
text-align: left;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.add-to-cart,
|
||
|
|
#list-size {
|
||
|
|
margin: 0;
|
||
|
|
border-bottom: var(--border-light);
|
||
|
|
padding: calc(var(--spacing) * 0.5) 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media #{$small} {
|
||
|
|
.store__nav a {
|
||
|
|
padding-top: 0;
|
||
|
|
font-size: var(--fs-small);
|
||
|
|
}
|
||
|
|
|
||
|
|
.section__product {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
|
||
|
|
.col-left {
|
||
|
|
display: contents;
|
||
|
|
}
|
||
|
|
|
||
|
|
.hero {
|
||
|
|
margin-top: calc(var(--spacing) * 0.5);
|
||
|
|
order: 1;
|
||
|
|
}
|
||
|
|
figure {
|
||
|
|
order: 2;
|
||
|
|
margin-bottom: calc(var(--spacing) * 1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.details {
|
||
|
|
order: 3;
|
||
|
|
margin-bottom: calc(var(--spacing) * 1.5);
|
||
|
|
}
|
||
|
|
|
||
|
|
.size {
|
||
|
|
border-top: var(--border-light);
|
||
|
|
order: 4;
|
||
|
|
}
|
||
|
|
|
||
|
|
.add-to-cart {
|
||
|
|
order: 5;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media #{$small-up} {
|
||
|
|
.section__product {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 50% 50%;
|
||
|
|
aspect-ratio: 2/1;
|
||
|
|
|
||
|
|
margin-top: calc(var(--spacing) * 0.5);
|
||
|
|
position: relative;
|
||
|
|
|
||
|
|
.col-left {
|
||
|
|
padding-right: var(--padding-body);
|
||
|
|
}
|
||
|
|
|
||
|
|
.details {
|
||
|
|
margin-bottom: calc(var(--spacing) * 3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.add-to-cart,
|
||
|
|
#list-size {
|
||
|
|
width: calc(50% - var(--padding-body));
|
||
|
|
}
|
||
|
|
|
||
|
|
.add-to-cart {
|
||
|
|
position: absolute;
|
||
|
|
bottom: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
#list-size {
|
||
|
|
position: absolute;
|
||
|
|
bottom: calc(var(--spacing) * 2);
|
||
|
|
border-top: var(--border-light);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|