Spaces:
Running
Running
Update src/App.scss
Browse files- src/App.scss +23 -95
src/App.scss
CHANGED
@@ -1,20 +1,17 @@
|
|
1 |
-
// ... (
|
2 |
-
// 1. Import Tailwind's base, components, and utilities
|
3 |
@import 'tailwindcss/base';
|
4 |
@import 'tailwindcss/components';
|
5 |
@import 'tailwindcss/utilities';
|
6 |
|
7 |
-
// 2. Define CSS Variables
|
8 |
:root {
|
9 |
-
--radius: 0.625rem;
|
10 |
-
--radius-md: 0.5rem;
|
11 |
--background: oklch(1 0 0);
|
12 |
--foreground: oklch(0.145 0 0);
|
13 |
--popover: oklch(1 0 0);
|
14 |
--popover-foreground: oklch(0.145 0 0);
|
15 |
--border: oklch(0.922 0 0);
|
16 |
}
|
17 |
-
|
18 |
.dark {
|
19 |
--background: oklch(0.145 0 0);
|
20 |
--foreground: oklch(0.985 0 0);
|
@@ -22,87 +19,21 @@
|
|
22 |
--popover-foreground: oklch(0.985 0 0);
|
23 |
--border: oklch(1 0 0 / 10%);
|
24 |
}
|
25 |
-
|
26 |
-
// 3. Apply base styles
|
27 |
@layer base {
|
28 |
-
* {
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
-moz-osx-font-smoothing: grayscale;
|
39 |
-
margin: 0;
|
40 |
-
padding: 0;
|
41 |
-
}
|
42 |
-
html {
|
43 |
-
margin: 0;
|
44 |
-
padding: 0;
|
45 |
-
overflow-x: hidden;
|
46 |
-
}
|
47 |
-
}
|
48 |
-
|
49 |
-
.main-wrapper {
|
50 |
-
min-height: 100vh;
|
51 |
-
display: flex;
|
52 |
-
flex-direction: column;
|
53 |
-
}
|
54 |
-
.media-area {
|
55 |
-
flex-grow: 1;
|
56 |
-
position: relative;
|
57 |
-
}
|
58 |
-
|
59 |
-
#large-logo-container {
|
60 |
-
display: flex;
|
61 |
-
align-items: center;
|
62 |
-
justify-content: center;
|
63 |
-
width: 100%;
|
64 |
-
height: 100%;
|
65 |
-
position: absolute;
|
66 |
-
top: 0;
|
67 |
-
left: 0;
|
68 |
-
pointer-events: none;
|
69 |
-
}
|
70 |
-
|
71 |
-
.notification-popover-wrapper {
|
72 |
-
position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100;
|
73 |
-
width: calc(100% - 1rem); max-width: 28rem; display: flex; justify-content: center; pointer-events: none;
|
74 |
-
}
|
75 |
-
.popover-content {
|
76 |
-
width: 100%; border-radius: var(--radius-md, 0.5rem); border-width: 1px; border-color: var(--border);
|
77 |
-
background-color: var(--popover); color: var(--popover-foreground);
|
78 |
-
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
79 |
-
outline: none; transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
80 |
-
opacity: 0; transform: translateY(-100%) scale(0.9); pointer-events: none;
|
81 |
-
&.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
|
82 |
-
}
|
83 |
-
.notification-popover-text-content {
|
84 |
-
background-color: #eff6ff; font-size: 0.875rem; line-height: 1.5rem; direction: rtl;
|
85 |
-
padding: 1rem; border-radius: var(--radius-md, 0.5rem); color: oklch(0.145 0 0);
|
86 |
-
}
|
87 |
.dark .notification-popover-text-content { background-color: oklch(0.25 0.05 230); color: oklch(0.95 0.01 230); }
|
88 |
-
.header-controls {
|
89 |
-
|
90 |
-
|
91 |
-
}
|
92 |
-
.header-button {
|
93 |
-
display: flex; align-items: center; justify-content: center; padding: 0.5rem;
|
94 |
-
width: 40px; height: 40px; border-radius: var(--radius-lg, 0.625rem); background-color: #e5e7eb;
|
95 |
-
cursor: pointer; transition: background-color 0.2s, transform 0.1s ease-out;
|
96 |
-
svg { opacity: 0.7; stroke: #374151; width: 24px; height: 24px; }
|
97 |
-
&:hover { background-color: #d1d5db; }
|
98 |
-
&:active { background-color: #9ca3af; transform: scale(0.95); }
|
99 |
-
}
|
100 |
-
.dark .header-button {
|
101 |
-
background-color: oklch(0.28 0 0);
|
102 |
-
&:hover { background-color: oklch(0.35 0 0); }
|
103 |
-
&:active { background-color: oklch(0.40 0 0); transform: scale(0.95); }
|
104 |
-
svg { opacity: 0.8; stroke: oklch(0.85 0 0); }
|
105 |
-
}
|
106 |
|
107 |
.logo-animation-wrapper {
|
108 |
position: relative;
|
@@ -170,18 +101,13 @@
|
|
170 |
}
|
171 |
|
172 |
svg {
|
|
|
173 |
&.reference-mic-svg {
|
174 |
-
//
|
175 |
-
|
176 |
-
// میتوانید این مقدار را بین 60% تا 80% تنظیم کنید تا به اندازه دلخواه برسید
|
177 |
-
width: 75%;
|
178 |
-
height: 75%;
|
179 |
}
|
180 |
-
// برای
|
181 |
-
//
|
182 |
-
// مثال:
|
183 |
-
// &.pause-icon-svg { width: 40%; height: 40%; }
|
184 |
-
// &.camera-icon-svg { width: 50%; height: 50%; }
|
185 |
}
|
186 |
}
|
187 |
|
@@ -191,6 +117,7 @@
|
|
191 |
.dark .mic-button-color { background-color: #5C2129; }
|
192 |
.dark .cam-button-color { background-color: #223355; }
|
193 |
|
|
|
194 |
.switch-camera-button-container {
|
195 |
position: absolute; bottom: calc(100% + 0.65rem); left: 50%;
|
196 |
transform: translateX(-50%) translateY(15px) scale(0.7); z-index: 5;
|
@@ -210,6 +137,7 @@
|
|
210 |
&:hover svg { transform: rotate(360deg); }
|
211 |
}
|
212 |
|
|
|
213 |
@keyframes popover-drop-in {
|
214 |
0% { opacity: 0; transform: translateY(-100%) scale(0.9); }
|
215 |
70% { opacity: 1; transform: translateY(5px) scale(1.02); }
|
|
|
1 |
+
// ... (بخشهای اولیه CSS، متغیرها، base styles، header، popover، logo-animation-wrapper بدون تغییر) ...
|
|
|
2 |
@import 'tailwindcss/base';
|
3 |
@import 'tailwindcss/components';
|
4 |
@import 'tailwindcss/utilities';
|
5 |
|
|
|
6 |
:root {
|
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 {
|
16 |
--background: oklch(0.145 0 0);
|
17 |
--foreground: oklch(0.985 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 |
+
#large-logo-container { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none; }
|
30 |
+
.notification-popover-wrapper { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100; width: calc(100% - 1rem); max-width: 28rem; display: flex; justify-content: center; pointer-events: none; }
|
31 |
+
.popover-content { width: 100%; border-radius: var(--radius-md, 0.5rem); border-width: 1px; border-color: var(--border); background-color: var(--popover); color: var(--popover-foreground); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); outline: none; transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); opacity: 0; transform: translateY(-100%) scale(0.9); pointer-events: none; &.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; } }
|
32 |
+
.notification-popover-text-content { background-color: #eff6ff; font-size: 0.875rem; line-height: 1.5rem; direction: rtl; padding: 1rem; border-radius: var(--radius-md, 0.5rem); color: oklch(0.145 0 0); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
.dark .notification-popover-text-content { background-color: oklch(0.25 0.05 230); color: oklch(0.95 0.01 230); }
|
34 |
+
.header-controls { display: flex; padding: 0.75rem 0.5rem; justify-content: space-between; align-items: center; width: 100%; position: absolute; top: 0; left: 0; z-index: 10; }
|
35 |
+
.header-button { display: flex; align-items: center; justify-content: center; padding: 0.5rem; width: 40px; height: 40px; border-radius: var(--radius-lg, 0.625rem); background-color: #e5e7eb; cursor: pointer; transition: background-color 0.2s, transform 0.1s ease-out; svg { opacity: 0.7; stroke: #374151; width: 24px; height: 24px; } &:hover { background-color: #d1d5db; } &:active { background-color: #9ca3af; transform: scale(0.95); } }
|
36 |
+
.dark .header-button { background-color: oklch(0.28 0 0); &:hover { background-color: oklch(0.35 0 0); } &:active { background-color: oklch(0.40 0 0); transform: scale(0.95); } svg { opacity: 0.8; stroke: oklch(0.85 0 0); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
.logo-animation-wrapper {
|
39 |
position: relative;
|
|
|
101 |
}
|
102 |
|
103 |
svg {
|
104 |
+
// *** MODIFIED: افزایش اندازه آیکون میکروفون مرجع ***
|
105 |
&.reference-mic-svg {
|
106 |
+
width: 70%; // قبلاً 60% بود، حالا 70% یا مقدار دیگری که مناسبتر است
|
107 |
+
height: 70%;
|
|
|
|
|
|
|
108 |
}
|
109 |
+
// برای آیکونهای دیگر داخل دکمههای کنترل، میتوانید اندازه متفاوتی تنظیم کنید
|
110 |
+
// اگر همه آیکونها باید یکسان باشند، این کلاس خاص را حذف کنید و به طور کلی برای svg تنظیم کنید
|
|
|
|
|
|
|
111 |
}
|
112 |
}
|
113 |
|
|
|
117 |
.dark .mic-button-color { background-color: #5C2129; }
|
118 |
.dark .cam-button-color { background-color: #223355; }
|
119 |
|
120 |
+
/* Switch Camera Button (بدون تغییر) */
|
121 |
.switch-camera-button-container {
|
122 |
position: absolute; bottom: calc(100% + 0.65rem); left: 50%;
|
123 |
transform: translateX(-50%) translateY(15px) scale(0.7); z-index: 5;
|
|
|
137 |
&:hover svg { transform: rotate(360deg); }
|
138 |
}
|
139 |
|
140 |
+
/* Keyframes for popover (بدون تغییر) */
|
141 |
@keyframes popover-drop-in {
|
142 |
0% { opacity: 0; transform: translateY(-100%) scale(0.9); }
|
143 |
70% { opacity: 1; transform: translateY(5px) scale(1.02); }
|