mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-11 16:12:14 +00:00
L'invité a le crayon du propriétaire dans la barre du bas, avant « Plus ». Le bandeau du mode contribution dit « Vous proposez » (« Vous proposez des changements » sur ordinateur), sur une seule ligne, avec « Envoyer ». Le propriétaire ne voit aucun changement. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
70 lines
2.0 KiB
CSS
70 lines
2.0 KiB
CSS
/* Mode édition (DA terracotta) : un liseré autour de l'écran et une pastille en haut */
|
|
.edit-mode-border {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 999;
|
|
pointer-events: none;
|
|
box-shadow: inset 0 0 0 2px var(--pz-a500);
|
|
animation: pz-fade 240ms ease both;
|
|
}
|
|
|
|
.edit-mode-toast {
|
|
position: fixed;
|
|
top: 18px;
|
|
left: 50%;
|
|
z-index: 1001;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
max-width: calc(100vw - 140px);
|
|
padding: 5px 5px 5px 16px;
|
|
background: var(--pz-surface);
|
|
border: 1px solid var(--pz-line);
|
|
border-radius: 999px;
|
|
box-shadow: var(--pz-shadow-lg);
|
|
transform: translateX(-50%);
|
|
animation: edit-toast-in 260ms var(--pz-ease) both;
|
|
}
|
|
@keyframes edit-toast-in {
|
|
from { opacity: 0; transform: translate(-50%, -8px); }
|
|
to { opacity: 1; transform: translate(-50%, 0); }
|
|
}
|
|
|
|
.edit-mode-toast-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
flex: none;
|
|
border-radius: 50%;
|
|
background: var(--pz-a500);
|
|
box-shadow: 0 0 0 4px var(--pz-a100);
|
|
}
|
|
.edit-mode-toast-text {
|
|
font: 500 14px var(--pz-sans);
|
|
color: var(--pz-ink);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.edit-mode-submit { flex: none; }
|
|
.edit-mode-toast-close { width: 36px; min-height: 36px; flex: none; }
|
|
|
|
/* Invité : la phrase complète sur ordinateur, « Vous proposez » sur téléphone, toujours sur une ligne */
|
|
.edit-mode-toast-short { display: none; }
|
|
|
|
@media (max-width: 768px) {
|
|
.edit-mode-toast { top: 68px; max-width: calc(100vw - 24px); }
|
|
.edit-mode-toast-text { font-size: 13px; }
|
|
.edit-mode-toast--contrib .edit-mode-toast-long { display: none; }
|
|
.edit-mode-toast--contrib .edit-mode-toast-short { display: inline; }
|
|
}
|
|
|
|
/* Téléphone : le texte de l'éditeur se coupait en « Vous modifi… » à côté du bouton, qui suffit à lui seul.
|
|
L'invité garde son texte court, qui tient sur une ligne. */
|
|
@media (max-width: 480px) {
|
|
.edit-mode-toast--with-submit:not(.edit-mode-toast--contrib) .edit-mode-toast-text { display: none; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.edit-mode-toast { animation: pz-fade 160ms ease both; }
|
|
}
|