- ajoute un .dockerignore. - ajoute un Dockerfile. - met à jour les dépendances. - utilise bun comme gestionnaire de paquets npm. - utilise une configuration Vite en TypeScript. - ajoute les fichiers compilés JavaScript aux fichiers pris en charge par Git.
436 lines
13 KiB
CSS
Executable file
436 lines
13 KiB
CSS
Executable file
@charset "UTF-8";
|
|
#panneau-panier {
|
|
border-right: 1px solid var(--couleur-noir);
|
|
}
|
|
#panneau-panier > div {
|
|
place-content: center;
|
|
}
|
|
#panneau-panier .panneau__grille-produits {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
}
|
|
#panneau-panier .panneau__grille-produits__produit {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-rows: 1fr;
|
|
border-bottom: 1px solid var(--couleur-noir);
|
|
}
|
|
#panneau-panier .panneau__grille-produits__produit__illustratif {
|
|
border-right: 1px solid var(--couleur-noir);
|
|
}
|
|
#panneau-panier .panneau__grille-produits__produit__illustratif picture {
|
|
overflow: hidden;
|
|
height: 100%;
|
|
}
|
|
#panneau-panier .panneau__grille-produits__produit__illustratif img {
|
|
aspect-ratio: 1;
|
|
height: auto;
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
place-content: center;
|
|
width: fit-content;
|
|
margin: auto;
|
|
padding: 0 var(--espace-xl);
|
|
font-style: italic;
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__nom-prix {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
column-gap: var(--espace-l);
|
|
justify-content: space-between;
|
|
font-size: var(--espace-l);
|
|
line-height: var(--hauteur-ligne-moitie);
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__nom-prix span {
|
|
min-width: 4rem;
|
|
font-weight: 600;
|
|
font-style: initial;
|
|
text-align: right;
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__description {
|
|
margin-bottom: var(--espace-l);
|
|
text-transform: lowercase;
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__actions {
|
|
display: grid;
|
|
grid-template-columns: 0.25fr auto 0.25fr;
|
|
grid-template-rows: 1fr 1fr;
|
|
font-weight: 500;
|
|
font-style: initial;
|
|
/* Bouton d'addition de quantité */
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__actions button:first-of-type {
|
|
grid-column: 1;
|
|
min-width: 3rem;
|
|
max-width: 3rem;
|
|
border: 1px solid var(--couleur-noir);
|
|
border-bottom: initial;
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__actions {
|
|
/*
|
|
* 1. Cache les flèches d'augmentation/diminution sur Firefox.
|
|
* 2. Cache les flèches d'augmentation/diminution sur Chrome/Edge/Safari.
|
|
*/
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__actions input[type=number] {
|
|
grid-column: 2;
|
|
width: 100%;
|
|
border: initial;
|
|
border-top: 1px solid var(--couleur-noir);
|
|
text-align: center;
|
|
appearance: textfield; /* 1 */
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__actions input[type=number]::-webkit-outer-spin-button, #panneau-panier .panneau__grille-produits .detail-produit__actions input[type=number]::-webkit-inner-spin-button {
|
|
margin: 0; /* 2 */
|
|
appearance: none; /* 2 */
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__actions {
|
|
/* Bouton de suppression de quantité */
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__actions button:nth-of-type(2) {
|
|
grid-column: 3;
|
|
min-width: 3rem;
|
|
max-width: 3rem;
|
|
border: 1px solid var(--couleur-noir);
|
|
border-bottom: initial;
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__actions {
|
|
/* Bouton de suppression du Produit du Panier */
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit__actions button:last-of-type {
|
|
grid-column: span 3;
|
|
grid-row: 2;
|
|
padding: var(--espace-xs);
|
|
border: 1px solid var(--couleur-noir);
|
|
text-transform: lowercase;
|
|
}
|
|
#panneau-panier .panneau__instructions-code-promo {
|
|
width: 100%;
|
|
padding: var(--espace-l) var(--espace-xl);
|
|
border-bottom: 1px solid var(--couleur-noir);
|
|
text-align: center;
|
|
/*
|
|
* 1. Nécessaire pour ne pas qu'un espace vertical non souhaité apparaisse.
|
|
* 2. Applique une marge entre les instructions et le code promo de notre choix.
|
|
*/
|
|
}
|
|
#panneau-panier .panneau__instructions-code-promo__instructions {
|
|
resize: vertical;
|
|
display: block; /* 1 */
|
|
width: 100%;
|
|
margin: auto; /* 1 */
|
|
margin-bottom: var(--espace-s); /* 2 */
|
|
padding: var(--espace-s);
|
|
border: 1px solid transparent;
|
|
font-size: 0.8rem;
|
|
font-weight: 450;
|
|
background: initial;
|
|
}
|
|
#panneau-panier .panneau__instructions-code-promo__code-promo {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
place-content: center;
|
|
width: fit-content;
|
|
margin: auto;
|
|
/*
|
|
* 1. Longueur minimale pour le Bouton n'ait pas à changer de taille quel que soit son texte
|
|
*/
|
|
}
|
|
#panneau-panier .panneau__instructions-code-promo__code-promo button {
|
|
min-width: 9rem; /* 1 */
|
|
padding: var(--espace-xs) var(--espace-xl);
|
|
border: 1px solid var(--couleur-noir);
|
|
border-left: initial;
|
|
text-transform: lowercase;
|
|
}
|
|
#panneau-panier .panneau__instructions-code-promo__code-promo__message {
|
|
flex-basis: 100%;
|
|
margin-top: var(--espace-m);
|
|
}
|
|
#panneau-panier .panneau__sous-totaux {
|
|
width: min(40rem, 100%);
|
|
margin: auto;
|
|
padding: var(--espace-l) var(--espace-xl);
|
|
text-align: center;
|
|
}
|
|
#panneau-panier .panneau__sous-totaux__ligne {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: space-between;
|
|
font-style: italic;
|
|
}
|
|
#panneau-panier .panneau__sous-totaux__ligne strong {
|
|
text-align: right;
|
|
text-transform: lowercase;
|
|
}
|
|
#panneau-panier .panneau__sous-totaux__ligne#sous-total-livraison p:last-of-type {
|
|
text-align: right;
|
|
}
|
|
#panneau-panier .panneau__sous-totaux__ligne#sous-total-livraison p:last-of-type span {
|
|
color: grey;
|
|
}
|
|
#panneau-panier .panneau__sous-totaux__choix-methode-livraison {
|
|
flex-flow: row wrap;
|
|
gap: var(--espace-xs) var(--espace-m);
|
|
justify-content: center;
|
|
font-size: 0.9rem;
|
|
letter-spacing: inherit;
|
|
}
|
|
#panneau-panier .panneau__sous-totaux__choix-methode-livraison > label:first-of-type {
|
|
cursor: revert;
|
|
flex-basis: 100%;
|
|
margin-bottom: var(--espace-xs);
|
|
color: grey;
|
|
text-align: center;
|
|
text-transform: lowercase;
|
|
}
|
|
#panneau-panier .panneau__sous-totaux__choix-methode-livraison div {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
column-gap: 1ch;
|
|
place-items: center;
|
|
}
|
|
#panneau-panier .panneau__sous-totaux__conditions-livraison {
|
|
margin-top: var(--espace-l);
|
|
font-size: 0.8rem;
|
|
font-weight: 450;
|
|
color: grey;
|
|
letter-spacing: var(--espacement-inter-lettres-etendu-s);
|
|
}
|
|
#panneau-panier .panneau__pied-de-page {
|
|
align-content: center;
|
|
padding: var(--espace-l) 0;
|
|
font-size: 1.25rem;
|
|
font-style: italic;
|
|
color: var(--couleur-blanc);
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
background: var(--couleur-noir);
|
|
}
|
|
#panneau-panier .panneau__pied-de-page span {
|
|
margin-left: var(--espace-l);
|
|
font-style: initial;
|
|
}
|
|
@media (width <= 500px) {
|
|
#panneau-panier .panneau__grille-produits__produit__illustratif img {
|
|
height: 100%;
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit {
|
|
padding: var(--espace-l);
|
|
}
|
|
#panneau-panier .panneau__grille-produits .detail-produit .detail-produit__nom-prix {
|
|
column-gap: var(--espace-l);
|
|
}
|
|
#panneau-panier .panneau__instructions-code-promo {
|
|
padding: var(--espace-xl) var(--espace-l);
|
|
}
|
|
#panneau-panier .panneau__instructions-code-promo .panneau__instructions-code-promo__code-promo input, #panneau-panier .panneau__instructions-code-promo .panneau__instructions-code-promo__code-promo button {
|
|
flex: 1;
|
|
}
|
|
#panneau-panier .panneau__sous-totaux {
|
|
padding: var(--espace-xl) var(--espace-l);
|
|
}
|
|
}
|
|
|
|
#panneau-informations-client {
|
|
position: sticky;
|
|
top: var(--en-tete-hauteur);
|
|
right: 0;
|
|
height: fit-content;
|
|
}
|
|
#panneau-informations-client > * {
|
|
align-content: center;
|
|
text-align: center;
|
|
}
|
|
#panneau-informations-client .panneau__paypal-express {
|
|
--hauteur-images-bouton: 18px;
|
|
--hauteur-bouton: calc(var(--hauteur-images-bouton) * 2);
|
|
--longueur-bouton: 250px;
|
|
--espacement-inter-images: var(--espace-xs);
|
|
padding: var(--espace-xl);
|
|
border-bottom: 1px solid var(--couleur-noir);
|
|
}
|
|
#panneau-informations-client .panneau__paypal-express p {
|
|
margin-bottom: var(--espace-s);
|
|
font-style: italic;
|
|
}
|
|
#panneau-informations-client .panneau__paypal-express button {
|
|
display: flex;
|
|
column-gap: var(--espacement-inter-images);
|
|
place-content: center;
|
|
place-items: center;
|
|
width: var(--longueur-bouton);
|
|
height: var(--hauteur-bouton);
|
|
margin: auto;
|
|
background: var(--couleur-noir);
|
|
}
|
|
#panneau-informations-client .panneau__paypal-express button img {
|
|
height: var(--hauteur-images-bouton);
|
|
background: inherit;
|
|
}
|
|
#panneau-informations-client .panneau__paypal-express button img:first-of-type {
|
|
margin-top: -1px;
|
|
}
|
|
#panneau-informations-client .panneau__formulaires {
|
|
padding: var(--espace-xl) 0;
|
|
}
|
|
#panneau-informations-client .panneau__formulaires .panneau__formulaires__separation-adresses {
|
|
position: relative;
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
column-gap: 1ch;
|
|
place-items: center;
|
|
width: fit-content;
|
|
margin: auto;
|
|
margin-bottom: var(--espace-m);
|
|
font-size: 0.8rem;
|
|
font-style: italic;
|
|
}
|
|
#panneau-informations-client .panneau__formulaires .panneau__formulaires__separation-adresses label {
|
|
text-transform: lowercase;
|
|
}
|
|
#panneau-informations-client .panneau__formulaires .panneau__formulaires__paiement .formulaire__paiement__attente-renseignement-formulaires {
|
|
align-content: center;
|
|
width: 100%;
|
|
padding: 0;
|
|
font-size: 0.8rem;
|
|
font-weight: 450;
|
|
color: grey;
|
|
text-align: center;
|
|
}
|
|
#panneau-informations-client .panneau__formulaires .panneau__formulaires__paiement .formulaire__paiement__attente-renseignement-formulaires p + p {
|
|
margin-top: 1lh;
|
|
}
|
|
#panneau-informations-client .panneau__formulaires .panneau__formulaires__message {
|
|
margin: var(--espace-xl) 0;
|
|
font-weight: 500;
|
|
font-style: italic;
|
|
}
|
|
#panneau-informations-client .formulaire {
|
|
margin: auto;
|
|
padding: 0 var(--espace-xl);
|
|
}
|
|
#panneau-informations-client .formulaire + .formulaire {
|
|
margin-top: var(--espace-xl);
|
|
}
|
|
#panneau-informations-client .formulaire .formulaire__titre {
|
|
margin-bottom: var(--espace-m);
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
font-style: italic;
|
|
letter-spacing: 1px;
|
|
}
|
|
#panneau-informations-client .formulaire .formulaire__champs {
|
|
width: fit-content;
|
|
margin: auto;
|
|
text-align: left;
|
|
}
|
|
#panneau-informations-client .formulaire .formulaire__champs .formulaire__champs__champ {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
column-gap: var(--espace-xl);
|
|
place-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
#panneau-informations-client .formulaire .formulaire__champs .formulaire__champs__champ + .formulaire__champs__champ {
|
|
margin-top: var(--espace-l);
|
|
}
|
|
#panneau-informations-client .formulaire label {
|
|
width: min(7rem, 100%);
|
|
font-weight: 400;
|
|
text-transform: lowercase;
|
|
}
|
|
#panneau-informations-client .formulaire label:has(+ :is(input:required, select:required)) {
|
|
font-weight: 600;
|
|
}
|
|
#panneau-informations-client .formulaire input, #panneau-informations-client .formulaire select {
|
|
width: min(15rem, 100%);
|
|
}
|
|
#panneau-informations-client .panneau__pied-de-page {
|
|
align-content: center;
|
|
padding: var(--espace-l) 0;
|
|
font-size: 1.25rem;
|
|
font-style: italic;
|
|
color: var(--couleur-blanc);
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
background: var(--couleur-noir);
|
|
}
|
|
#panneau-informations-client .panneau__pied-de-page button {
|
|
font: inherit;
|
|
color: inherit;
|
|
text-transform: inherit;
|
|
}
|
|
@media (width <= 500px) {
|
|
#panneau-informations-client .panneau__formulaires {
|
|
padding: var(--espace-xl) 0;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* 1. Applique une marge supérieure égale à la hauteur de l'en-tête pour qu'elle puisse s'afficher
|
|
* correctement.
|
|
*/
|
|
#page-panier {
|
|
/* Dimensions */
|
|
--menu-section-hauteur: var(--menu-categories-produits-hauteur);
|
|
/* Marges */
|
|
--menu-section-marges-bloc-debut: var(--en-tete-hauteur); /* 1 */
|
|
position: relative;
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
min-height: calc(100svh - var(--en-tete-hauteur) - var(--pied-de-page-hauteur));
|
|
margin-top: var(--menu-section-marges-bloc-debut);
|
|
}
|
|
#page-panier .panneau {
|
|
flex: 1 1 30rem;
|
|
border-top: 1px solid var(--couleur-noir);
|
|
border-bottom: 1px solid var(--couleur-noir);
|
|
}
|
|
#page-panier .panneau__en-tete {
|
|
position: sticky;
|
|
z-index: 2;
|
|
top: var(--menu-section-marges-bloc-debut);
|
|
display: block;
|
|
align-content: center;
|
|
min-height: var(--menu-categories-produits-hauteur);
|
|
max-height: var(--menu-categories-produits-hauteur);
|
|
color: var(--couleur-gris);
|
|
text-align: center;
|
|
background: var(--couleur-noir);
|
|
}
|
|
#page-panier .panneau__en-tete h2 {
|
|
font-weight: 450;
|
|
font-style: italic;
|
|
color: var(--couleur-gris);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
background: var(--couleur-noir);
|
|
}
|
|
#page-panier .panier-vide {
|
|
display: none;
|
|
flex-basis: 100%;
|
|
align-content: center;
|
|
min-height: calc(100svh - var(--en-tete-hauteur) - var(--pied-de-page-hauteur));
|
|
text-align: center;
|
|
}
|
|
#page-panier .panier-vide p {
|
|
font-size: 1.25rem;
|
|
}
|
|
#page-panier .panier-vide a {
|
|
display: inline-block;
|
|
margin-top: var(--espace-m);
|
|
font-size: initial;
|
|
}
|
|
#page-panier[data-contient-articles=false] .panneau {
|
|
display: none;
|
|
}
|
|
#page-panier[data-contient-articles=false] .panier-vide {
|
|
display: block;
|
|
}
|
|
|
|
/*# sourceMappingURL=page-panier.css.map */
|