SotiproAlpha2 / src /App.scss
Ezmary's picture
Update src/App.scss
0616795 verified
raw
history blame
6.11 kB
// src/App.scss
// 1. Import Tailwind's base, components, and utilities
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
// 2. Define CSS Variables
:root {
--radius: 0.625rem; /* 10px */
--radius-md: 0.5rem; /* 8px */
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--border: oklch(0.922 0 0);
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--border: oklch(1 0 0 / 10%);
}
// 3. Apply base styles
@layer base {
* { box-sizing: border-box; }
body {
@apply bg-custom-background text-custom-foreground;
overflow-x: hidden;
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
margin: 0; padding: 0;
}
}
/* --- START: استایل‌های جدید و اصلاح شده --- */
.loading-screen {
display: flex; align-items: center; justify-content: center;
height: 100vh; font-size: 1.2rem; color: oklch(0.85 0 0);
}
.main-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.header-controls {
display: flex; padding: 0.75rem 1rem; justify-content: space-between; align-items: center;
width: 100%; position: absolute; top: 0; left: 0; z-index: 50;
pointer-events: none;
> div, > button { pointer-events: auto; }
}
.header-icon-button {
display: flex; align-items: center; justify-content: center; padding: 0.5rem;
width: 44px; height: 44px; border-radius: 9999px;
background-color: rgba(44, 44, 46, 0.7);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(8px);
cursor: pointer; transition: all 0.2s ease-out;
svg, .material-symbols-outlined {
opacity: 0.9;
color: oklch(0.95 0 0);
stroke: oklch(0.95 0 0);
width: 26px; height: 26px; font-size: 26px;
}
&:hover { background-color: rgba(60, 60, 62, 0.8); }
&:active { transform: scale(0.95); }
}
.notification-popover-wrapper, .personality-popover-wrapper {
position: absolute; z-index: 100; opacity: 0; pointer-events: none;
transform: translateY(-10px) scale(0.95); transition: all 150ms ease-in-out;
&.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.popover-content {
background: rgba(44,44,46,0.95); backdrop-filter: blur(10px);
border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
border: 1px solid rgba(255, 255, 255, 0.1); color: oklch(0.95 0 0); font-size: 14px;
ul { list-style: none; padding: 0; margin: 0; width: 220px; }
li {
display: flex; align-items: center; justify-content: space-between;
padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background-color 150ms ease;
&:hover { background: #3a3a3c; }
&.active { color: #fff; font-weight: 500; }
div { display: flex; align-items: center; gap: 12px; }
.material-symbols-outlined { font-size: 22px; &.tick { color: #34c759; } }
}
}
}
.notification-popover-wrapper {
top: calc(1rem + 44px + 8px); right: 1rem;
.popover-content { padding: 12px 16px; width: 280px; }
}
.personality-popover-wrapper {
top: calc(1rem + 44px + 8px); left: 1rem;
}
/* --- END: استایل‌های جدید و اصلاح شده --- */
/* بخش‌های دیگر استایل که از کد شما حفظ شده‌اند */
.media-area {
flex-grow: 1;
position: relative;
width: 100%;
height: 100%;
}
#large-logo-container {
display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
position: absolute; top: 0; left: 0; pointer-events: none;
}
.footer-controls-html-like {
width: 100%; display: flex; align-items: center; position: absolute;
bottom: 2rem; padding-left: 2.5rem; padding-right: 2.5rem; padding-top: 0.5rem;
padding-bottom: 0.5rem; box-sizing: border-box; z-index: 20; justify-content: space-between;
}
.small-logo-footer-html-like {
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
z-index: 1; display: flex; align-items: center; justify-content: center;
}
.control-button-wrapper { position: relative; display: flex; justify-content: center; }
.control-button {
height: 80px; width: 80px; border-radius: 9999px; padding: 0;
display: flex; align-items: center; justify-content: center;
border-width: 1px; border-color: theme('colors.custom-border');
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
cursor: pointer; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
flex-shrink: 0; z-index: 2; overflow: hidden;
&:hover { transform: scale(1.05); }
svg.reference-mic-svg { width: 75%; height: 75%; }
}
.mic-button-color { background-color: #fecdd3; }
.cam-button-color { background-color: #E0ECFF; }
.dark .mic-button-color { background-color: #5C2129; }
.dark .cam-button-color { background-color: #223355; }
.switch-camera-button-container {
position: absolute; bottom: calc(100% + 0.65rem); left: 50%;
transform: translateX(-50%) translateY(15px) scale(0.7); z-index: 5;
opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.35s;
transform-origin: center bottom;
&.visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
}
.switch-camera-button-content {
width: 48px; height: 48px; background-color: theme('colors.custom-background');
border: 1px solid theme('colors.custom-border'); border-radius: 9999px;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 5px 10px rgba(0,0,0,0.12); cursor: pointer;
transition: transform 0.2s ease-out;
&:hover { transform: scale(1.12); }
&:active { transform: scale(1.03); }
svg { width: 22px; height: 22px; stroke: theme('colors.custom-foreground'); }
}