Ezmary commited on
Commit
e8fc354
·
verified ·
1 Parent(s): ed3d81d

Update src/App.scss

Browse files
Files changed (1) hide show
  1. src/App.scss +20 -29
src/App.scss CHANGED
@@ -1,4 +1,4 @@
1
- // src/App.scss (نسخه نهایی و کامل با همه اصلاحات)
2
 
3
  // 1. Import Tailwind's base, components, and utilities
4
  @import 'tailwindcss/base';
@@ -165,15 +165,31 @@
165
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
166
  gap: 12px; padding: 4px 8px 8px;
167
  }
 
 
168
  .voice-card {
169
- cursor: pointer; text-align: center;
 
 
 
 
 
 
170
  img {
171
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
172
  border: 3px solid transparent; transition: border-color 0.2s, transform 0.2s;
173
  &:hover { transform: scale(1.05); }
174
  }
175
  &.active img { border-color: #0a84ff; transform: scale(1.05); }
176
- .voice-name { font-size: 0.75rem; margin-top: 4px; color: theme('colors.custom-foreground'); opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 
 
 
 
 
 
 
 
177
  }
178
 
179
  @keyframes pulse-glow {
@@ -182,32 +198,7 @@
182
  100% { box-shadow: 0 0 0 0 rgba(10, 132, 255, 0); }
183
  }
184
 
185
- /* استایل پیغام تایید (Toast) */
186
- .confirmation-toast {
187
- position: fixed;
188
- bottom: 110px;
189
- left: 50%;
190
- transform: translateX(-50%);
191
- background-color: rgba(44, 44, 46, 0.9);
192
- color: #fff;
193
- padding: 12px 24px;
194
- border-radius: 999px;
195
- font-size: 0.9rem;
196
- font-weight: 500;
197
- z-index: 1001;
198
- box-shadow: 0 4px 12px rgba(0,0,0,0.3);
199
- backdrop-filter: blur(5px);
200
- animation: fade-in-out 3s ease-in-out forwards;
201
- }
202
-
203
- @keyframes fade-in-out {
204
- 0% { opacity: 0; transform: translate(-50%, 20px); }
205
- 15% { opacity: 1; transform: translate(-50%, 0); }
206
- 85% { opacity: 1; transform: translate(-50%, 0); }
207
- 100% { opacity: 0; transform: translate(-50%, 20px); }
208
- }
209
-
210
- /* استایل ویدیو و کنترل‌ها */
211
  .media-area {
212
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
213
  z-index: 1; overflow: hidden;
 
1
+ // src/App.scss (نسخه نهایی با اصلاح مرکزچین کردن نام گویندگان)
2
 
3
  // 1. Import Tailwind's base, components, and utilities
4
  @import 'tailwindcss/base';
 
165
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
166
  gap: 12px; padding: 4px 8px 8px;
167
  }
168
+
169
+ // ✅ تغییر اصلی اینجاست
170
  .voice-card {
171
+ cursor: pointer;
172
+ // text-align: center; // این دیگر لازم نیست
173
+ // استفاده از Flexbox برای کنترل دقیق چینش
174
+ display: flex;
175
+ flex-direction: column;
176
+ align-items: center; // این خط همه چیز را در مرکز افقی قرار می‌دهد
177
+
178
  img {
179
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
180
  border: 3px solid transparent; transition: border-color 0.2s, transform 0.2s;
181
  &:hover { transform: scale(1.05); }
182
  }
183
  &.active img { border-color: #0a84ff; transform: scale(1.05); }
184
+ .voice-name {
185
+ font-size: 0.75rem;
186
+ margin-top: 4px;
187
+ color: theme('colors.custom-foreground');
188
+ opacity: 0.8;
189
+ white-space: nowrap;
190
+ overflow: hidden;
191
+ text-overflow: ellipsis;
192
+ }
193
  }
194
 
195
  @keyframes pulse-glow {
 
198
  100% { box-shadow: 0 0 0 0 rgba(10, 132, 255, 0); }
199
  }
200
 
201
+ /* ویدیو و کنترل‌ها */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  .media-area {
203
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
204
  z-index: 1; overflow: hidden;