Spaces:
Running
Running
Update src/App.scss
Browse files- src/App.scss +20 -24
src/App.scss
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
// src/App.scss (نسخه نهایی و تصحیح شده برای
|
2 |
|
3 |
// 1. Import Tailwind's base, components, and utilities
|
4 |
@import 'tailwindcss/base';
|
@@ -15,7 +15,7 @@
|
|
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);
|
@@ -60,23 +60,17 @@
|
|
60 |
.header-icon-button {
|
61 |
display: flex; align-items: center; justify-content: center; padding: 0.5rem;
|
62 |
width: 44px; height: 44px; border-radius: 9999px;
|
63 |
-
// ✅ تغییر ۱: پسزمینه شفاف شد
|
64 |
background-color: transparent;
|
65 |
-
border: none;
|
66 |
-
backdrop-filter: none;
|
67 |
cursor: pointer; transition: all 0.2s ease-out;
|
68 |
.material-symbols-outlined {
|
69 |
opacity: 0.8;
|
70 |
-
|
71 |
-
color: #374151; // رنگ تیره برای تم روشن
|
72 |
font-size: 28px;
|
73 |
}
|
74 |
-
.dark & .material-symbols-outlined {
|
75 |
-
|
76 |
-
}
|
77 |
-
&:hover {
|
78 |
-
background-color: rgba(0, 0, 0, 0.05); // یک پسزمینه خیلی محو در هاور
|
79 |
-
}
|
80 |
&:active { transform: scale(0.95); }
|
81 |
}
|
82 |
|
@@ -90,7 +84,6 @@
|
|
90 |
border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
91 |
border: 1px solid theme('colors.custom-border');
|
92 |
color: theme('colors.custom-popover-foreground'); font-size: 14px;
|
93 |
-
|
94 |
ul { list-style: none; padding: 0; margin: 0; width: 220px; }
|
95 |
li {
|
96 |
display: flex; align-items: center; justify-content: space-between;
|
@@ -111,18 +104,21 @@
|
|
111 |
.personality-popover-wrapper {
|
112 |
top: calc(1rem + 44px + 8px); left: 1rem;
|
113 |
}
|
114 |
-
/* --- END: استایلهای جدید --- */
|
115 |
-
|
116 |
|
117 |
/* بخشهای دیگر استایل که از کد شما حفظ شدهاند */
|
118 |
.media-area {
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
|
|
|
|
|
|
|
|
|
|
126 |
}
|
127 |
#large-logo-container {
|
128 |
display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
|
@@ -177,7 +173,7 @@
|
|
177 |
z-index: 1000; backdrop-filter: blur(5px);
|
178 |
}
|
179 |
.modal-content {
|
180 |
-
background: #fff;
|
181 |
color: #111;
|
182 |
padding: 24px; border-radius: 16px;
|
183 |
width: 90%; max-width: 500px;
|
|
|
1 |
+
// src/App.scss (نسخه نهایی و تصحیح شده برای ویدیو تمامصفحه)
|
2 |
|
3 |
// 1. Import Tailwind's base, components, and utilities
|
4 |
@import 'tailwindcss/base';
|
|
|
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);
|
|
|
60 |
.header-icon-button {
|
61 |
display: flex; align-items: center; justify-content: center; padding: 0.5rem;
|
62 |
width: 44px; height: 44px; border-radius: 9999px;
|
|
|
63 |
background-color: transparent;
|
64 |
+
border: none;
|
65 |
+
backdrop-filter: none;
|
66 |
cursor: pointer; transition: all 0.2s ease-out;
|
67 |
.material-symbols-outlined {
|
68 |
opacity: 0.8;
|
69 |
+
color: #374151;
|
|
|
70 |
font-size: 28px;
|
71 |
}
|
72 |
+
.dark & .material-symbols-outlined { color: oklch(0.95 0 0); }
|
73 |
+
&:hover { background-color: rgba(0, 0, 0, 0.05); }
|
|
|
|
|
|
|
|
|
74 |
&:active { transform: scale(0.95); }
|
75 |
}
|
76 |
|
|
|
84 |
border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
85 |
border: 1px solid theme('colors.custom-border');
|
86 |
color: theme('colors.custom-popover-foreground'); font-size: 14px;
|
|
|
87 |
ul { list-style: none; padding: 0; margin: 0; width: 220px; }
|
88 |
li {
|
89 |
display: flex; align-items: center; justify-content: space-between;
|
|
|
104 |
.personality-popover-wrapper {
|
105 |
top: calc(1rem + 44px + 8px); left: 1rem;
|
106 |
}
|
|
|
|
|
107 |
|
108 |
/* بخشهای دیگر استایل که از کد شما حفظ شدهاند */
|
109 |
.media-area {
|
110 |
+
position: absolute; top: 0; left: 0;
|
111 |
+
width: 100%; height: 100%;
|
112 |
+
z-index: 1;
|
113 |
+
overflow: hidden; // برای جلوگیری از بیرونزدگی ویدیو
|
114 |
+
|
115 |
+
// ✅ تغییر اصلی اینجاست
|
116 |
+
// این کد به تگ ویدیو میگوید که کل فضای media-area را پر کند
|
117 |
+
video#video-feed {
|
118 |
+
width: 100%;
|
119 |
+
height: 100%;
|
120 |
+
object-fit: cover; // کلیدیترین بخش: ویدیو را بدون تغییر نسبت، برای پر کردن فضا برش میدهد
|
121 |
+
}
|
122 |
}
|
123 |
#large-logo-container {
|
124 |
display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
|
|
|
173 |
z-index: 1000; backdrop-filter: blur(5px);
|
174 |
}
|
175 |
.modal-content {
|
176 |
+
background: #fff;
|
177 |
color: #111;
|
178 |
padding: 24px; border-radius: 16px;
|
179 |
width: 90%; max-width: 500px;
|