Spaces:
Running
Running
Update src/App.scss
Browse files- src/App.scss +83 -115
src/App.scss
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
-
// src/App.scss (نسخه نهایی و
|
2 |
|
3 |
// 1. Import Tailwind's base, components, and utilities
|
4 |
@import 'tailwindcss/base';
|
5 |
@import 'tailwindcss/components';
|
6 |
@import 'tailwindcss/utilities';
|
7 |
|
8 |
-
// 2. Define CSS Variables (از کد
|
9 |
:root {
|
10 |
--radius: 0.625rem;
|
11 |
--radius-md: 0.5rem;
|
12 |
-
--background: oklch(1 0 0);
|
13 |
-
--foreground: oklch(0.145 0 0);
|
14 |
--popover: oklch(1 0 0);
|
15 |
--popover-foreground: oklch(0.145 0 0);
|
16 |
--border: oklch(0.922 0 0);
|
17 |
}
|
18 |
-
.dark {
|
19 |
--background: oklch(0.145 0 0);
|
20 |
--foreground: oklch(0.985 0 0);
|
21 |
--popover: oklch(0.205 0 0);
|
@@ -23,7 +23,7 @@
|
|
23 |
--border: oklch(1 0 0 / 10%);
|
24 |
}
|
25 |
|
26 |
-
// 3. Apply base styles (از کد
|
27 |
@layer base {
|
28 |
* {
|
29 |
border-color: theme('colors.custom-border');
|
@@ -31,164 +31,126 @@
|
|
31 |
}
|
32 |
body {
|
33 |
@apply bg-custom-background text-custom-foreground;
|
34 |
-
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif
|
35 |
-
margin: 0;
|
36 |
-
padding: 0;
|
37 |
-
overflow: hidden; // جلوگیری از اسکرول شدن صفحه
|
38 |
-
}
|
39 |
-
html {
|
40 |
-
margin: 0;
|
41 |
-
padding: 0;
|
42 |
-
overflow: hidden;
|
43 |
}
|
44 |
}
|
45 |
|
46 |
/* --- START: استایلهای اصلی و جدید برای چیدمان و عناصر --- */
|
47 |
-
|
48 |
.loading-screen {
|
49 |
-
display: flex;
|
50 |
-
|
51 |
-
justify-content: center;
|
52 |
-
height: 100vh;
|
53 |
-
font-size: 1.2rem;
|
54 |
color: theme('colors.custom-foreground');
|
55 |
}
|
56 |
|
57 |
.main-wrapper {
|
58 |
min-height: 100vh;
|
59 |
-
width: 100vw;
|
60 |
display: flex;
|
61 |
flex-direction: column;
|
62 |
position: relative;
|
63 |
-
background-color: black; // پسزمینه سیاه برای حالت بدون ویدیو
|
64 |
}
|
65 |
|
66 |
.header-controls {
|
67 |
-
display: flex;
|
68 |
-
|
69 |
-
justify-content: space-between;
|
70 |
-
width: 100%;
|
71 |
-
position: absolute;
|
72 |
-
top: 0;
|
73 |
-
left: 0;
|
74 |
-
z-index: 50;
|
75 |
pointer-events: none;
|
76 |
-
> button {
|
77 |
-
pointer-events: auto;
|
78 |
-
}
|
79 |
}
|
80 |
|
81 |
-
/* ✅ رفع مشکل: دکمههای شفاف بدون پسزمینه */
|
82 |
.header-icon-button {
|
83 |
-
display: flex;
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
border: none;
|
91 |
-
cursor: pointer;
|
92 |
-
transition: all 0.2s ease-out;
|
93 |
-
|
94 |
.material-symbols-outlined {
|
95 |
-
opacity: 0.
|
96 |
-
|
|
|
97 |
font-size: 28px;
|
98 |
-
// سایه برای خوانایی بهتر روی ویدیو
|
99 |
-
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
|
100 |
}
|
101 |
-
|
102 |
-
|
103 |
-
opacity: 1;
|
104 |
}
|
105 |
-
&:
|
106 |
-
|
107 |
}
|
|
|
108 |
}
|
109 |
|
110 |
.notification-popover-wrapper, .personality-popover-wrapper {
|
111 |
-
position: absolute;
|
112 |
-
|
113 |
-
opacity: 0;
|
114 |
-
pointer-events: none;
|
115 |
-
transform: translateY(-10px) scale(0.95);
|
116 |
-
transition: all 150ms ease-in-out;
|
117 |
-
|
118 |
-
&.open {
|
119 |
-
opacity: 1;
|
120 |
-
pointer-events: auto;
|
121 |
-
transform: translateY(0) scale(1);
|
122 |
-
}
|
123 |
-
|
124 |
.popover-content {
|
125 |
-
background:
|
126 |
-
backdrop-filter: blur(
|
127 |
-
-
|
128 |
-
border
|
129 |
-
|
130 |
-
|
131 |
-
border: 1px solid rgba(255, 255, 255, 0.15);
|
132 |
-
color: #f5f5f5;
|
133 |
-
font-size: 14px;
|
134 |
-
|
135 |
ul { list-style: none; padding: 0; margin: 0; width: 220px; }
|
136 |
li {
|
137 |
display: flex; align-items: center; justify-content: space-between;
|
138 |
padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background-color 150ms ease;
|
139 |
-
&:hover { background: rgba(
|
140 |
-
|
|
|
|
|
141 |
div { display: flex; align-items: center; gap: 12px; }
|
142 |
.material-symbols-outlined { font-size: 22px; &.tick { color: #34c759; } }
|
143 |
}
|
144 |
}
|
145 |
}
|
146 |
-
|
147 |
.notification-popover-wrapper {
|
148 |
-
top: calc(1rem + 44px + 8px);
|
149 |
-
right: 1rem;
|
150 |
.popover-content { padding: 12px 16px; width: 280px; }
|
151 |
}
|
152 |
-
|
153 |
.personality-popover-wrapper {
|
154 |
-
top: calc(1rem + 44px + 8px);
|
155 |
-
left: 1rem;
|
156 |
}
|
|
|
157 |
|
158 |
-
|
|
|
159 |
.media-area {
|
|
|
160 |
position: absolute;
|
161 |
top: 0;
|
162 |
left: 0;
|
163 |
width: 100%;
|
164 |
height: 100%;
|
165 |
-
z-index: 1; // زیر همه کنترلها
|
166 |
}
|
167 |
-
|
168 |
#large-logo-container {
|
169 |
-
display: flex; align-items: center; justify-content: center;
|
170 |
-
|
171 |
}
|
172 |
-
|
173 |
.footer-controls-html-like {
|
174 |
width: 100%; display: flex; align-items: center; position: absolute;
|
175 |
bottom: 2rem; padding: 0.5rem 2.5rem; box-sizing: border-box; z-index: 20; justify-content: space-between;
|
176 |
}
|
177 |
-
|
|
|
|
|
|
|
|
|
178 |
.control-button {
|
179 |
height: 80px; width: 80px; border-radius: 9999px; padding: 0;
|
180 |
display: flex; align-items: center; justify-content: center;
|
181 |
-
border:
|
|
|
182 |
cursor: pointer; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
183 |
flex-shrink: 0; z-index: 2; overflow: hidden;
|
184 |
&:hover { transform: scale(1.05); }
|
|
|
185 |
}
|
186 |
-
|
187 |
.mic-button-color { background-color: #fecdd3; }
|
188 |
.cam-button-color { background-color: #E0ECFF; }
|
189 |
.dark .mic-button-color { background-color: #5C2129; }
|
190 |
.dark .cam-button-color { background-color: #223355; }
|
191 |
-
|
192 |
.switch-camera-button-container {
|
193 |
position: absolute; bottom: calc(100% + 0.65rem); left: 50%;
|
194 |
transform: translateX(-50%) translateY(15px) scale(0.7); z-index: 5;
|
@@ -196,24 +158,18 @@
|
|
196 |
transform-origin: center bottom;
|
197 |
&.visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
|
198 |
}
|
199 |
-
|
200 |
.switch-camera-button-content {
|
201 |
width: 48px; height: 48px; background-color: theme('colors.custom-background');
|
202 |
border: 1px solid theme('colors.custom-border'); border-radius: 9999px;
|
203 |
display: flex; align-items: center; justify-content: center;
|
204 |
-
box-shadow: 0 5px 10px rgba(0,0,0,0.12); cursor: pointer;
|
|
|
205 |
&:hover { transform: scale(1.12); }
|
206 |
&:active { transform: scale(1.03); }
|
207 |
svg { width: 22px; height: 22px; stroke: theme('colors.custom-foreground'); }
|
208 |
}
|
209 |
|
210 |
-
|
211 |
-
position: absolute; left: 50%; top: 50%;
|
212 |
-
transform: translate(-50%, -50%);
|
213 |
-
z-index: 1; display: flex; align-items: center; justify-content: center;
|
214 |
-
}
|
215 |
-
|
216 |
-
/* استایلهای مودال شخصیت سفارشی */
|
217 |
.modal-overlay {
|
218 |
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
|
219 |
background-color: rgba(0, 0, 0, 0.7);
|
@@ -221,35 +177,47 @@
|
|
221 |
z-index: 1000; backdrop-filter: blur(5px);
|
222 |
}
|
223 |
.modal-content {
|
224 |
-
background: #
|
|
|
|
|
225 |
width: 90%; max-width: 500px;
|
226 |
-
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.
|
227 |
-
border: 1px solid
|
228 |
animation: modal-fade-in 0.3s ease-out;
|
|
|
|
|
|
|
|
|
|
|
229 |
.modal-header {
|
230 |
display: flex; justify-content: space-between; align-items: center;
|
231 |
-
margin-bottom: 20px; border-bottom: 1px solid #
|
232 |
-
|
|
|
233 |
.close-button {
|
234 |
background: none; border: none; color: #aaa; font-size: 28px;
|
235 |
cursor: pointer; line-height: 1; padding: 0;
|
236 |
-
&:hover { color: #
|
|
|
237 |
}
|
238 |
}
|
239 |
.modal-body .form-group {
|
240 |
margin-bottom: 20px;
|
241 |
-
label { display: block; margin-bottom: 8px; font-weight: 500; color:
|
242 |
input, textarea {
|
243 |
width: 100%; padding: 12px; border-radius: 8px;
|
244 |
-
border: 1px solid #
|
245 |
-
color: #
|
|
|
|
|
|
|
246 |
&:focus {
|
247 |
outline: none; border-color: #0a84ff;
|
248 |
box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
|
249 |
}
|
250 |
}
|
251 |
textarea { resize: vertical; min-height: 100px; }
|
252 |
-
small { display: block; margin-top: 8px; color: #
|
253 |
}
|
254 |
.modal-footer {
|
255 |
display: flex; justify-content: flex-end; margin-top: 24px;
|
|
|
1 |
+
// src/App.scss (نسخه نهایی و تصحیح شده برای ظاهر دلخواه)
|
2 |
|
3 |
// 1. Import Tailwind's base, components, and utilities
|
4 |
@import 'tailwindcss/base';
|
5 |
@import 'tailwindcss/components';
|
6 |
@import 'tailwindcss/utilities';
|
7 |
|
8 |
+
// 2. Define CSS Variables (از کد شما - تم روشن به عنوان پیشفرض)
|
9 |
:root {
|
10 |
--radius: 0.625rem;
|
11 |
--radius-md: 0.5rem;
|
12 |
+
--background: oklch(1 0 0); /* <-- پسزمینه سفید */
|
13 |
+
--foreground: oklch(0.145 0 0); /* <-- متن تیره */
|
14 |
--popover: oklch(1 0 0);
|
15 |
--popover-foreground: oklch(0.145 0 0);
|
16 |
--border: oklch(0.922 0 0);
|
17 |
}
|
18 |
+
.dark { // تم دارک همچنان در دسترس است اگر بخواهید استفاده کنید
|
19 |
--background: oklch(0.145 0 0);
|
20 |
--foreground: oklch(0.985 0 0);
|
21 |
--popover: oklch(0.205 0 0);
|
|
|
23 |
--border: oklch(1 0 0 / 10%);
|
24 |
}
|
25 |
|
26 |
+
// 3. Apply base styles (از کد شما)
|
27 |
@layer base {
|
28 |
* {
|
29 |
border-color: theme('colors.custom-border');
|
|
|
31 |
}
|
32 |
body {
|
33 |
@apply bg-custom-background text-custom-foreground;
|
34 |
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
|
35 |
+
margin: 0; padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
}
|
38 |
|
39 |
/* --- START: استایلهای اصلی و جدید برای چیدمان و عناصر --- */
|
|
|
40 |
.loading-screen {
|
41 |
+
display: flex; align-items: center; justify-content: center;
|
42 |
+
height: 100vh; font-size: 1.2rem;
|
|
|
|
|
|
|
43 |
color: theme('colors.custom-foreground');
|
44 |
}
|
45 |
|
46 |
.main-wrapper {
|
47 |
min-height: 100vh;
|
|
|
48 |
display: flex;
|
49 |
flex-direction: column;
|
50 |
position: relative;
|
|
|
51 |
}
|
52 |
|
53 |
.header-controls {
|
54 |
+
display: flex; padding: 0.75rem 1rem; justify-content: space-between; align-items: center;
|
55 |
+
width: 100%; position: absolute; top: 0; left: 0; z-index: 50;
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
pointer-events: none;
|
57 |
+
> div, > button { pointer-events: auto; }
|
|
|
|
|
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 |
+
// ✅ تغییر ۱: پسزمینه شفاف شد
|
64 |
+
background-color: transparent;
|
65 |
+
border: none; // حذف کادر
|
66 |
+
backdrop-filter: none; // حذف افکت بلور
|
67 |
+
cursor: pointer; transition: all 0.2s ease-out;
|
|
|
|
|
|
|
|
|
68 |
.material-symbols-outlined {
|
69 |
+
opacity: 0.8;
|
70 |
+
// ✅ تغییر ۲: رنگ آیکونها در حالت روشن تیره شد
|
71 |
+
color: #374151; // رنگ تیره برای تم روشن
|
72 |
font-size: 28px;
|
|
|
|
|
73 |
}
|
74 |
+
.dark & .material-symbols-outlined {
|
75 |
+
color: oklch(0.95 0 0); // رنگ روشن برای تم دارک
|
|
|
76 |
}
|
77 |
+
&:hover {
|
78 |
+
background-color: rgba(0, 0, 0, 0.05); // یک پسزمینه خیلی محو در هاور
|
79 |
}
|
80 |
+
&:active { transform: scale(0.95); }
|
81 |
}
|
82 |
|
83 |
.notification-popover-wrapper, .personality-popover-wrapper {
|
84 |
+
position: absolute; z-index: 100; opacity: 0; pointer-events: none;
|
85 |
+
transform: translateY(-10px) scale(0.95); transition: all 150ms ease-in-out;
|
86 |
+
&.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
.popover-content {
|
88 |
+
background: theme('colors.custom-popover');
|
89 |
+
backdrop-filter: blur(10px);
|
90 |
+
border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
91 |
+
border: 1px solid theme('colors.custom-border');
|
92 |
+
color: theme('colors.custom-popover-foreground'); font-size: 14px;
|
93 |
+
|
|
|
|
|
|
|
|
|
94 |
ul { list-style: none; padding: 0; margin: 0; width: 220px; }
|
95 |
li {
|
96 |
display: flex; align-items: center; justify-content: space-between;
|
97 |
padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background-color 150ms ease;
|
98 |
+
&:hover { background-color: rgba(0, 0, 0, 0.05); }
|
99 |
+
.dark &:hover { background-color: #3a3a3c; }
|
100 |
+
&.active { color: #0a84ff; font-weight: 500; }
|
101 |
+
.dark &.active { color: #fff; }
|
102 |
div { display: flex; align-items: center; gap: 12px; }
|
103 |
.material-symbols-outlined { font-size: 22px; &.tick { color: #34c759; } }
|
104 |
}
|
105 |
}
|
106 |
}
|
|
|
107 |
.notification-popover-wrapper {
|
108 |
+
top: calc(1rem + 44px + 8px); right: 1rem;
|
|
|
109 |
.popover-content { padding: 12px 16px; width: 280px; }
|
110 |
}
|
|
|
111 |
.personality-popover-wrapper {
|
112 |
+
top: calc(1rem + 44px + 8px); left: 1rem;
|
|
|
113 |
}
|
114 |
+
/* --- END: استایلهای جدید --- */
|
115 |
|
116 |
+
|
117 |
+
/* بخشهای دیگر استایل که از کد شما حفظ شدهاند */
|
118 |
.media-area {
|
119 |
+
// ✅ تغییر ۳: این بخش کل صفحه را اشغال میکند
|
120 |
position: absolute;
|
121 |
top: 0;
|
122 |
left: 0;
|
123 |
width: 100%;
|
124 |
height: 100%;
|
125 |
+
z-index: 1; // زیر همه کنترلها قرار میگیرد
|
126 |
}
|
|
|
127 |
#large-logo-container {
|
128 |
+
display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
|
129 |
+
position: absolute; top: 0; left: 0; pointer-events: none;
|
130 |
}
|
|
|
131 |
.footer-controls-html-like {
|
132 |
width: 100%; display: flex; align-items: center; position: absolute;
|
133 |
bottom: 2rem; padding: 0.5rem 2.5rem; box-sizing: border-box; z-index: 20; justify-content: space-between;
|
134 |
}
|
135 |
+
.small-logo-footer-html-like {
|
136 |
+
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
|
137 |
+
z-index: 1; display: flex; align-items: center; justify-content: center;
|
138 |
+
}
|
139 |
+
.control-button-wrapper { position: relative; display: flex; justify-content: center; }
|
140 |
.control-button {
|
141 |
height: 80px; width: 80px; border-radius: 9999px; padding: 0;
|
142 |
display: flex; align-items: center; justify-content: center;
|
143 |
+
border-width: 1px; border-color: theme('colors.custom-border');
|
144 |
+
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
|
145 |
cursor: pointer; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
146 |
flex-shrink: 0; z-index: 2; overflow: hidden;
|
147 |
&:hover { transform: scale(1.05); }
|
148 |
+
svg.reference-mic-svg { width: 75%; height: 75%; }
|
149 |
}
|
|
|
150 |
.mic-button-color { background-color: #fecdd3; }
|
151 |
.cam-button-color { background-color: #E0ECFF; }
|
152 |
.dark .mic-button-color { background-color: #5C2129; }
|
153 |
.dark .cam-button-color { background-color: #223355; }
|
|
|
154 |
.switch-camera-button-container {
|
155 |
position: absolute; bottom: calc(100% + 0.65rem); left: 50%;
|
156 |
transform: translateX(-50%) translateY(15px) scale(0.7); z-index: 5;
|
|
|
158 |
transform-origin: center bottom;
|
159 |
&.visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
|
160 |
}
|
|
|
161 |
.switch-camera-button-content {
|
162 |
width: 48px; height: 48px; background-color: theme('colors.custom-background');
|
163 |
border: 1px solid theme('colors.custom-border'); border-radius: 9999px;
|
164 |
display: flex; align-items: center; justify-content: center;
|
165 |
+
box-shadow: 0 5px 10px rgba(0,0,0,0.12); cursor: pointer;
|
166 |
+
transition: transform 0.2s ease-out;
|
167 |
&:hover { transform: scale(1.12); }
|
168 |
&:active { transform: scale(1.03); }
|
169 |
svg { width: 22px; height: 22px; stroke: theme('colors.custom-foreground'); }
|
170 |
}
|
171 |
|
172 |
+
/* استایلهای مودال (بدون تغییر) */
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
.modal-overlay {
|
174 |
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
|
175 |
background-color: rgba(0, 0, 0, 0.7);
|
|
|
177 |
z-index: 1000; backdrop-filter: blur(5px);
|
178 |
}
|
179 |
.modal-content {
|
180 |
+
background: #fff; /* پسزمینه مودال در تم روشن */
|
181 |
+
color: #111;
|
182 |
+
padding: 24px; border-radius: 16px;
|
183 |
width: 90%; max-width: 500px;
|
184 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
185 |
+
border: 1px solid #e5e5e5;
|
186 |
animation: modal-fade-in 0.3s ease-out;
|
187 |
+
.dark & {
|
188 |
+
background: #2c2c2e;
|
189 |
+
color: #fff;
|
190 |
+
border-color: rgba(255, 255, 255, 0.15);
|
191 |
+
}
|
192 |
.modal-header {
|
193 |
display: flex; justify-content: space-between; align-items: center;
|
194 |
+
margin-bottom: 20px; border-bottom: 1px solid #e5e5e5; padding-bottom: 16px;
|
195 |
+
.dark & { border-color: #444; }
|
196 |
+
h3 { margin: 0; font-size: 20px; color: inherit; }
|
197 |
.close-button {
|
198 |
background: none; border: none; color: #aaa; font-size: 28px;
|
199 |
cursor: pointer; line-height: 1; padding: 0;
|
200 |
+
&:hover { color: #111; }
|
201 |
+
.dark &:hover { color: #fff; }
|
202 |
}
|
203 |
}
|
204 |
.modal-body .form-group {
|
205 |
margin-bottom: 20px;
|
206 |
+
label { display: block; margin-bottom: 8px; font-weight: 500; color: inherit; }
|
207 |
input, textarea {
|
208 |
width: 100%; padding: 12px; border-radius: 8px;
|
209 |
+
border: 1px solid #ccc; background-color: #f8f8f8;
|
210 |
+
color: #111; font-size: 15px;
|
211 |
+
.dark & {
|
212 |
+
border-color: #555; background-color: #3a3a3c; color: #fff;
|
213 |
+
}
|
214 |
&:focus {
|
215 |
outline: none; border-color: #0a84ff;
|
216 |
box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
|
217 |
}
|
218 |
}
|
219 |
textarea { resize: vertical; min-height: 100px; }
|
220 |
+
small { display: block; margin-top: 8px; color: #777; font-size: 12px; .dark & { color: #999; } }
|
221 |
}
|
222 |
.modal-footer {
|
223 |
display: flex; justify-content: flex-end; margin-top: 24px;
|