Add mock AI provider and AI integration tests; fix sign-in transition and card flip
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
74a98ac1f1
commit
75158c4449
8 changed files with 720 additions and 33 deletions
|
|
@ -420,44 +420,47 @@
|
|||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/* Flashcard flip */
|
||||
.flip {
|
||||
perspective: 1600px;
|
||||
}
|
||||
/* Flashcard flip. Both faces are stacked in one grid cell so the card keeps the height of
|
||||
the taller side; only the active face is visible, and it swings in when it appears.
|
||||
(Deliberately not a preserve-3d/backface construction: that breaks in several
|
||||
compositing situations, and this keeps the hidden side out of the accessibility tree.) */
|
||||
.flip-inner {
|
||||
display: grid;
|
||||
transform-style: preserve-3d;
|
||||
transition: transform 420ms cubic-bezier(0.3, 0.8, 0.3, 1);
|
||||
}
|
||||
.flip-inner[data-flipped='true'] {
|
||||
transform: rotateY(180deg);
|
||||
perspective: 1600px;
|
||||
}
|
||||
.flip-face {
|
||||
grid-area: 1 / 1;
|
||||
backface-visibility: hidden;
|
||||
-webkit-backface-visibility: hidden;
|
||||
transform-origin: center;
|
||||
will-change: transform;
|
||||
}
|
||||
.flip-back {
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
/* Hidden face must not be reachable by keyboard or screen reader. */
|
||||
.flip-inner[data-flipped='true'] .flip-front,
|
||||
.flip-inner[data-flipped='false'] .flip-back {
|
||||
visibility: hidden;
|
||||
transition: visibility 0s linear 210ms;
|
||||
}
|
||||
.flip-inner[data-flipped='false'] .flip-front,
|
||||
.flip-inner[data-flipped='true'] .flip-back {
|
||||
visibility: visible;
|
||||
transition: visibility 0s linear 210ms;
|
||||
animation: sd-flip 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
.flip-inner[data-flipped='false'][data-turned='true'] .flip-front {
|
||||
animation: sd-flip-back 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.flip-inner {
|
||||
transition: none;
|
||||
.flip-face {
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sd-flip {
|
||||
from {
|
||||
transform: rotateY(-88deg);
|
||||
}
|
||||
}
|
||||
@keyframes sd-flip-back {
|
||||
from {
|
||||
transform: rotateY(88deg);
|
||||
}
|
||||
}
|
||||
|
||||
@utility tab-cobalt {
|
||||
--tab: var(--c-cobalt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue