Skip to content

Commit 50f1a65

Browse files
committed
Many fixes
1 parent f1256a9 commit 50f1a65

File tree

7 files changed

+1513
-48
lines changed

7 files changed

+1513
-48
lines changed

assets/css/bloecks.css

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,61 @@
11
/**
2-
* BLOECKS Addon - CSS Styles for Drag & Drop
2+
* BLOECKS Addon - CSS Styles for Drag & Drop and Toast Notifications
33
*/
44

5+
/* Toast notification system */
6+
.bloecks-toast-container {
7+
position: fixed;
8+
top: 70px;
9+
left: 50%;
10+
transform: translateX(-50%);
11+
z-index: 10000;
12+
pointer-events: none;
13+
}
14+
15+
.bloecks-toast {
16+
background: #28a745;
17+
color: white;
18+
padding: 20px 26px;
19+
margin-bottom: 12px;
20+
border-radius: 8px;
21+
box-shadow: 0 8px 25px rgba(0,0,0,0.25);
22+
transform: scale(0.8);
23+
opacity: 0;
24+
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
25+
pointer-events: auto;
26+
cursor: pointer;
27+
max-width: 500px;
28+
min-width: 350px;
29+
word-wrap: break-word;
30+
font-size: 16px;
31+
line-height: 1.5;
32+
position: relative;
33+
text-align: center;
34+
font-weight: 500;
35+
}
36+
37+
.bloecks-toast-success {
38+
background: #28a745;
39+
}
40+
41+
.bloecks-toast-warning {
42+
background: #ffc107;
43+
color: #212529;
44+
}
45+
46+
.bloecks-toast-error {
47+
background: #dc3545;
48+
}
49+
50+
.bloecks-toast-info {
51+
background: #17a2b8;
52+
}
53+
54+
/* Show toast */
55+
.bloecks-toast.show {
56+
transform: translateX(0);
57+
}
58+
559
/* Beautiful drag handle styling */
660
.bloecks-drag-handle {
761
position: absolute;

0 commit comments

Comments
 (0)