toastflux 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,174 @@
1
+ .tf-toast-container {
2
+ position: fixed;
3
+ z-index: 9999;
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 12px;
7
+ pointer-events: none;
8
+ }
9
+
10
+ .tf-toast-container > * {
11
+ pointer-events: auto;
12
+ }
13
+
14
+ .tf-top-left {
15
+ top: 20px;
16
+ left: 20px;
17
+ align-items: flex-start;
18
+ }
19
+ .tf-top-center {
20
+ top: 20px;
21
+ left: 50%;
22
+ transform: translateX(-50%);
23
+ align-items: center;
24
+ }
25
+ .tf-top-right {
26
+ top: 20px;
27
+ right: 20px;
28
+ align-items: flex-end;
29
+ }
30
+ .tf-bottom-left {
31
+ bottom: 20px;
32
+ left: 20px;
33
+ flex-direction: column-reverse;
34
+ align-items: flex-start;
35
+ }
36
+ .tf-bottom-center {
37
+ bottom: 20px;
38
+ left: 50%;
39
+ transform: translateX(-50%);
40
+ flex-direction: column-reverse;
41
+ align-items: center;
42
+ }
43
+ .tf-bottom-right {
44
+ bottom: 20px;
45
+ right: 20px;
46
+ flex-direction: column-reverse;
47
+ align-items: flex-end;
48
+ }
49
+
50
+ .tf-toast {
51
+ display: flex;
52
+ align-items: center;
53
+ gap: 12px;
54
+ padding: 12px 16px;
55
+ background: #0f0f0f;
56
+ border: 1px solid #2a2a2a;
57
+ border-radius: 8px;
58
+ color: #f1f1f1;
59
+ font-size: 14px;
60
+ font-family: var(
61
+ --tf-font-family,
62
+ system-ui,
63
+ -apple-system,
64
+ BlinkMacSystemFont,
65
+ "Segoe UI",
66
+ Roboto,
67
+ "Helvetica Neue",
68
+ Arial,
69
+ sans-serif
70
+ );
71
+ font-weight: 500;
72
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
73
+ animation: tf-fadeIn 0.2s ease-out;
74
+ min-width: 320px;
75
+ }
76
+
77
+ .tf-icon {
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+ color: #f1f1f1;
82
+ }
83
+
84
+ .tf-message {
85
+ text-align: left;
86
+ flex: 1;
87
+ }
88
+
89
+ .tf-description {
90
+ font-size: 13px;
91
+ color: rgba(241, 241, 241, 0.7);
92
+ margin-top: -5px;
93
+ }
94
+
95
+ /* Progress Bar */
96
+ .tf-progress-bg {
97
+ margin-top: 10px;
98
+ height: 4px;
99
+ background: rgba(255, 255, 255, 0.1);
100
+ border-radius: 2px;
101
+ overflow: hidden;
102
+ }
103
+ .tf-progress-fill {
104
+ height: 100%;
105
+ background: #ffffff;
106
+ transition: width 0.2s;
107
+ }
108
+
109
+ /* Action Button */
110
+ .tf-action-btn {
111
+ background: rgba(255, 255, 255, 0.1);
112
+ border: none;
113
+ color: #ffffff;
114
+ padding: 6px 12px;
115
+ border-radius: 4px;
116
+ cursor: pointer;
117
+ margin-left: 8px;
118
+ font-size: 12px;
119
+ font-weight: 600;
120
+ white-space: nowrap;
121
+ }
122
+
123
+ /* Close Button */
124
+ .tf-close-btn {
125
+ background: transparent;
126
+ border: none;
127
+ color: #888888;
128
+ cursor: pointer;
129
+ padding: 4px 4px 4px 8px;
130
+ font-size: 14px;
131
+ align-self: flex-start;
132
+ }
133
+ .tf-close-btn:hover {
134
+ color: #ffffff;
135
+ }
136
+
137
+ /* ---- LIGHT THEME ---- */
138
+ .tf-theme-light .tf-toast {
139
+ background: #ffffff;
140
+ border: 1px solid #e5e5e5;
141
+ color: #171717;
142
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
143
+ }
144
+ .tf-theme-light .tf-icon {
145
+ color: #171717;
146
+ }
147
+ .tf-theme-light .tf-progress-bg {
148
+ background: rgba(0, 0, 0, 0.1);
149
+ }
150
+ .tf-theme-light .tf-progress-fill {
151
+ background: #171717;
152
+ }
153
+ .tf-theme-light .tf-action-btn {
154
+ background: rgba(0, 0, 0, 0.06);
155
+ color: #171717;
156
+ }
157
+ .tf-theme-light .tf-close-btn:hover {
158
+ color: #000000;
159
+ }
160
+ .tf-theme-light .tf-description {
161
+ color: rgba(23, 23, 23, 0.7);
162
+ }
163
+
164
+ @keyframes tf-fadeIn {
165
+ from {
166
+ opacity: 0;
167
+ transform: translateY(10px);
168
+ }
169
+
170
+ to {
171
+ opacity: 1;
172
+ transform: translateY(0);
173
+ }
174
+ }