Spaces:
Running
Running
Update src/App.scss
Browse files- src/App.scss +50 -80
src/App.scss
CHANGED
@@ -3,32 +3,22 @@
|
|
3 |
@import 'tailwindcss/components';
|
4 |
@import 'tailwindcss/utilities';
|
5 |
|
6 |
-
:root { /* ...
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
}
|
15 |
-
.
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
--popover-foreground: oklch(0.985 0 0);
|
20 |
-
--border: oklch(1 0 0 / 10%);
|
21 |
-
}
|
22 |
-
@layer base { /* ... (استایلهای پایه بدون تغییر) ... */
|
23 |
-
* { border-color: var(--border); outline-color: var(--foreground); box-sizing: border-box; }
|
24 |
-
body { @apply bg-background text-foreground; overflow-x: hidden; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; margin: 0; padding: 0; }
|
25 |
-
html { margin: 0; padding: 0; overflow-x: hidden; }
|
26 |
-
}
|
27 |
-
.main-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
|
28 |
-
.media-area { flex-grow: 1; position: relative; }
|
29 |
|
30 |
/* استایل برای کانتینر لوگوی بزرگ وسط صفحه */
|
31 |
-
.large-logo-container-class {
|
32 |
position: absolute;
|
33 |
top: 0;
|
34 |
left: 0;
|
@@ -37,63 +27,51 @@
|
|
37 |
display: flex;
|
38 |
align-items: center;
|
39 |
justify-content: center;
|
40 |
-
pointer-events: none;
|
|
|
41 |
}
|
42 |
|
43 |
-
/*
|
44 |
-
.notification-popover-wrapper { /* ... */ }
|
45 |
-
.popover-content { /* ... */ }
|
46 |
-
.notification-popover-text-content { /* ... */ }
|
47 |
-
.dark .notification-popover-text-content { /* ... */ }
|
48 |
-
.header-controls { /* ... */ }
|
49 |
-
.header-button { /* ... */ }
|
50 |
-
.dark .header-button { /* ... */ }
|
51 |
-
|
52 |
-
|
53 |
-
/* Logo Animation Styling */
|
54 |
.logo-animation-wrapper {
|
55 |
position: relative;
|
56 |
display: flex;
|
57 |
align-items: center;
|
58 |
justify-content: center;
|
59 |
-
color: var(--foreground);
|
60 |
|
61 |
-
|
62 |
-
& > .z-10 > svg {
|
63 |
width: 100%;
|
64 |
height: 100%;
|
65 |
}
|
|
|
|
|
66 |
}
|
67 |
|
68 |
-
|
69 |
-
|
|
|
70 |
width: 100%;
|
71 |
display: flex;
|
72 |
-
|
73 |
position: absolute;
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
padding-top: 0.5rem;
|
81 |
-
padding-bottom: 0.5rem;
|
82 |
-
|
83 |
-
box-sizing: border-box;
|
84 |
z-index: 20;
|
85 |
-
justify-content: space-between;
|
86 |
}
|
87 |
|
88 |
-
.small-logo-footer
|
89 |
-
position: absolute;
|
90 |
-
left: 50%;
|
91 |
-
top: 50%;
|
92 |
-
transform: translate(-50%, -50%);
|
93 |
-
z-index: 1;
|
94 |
display: flex;
|
95 |
align-items: center;
|
96 |
justify-content: center;
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
|
99 |
.control-button-wrapper {
|
@@ -103,8 +81,8 @@
|
|
103 |
}
|
104 |
|
105 |
.control-button {
|
106 |
-
height:
|
107 |
-
width:
|
108 |
border-radius: 9999px;
|
109 |
padding: 0;
|
110 |
display: flex;
|
@@ -125,22 +103,23 @@
|
|
125 |
}
|
126 |
|
127 |
svg {
|
128 |
-
// اندازه پیشفرض برای اکثر SVG
|
129 |
-
// width: 50%;
|
130 |
// height: 50%;
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
height: 70%;
|
135 |
}
|
136 |
}
|
137 |
}
|
138 |
|
139 |
-
|
140 |
.cam-button-color { background-color: #E0ECFF; }
|
|
|
141 |
|
142 |
-
.dark .mic-button-color { background-color: #5C2129; }
|
143 |
.dark .cam-button-color { background-color: #223355; }
|
|
|
|
|
144 |
|
145 |
/* Switch Camera Button (بدون تغییر) */
|
146 |
.switch-camera-button-container { /* ... */ }
|
@@ -154,14 +133,5 @@
|
|
154 |
.animate-popover-open-top-center { /* ... */ }
|
155 |
.animate-popover-close-top-center { /* ... */ }
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
@keyframes ping {
|
160 |
-
75%, 100% {
|
161 |
-
transform: scale(2);
|
162 |
-
opacity: 0;
|
163 |
-
}
|
164 |
-
}
|
165 |
-
.animate-ping {
|
166 |
-
animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
167 |
-
}
|
|
|
3 |
@import 'tailwindcss/components';
|
4 |
@import 'tailwindcss/utilities';
|
5 |
|
6 |
+
:root { /* ... */ }
|
7 |
+
.dark { /* ... */ }
|
8 |
+
@layer base { /* ... */ }
|
9 |
+
.main-wrapper { /* ... */ }
|
10 |
+
.media-area { /* ... */ }
|
11 |
+
.notification-popover-wrapper { /* ... */ }
|
12 |
+
.popover-content { /* ... */ }
|
13 |
+
.notification-popover-text-content { /* ... */ }
|
14 |
+
.dark .notification-popover-text-content { /* ... */ }
|
15 |
+
.header-controls { /* ... */ }
|
16 |
+
.header-button { /* ... */ }
|
17 |
+
.dark .header-button { /* ... */ }
|
18 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
/* استایل برای کانتینر لوگوی بزرگ وسط صفحه */
|
21 |
+
.large-logo-container-class {
|
22 |
position: absolute;
|
23 |
top: 0;
|
24 |
left: 0;
|
|
|
27 |
display: flex;
|
28 |
align-items: center;
|
29 |
justify-content: center;
|
30 |
+
pointer-events: none;
|
31 |
+
z-index: 5; // پشت کنترلهای فوتر اما روی ویدیو
|
32 |
}
|
33 |
|
34 |
+
/* Logo Animation Styling - اطمینان از اعمال رنگ و انیمیشن */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
.logo-animation-wrapper {
|
36 |
position: relative;
|
37 |
display: flex;
|
38 |
align-items: center;
|
39 |
justify-content: center;
|
40 |
+
color: var(--foreground); /* رنگ پیشفرض برای stroke آدمک */
|
41 |
|
42 |
+
& > .z-10 > svg { /* برای SvgHumanIcon */
|
|
|
43 |
width: 100%;
|
44 |
height: 100%;
|
45 |
}
|
46 |
+
/* استایل برای حلقهها - باید توسط کلاسهای Tailwind اعمال شوند */
|
47 |
+
/* .absolute, .rounded-full, .opacity-50, .animate-ping, bg-blue-200, etc. */
|
48 |
}
|
49 |
|
50 |
+
|
51 |
+
/* Footer styles - بازگشت به نسخه قبلی که مشکل اسکرول افقی نداشت */
|
52 |
+
.footer-controls {
|
53 |
width: 100%;
|
54 |
display: flex;
|
55 |
+
gap: 0.5rem; // کاهش فاصله برای جلوگیری از سرریز
|
56 |
position: absolute;
|
57 |
+
bottom: 0;
|
58 |
+
// padding برای بالاتر آمدن و جلوگیری از چسبیدن به لبهها
|
59 |
+
padding: 0.75rem 1rem; // 12px top/bottom, 16px left/right - این مقادیر را تنظیم کنید
|
60 |
+
align-items: center;
|
61 |
+
justify-content: space-between; // دکمه دوربین چپ، میکروفون راست
|
62 |
+
// لوگوی کوچک در ControlTray با flex-grow یا absolute positioning وسط قرار میگیرد
|
|
|
|
|
|
|
|
|
63 |
z-index: 20;
|
|
|
64 |
}
|
65 |
|
66 |
+
.small-logo-footer { // برای لوگوی کوچک بین دکمهها
|
|
|
|
|
|
|
|
|
|
|
67 |
display: flex;
|
68 |
align-items: center;
|
69 |
justify-content: center;
|
70 |
+
// اگر از justify-content: space-between در فوتر استفاده میکنید،
|
71 |
+
// این بخش برای اینکه وسط بیاید باید margin auto داشته باشد یا با position: absolute باشد.
|
72 |
+
// فعلاً با flex و ترتیب در JSX کنترل میشود.
|
73 |
+
// اگر میخواهید دقیقاً وسط باشد:
|
74 |
+
// position: absolute; left: 50%; transform: translateX(-50%);
|
75 |
}
|
76 |
|
77 |
.control-button-wrapper {
|
|
|
81 |
}
|
82 |
|
83 |
.control-button {
|
84 |
+
height: 70px; // اندازه قبلی که مشکل اسکرول نداشت
|
85 |
+
width: 70px;
|
86 |
border-radius: 9999px;
|
87 |
padding: 0;
|
88 |
display: flex;
|
|
|
103 |
}
|
104 |
|
105 |
svg {
|
106 |
+
// اندازه پیشفرض برای اکثر SVGها
|
107 |
+
// width: 50%;
|
108 |
// height: 50%;
|
109 |
+
&.reference-mic-svg { // برای آیکون میکروفون اولیه
|
110 |
+
width: 70%; // یا مقدار دلخواه شما
|
111 |
+
height: 70%;
|
|
|
112 |
}
|
113 |
}
|
114 |
}
|
115 |
|
116 |
+
// رنگها بر اساس ترتیب دوربین چپ، میکروفون راست
|
117 |
.cam-button-color { background-color: #E0ECFF; }
|
118 |
+
.mic-button-color { background-color: #fecdd3; }
|
119 |
|
|
|
120 |
.dark .cam-button-color { background-color: #223355; }
|
121 |
+
.dark .mic-button-color { background-color: #5C2129; }
|
122 |
+
|
123 |
|
124 |
/* Switch Camera Button (بدون تغییر) */
|
125 |
.switch-camera-button-container { /* ... */ }
|
|
|
133 |
.animate-popover-open-top-center { /* ... */ }
|
134 |
.animate-popover-close-top-center { /* ... */ }
|
135 |
|
136 |
+
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
|
137 |
+
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|