Ezmary commited on
Commit
f3e5e8a
·
verified ·
1 Parent(s): 1b7a601

Update src/App.scss

Browse files
Files changed (1) hide show
  1. src/App.scss +39 -67
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';
@@ -36,7 +36,7 @@
36
  }
37
  }
38
 
39
- /* --- START: استایل‌های اصلی و جدید برای چیدمان و عناصر --- */
40
  .loading-screen {
41
  display: flex; align-items: center; justify-content: center;
42
  height: 100vh; font-size: 1.2rem;
@@ -47,7 +47,7 @@
47
  min-height: 100vh;
48
  display: flex;
49
  flex-direction: column;
50
- position: relative; /* برای جای‌گیری درست عناصر داخلی */
51
  }
52
 
53
  .header-controls {
@@ -58,19 +58,28 @@
58
  }
59
 
60
  .header-icon-button {
 
 
 
 
 
61
  display: flex; align-items: center; justify-content: center; padding: 0.5rem;
62
  width: 44px; height: 44px; border-radius: 9999px;
63
- background-color: rgba(44, 44, 46, 0.7);
64
- border: 1px solid rgba(255, 255, 255, 0.1);
65
- backdrop-filter: blur(8px);
66
  cursor: pointer; transition: all 0.2s ease-out;
 
 
 
67
  .material-symbols-outlined {
68
- opacity: 0.9;
69
- color: oklch(0.95 0 0);
70
- font-size: 26px;
 
 
 
 
 
 
71
  }
72
- &:hover { background-color: rgba(60, 60, 62, 0.8); }
73
- &:active { transform: scale(0.95); }
74
  }
75
 
76
  .notification-popover-wrapper, .personality-popover-wrapper {
@@ -100,17 +109,30 @@
100
  .personality-popover-wrapper {
101
  top: calc(1rem + 44px + 8px); left: 1rem;
102
  }
103
- /* --- END: استایل‌های جدید --- */
104
-
105
 
106
- /* بخش‌های دیگر استایل که از کد شما حفظ شده‌اند */
107
  .media-area {
108
- flex-grow: 1; position: relative; width: 100%; height: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  }
 
110
  #large-logo-container {
111
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
112
  position: absolute; top: 0; left: 0; pointer-events: none;
113
  }
 
114
  .footer-controls-html-like {
115
  width: 100%; display: flex; align-items: center; position: absolute;
116
  bottom: 2rem; padding: 0.5rem 2.5rem; box-sizing: border-box; z-index: 20; justify-content: space-between;
@@ -152,55 +174,5 @@
152
  svg { width: 22px; height: 22px; stroke: theme('colors.custom-foreground'); }
153
  }
154
 
155
- /* استایل‌های مودال */
156
- .modal-overlay {
157
- position: fixed; top: 0; left: 0; right: 0; bottom: 0;
158
- background-color: rgba(0, 0, 0, 0.7);
159
- display: flex; align-items: center; justify-content: center;
160
- z-index: 1000; backdrop-filter: blur(5px);
161
- }
162
- .modal-content {
163
- background: #2c2c2e; padding: 24px; border-radius: 16px;
164
- width: 90%; max-width: 500px;
165
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
166
- border: 1px solid rgba(255, 255, 255, 0.15);
167
- animation: modal-fade-in 0.3s ease-out;
168
- .modal-header {
169
- display: flex; justify-content: space-between; align-items: center;
170
- margin-bottom: 20px; border-bottom: 1px solid #444; padding-bottom: 16px;
171
- h3 { margin: 0; font-size: 20px; color: #fff; }
172
- .close-button {
173
- background: none; border: none; color: #aaa; font-size: 28px;
174
- cursor: pointer; line-height: 1; padding: 0;
175
- &:hover { color: #fff; }
176
- }
177
- }
178
- .modal-body .form-group {
179
- margin-bottom: 20px;
180
- label { display: block; margin-bottom: 8px; font-weight: 500; color: #e0e0e0; }
181
- input, textarea {
182
- width: 100%; padding: 12px; border-radius: 8px;
183
- border: 1px solid #555; background-color: #3a3a3c;
184
- color: #fff; font-size: 15px;
185
- &:focus {
186
- outline: none; border-color: #0a84ff;
187
- box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
188
- }
189
- }
190
- textarea { resize: vertical; min-height: 100px; }
191
- small { display: block; margin-top: 8px; color: #999; font-size: 12px; }
192
- }
193
- .modal-footer {
194
- display: flex; justify-content: flex-end; margin-top: 24px;
195
- .save-button {
196
- background-color: #0a84ff; color: #fff; border: none;
197
- padding: 12px 24px; border-radius: 8px; font-size: 16px;
198
- font-weight: 600; cursor: pointer; transition: background-color 0.2s;
199
- &:hover { background-color: #3499ff; }
200
- }
201
- }
202
- }
203
- @keyframes modal-fade-in {
204
- from { opacity: 0; transform: scale(0.9); }
205
- to { opacity: 1; transform: scale(1); }
206
- }
 
1
+ // src/App.scss (نسخه نهایی و تصحیح شده برای ظاهر دلخواه شما)
2
 
3
  // 1. Import Tailwind's base, components, and utilities
4
  @import 'tailwindcss/base';
 
36
  }
37
  }
38
 
39
+ /* --- استایل‌های اصلی و جدید برای چیدمان و عناصر --- */
40
  .loading-screen {
41
  display: flex; align-items: center; justify-content: center;
42
  height: 100vh; font-size: 1.2rem;
 
47
  min-height: 100vh;
48
  display: flex;
49
  flex-direction: column;
50
+ position: relative;
51
  }
52
 
53
  .header-controls {
 
58
  }
59
 
60
  .header-icon-button {
61
+ /* ✅ تغییر اصلی: حذف پس‌زمینه و کادر */
62
+ background: none;
63
+ border: none;
64
+ backdrop-filter: none;
65
+
66
  display: flex; align-items: center; justify-content: center; padding: 0.5rem;
67
  width: 44px; height: 44px; border-radius: 9999px;
 
 
 
68
  cursor: pointer; transition: all 0.2s ease-out;
69
+ /* ✅ افزودن سایه برای خوانایی بهتر روی ویدیو */
70
+ filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
71
+
72
  .material-symbols-outlined {
73
+ opacity: 1; /* افزایش وضوح */
74
+ color: #ffffff; /* رنگ سفید ثابت برای آیکون */
75
+ font-size: 28px; /* کمی بزرگتر برای دید بهتر */
76
+ }
77
+ &:hover {
78
+ transform: scale(1.1);
79
+ }
80
+ &:active {
81
+ transform: scale(0.95);
82
  }
 
 
83
  }
84
 
85
  .notification-popover-wrapper, .personality-popover-wrapper {
 
109
  .personality-popover-wrapper {
110
  top: calc(1rem + 44px + 8px); left: 1rem;
111
  }
 
 
112
 
 
113
  .media-area {
114
+ flex-grow: 1;
115
+ position: relative;
116
+ width: 100%;
117
+ height: 100%;
118
+ background-color: #000; /* ✅ رنگ پس‌زمینه سیاه برای زمانی که ویدیو نیست */
119
+
120
+ /* ✅ تغییر اصلی: استایل برای تمام‌صفحه شدن ویدیو */
121
+ video {
122
+ position: absolute;
123
+ top: 0;
124
+ left: 0;
125
+ width: 100%;
126
+ height: 100%;
127
+ object-fit: cover; /* ویدیو را می‌کشد تا کل کادر را پر کند */
128
+ }
129
  }
130
+
131
  #large-logo-container {
132
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
133
  position: absolute; top: 0; left: 0; pointer-events: none;
134
  }
135
+
136
  .footer-controls-html-like {
137
  width: 100%; display: flex; align-items: center; position: absolute;
138
  bottom: 2rem; padding: 0.5rem 2.5rem; box-sizing: border-box; z-index: 20; justify-content: space-between;
 
174
  svg { width: 22px; height: 22px; stroke: theme('colors.custom-foreground'); }
175
  }
176
 
177
+ /* استایل‌های مودال (بدون تغییر) */
178
+ .modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;z-index:1000;backdrop-filter:blur(5px)}.modal-content{background:#2c2c2e;padding:24px;border-radius:16px;width:90%;max-width:500px;box-shadow:0 10px 30px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.15);animation:modal-fade-in .3s ease-out}.modal-content .modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;border-bottom:1px solid #444;padding-bottom:16px}.modal-content .modal-header h3{margin:0;font-size:20px;color:#fff}.modal-content .modal-header .close-button{background:none;border:none;color:#aaa;font-size:28px;cursor:pointer;line-height:1;padding:0}.modal-content .modal-header .close-button:hover{color:#fff}.modal-content .modal-body .form-group{margin-bottom:20px}.modal-content .modal-body .form-group label{display:block;margin-bottom:8px;font-weight:500;color:#e0e0e0}.modal-content .modal-body .form-group input,.modal-content .modal-body .form-group textarea{width:100%;padding:12px;border-radius:8px;border:1px solid #555;background-color:#3a3a3c;color:#fff;font-size:15px}.modal-content .modal-body .form-group input:focus,.modal-content .modal-body .form-group textarea:focus{outline:none;border-color:#0a84ff;box-shadow:0 0 0 2px rgba(10,132,255,.5)}.modal-content .modal-body .form-group textarea{resize:vertical;min-height:100px}.modal-content .modal-body .form-group small{display:block;margin-top:8px;color:#999;font-size:12px}.modal-content .modal-footer{display:flex;justify-content:flex-end;margin-top:24px}.modal-content .modal-footer .save-button{background-color:#0a84ff;color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:background-color .2s}.modal-content .modal-footer .save-button:hover{background-color:#3499ff}@keyframes modal-fade-in{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}