Spaces:
Running
Running
Update src/App.scss
Browse files- src/App.scss +84 -50
src/App.scss
CHANGED
@@ -3,60 +3,80 @@
|
|
3 |
@import 'tailwindcss/components';
|
4 |
@import 'tailwindcss/utilities';
|
5 |
|
6 |
-
:root { /* ... (بدون تغییر) ... */
|
7 |
-
.
|
8 |
-
|
9 |
-
|
10 |
-
.
|
11 |
-
|
12 |
-
|
13 |
-
.
|
14 |
-
|
15 |
-
.dark
|
16 |
-
.
|
17 |
-
.
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
.logo-animation-wrapper {
|
23 |
position: relative;
|
24 |
display: flex;
|
25 |
align-items: center;
|
26 |
justify-content: center;
|
|
|
27 |
|
28 |
-
// اطمینان از اینکه SVG
|
29 |
& > .z-10 > svg {
|
30 |
width: 100%;
|
31 |
height: 100%;
|
32 |
-
display: block; // برای جلوگیری از فضای خالی احتمالی زیر SVG
|
33 |
-
}
|
34 |
-
|
35 |
-
// انیمیشن ping از Tailwind (اگر از CDN استفاده میکنید، باید کار کند)
|
36 |
-
// اگر به صورت دستی تعریف میکنید:
|
37 |
-
.animate-ping {
|
38 |
-
animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
39 |
}
|
40 |
}
|
41 |
-
// اگر از Tailwind استفاده نمی کنید یا انیمیشن ping کار نمی کند، keyframes را اضافه کنید:
|
42 |
-
@keyframes ping {
|
43 |
-
75%, 100% {
|
44 |
-
transform: scale(2);
|
45 |
-
opacity: 0;
|
46 |
-
}
|
47 |
-
}
|
48 |
-
|
49 |
|
50 |
-
/* Footer styles -
|
51 |
.footer-controls-html-like {
|
52 |
width: 100%;
|
53 |
display: flex;
|
54 |
align-items: center;
|
55 |
position: absolute;
|
56 |
-
// *** MODIFIED: تنظیم bottom برای بالاتر
|
57 |
-
bottom:
|
58 |
-
|
59 |
-
padding-
|
|
|
|
|
60 |
padding-top: 0.5rem;
|
61 |
padding-bottom: 0.5rem;
|
62 |
|
@@ -105,14 +125,14 @@
|
|
105 |
}
|
106 |
|
107 |
svg {
|
108 |
-
//
|
109 |
-
|
110 |
-
|
111 |
-
|
|
|
|
|
|
|
112 |
}
|
113 |
-
// برای سایر SVG ها در دکمه های کنترل، اگر نیاز به اندازه خاصی دارند
|
114 |
-
// مثلاً آیکون دوربین:
|
115 |
-
// &:not(.reference-mic-svg) { width: 50%; height: 50%; }
|
116 |
}
|
117 |
}
|
118 |
|
@@ -123,11 +143,25 @@
|
|
123 |
.dark .cam-button-color { background-color: #223355; }
|
124 |
|
125 |
/* Switch Camera Button (بدون تغییر) */
|
126 |
-
.switch-camera-button-container { /* ...
|
127 |
-
.switch-camera-button-content { /* ...
|
|
|
|
|
128 |
|
129 |
/* Keyframes for popover (بدون تغییر) */
|
130 |
-
@keyframes popover-drop-in { /* ...
|
131 |
-
@keyframes popover-lift-out { /* ...
|
132 |
-
.animate-popover-open-top-center { /* ...
|
133 |
-
.animate-popover-close-top-center { /* ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
@import 'tailwindcss/components';
|
4 |
@import 'tailwindcss/utilities';
|
5 |
|
6 |
+
:root { /* ... (متغیرهای CSS بدون تغییر) ... */
|
7 |
+
--radius: 0.625rem;
|
8 |
+
--radius-md: 0.5rem;
|
9 |
+
--background: oklch(1 0 0);
|
10 |
+
--foreground: oklch(0.145 0 0);
|
11 |
+
--popover: oklch(1 0 0);
|
12 |
+
--popover-foreground: oklch(0.145 0 0);
|
13 |
+
--border: oklch(0.922 0 0);
|
14 |
+
}
|
15 |
+
.dark { /* ... (متغیرهای CSS برای دارک مود بدون تغییر) ... */
|
16 |
+
--background: oklch(0.145 0 0);
|
17 |
+
--foreground: oklch(0.985 0 0);
|
18 |
+
--popover: oklch(0.205 0 0);
|
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;
|
35 |
+
width: 100%;
|
36 |
+
height: 100%;
|
37 |
+
display: flex;
|
38 |
+
align-items: center;
|
39 |
+
justify-content: center;
|
40 |
+
pointer-events: none; /* برای جلوگیری از تداخل با کلیک روی ویدیو */
|
41 |
+
}
|
42 |
+
|
43 |
+
/* Notification Popover & Header controls (بدون تغییر) */
|
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); // رنگ آدمک از foreground گرفته شود
|
60 |
|
61 |
+
// اطمینان از اینکه خود SVG آدمک تمام فضای کانتینر داخلیاش را پر میکند
|
62 |
& > .z-10 > svg {
|
63 |
width: 100%;
|
64 |
height: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
+
/* Footer styles - تنظیم دقیقتر bottom */
|
69 |
.footer-controls-html-like {
|
70 |
width: 100%;
|
71 |
display: flex;
|
72 |
align-items: center;
|
73 |
position: absolute;
|
74 |
+
// *** MODIFIED: تنظیم bottom برای بالاتر آمدن فوتر ***
|
75 |
+
bottom: 2.5rem; // امتحان کنید این مقدار را کم و زیاد کنید (مثلا 2rem, 3rem)
|
76 |
+
|
77 |
+
padding-left: 3rem; // 48px از چپ (مطابق HTML)
|
78 |
+
padding-right: 3rem; // 48px از راست (مطابق HTML)
|
79 |
+
// padding-top و padding-bottom میتوانند کمتر باشند چون bottom اصلی است
|
80 |
padding-top: 0.5rem;
|
81 |
padding-bottom: 0.5rem;
|
82 |
|
|
|
125 |
}
|
126 |
|
127 |
svg {
|
128 |
+
// اندازه پیشفرض برای اکثر SVGهای داخل دکمهها
|
129 |
+
// width: 50%; // یا مقدار مناسب دیگر
|
130 |
+
// height: 50%;
|
131 |
+
|
132 |
+
&.reference-mic-svg { // کلاس اختصاصی برای SVG میکروفون مرجع
|
133 |
+
width: 70%; // یا حتی 75% اگر نیاز است
|
134 |
+
height: 70%;
|
135 |
}
|
|
|
|
|
|
|
136 |
}
|
137 |
}
|
138 |
|
|
|
143 |
.dark .cam-button-color { background-color: #223355; }
|
144 |
|
145 |
/* Switch Camera Button (بدون تغییر) */
|
146 |
+
.switch-camera-button-container { /* ... */ }
|
147 |
+
.switch-camera-button-content { /* ... */ }
|
148 |
+
.switch-camera-button-content svg { /* ... */ }
|
149 |
+
.switch-camera-button-content:hover svg { /* ... */ }
|
150 |
|
151 |
/* Keyframes for popover (بدون تغییر) */
|
152 |
+
@keyframes popover-drop-in { /* ... */ }
|
153 |
+
@keyframes popover-lift-out { /* ... */ }
|
154 |
+
.animate-popover-open-top-center { /* ... */ }
|
155 |
+
.animate-popover-close-top-center { /* ... */ }
|
156 |
+
|
157 |
+
// اطمینان از تعریف keyframes برای انیمیشن ping اگر Tailwind آن را به درستی نخوانده
|
158 |
+
// این معمولاً توسط Tailwind انجام میشود، اما برای اطمینان
|
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 |
+
}
|