PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / trunk
ووسلام – همگام سازی ووکامرس و باسلام vtrunk
1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 1.8.8 1.8.5 1.8.6 1.8.7 1.8.4 All 51 releases
sync-basalam / assets / css / toast.css

toast.css in ووسلام – همگام سازی ووکامرس و باسلام trunk, at assets/css/toast.css

163 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .basalam-toast-container {
2 position: fixed;
3 top: 50px;
4 right: 20px;
5 z-index: 999999;
6 display: flex;
7 flex-direction: column;
8 gap: 12px;
9 max-width: 380px;
10 width: calc(100% - 40px);
11 pointer-events: none;
12 direction: rtl;
13 }
14
15 .basalam-toast {
16 position: relative;
17 display: flex;
18 align-items: flex-start;
19 gap: 12px;
20 background: #ffffff;
21 border-radius: 10px;
22 box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
23 padding: 14px 16px;
24 border-right: 4px solid var(--basalam-primary-color, #ff5c35);
25 font-family: PelakFA, "Tahoma", sans-serif;
26 pointer-events: auto;
27 opacity: 0;
28 transform: translateX(40px);
29 transition: opacity 0.25s ease, transform 0.25s ease;
30 overflow: hidden;
31 }
32
33 .basalam-toast.is-visible {
34 opacity: 1;
35 transform: translateX(0);
36 }
37
38 .basalam-toast.is-leaving {
39 opacity: 0;
40 transform: translateX(40px);
41 }
42
43 .basalam-toast__icon {
44 flex-shrink: 0;
45 width: 22px;
46 height: 22px;
47 display: inline-flex;
48 align-items: center;
49 justify-content: center;
50 margin-top: 2px;
51 }
52
53 .basalam-toast__icon svg {
54 width: 22px;
55 height: 22px;
56 display: block;
57 }
58
59 .basalam-toast__body {
60 flex: 1;
61 min-width: 0;
62 display: flex;
63 flex-direction: column;
64 gap: 2px;
65 }
66
67 .basalam-toast__title {
68 font-family: Morabba, PelakFA, "Tahoma", sans-serif;
69 font-weight: 600;
70 font-size: 0.95rem;
71 color: var(--basalam-gray-800, #2d3748);
72 margin: 0;
73 line-height: 1.4;
74 }
75
76 .basalam-toast__message {
77 font-family: PelakFA, "Tahoma", sans-serif;
78 font-size: 0.85rem;
79 color: var(--basalam-gray-700, #4a5568);
80 margin: 0;
81 line-height: 1.6;
82 word-break: break-word;
83 }
84
85 .basalam-toast__close {
86 flex-shrink: 0;
87 background: transparent;
88 border: none;
89 cursor: pointer;
90 padding: 4px;
91 margin: -4px -4px 0 0;
92 color: var(--basalam-gray-500, #a0aec0);
93 font-size: 18px;
94 line-height: 1;
95 border-radius: 4px;
96 transition: background-color 0.15s ease, color 0.15s ease;
97 }
98
99 .basalam-toast__close:hover {
100 background: var(--basalam-gray-200, #edf2f7);
101 color: var(--basalam-gray-700, #4a5568);
102 }
103
104 .basalam-toast__progress {
105 position: absolute;
106 bottom: 0;
107 left: 0;
108 right: 0;
109 height: 3px;
110 background: rgba(0, 0, 0, 0.05);
111 overflow: hidden;
112 }
113
114 .basalam-toast__progress-bar {
115 position: absolute;
116 top: 0;
117 bottom: 0;
118 right: 0;
119 background: var(--basalam-primary-color, #ff5c35);
120 width: 100%;
121 transform-origin: right center;
122 animation: basalam-toast-progress linear forwards;
123 }
124
125 @keyframes basalam-toast-progress {
126 from { transform: scaleX(1); }
127 to { transform: scaleX(0); }
128 }
129
130 .basalam-toast--success {
131 border-right-color: var(--basalam-success-color, #28a745);
132 }
133 .basalam-toast--success .basalam-toast__icon { color: var(--basalam-success-color, #28a745); }
134 .basalam-toast--success .basalam-toast__progress-bar { background: var(--basalam-success-color, #28a745); }
135
136 .basalam-toast--error {
137 border-right-color: var(--basalam-danger-color, #dc3545);
138 }
139 .basalam-toast--error .basalam-toast__icon { color: var(--basalam-danger-color, #dc3545); }
140 .basalam-toast--error .basalam-toast__progress-bar { background: var(--basalam-danger-color, #dc3545); }
141
142 .basalam-toast--warning {
143 border-right-color: #f0a500;
144 }
145 .basalam-toast--warning .basalam-toast__icon { color: #f0a500; }
146 .basalam-toast--warning .basalam-toast__progress-bar { background: #f0a500; }
147
148 .basalam-toast--info {
149 border-right-color: var(--basalam-primary-color, #ff5c35);
150 }
151 .basalam-toast--info .basalam-toast__icon { color: var(--basalam-primary-color, #ff5c35); }
152 .basalam-toast--info .basalam-toast__progress-bar { background: var(--basalam-primary-color, #ff5c35); }
153
154 @media (max-width: 600px) {
155 .basalam-toast-container {
156 top: 12px;
157 right: 12px;
158 left: 12px;
159 width: auto;
160 max-width: none;
161 }
162 }
163