improve styles and ignore claude settings
All checks were successful
Deploy / Deploy to Production (push) Successful in 7s

This commit is contained in:
isUnknown 2026-01-16 12:04:15 +01:00
parent ad699f0365
commit 0c8cc5000c
4 changed files with 167 additions and 130 deletions

View file

@ -6,7 +6,8 @@
"Bash(git commit:*)",
"Bash(find:*)",
"Bash(curl:*)",
"WebFetch(domain:snipcart.com)"
"WebFetch(domain:snipcart.com)",
"Bash(grep:*)"
]
}
}

7
.gitignore vendored
View file

@ -51,4 +51,9 @@ Icon
# Guide d'intégration (contient des informations sensibles)
# ---------------
GUIDE-INTEGRATION-MONDIAL-RELAY.md
GUIDE-INTEGRATION-MONDIAL-RELAY.md
# Claude settings
# ---------------
.claude
/.claude/*

View file

@ -524,13 +524,18 @@ main {
#site-header.is-shrinked .site-title {
width: 80px !important;
}
#site-header .header-left,
#site-header .header-right {
#site-header .header-left {
width: 90px;
display: flex;
align-items: center;
justify-content: flex-end;
}
#site-header .header-right {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 1rem;
}
#site-header .header-center {
display: flex;
flex-direction: column;
@ -553,6 +558,35 @@ main {
#site-header #toggle-lang li.is-selected {
color: var(--color-txt);
}
#site-header .header-cart-btn {
background: none;
border: none;
cursor: pointer;
font-size: 0.875rem;
text-transform: uppercase;
color: var(--color-txt);
padding: 0;
line-height: 1;
display: flex;
align-items: center;
gap: 0.25rem;
transition: opacity 0.2s;
}
#site-header .header-cart-btn:hover {
opacity: 0.7;
}
#site-header .header-cart-count {
font-weight: normal;
}
#site-header .header-cart-count:empty {
display: none;
}
#site-header .header-cart-count:not(:empty)::before {
content: "(";
}
#site-header .header-cart-count:not(:empty)::after {
content: ")";
}
#site-footer {
background-color: black;
@ -1019,13 +1053,6 @@ body.is-fullscreen {
margin-right: auto;
}
.section__product,
.store__nav {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
.store__nav {
padding-top: calc(var(--spacing) * 1);
padding-bottom: calc(var(--spacing) * 0.5);
@ -1035,11 +1062,17 @@ body.is-fullscreen {
.store__nav a {
text-decoration: none;
}
.store__nav a::before {
content: "← ";
}
.store__nav a:hover {
text-decoration: underline;
}
.store__nav a::before {
content: "← ";
@media screen and (max-width: 720px) {
.store__nav a {
padding-top: 0;
font-size: var(--fs-small);
}
}
.section__product .details ul {
@ -1048,122 +1081,7 @@ body.is-fullscreen {
.section__product .details ul li {
padding-bottom: 0.2em;
}
.product-options__list {
list-style: none;
display: flex;
gap: 2ch;
}
.product-options__list li {
position: relative;
}
.product-options__list li input[type=radio] {
position: fixed;
opacity: 0;
pointer-events: none;
}
.product-options__list li 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;
}
.product-options__list li input[type=radio]:checked + label {
border-color: var(--color-txt);
}
.product-options__list li input[type=radio]:not(:checked) + label:hover {
border-color: var(--grey-600);
background-color: var(--grey-800);
}
.product-gallery {
position: relative;
aspect-ratio: 4/3;
}
.product-gallery .swiper-slide {
width: 100%;
}
.product-gallery .swiper-slide figure {
aspect-ratio: 4/3;
width: 100%;
height: 100%;
}
.product-gallery .swiper-slide figure img {
width: 100%;
height: 100%;
-o-object-fit: contain;
object-fit: contain;
}
.product-gallery .swiper-button-prev,
.product-gallery .swiper-button-next {
color: var(--color-txt);
width: 20px;
height: 20px;
}
.product-gallery .swiper-button-prev:after,
.product-gallery .swiper-button-next:after {
font-size: 20px;
font-weight: bold;
}
.product-gallery .swiper-button-prev:hover,
.product-gallery .swiper-button-next:hover {
opacity: 0.7;
}
.product-gallery .swiper-pagination {
position: relative;
margin-top: calc(var(--spacing) * 0.5);
bottom: 0;
}
.product-gallery .swiper-pagination .swiper-pagination-bullet {
width: 8px;
height: 8px;
background: var(--grey-600);
opacity: 0.5;
transition: opacity 0.3s;
}
.product-gallery .swiper-pagination .swiper-pagination-bullet:hover {
opacity: 0.7;
}
.product-gallery .swiper-pagination .swiper-pagination-bullet-active {
background: var(--color-txt);
opacity: 1;
}
.hero {
margin-bottom: calc(var(--spacing) * 1);
padding: calc(var(--spacing) * 0.5) 0;
border-top: var(--border-light);
border-bottom: var(--border-light);
}
.hero .p__baseline-big {
margin: 0;
text-align: left;
}
.add-to-cart {
margin: 0;
border-bottom: var(--border-light);
padding: calc(var(--spacing) * 0.5) 0;
}
.product-options {
border-bottom: var(--border-light);
padding: calc(var(--spacing) * 0.25) 0;
}
@media screen and (max-width: 720px) {
.store__nav a {
padding-top: 0;
font-size: var(--fs-small);
}
.section__product {
display: flex;
flex-direction: column;
@ -1202,7 +1120,7 @@ body.is-fullscreen {
}
}
@media screen and (min-width: 720px) {
.section__product {
.section__product .product-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: calc(var(--padding-body) * 2);
@ -1221,10 +1139,123 @@ body.is-fullscreen {
display: flex;
flex-direction: column;
}
}
.product-options {
border-bottom: var(--border-light);
padding: calc(var(--spacing) * 0.25) 0;
}
.product-options__list {
list-style: none;
display: flex;
gap: 2ch;
}
.product-options__list li {
position: relative;
}
.product-options__list li input[type=radio] {
position: fixed;
opacity: 0;
pointer-events: none;
}
.product-options__list li input[type=radio]:checked + label {
border-color: var(--color-txt);
}
.product-options__list li input[type=radio]:not(:checked) + label:hover {
border-color: var(--grey-600);
background-color: var(--grey-800);
}
.product-options__list li 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;
}
.product-gallery {
position: relative;
aspect-ratio: 4/3;
}
.product-gallery .swiper-slide {
width: 100%;
}
.product-gallery .swiper-slide figure {
aspect-ratio: 4/3;
width: 100%;
height: 100%;
}
.product-gallery .swiper-slide figure img {
width: 100%;
height: 100%;
-o-object-fit: contain;
object-fit: contain;
}
@media screen and (min-width: 720px) {
.product-gallery .swiper-slide figure {
width: calc(100% - 60px);
}
}
.product-gallery .swiper-button-prev,
.product-gallery .swiper-button-next {
color: var(--color-txt);
width: 20px;
height: 20px;
}
.product-gallery .swiper-button-prev:after,
.product-gallery .swiper-button-next:after {
font-size: 20px;
font-weight: bold;
}
.product-gallery .swiper-button-prev:hover,
.product-gallery .swiper-button-next:hover {
opacity: 0.7;
}
.product-gallery .swiper-pagination {
position: relative;
margin-top: calc(var(--spacing) * 0.5);
bottom: 0;
}
.product-gallery .swiper-pagination .swiper-pagination-bullet {
width: 8px;
height: 8px;
background: var(--grey-600);
opacity: 0.5;
transition: opacity 0.3s;
}
.product-gallery .swiper-pagination .swiper-pagination-bullet:hover {
opacity: 0.7;
}
.product-gallery .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
background: var(--color-txt);
opacity: 1;
}
.hero {
margin-bottom: calc(var(--spacing) * 1);
padding: calc(var(--spacing) * 0.5) 0;
border-top: var(--border-light);
border-bottom: var(--border-light);
}
.hero .p__baseline-big {
margin: 0;
text-align: left;
}
.add-to-cart {
margin: 0;
border-bottom: var(--border-light);
padding: calc(var(--spacing) * 0.5) 0;
}
[data-template=thanks] .thanks-page {
min-height: 60vh;
display: flex;

File diff suppressed because one or more lines are too long