Remplace Tailwind par une feuille de style classique
style/main.css est désormais servi tel quel par cargo-leptos (style-file) : remise à zéro des styles du navigateur, couleurs en variables CSS et classes nommées par composant à la place des classes utilitaires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6b5eaa0ba6
commit
e47db8b070
8 files changed
+1060
-233
No files matched your search
+909
-45
@@ -1,66 +1,926 @@
|
||||
@import "tailwindcss";
|
||||
/* Lisette — feuille de style unique, servie telle quelle par cargo-leptos. */
|
||||
|
||||
@theme {
|
||||
--color-lime: #bfe383;
|
||||
--color-sky: #7fdffb;
|
||||
--color-peach: #ffbd76;
|
||||
--color-pink: #ffadd6;
|
||||
--color-rose: #ff9b8a;
|
||||
--color-sand: #f2d9a4;
|
||||
--color-lilac: #cdb8ff;
|
||||
--color-ink: #1c1c24;
|
||||
--color-paper: #fdfcf7;
|
||||
--color-mist: #efede8;
|
||||
:root {
|
||||
--lime: #bfe383;
|
||||
--sky: #7fdffb;
|
||||
--peach: #ffbd76;
|
||||
--pink: #ffadd6;
|
||||
--rose: #ff9b8a;
|
||||
--sand: #f2d9a4;
|
||||
--lilac: #cdb8ff;
|
||||
--ink: #1c1c24;
|
||||
--paper: #fdfcf7;
|
||||
--mist: #efede8;
|
||||
--error: #c10007;
|
||||
|
||||
--ink-5: color-mix(in oklab, var(--ink) 5%, transparent);
|
||||
--ink-10: color-mix(in oklab, var(--ink) 10%, transparent);
|
||||
--ink-15: color-mix(in oklab, var(--ink) 15%, transparent);
|
||||
--ink-20: color-mix(in oklab, var(--ink) 20%, transparent);
|
||||
--ink-30: color-mix(in oklab, var(--ink) 30%, transparent);
|
||||
--ink-35: color-mix(in oklab, var(--ink) 35%, transparent);
|
||||
--ink-40: color-mix(in oklab, var(--ink) 40%, transparent);
|
||||
--ink-45: color-mix(in oklab, var(--ink) 45%, transparent);
|
||||
--ink-50: color-mix(in oklab, var(--ink) 50%, transparent);
|
||||
--ink-55: color-mix(in oklab, var(--ink) 55%, transparent);
|
||||
--ink-60: color-mix(in oklab, var(--ink) 60%, transparent);
|
||||
--ink-70: color-mix(in oklab, var(--ink) 70%, transparent);
|
||||
|
||||
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
|
||||
--font-display: "Unbounded", "Inter", ui-sans-serif, sans-serif;
|
||||
--font-mono: "JetBrains Mono", ui-monospace, monospace;
|
||||
|
||||
--radius: 1rem;
|
||||
--shadow: 0 5px 0 0 var(--ink);
|
||||
}
|
||||
|
||||
/* Hard drop shadow under tiles and buttons. */
|
||||
@utility tile-shadow {
|
||||
box-shadow: 0 5px 0 0 var(--color-ink);
|
||||
}
|
||||
/* ---------- Base ---------- */
|
||||
|
||||
@utility field {
|
||||
border-radius: 0.875rem;
|
||||
border: 2px solid var(--color-ink);
|
||||
background: white;
|
||||
padding: 0.75rem 0.875rem;
|
||||
font-size: 1.0625rem; /* ≥16px: no zoom on iOS focus */
|
||||
outline: none;
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 3px var(--color-lime);
|
||||
}
|
||||
&[aria-invalid="true"] {
|
||||
border-color: var(--color-rose);
|
||||
}
|
||||
}
|
||||
|
||||
/* Torn receipt edge along the bottom of the ticket. */
|
||||
@layer components {
|
||||
.ticket::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset-inline: 0;
|
||||
top: 100%;
|
||||
height: 10px;
|
||||
background:
|
||||
linear-gradient(135deg, var(--color-paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
|
||||
linear-gradient(225deg, var(--color-paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x;
|
||||
}
|
||||
*,
|
||||
::before,
|
||||
::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0 solid;
|
||||
}
|
||||
|
||||
html {
|
||||
line-height: 1.5;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
/* Tiles moving between the list and the basket (see src/app/transition.rs). */
|
||||
body {
|
||||
background: var(--lime);
|
||||
color: var(--ink);
|
||||
font-family: var(--font-sans);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
font-size: inherit;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select {
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
letter-spacing: inherit;
|
||||
background: transparent;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* ---------- Couleurs ---------- */
|
||||
|
||||
.bg-lime { background-color: var(--lime); }
|
||||
.bg-sky { background-color: var(--sky); }
|
||||
.bg-peach { background-color: var(--peach); }
|
||||
.bg-pink { background-color: var(--pink); }
|
||||
.bg-rose { background-color: var(--rose); }
|
||||
.bg-sand { background-color: var(--sand); }
|
||||
.bg-lilac { background-color: var(--lilac); }
|
||||
|
||||
/* Fond plein écran à la couleur de la liste ouverte. */
|
||||
.page-bg {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: -10;
|
||||
}
|
||||
|
||||
/* ---------- Mise en page ---------- */
|
||||
|
||||
.page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 28rem;
|
||||
min-height: 100dvh;
|
||||
margin-inline: auto;
|
||||
padding: max(1.5rem, env(safe-area-inset-top)) 1rem 8rem;
|
||||
}
|
||||
|
||||
.page-auth {
|
||||
padding-bottom: 4rem;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 3rem;
|
||||
font-weight: 800;
|
||||
line-height: 0.9;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
|
||||
.page-not-found {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex-shrink: 0;
|
||||
width: 3.5rem;
|
||||
height: 3.5rem;
|
||||
border-radius: var(--radius);
|
||||
background: var(--ink);
|
||||
color: var(--lime);
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.125rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.notice {
|
||||
margin-top: 1rem;
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: var(--radius);
|
||||
background: color-mix(in oklab, var(--paper) 70%, transparent);
|
||||
color: var(--ink-70);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.panel {
|
||||
margin-top: 1.5rem;
|
||||
padding: 1rem;
|
||||
border-radius: var(--radius);
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.alert {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
margin-top: 1rem;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 2px solid var(--ink);
|
||||
border-radius: var(--radius);
|
||||
background: var(--pink);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.alert button {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.form-error {
|
||||
padding: 0.5rem 0.75rem;
|
||||
border: 2px solid var(--ink);
|
||||
border-radius: 0.75rem;
|
||||
background: var(--pink);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* ---------- Ticket (carte papier à bord déchiré) ---------- */
|
||||
|
||||
.ticket {
|
||||
position: relative;
|
||||
margin-top: 1.5rem;
|
||||
padding: 1.5rem 1.25rem 2rem;
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.ticket::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset-inline: 0;
|
||||
top: 100%;
|
||||
height: 10px;
|
||||
background:
|
||||
linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
|
||||
linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x;
|
||||
}
|
||||
|
||||
.page-auth .ticket {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.ticket-empty {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ticket-skeleton {
|
||||
height: 24rem;
|
||||
margin-top: 5rem;
|
||||
background: color-mix(in oklab, var(--paper) 60%, transparent);
|
||||
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
.ticket-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
color: var(--ink-60);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.ticket-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.7rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
|
||||
.eyebrow + .ticket-title {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.ticket-owner {
|
||||
margin-top: 0.25rem;
|
||||
color: var(--ink-60);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.lead {
|
||||
margin-top: 0.25rem;
|
||||
color: var(--ink-70);
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
|
||||
.ticket-empty .lead {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.loading {
|
||||
margin-top: 1rem;
|
||||
color: var(--ink-50);
|
||||
}
|
||||
|
||||
.footnote {
|
||||
margin-top: 1.5rem;
|
||||
color: var(--ink-70);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.footnote a {
|
||||
font-weight: 600;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex-shrink: 0;
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
margin: -0.25rem -0.5rem 0 0;
|
||||
border-radius: 9999px;
|
||||
color: var(--ink-60);
|
||||
}
|
||||
|
||||
.icon-button:active {
|
||||
background: var(--ink-5);
|
||||
}
|
||||
|
||||
.icon-button svg {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
}
|
||||
|
||||
/* ---------- Onglets des listes ---------- */
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
margin: 1.25rem -1rem 0;
|
||||
padding: 0 1rem 0.25rem;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.tab {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 1.25rem;
|
||||
border: 2px solid var(--ink);
|
||||
border-radius: var(--radius);
|
||||
background: var(--paper);
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.75rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tab-active {
|
||||
background: var(--ink);
|
||||
color: var(--paper);
|
||||
}
|
||||
|
||||
.tab-new {
|
||||
border-style: dashed;
|
||||
border-color: var(--ink-50);
|
||||
background: transparent;
|
||||
color: var(--ink-70);
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
border: 2px solid var(--ink);
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
/* ---------- Tuiles ---------- */
|
||||
|
||||
.tiles {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.ticket .tiles {
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
|
||||
.tile {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
width: 100%;
|
||||
aspect-ratio: 1;
|
||||
padding: 0.5rem 0.5rem 0.625rem;
|
||||
border: 2px solid var(--ink);
|
||||
border-radius: var(--radius);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tile svg {
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.tile-label {
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.25;
|
||||
overflow-wrap: break-word;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
/* Article à acheter : tuile colorée qui s'enfonce au toucher. */
|
||||
.tile-item {
|
||||
box-shadow: var(--shadow);
|
||||
touch-action: manipulation;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-webkit-touch-callout: none;
|
||||
}
|
||||
|
||||
.tile-item:active {
|
||||
transform: translateY(0.25rem);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.tile-badge {
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
right: 0.5rem;
|
||||
padding: 0.125rem 0.375rem;
|
||||
border-radius: 0.5rem;
|
||||
background: var(--ink);
|
||||
color: var(--paper);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1rem;
|
||||
}
|
||||
|
||||
/* Suggestion : tuile en pointillés. */
|
||||
.tile-suggestion {
|
||||
border-style: dashed;
|
||||
border-color: var(--ink-35);
|
||||
color: var(--ink-55);
|
||||
}
|
||||
|
||||
.tile-suggestion:active {
|
||||
background: var(--ink-5);
|
||||
}
|
||||
|
||||
.tile-suggestion svg {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
/* Article dans le panier : tuile grise barrée. */
|
||||
.tile-off {
|
||||
border-color: transparent;
|
||||
background: var(--mist);
|
||||
color: var(--ink-45);
|
||||
}
|
||||
|
||||
.tile-off:active {
|
||||
background: var(--ink-10);
|
||||
}
|
||||
|
||||
.tile-off .tile-label {
|
||||
font-weight: 500;
|
||||
text-decoration: line-through;
|
||||
text-decoration-color: var(--ink-30);
|
||||
}
|
||||
|
||||
.basket {
|
||||
margin-top: 1.5rem;
|
||||
padding-top: 1.25rem;
|
||||
border-top: 2px dashed var(--ink-15);
|
||||
}
|
||||
|
||||
.basket-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: var(--ink-60);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.basket .tiles {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 0.5rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.basket .tile {
|
||||
gap: 0.125rem;
|
||||
padding: 0.375rem;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.basket .tile-label {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
/* ---------- Boutons ---------- */
|
||||
|
||||
.button {
|
||||
padding: 0.75rem 1rem;
|
||||
border: 2px solid var(--ink);
|
||||
border-radius: var(--radius);
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.button:disabled {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.button-primary {
|
||||
background: var(--pink);
|
||||
box-shadow: var(--shadow);
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.125rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
|
||||
.button-primary:active:not(:disabled) {
|
||||
transform: translateY(0.25rem);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.button-lime {
|
||||
background: var(--lime);
|
||||
}
|
||||
|
||||
.button-paper {
|
||||
flex-shrink: 0;
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.button-block {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.button-add {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Gros bouton flottant en bas à droite. */
|
||||
.fab {
|
||||
position: fixed;
|
||||
right: max(1rem, calc(50vw - 14rem + 1rem));
|
||||
bottom: max(1.25rem, env(safe-area-inset-bottom));
|
||||
z-index: 10;
|
||||
padding: 1rem 1.5rem;
|
||||
border: 2px solid var(--ink);
|
||||
border-radius: var(--radius);
|
||||
background: var(--pink);
|
||||
box-shadow: var(--shadow);
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
|
||||
.fab:active {
|
||||
transform: translateY(0.25rem);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.ticket-empty .button {
|
||||
margin-top: 1rem;
|
||||
padding-inline: 1.25rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.actions .button-primary {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.link-button {
|
||||
flex-shrink: 0;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.25rem;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ---------- Feuilles (panneaux du bas) ---------- */
|
||||
|
||||
.sheet {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 20;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sheet-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: var(--ink-50);
|
||||
}
|
||||
|
||||
.sheet-panel {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 28rem;
|
||||
max-height: 90dvh;
|
||||
overflow-y: auto;
|
||||
padding: 0.75rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
|
||||
border: 2px solid var(--ink);
|
||||
border-bottom: 0;
|
||||
border-radius: 1.5rem 1.5rem 0 0;
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.sheet-handle {
|
||||
width: 3rem;
|
||||
height: 0.375rem;
|
||||
margin: 0 auto 1rem;
|
||||
border-radius: 9999px;
|
||||
background: var(--ink-20);
|
||||
}
|
||||
|
||||
.sheet-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
.sheet-text {
|
||||
margin-top: 0.25rem;
|
||||
color: var(--ink-70);
|
||||
}
|
||||
|
||||
.sheet-panel > .button-block {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.sheet-panel > form > .button-block {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
/* ---------- Formulaires ---------- */
|
||||
|
||||
.form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.form-compact {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.ticket .form {
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
|
||||
.form > .button-primary:last-child {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.form > .actions:last-child {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.field-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.375rem;
|
||||
}
|
||||
|
||||
.label {
|
||||
color: var(--ink-60);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1rem;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
legend.label {
|
||||
margin-bottom: 0.375rem;
|
||||
}
|
||||
|
||||
.field {
|
||||
min-width: 0;
|
||||
padding: 0.75rem 0.875rem;
|
||||
border: 2px solid var(--ink);
|
||||
border-radius: 0.875rem;
|
||||
background: white;
|
||||
font-size: 1.0625rem; /* ≥16px : pas de zoom sur iOS au focus */
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.field:focus {
|
||||
box-shadow: 0 0 0 3px var(--lime);
|
||||
}
|
||||
|
||||
.field[aria-invalid="true"] {
|
||||
border-color: var(--rose);
|
||||
}
|
||||
|
||||
.field-error {
|
||||
color: var(--error);
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
}
|
||||
|
||||
.quantity {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.quantity .field {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.quantity .field:first-child {
|
||||
flex: 0 0 7rem;
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.checkbox input {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
accent-color: var(--ink);
|
||||
}
|
||||
|
||||
/* Rayons : pastilles colorées. */
|
||||
.chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.chip {
|
||||
padding: 0.375rem 0.75rem;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 9999px;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.25rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.chip[aria-pressed="true"] {
|
||||
border-color: var(--ink);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Choix de l'icône. */
|
||||
.icon-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.icon-choice {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
aspect-ratio: 1;
|
||||
border: 2px solid var(--ink-10);
|
||||
border-radius: 0.75rem;
|
||||
background: var(--mist);
|
||||
}
|
||||
|
||||
.icon-choice[aria-pressed="true"] {
|
||||
border-color: var(--ink);
|
||||
background: var(--lime);
|
||||
}
|
||||
|
||||
.icon-choice svg {
|
||||
width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
}
|
||||
|
||||
/* Choix de la couleur d'une liste. */
|
||||
.swatches {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.swatch {
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
border: 2px solid var(--ink-40);
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.swatch[aria-pressed="true"] {
|
||||
border-color: var(--ink);
|
||||
box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink);
|
||||
}
|
||||
|
||||
/* ---------- Partage et comptes ---------- */
|
||||
|
||||
.section {
|
||||
margin-top: 1.5rem;
|
||||
padding-top: 1.25rem;
|
||||
border-top: 2px dashed var(--ink-15);
|
||||
}
|
||||
|
||||
.section-text {
|
||||
margin-top: 0.5rem;
|
||||
color: var(--ink-60);
|
||||
}
|
||||
|
||||
.people {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.ticket .people {
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
|
||||
.person {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
width: 100%;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: 0.75rem;
|
||||
background: var(--mist);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
button.person:active {
|
||||
background: var(--ink-10);
|
||||
}
|
||||
|
||||
.person-info {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.person-name,
|
||||
.person-email {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.person-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.person-email,
|
||||
.person-date {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
color: var(--ink-60);
|
||||
}
|
||||
|
||||
.person-date {
|
||||
color: var(--ink-50);
|
||||
}
|
||||
|
||||
.badge {
|
||||
flex-shrink: 0;
|
||||
padding: 0.125rem 0.5rem;
|
||||
border: 2px solid var(--ink);
|
||||
border-radius: 0.5rem;
|
||||
background: var(--lime);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.share-form {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.share-form .field {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.share-form .button {
|
||||
flex-shrink: 0;
|
||||
padding-block: 0;
|
||||
}
|
||||
|
||||
/* ---------- Animations entre la liste et le panier (voir src/app/transition.rs) ---------- */
|
||||
|
||||
::view-transition-group(*) {
|
||||
animation-duration: 320ms;
|
||||
animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
::view-transition-old(*),
|
||||
::view-transition-new(*) {
|
||||
animation-duration: 200ms;
|
||||
@@ -72,4 +932,8 @@ html {
|
||||
::view-transition-new(*) {
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.ticket-skeleton {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user