Spaces:
Running
Running
Update src/App.scss
Browse files- src/App.scss +27 -16
src/App.scss
CHANGED
|
@@ -9,19 +9,19 @@
|
|
| 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 |
|
| 19 |
.dark {
|
| 20 |
-
--background: oklch(0.145 0 0);
|
| 21 |
-
--foreground: oklch(0.985 0 0);
|
| 22 |
--popover: oklch(0.205 0 0);
|
| 23 |
--popover-foreground: oklch(0.985 0 0);
|
| 24 |
-
--border: oklch(1 0 0 / 10%);
|
| 25 |
}
|
| 26 |
|
| 27 |
// 3. Apply base styles
|
|
@@ -129,7 +129,7 @@
|
|
| 129 |
display: flex;
|
| 130 |
align-items: center;
|
| 131 |
justify-content: center;
|
| 132 |
-
color: white;
|
| 133 |
& > .z-10 > svg {
|
| 134 |
width: 100%;
|
| 135 |
height: 100%;
|
|
@@ -220,23 +220,34 @@
|
|
| 220 |
border-radius: 9999px; display: flex; align-items: center; justify-content: center;
|
| 221 |
box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08); cursor: pointer;
|
| 222 |
transform-origin: center; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
}
|
| 228 |
|
| 229 |
-
/* Keyframes for popover
|
| 230 |
-
/* این Keyframe ها باید در tailwind.config.js در بخش theme.extend.keyframes تعریف شده باشند */
|
| 231 |
-
/* و در اینجا فقط نام آنها استفاده میشود. */
|
| 232 |
.animate-popover-open-top-center {
|
| 233 |
-
animation-name: popover-drop-in;
|
| 234 |
animation-duration: 0.4s;
|
| 235 |
animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
| 236 |
animation-fill-mode: forwards;
|
| 237 |
}
|
| 238 |
.animate-popover-close-top-center {
|
| 239 |
-
animation-name: popover-lift-out;
|
| 240 |
animation-duration: 0.3s;
|
| 241 |
animation-timing-function: ease-in;
|
| 242 |
animation-fill-mode: forwards;
|
|
|
|
| 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 |
|
| 19 |
.dark {
|
| 20 |
+
--background: oklch(0.145 0 0);
|
| 21 |
+
--foreground: oklch(0.985 0 0);
|
| 22 |
--popover: oklch(0.205 0 0);
|
| 23 |
--popover-foreground: oklch(0.985 0 0);
|
| 24 |
+
--border: oklch(1 0 0 / 10%);
|
| 25 |
}
|
| 26 |
|
| 27 |
// 3. Apply base styles
|
|
|
|
| 129 |
display: flex;
|
| 130 |
align-items: center;
|
| 131 |
justify-content: center;
|
| 132 |
+
color: white;
|
| 133 |
& > .z-10 > svg {
|
| 134 |
width: 100%;
|
| 135 |
height: 100%;
|
|
|
|
| 220 |
border-radius: 9999px; display: flex; align-items: center; justify-content: center;
|
| 221 |
box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08); cursor: pointer;
|
| 222 |
transform-origin: center; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
| 223 |
+
|
| 224 |
+
// *** MODIFIED: حذف چرخش در هاور و اکتیو ***
|
| 225 |
+
&:hover {
|
| 226 |
+
transform: scale(1.12); /* فقط بزرگ شدن در هاور */
|
| 227 |
+
box-shadow: 0 7px 15px rgba(0,0,0,0.18), 0 3px 6px rgba(0,0,0,0.12);
|
| 228 |
+
}
|
| 229 |
+
&:active {
|
| 230 |
+
transform: scale(1.03); /* فقط کمی بزرگ شدن در کلیک، بدون چرخش */
|
| 231 |
+
}
|
| 232 |
+
svg {
|
| 233 |
+
width: 22px; height: 22px;
|
| 234 |
+
stroke: theme('colors.custom-foreground');
|
| 235 |
+
transition: transform 0.3s ease-in-out;
|
| 236 |
+
}
|
| 237 |
+
&:hover svg {
|
| 238 |
+
// transform: rotate(360deg); // حذف چرخش آیکون داخلی هم اگر نمیخواهید
|
| 239 |
+
}
|
| 240 |
}
|
| 241 |
|
| 242 |
+
/* Keyframes for popover */
|
|
|
|
|
|
|
| 243 |
.animate-popover-open-top-center {
|
| 244 |
+
animation-name: popover-drop-in;
|
| 245 |
animation-duration: 0.4s;
|
| 246 |
animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
| 247 |
animation-fill-mode: forwards;
|
| 248 |
}
|
| 249 |
.animate-popover-close-top-center {
|
| 250 |
+
animation-name: popover-lift-out;
|
| 251 |
animation-duration: 0.3s;
|
| 252 |
animation-timing-function: ease-in;
|
| 253 |
animation-fill-mode: forwards;
|