Spaces:
Running
Running
Update src/App.scss
Browse files- src/App.scss +40 -176
src/App.scss
CHANGED
@@ -1,196 +1,60 @@
|
|
1 |
-
//
|
2 |
-
@import 'tailwindcss/base';
|
3 |
-
@import 'tailwindcss/components';
|
4 |
-
@import 'tailwindcss/utilities';
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
--radius: 0.625rem;
|
9 |
-
--radius-md: 0.5rem;
|
10 |
-
--background: oklch(1 0 0);
|
11 |
-
--foreground: oklch(0.145 0 0);
|
12 |
-
--popover: oklch(1 0 0);
|
13 |
-
--popover-foreground: oklch(0.145 0 0);
|
14 |
-
--border: oklch(0.922 0 0);
|
15 |
-
}
|
16 |
-
.dark {
|
17 |
-
--background: oklch(0.145 0 0);
|
18 |
-
--foreground: oklch(0.985 0 0);
|
19 |
-
--popover: oklch(0.205 0 0);
|
20 |
-
--popover-foreground: oklch(0.985 0 0);
|
21 |
-
--border: oklch(1 0 0 / 10%);
|
22 |
-
}
|
23 |
-
|
24 |
-
// 3. Apply base styles
|
25 |
-
@layer base {
|
26 |
-
* {
|
27 |
-
border-color: var(--border); // یا استفاده از text-custom-border اگر تعریف کردید
|
28 |
-
outline-color: theme('colors.custom-foreground'); // استفاده از رنگ تعریف شده در Tailwind
|
29 |
-
box-sizing: border-box;
|
30 |
-
}
|
31 |
-
body {
|
32 |
-
// *** MODIFIED: استفاده از کلاسهای جدید تعریف شده در tailwind.config.js ***
|
33 |
-
@apply bg-custom-background text-custom-foreground;
|
34 |
-
overflow-x: hidden;
|
35 |
-
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";
|
36 |
-
-webkit-font-smoothing: antialiased;
|
37 |
-
-moz-osx-font-smoothing: grayscale;
|
38 |
-
margin: 0;
|
39 |
-
padding: 0;
|
40 |
-
}
|
41 |
-
html {
|
42 |
-
margin: 0;
|
43 |
-
padding: 0;
|
44 |
-
overflow-x: hidden;
|
45 |
-
}
|
46 |
-
}
|
47 |
-
|
48 |
-
// ... (بقیه فایل App.scss بدون تغییر نسبت به آخرین نسخه موفق قبلی) ...
|
49 |
-
// (شامل .main-wrapper, .media-area, #large-logo-container, popover, header, .logo-animation-wrapper, footer, control-button, switch-camera, keyframes)
|
50 |
-
// فقط مطمئن شوید که در بخش .popover-content و .notification-popover-text-content هم از رنگهای مبتنی بر متغیر CSS یا کلاسهای Tailwind استفاده شده باشد.
|
51 |
-
|
52 |
-
// مثال برای .popover-content اگر از متغیرهای CSS استفاده میکنید:
|
53 |
-
.popover-content {
|
54 |
-
// ... سایر استایلها ...
|
55 |
-
background-color: var(--popover); // استفاده از متغیر CSS
|
56 |
-
color: var(--popover-foreground); // استفاده از متغیر CSS
|
57 |
-
border-color: var(--border); // استفاده از متغیر CSS
|
58 |
-
// ...
|
59 |
-
}
|
60 |
-
|
61 |
-
// مثال برای .notification-popover-text-content
|
62 |
-
.notification-popover-text-content {
|
63 |
-
// در نسخه قبلی از رنگهای ثابت استفاده شده بود که مشکلی ندارد
|
64 |
-
// background-color: #eff6ff;
|
65 |
-
// color: oklch(0.145 0 0);
|
66 |
-
// یا میتوانید آنها را هم به متغیر CSS یا کلاس Tailwind تبدیل کنید اگر بخواهید کاملا یکپارچه باشد
|
67 |
-
// مثال با کلاس Tailwind اگر تعریف شده باشند:
|
68 |
-
// @apply bg-blue-50 text-gray-800;
|
69 |
-
// .dark & { @apply bg-custom-dark-blue text-custom-light-text; }
|
70 |
-
|
71 |
-
// برای سادگی، فعلا همان رنگهای ثابت قبلی را نگه میداریم:
|
72 |
-
background-color: #eff6ff;
|
73 |
-
font-size: 0.875rem;
|
74 |
-
line-height: 1.5rem;
|
75 |
-
direction: rtl;
|
76 |
-
padding: 1rem;
|
77 |
-
border-radius: var(--radius-md, 0.5rem);
|
78 |
-
color: oklch(0.145 0 0);
|
79 |
-
}
|
80 |
-
.dark .notification-popover-text-content {
|
81 |
-
background-color: oklch(0.25 0.05 230);
|
82 |
-
color: oklch(0.95 0.01 230);
|
83 |
-
}
|
84 |
-
|
85 |
-
|
86 |
-
.main-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
|
87 |
-
.media-area { flex-grow: 1; position: relative; }
|
88 |
-
#large-logo-container { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none; }
|
89 |
-
|
90 |
-
.logo-animation-wrapper {
|
91 |
-
position: relative;
|
92 |
display: flex;
|
|
|
|
|
93 |
align-items: center;
|
94 |
-
justify-content: center;
|
95 |
-
& > .z-10 > svg {
|
96 |
-
width: 100%;
|
97 |
-
height: 100%;
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
.footer-controls-html-like {
|
102 |
width: 100%;
|
103 |
-
display: flex;
|
104 |
-
align-items: center;
|
105 |
-
position: absolute;
|
106 |
-
bottom: 2rem;
|
107 |
-
padding-left: 2.5rem;
|
108 |
-
padding-right: 2.5rem;
|
109 |
-
padding-top: 0.5rem;
|
110 |
-
padding-bottom: 0.5rem;
|
111 |
-
box-sizing: border-box;
|
112 |
-
z-index: 20;
|
113 |
-
justify-content: space-between;
|
114 |
-
}
|
115 |
-
|
116 |
-
.small-logo-footer-html-like {
|
117 |
position: absolute;
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
z-index: 1;
|
122 |
-
display: flex;
|
123 |
-
align-items: center;
|
124 |
-
justify-content: center;
|
125 |
-
}
|
126 |
-
|
127 |
-
.control-button-wrapper {
|
128 |
-
position: relative;
|
129 |
-
display: flex;
|
130 |
-
justify-content: center;
|
131 |
}
|
132 |
|
133 |
-
.
|
134 |
-
height: 80px;
|
135 |
-
width: 80px;
|
136 |
-
border-radius: 9999px;
|
137 |
-
padding: 0;
|
138 |
display: flex;
|
139 |
align-items: center;
|
140 |
justify-content: center;
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
|
|
145 |
cursor: pointer;
|
146 |
-
transition:
|
147 |
-
|
148 |
-
|
149 |
-
|
|
|
|
|
|
|
|
|
150 |
|
151 |
&:hover {
|
152 |
-
|
153 |
-
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
|
154 |
}
|
155 |
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
height: 75%;
|
160 |
-
}
|
161 |
}
|
162 |
}
|
163 |
|
164 |
-
.
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
}
|
177 |
-
.switch-camera-button-content {
|
178 |
-
width: 48px; height: 48px;
|
179 |
-
// background-color: var(--background); // یا bg-custom-background
|
180 |
-
background-color: theme('colors.custom-background');
|
181 |
-
// border: 1px solid var(--border); // یا border-custom-border
|
182 |
-
border: 1px solid theme('colors.custom-border');
|
183 |
-
border-radius: 9999px; display: flex; align-items: center; justify-content: center;
|
184 |
-
box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08); cursor: pointer;
|
185 |
-
transform-origin: center; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
186 |
-
&:hover { transform: scale(1.12) rotate(-6deg); box-shadow: 0 7px 15px rgba(0,0,0,0.18), 0 3px 6px rgba(0,0,0,0.12); }
|
187 |
-
&:active { transform: scale(1.03) rotate(0deg); }
|
188 |
-
svg { width: 22px; height: 22px; stroke: theme('colors.custom-foreground'); transition: transform 0.3s ease-in-out; }
|
189 |
-
&:hover svg { transform: rotate(360deg); }
|
190 |
}
|
191 |
|
192 |
-
//
|
193 |
-
@keyframes popover-drop-in { /* ... */ }
|
194 |
-
@keyframes popover-lift-out { /* ... */ }
|
195 |
-
.animate-popover-open-top-center { animation-name: popover-drop-in; animation-duration: 0.4s; animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55); animation-fill-mode: forwards; }
|
196 |
-
.animate-popover-close-top-center { animation-name: popover-lift-out; animation-duration: 0.3s; animation-timing-function: ease-in; animation-fill-mode: forwards; }
|
|
|
1 |
+
// ... (بالای فایل App.scss شامل ایمپورتها، متغیرهای CSS، base styles) ...
|
|
|
|
|
|
|
2 |
|
3 |
+
/* Header controls - این بخش نباید با تغییرات tailwind.config.js تغییر کرده باشد */
|
4 |
+
.header-controls {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
display: flex;
|
6 |
+
padding: 0.75rem 0.5rem; // این مقادیر از قبل تنظیم شده بودند
|
7 |
+
justify-content: space-between;
|
8 |
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
position: absolute;
|
11 |
+
top: 0;
|
12 |
+
left: 0;
|
13 |
+
z-index: 10;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
|
16 |
+
.header-button {
|
|
|
|
|
|
|
|
|
17 |
display: flex;
|
18 |
align-items: center;
|
19 |
justify-content: center;
|
20 |
+
padding: 0.5rem;
|
21 |
+
width: 40px;
|
22 |
+
height: 40px;
|
23 |
+
border-radius: var(--radius-lg, 0.625rem);
|
24 |
+
background-color: #e5e7eb; // رنگ خاکستری روشن برای حالت عادی
|
25 |
cursor: pointer;
|
26 |
+
transition: background-color 0.2s, transform 0.1s ease-out;
|
27 |
+
|
28 |
+
svg {
|
29 |
+
opacity: 0.7;
|
30 |
+
stroke: #374151; // رنگ آیکون خاکستری تیره
|
31 |
+
width: 24px;
|
32 |
+
height: 24px;
|
33 |
+
}
|
34 |
|
35 |
&:hover {
|
36 |
+
background-color: #d1d5db; // کمی تیرهتر در هاور
|
|
|
37 |
}
|
38 |
|
39 |
+
&:active {
|
40 |
+
background-color: #9ca3af; // باز هم تیرهتر در کلیک
|
41 |
+
transform: scale(0.95);
|
|
|
|
|
42 |
}
|
43 |
}
|
44 |
|
45 |
+
.dark .header-button {
|
46 |
+
background-color: oklch(0.28 0 0); // رنگ پسزمینه دکمه در حالت تاریک
|
47 |
+
&:hover {
|
48 |
+
background-color: oklch(0.35 0 0);
|
49 |
+
}
|
50 |
+
&:active {
|
51 |
+
background-color: oklch(0.40 0 0);
|
52 |
+
transform: scale(0.95);
|
53 |
+
}
|
54 |
+
svg {
|
55 |
+
opacity: 0.8;
|
56 |
+
stroke: oklch(0.85 0 0); // رنگ آیکون در حالت تاریک
|
57 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
|
60 |
+
// ... (بقیه فایل App.scss شامل .logo-animation-wrapper، .footer-controls-html-like، .control-button و غیره باید مانند آخرین نسخه موفق قبلی باشد) ...
|
|
|
|
|
|
|
|