Skip to content

Commit 272f40f

Browse files
committed
persistent states
1 parent 602e209 commit 272f40f

File tree

4 files changed

+313
-100
lines changed

4 files changed

+313
-100
lines changed

assets/css/bloecks.css

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ html[data-bs-theme="dark"] .bloecks-clipboard-item-meta {
279279
margin-bottom: 12px;
280280
border-radius: 8px;
281281
box-shadow: 0 8px 25px rgba(0,0,0,0.25);
282-
transform: scale(0.8);
282+
transform: translateY(-100px) scale(0.9);
283283
opacity: 0;
284-
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
284+
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
285285
pointer-events: auto;
286286
cursor: pointer;
287287
max-width: 500px;
@@ -313,7 +313,15 @@ html[data-bs-theme="dark"] .bloecks-clipboard-item-meta {
313313

314314
/* Show toast */
315315
.bloecks-toast.show {
316-
transform: translateX(0);
316+
transform: translateY(0) scale(1);
317+
opacity: 1;
318+
}
319+
320+
/* Hide toast (when removing) */
321+
.bloecks-toast.hide {
322+
transform: translateY(-50px) scale(0.8);
323+
opacity: 0;
324+
transition: all 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
317325
}
318326

319327
/* Beautiful drag handle styling */
@@ -525,10 +533,10 @@ html:not([data-bs-theme="dark"]) body:not(.rex-theme-dark) .bloecks-cut.is-cut {
525533
}
526534

527535
.bloecks-cut.is-cut {
528-
background-color: rgba(239, 68, 68, 0.8) !important;
529-
border-color: rgba(239, 68, 68, 1) !important;
536+
background-color: rgba(249, 115, 22, 0.8) !important;
537+
border-color: rgba(249, 115, 22, 1) !important;
530538
color: white !important;
531-
box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3) !important;
539+
box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.3) !important;
532540
}
533541
}
534542

@@ -542,8 +550,25 @@ html[data-bs-theme="dark"] .bloecks-copy.is-copied {
542550

543551
body.rex-theme-dark .bloecks-cut.is-cut,
544552
html[data-bs-theme="dark"] .bloecks-cut.is-cut {
545-
background-color: rgba(239, 68, 68, 0.8) !important;
546-
border-color: rgba(239, 68, 68, 1) !important;
553+
background-color: rgba(249, 115, 22, 0.8) !important;
554+
border-color: rgba(249, 115, 22, 1) !important;
547555
color: white !important;
548-
box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3) !important;
556+
box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.3) !important;
557+
}
558+
559+
/* Temporary highlight effect for just-actioned buttons */
560+
.bloecks-copy.just-actioned,
561+
.bloecks-cut.just-actioned {
562+
transform: scale(1.05);
563+
transition: transform 0.2s ease;
564+
}
565+
566+
body.rex-theme-dark .bloecks-copy.just-actioned,
567+
html[data-bs-theme="dark"] .bloecks-copy.just-actioned {
568+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5) !important;
569+
}
570+
571+
body.rex-theme-dark .bloecks-cut.just-actioned,
572+
html[data-bs-theme="dark"] .bloecks-cut.just-actioned {
573+
box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.5) !important;
549574
}

0 commit comments

Comments
 (0)