Spaces:
Running
Running
Update src/App.scss
Browse files- src/App.scss +47 -148
src/App.scss
CHANGED
@@ -1,154 +1,53 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
@import 'tailwindcss/components';
|
6 |
-
@import 'tailwindcss/utilities';
|
7 |
-
|
8 |
-
// 2. Define CSS Variables
|
9 |
-
:root {
|
10 |
-
--radius: 0.625rem; /* 10px */
|
11 |
-
--radius-md: 0.5rem; /* 8px */
|
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);
|
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 |
-
* { box-sizing: border-box; }
|
29 |
-
body {
|
30 |
-
@apply bg-custom-background text-custom-foreground;
|
31 |
-
overflow-x: hidden;
|
32 |
-
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
|
33 |
-
margin: 0; padding: 0;
|
34 |
-
}
|
35 |
-
}
|
36 |
-
|
37 |
-
/* --- START: استایلهای جدید و اصلاح شده --- */
|
38 |
-
.loading-screen {
|
39 |
display: flex; align-items: center; justify-content: center;
|
40 |
-
|
41 |
-
}
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
.header-icon-button {
|
57 |
-
display: flex; align-items: center; justify-content: center; padding: 0.5rem;
|
58 |
-
width: 44px; height: 44px; border-radius: 9999px;
|
59 |
-
background-color: rgba(44, 44, 46, 0.7);
|
60 |
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
61 |
-
backdrop-filter: blur(8px);
|
62 |
-
cursor: pointer; transition: all 0.2s ease-out;
|
63 |
-
svg, .material-symbols-outlined {
|
64 |
-
opacity: 0.9;
|
65 |
-
color: oklch(0.95 0 0);
|
66 |
-
stroke: oklch(0.95 0 0);
|
67 |
-
width: 26px; height: 26px; font-size: 26px;
|
68 |
}
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
90 |
}
|
91 |
}
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
}
|
97 |
-
.personality-popover-wrapper {
|
98 |
-
top: calc(1rem + 44px + 8px); left: 1rem;
|
99 |
-
}
|
100 |
-
/* --- END: استایلهای جدید و اصلاح شده --- */
|
101 |
-
|
102 |
-
|
103 |
-
/* بخشهای دیگر استایل که از کد شما حفظ شدهاند */
|
104 |
-
.media-area {
|
105 |
-
flex-grow: 1;
|
106 |
-
position: relative;
|
107 |
-
width: 100%;
|
108 |
-
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-left: 2.5rem; padding-right: 2.5rem; padding-top: 0.5rem;
|
117 |
-
padding-bottom: 0.5rem; box-sizing: border-box; z-index: 20; justify-content: space-between;
|
118 |
-
}
|
119 |
-
.small-logo-footer-html-like {
|
120 |
-
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
|
121 |
-
z-index: 1; display: flex; align-items: center; justify-content: center;
|
122 |
-
}
|
123 |
-
.control-button-wrapper { position: relative; display: flex; justify-content: center; }
|
124 |
-
.control-button {
|
125 |
-
height: 80px; width: 80px; border-radius: 9999px; padding: 0;
|
126 |
-
display: flex; align-items: center; justify-content: center;
|
127 |
-
border-width: 1px; border-color: theme('colors.custom-border');
|
128 |
-
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
|
129 |
-
cursor: pointer; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
130 |
-
flex-shrink: 0; z-index: 2; overflow: hidden;
|
131 |
-
&:hover { transform: scale(1.05); }
|
132 |
-
svg.reference-mic-svg { width: 75%; height: 75%; }
|
133 |
-
}
|
134 |
-
.mic-button-color { background-color: #fecdd3; }
|
135 |
-
.cam-button-color { background-color: #E0ECFF; }
|
136 |
-
.dark .mic-button-color { background-color: #5C2129; }
|
137 |
-
.dark .cam-button-color { background-color: #223355; }
|
138 |
-
.switch-camera-button-container {
|
139 |
-
position: absolute; bottom: calc(100% + 0.65rem); left: 50%;
|
140 |
-
transform: translateX(-50%) translateY(15px) scale(0.7); z-index: 5;
|
141 |
-
opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.35s;
|
142 |
-
transform-origin: center bottom;
|
143 |
-
&.visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
|
144 |
}
|
145 |
-
|
146 |
-
width: 48px; height: 48px; background-color: theme('colors.custom-background');
|
147 |
-
border: 1px solid theme('colors.custom-border'); border-radius: 9999px;
|
148 |
-
display: flex; align-items: center; justify-content: center;
|
149 |
-
box-shadow: 0 5px 10px rgba(0,0,0,0.12); cursor: pointer;
|
150 |
-
transition: transform 0.2s ease-out;
|
151 |
-
&:hover { transform: scale(1.12); }
|
152 |
-
&:active { transform: scale(1.03); }
|
153 |
-
svg { width: 22px; height: 22px; stroke: theme('colors.custom-foreground'); }
|
154 |
-
}
|
|
|
1 |
+
/* --- START: استایلهای مودال که به انتهای App.scss اضافه میشود --- */
|
2 |
+
.modal-overlay {
|
3 |
+
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
|
4 |
+
background-color: rgba(0, 0, 0, 0.7);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
display: flex; align-items: center; justify-content: center;
|
6 |
+
z-index: 1000; backdrop-filter: blur(5px);
|
7 |
+
}
|
8 |
+
.modal-content {
|
9 |
+
background: #2c2c2e; padding: 24px; border-radius: 16px;
|
10 |
+
width: 90%; max-width: 500px;
|
11 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
12 |
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
13 |
+
animation: modal-fade-in 0.3s ease-out;
|
14 |
+
.modal-header {
|
15 |
+
display: flex; justify-content: space-between; align-items: center;
|
16 |
+
margin-bottom: 20px; border-bottom: 1px solid #444; padding-bottom: 16px;
|
17 |
+
h3 { margin: 0; font-size: 20px; color: #fff; }
|
18 |
+
.close-button {
|
19 |
+
background: none; border: none; color: #aaa; font-size: 28px;
|
20 |
+
cursor: pointer; line-height: 1; padding: 0;
|
21 |
+
&:hover { color: #fff; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
+
}
|
24 |
+
.modal-body .form-group {
|
25 |
+
margin-bottom: 20px;
|
26 |
+
label { display: block; margin-bottom: 8px; font-weight: 500; color: #e0e0e0; }
|
27 |
+
input, textarea {
|
28 |
+
width: 100%; padding: 12px; border-radius: 8px;
|
29 |
+
border: 1px solid #555; background-color: #3a3a3c;
|
30 |
+
color: #fff; font-size: 15px;
|
31 |
+
&:focus {
|
32 |
+
outline: none; border-color: #0a84ff;
|
33 |
+
box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
|
34 |
+
}
|
35 |
+
}
|
36 |
+
textarea { resize: vertical; min-height: 100px; }
|
37 |
+
small { display: block; margin-top: 8px; color: #999; font-size: 12px; }
|
38 |
+
}
|
39 |
+
.modal-footer {
|
40 |
+
display: flex; justify-content: flex-end; margin-top: 24px;
|
41 |
+
.save-button {
|
42 |
+
background-color: #0a84ff; color: #fff; border: none;
|
43 |
+
padding: 12px 24px; border-radius: 8px; font-size: 16px;
|
44 |
+
font-weight: 600; cursor: pointer; transition: background-color 0.2s;
|
45 |
+
&:hover { background-color: #3499ff; }
|
46 |
}
|
47 |
}
|
48 |
}
|
49 |
+
@keyframes modal-fade-in {
|
50 |
+
from { opacity: 0; transform: scale(0.9); }
|
51 |
+
to { opacity: 1; transform: scale(1); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
+
/* --- END: استایلهای مودال --- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|