Ezmary commited on
Commit
5bba855
·
verified ·
1 Parent(s): ba3efb2

Update src/App.scss

Browse files
Files changed (1) hide show
  1. src/App.scss +26 -23
src/App.scss CHANGED
@@ -29,7 +29,7 @@
29
  --popover: oklch(0.205 0 0);
30
  --popover-foreground: oklch(0.985 0 0);
31
  --border: oklch(1 0 0 / 10%);
32
- --accent-red: #5C2129;
33
  --Blue-500: #1e40af;
34
  }
35
 
@@ -78,7 +78,7 @@
78
  font-size: 0.875rem; line-height: 1.5rem; direction: rtl;
79
  padding: 1rem;
80
  border-radius: var(--radius-md, 0.5rem);
81
- color: oklch(0.145 0 0);
82
  }
83
  .dark .notification-popover-text-content {
84
  background-color: oklch(0.25 0.05 230);
@@ -112,7 +112,7 @@
112
  .header-button svg { opacity: 0.7; stroke: #374151 /* gray-700 */; }
113
 
114
  .dark .header-button {
115
- background-color: oklch(0.28 0 0);
116
  }
117
  .dark .header-button:hover {
118
  background-color: oklch(0.35 0 0);
@@ -151,9 +151,9 @@
151
  opacity: 0.5;
152
  cursor: not-allowed;
153
  }
154
- .cam-button-color { background-color: #E0ECFF; }
155
- .mic-button-color { background-color: var(--accent-red); }
156
- .dark .cam-button-color { background-color: #223355; }
157
  .dark .mic-button-color { background-color: var(--accent-red); } // Using the variable directly
158
 
159
 
@@ -185,11 +185,11 @@
185
  /* Switch Camera Button Styles */
186
  .switch-camera-button-container {
187
  position: absolute;
188
- bottom: calc(100% + 0.65rem);
189
  left: 50%;
190
  z-index: 5;
191
  opacity: 0;
192
- transform: translateY(15px) scale(0.7) translateX(-50%);
193
  pointer-events: none;
194
  transition: opacity 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
195
  transform-origin: center bottom;
@@ -200,41 +200,41 @@
200
  pointer-events: auto;
201
  }
202
  .switch-camera-button-content {
203
- width: 48px;
204
- height: 48px;
205
  background-color: var(--background);
206
  border: 1px solid var(--border);
207
  border-radius: 9999px;
208
  display: flex;
209
  align-items: center;
210
  justify-content: center;
211
- box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
212
  cursor: pointer;
213
- transform-origin: center;
214
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
215
  }
216
  .switch-camera-button-content:hover {
217
- transform: scale(1.12) rotate(-6deg);
218
  box-shadow: 0 7px 15px rgba(0,0,0,0.18), 0 3px 6px rgba(0,0,0,0.12);
219
  }
220
  .switch-camera-button-content:active {
221
- transform: scale(1.03) rotate(0deg);
222
  }
223
  .switch-camera-button-content svg {
224
- width: 22px;
225
- height: 22px;
226
  stroke: var(--foreground);
227
  transition: transform 0.3s ease-in-out;
228
  }
229
  .switch-camera-button-content:hover svg {
230
- transform: rotate(360deg);
231
  }
232
  .switch-camera-button-content:disabled {
233
  opacity: 0.5;
234
  cursor: not-allowed;
235
  &:hover { // Prevent hover effects on disabled
236
  transform: none;
237
- box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
238
  }
239
  svg:hover {
240
  transform: none;
@@ -243,15 +243,18 @@
243
 
244
 
245
  /* Animations from Tailwind config */
 
246
  @keyframes popover-drop-in {
247
- '0%' { opacity: 0; transform: translateY(-100%) scale(0.9); }
248
- '70%' { opacity: 1; transform: translateY(5px) scale(1.02); }
249
- '100%' { opacity: 1; transform: translateY(0) scale(1); }
250
  }
 
251
  @keyframes popover-lift-out {
252
- '0%' { opacity: 1; transform: translateY(0) scale(1); }
253
- '100%' { opacity: 0; transform: translateY(-100%) scale(0.9); }
254
  }
 
255
  .animate-popover-open-top-center {
256
  animation: popover-drop-in 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
257
  }
 
29
  --popover: oklch(0.205 0 0);
30
  --popover-foreground: oklch(0.985 0 0);
31
  --border: oklch(1 0 0 / 10%);
32
+ --accent-red: #5C2129;
33
  --Blue-500: #1e40af;
34
  }
35
 
 
78
  font-size: 0.875rem; line-height: 1.5rem; direction: rtl;
79
  padding: 1rem;
80
  border-radius: var(--radius-md, 0.5rem);
81
+ color: oklch(0.145 0 0);
82
  }
83
  .dark .notification-popover-text-content {
84
  background-color: oklch(0.25 0.05 230);
 
112
  .header-button svg { opacity: 0.7; stroke: #374151 /* gray-700 */; }
113
 
114
  .dark .header-button {
115
+ background-color: oklch(0.28 0 0);
116
  }
117
  .dark .header-button:hover {
118
  background-color: oklch(0.35 0 0);
 
151
  opacity: 0.5;
152
  cursor: not-allowed;
153
  }
154
+ .cam-button-color { background-color: #E0ECFF; }
155
+ .mic-button-color { background-color: var(--accent-red); }
156
+ .dark .cam-button-color { background-color: #223355; }
157
  .dark .mic-button-color { background-color: var(--accent-red); } // Using the variable directly
158
 
159
 
 
185
  /* Switch Camera Button Styles */
186
  .switch-camera-button-container {
187
  position: absolute;
188
+ bottom: calc(100% + 0.65rem);
189
  left: 50%;
190
  z-index: 5;
191
  opacity: 0;
192
+ transform: translateY(15px) scale(0.7) translateX(-50%);
193
  pointer-events: none;
194
  transition: opacity 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
195
  transform-origin: center bottom;
 
200
  pointer-events: auto;
201
  }
202
  .switch-camera-button-content {
203
+ width: 48px;
204
+ height: 48px;
205
  background-color: var(--background);
206
  border: 1px solid var(--border);
207
  border-radius: 9999px;
208
  display: flex;
209
  align-items: center;
210
  justify-content: center;
211
+ box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
212
  cursor: pointer;
213
+ transform-origin: center;
214
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
215
  }
216
  .switch-camera-button-content:hover {
217
+ transform: scale(1.12) rotate(-6deg);
218
  box-shadow: 0 7px 15px rgba(0,0,0,0.18), 0 3px 6px rgba(0,0,0,0.12);
219
  }
220
  .switch-camera-button-content:active {
221
+ transform: scale(1.03) rotate(0deg);
222
  }
223
  .switch-camera-button-content svg {
224
+ width: 22px;
225
+ height: 22px;
226
  stroke: var(--foreground);
227
  transition: transform 0.3s ease-in-out;
228
  }
229
  .switch-camera-button-content:hover svg {
230
+ transform: rotate(360deg);
231
  }
232
  .switch-camera-button-content:disabled {
233
  opacity: 0.5;
234
  cursor: not-allowed;
235
  &:hover { // Prevent hover effects on disabled
236
  transform: none;
237
+ box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
238
  }
239
  svg:hover {
240
  transform: none;
 
243
 
244
 
245
  /* Animations from Tailwind config */
246
+ /* CORRECTED KEYFRAMES */
247
  @keyframes popover-drop-in {
248
+ 0% { opacity: 0; transform: translateY(-100%) scale(0.9); }
249
+ 70% { opacity: 1; transform: translateY(5px) scale(1.02); }
250
+ 100% { opacity: 1; transform: translateY(0) scale(1); }
251
  }
252
+
253
  @keyframes popover-lift-out {
254
+ 0% { opacity: 1; transform: translateY(0) scale(1); }
255
+ 100% { opacity: 0; transform: translateY(-100%) scale(0.9); }
256
  }
257
+
258
  .animate-popover-open-top-center {
259
  animation: popover-drop-in 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
260
  }