Address first round of feedback
- Flashcards: whole card flips on click (both sides), 3D turn, swipe-away on grading, streak chip and flame bursts, bigger cards on desktop, arrow keys for everything - Review and browse keep the sidebar on desktop - Quizzes: live practice score, partial-credit explanation, time limit for shared exams - Class page: items grouped by type inside each folder - Import: copyable, editable instructions for outside chatbots - Assistant: reads notes and links to library items Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
c59591ccb9
commit
aed14cd04f
13 changed files with 769 additions and 216 deletions
|
|
@ -420,44 +420,138 @@
|
|||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/* 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 {
|
||||
/* Flashcard: a real two-sided card that turns over its horizontal axis. Both faces share
|
||||
one grid cell, so the card is always as tall as its taller side. */
|
||||
.flip-scene {
|
||||
perspective: 2000px;
|
||||
}
|
||||
.flip-card {
|
||||
display: grid;
|
||||
perspective: 1600px;
|
||||
cursor: pointer;
|
||||
transform-style: preserve-3d;
|
||||
transition: transform 420ms cubic-bezier(0.3, 0.75, 0.25, 1);
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
.flip-card[data-flipped='true'] {
|
||||
transform: rotateX(180deg);
|
||||
}
|
||||
.flip-face {
|
||||
grid-area: 1 / 1;
|
||||
transform-origin: center;
|
||||
will-change: transform;
|
||||
backface-visibility: hidden;
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
.flip-inner[data-flipped='true'] .flip-front,
|
||||
.flip-inner[data-flipped='false'] .flip-back {
|
||||
visibility: hidden;
|
||||
.flip-back {
|
||||
transform: rotateX(180deg);
|
||||
}
|
||||
.flip-inner[data-flipped='true'] .flip-back {
|
||||
animation: sd-flip 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
.swipe-left {
|
||||
animation: sd-swipe-left 260ms cubic-bezier(0.4, 0, 0.9, 0.6) forwards;
|
||||
}
|
||||
.flip-inner[data-flipped='false'][data-turned='true'] .flip-front {
|
||||
animation: sd-flip-back 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
.swipe-right {
|
||||
animation: sd-swipe-right 260ms cubic-bezier(0.4, 0, 0.9, 0.6) forwards;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.flip-face {
|
||||
animation: none !important;
|
||||
.flip-card {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Streak flames. The yellow-to-orange ramp is the same in both themes on purpose. */
|
||||
.streak-bar {
|
||||
background-image: linear-gradient(100deg, #fbbf24, #fb923c 35%, #ea580c 55%, #fb923c 75%, #fbbf24);
|
||||
background-size: 200% 100%;
|
||||
animation: sd-flame-flow 2.6s linear infinite;
|
||||
box-shadow: 0 0 12px rgb(234 88 12 / 0.5);
|
||||
}
|
||||
.streak-chip {
|
||||
animation: sd-pop 280ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
|
||||
}
|
||||
.streak-chip-hot {
|
||||
color: #451a03;
|
||||
background-image: linear-gradient(100deg, #fbbf24, #ea580c);
|
||||
box-shadow: 0 2px 12px rgb(234 88 12 / 0.4);
|
||||
}
|
||||
.streak-scrim {
|
||||
background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--surface) 94%, transparent) 0%, color-mix(in srgb, var(--surface) 78%, transparent) 42%, transparent 76%);
|
||||
animation: sd-streak-scrim var(--streak-ms, 1800ms) ease-out forwards;
|
||||
}
|
||||
.streak-pop {
|
||||
animation: sd-streak-pop var(--streak-ms, 1800ms) cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
|
||||
}
|
||||
.streak-flame {
|
||||
animation: sd-flicker 0.9s ease-in-out infinite;
|
||||
transform-origin: 50% 85%;
|
||||
filter: drop-shadow(0 6px 22px rgb(234 88 12 / 0.55));
|
||||
}
|
||||
.streak-heading {
|
||||
background-image: linear-gradient(180deg, #fbbf24, #ea580c);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sd-flip {
|
||||
from {
|
||||
transform: rotateY(-88deg);
|
||||
@keyframes sd-swipe-left {
|
||||
to {
|
||||
transform: translateX(-70px) rotate(-6deg);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
@keyframes sd-flip-back {
|
||||
from {
|
||||
transform: rotateY(88deg);
|
||||
@keyframes sd-swipe-right {
|
||||
to {
|
||||
transform: translateX(70px) rotate(6deg);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
@keyframes sd-flame-flow {
|
||||
to {
|
||||
background-position: -200% 50%;
|
||||
}
|
||||
}
|
||||
@keyframes sd-flicker {
|
||||
0%,
|
||||
100% {
|
||||
transform: scale(1) rotate(0);
|
||||
}
|
||||
25% {
|
||||
transform: scale(1.07) rotate(-2.5deg);
|
||||
}
|
||||
60% {
|
||||
transform: scale(0.96) rotate(2deg);
|
||||
}
|
||||
}
|
||||
@keyframes sd-streak-pop {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(26px) scale(0.55);
|
||||
}
|
||||
28% {
|
||||
opacity: 1;
|
||||
transform: translateY(-2px) scale(1.1);
|
||||
}
|
||||
40% {
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
78% {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: translateY(-14px) scale(0.96);
|
||||
}
|
||||
}
|
||||
@keyframes sd-streak-scrim {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
14% {
|
||||
opacity: 1;
|
||||
}
|
||||
76% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue