Files
BrowserOS/apps/agent/styles/global.css
Dani Akash fa1c5040e9 feat: sidepanel ux improvements (#248)
* chore: update bun lock

* feat: created unified app component

* feat: created unified app directory

* feat: refactor all html files

* feat: setup sidebar

* feat: simplify theme toggle

* feat: setup collapsible sidebar

* feat: remove navigation label

* feat: use smoother animation for sidebar collapse

* fix: collapsible sidebar on theme toggle

* chore: hide sign in button

* chore: persist collapsible state

* feat: make sidebar logo larger

* feat: added personalize screen to navbar

* fix: personalize layout

* feat: added keyboard shortcuts to the sidebar

* fix: update sidebar navigation capabilities

* feat: separate sidebar for the settings page

* fix: settings sidebar layout

* feat: hide the footer links in the newtab page

* chore: slightly reduce the width of the scheduled tasks

* feat: persist scheduled task collapsible state

* fix: sidebar accent on light mode

* fix: isActive state for the sidebar navigation
2026-01-20 18:28:51 +05:30

376 lines
10 KiB
CSS

@import "tailwindcss";
@import "tw-animate-css";
@import "tailwind-scrollbar-hide/v4";
@plugin "@tailwindcss/typography";
@custom-variant dark (&:is(.dark *));
/* Geist Sans Variable Font */
@font-face {
font-family: "Geist";
src: url("../geist/Geist[wght].woff2") format("woff2-variations");
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Geist";
src: url("../geist/Geist-Italic[wght].woff2") format("woff2-variations");
font-weight: 100 900;
font-style: italic;
font-display: swap;
}
/* Geist Mono Variable Font */
@font-face {
font-family: "Geist Mono";
src: url("../geist-mono/GeistMono[wght].woff2") format("woff2-variations");
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Geist Mono";
src: url("../geist-mono/GeistMono-Italic[wght].woff2")
format("woff2-variations");
font-weight: 100 900;
font-style: italic;
font-display: swap;
}
:root {
--radius: 0.65rem;
--background: oklch(0.985 0.002 85);
--foreground: oklch(0.141 0.005 285.823);
--card: oklch(0.99 0.001 85);
--card-foreground: oklch(0.141 0.005 285.823);
--popover: oklch(0.99 0.001 85);
--popover-foreground: oklch(0.141 0.005 285.823);
--primary: oklch(0.646 0.222 41.116);
--primary-foreground: oklch(0.98 0.016 73.684);
--secondary: oklch(0.97 0.002 85);
--secondary-foreground: oklch(0.21 0.006 285.885);
--muted: oklch(0.97 0.002 85);
--muted-foreground: oklch(0.552 0.016 285.938);
--accent: oklch(0.97 0.002 85);
--accent-foreground: oklch(0.21 0.006 285.885);
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.99 0 0);
--border: oklch(0.92 0.004 286.32);
--input: oklch(0.92 0.004 286.32);
--ring: oklch(0.75 0.183 55.934);
--chart-1: oklch(0.837 0.128 66.29);
--chart-2: oklch(0.705 0.213 47.604);
--chart-3: oklch(0.646 0.222 41.116);
--chart-4: oklch(0.553 0.195 38.402);
--chart-5: oklch(0.47 0.157 37.304);
--sidebar: oklch(0.98 0.002 85);
--sidebar-foreground: oklch(0.141 0.005 285.823);
--sidebar-primary: oklch(0.646 0.222 41.116);
--sidebar-primary-foreground: oklch(0.98 0.016 73.684);
--sidebar-accent: oklch(0.92 0.004 85);
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
--sidebar-border: oklch(0.92 0.004 286.32);
--sidebar-ring: oklch(0.75 0.183 55.934);
/* Custom accent color for BrowserOS branding */
--accent-orange: oklch(0.6781 0.1663 43.21);
/* Added brighter orange variant for shimmer animation */
--accent-orange-bright: oklch(0.7531 0.1963 43.21);
}
.dark {
--background: oklch(0.25 0.01 265);
--foreground: oklch(0.92 0 0);
--card: oklch(0.28 0.01 265);
--card-foreground: oklch(0.92 0 0);
--popover: oklch(0.28 0.01 265);
--popover-foreground: oklch(0.92 0 0);
--primary: oklch(0.705 0.213 47.604);
--primary-foreground: oklch(0.98 0.016 73.684);
--secondary: oklch(0.32 0.01 265);
--secondary-foreground: oklch(0.92 0 0);
--muted: oklch(0.32 0.01 265);
--muted-foreground: oklch(0.65 0 0);
--accent: oklch(0.32 0.01 265);
--accent-foreground: oklch(0.92 0 0);
--destructive: oklch(0.704 0.191 22.216);
--destructive-foreground: oklch(0.92 0 0);
--border: oklch(0.38 0.01 265);
--input: oklch(0.38 0.01 265);
--ring: oklch(0.408 0.123 38.172);
--chart-1: oklch(0.837 0.128 66.29);
--chart-2: oklch(0.705 0.213 47.604);
--chart-3: oklch(0.646 0.222 41.116);
--chart-4: oklch(0.553 0.195 38.402);
--chart-5: oklch(0.47 0.157 37.304);
--sidebar: oklch(0.25 0.01 265);
--sidebar-foreground: oklch(0.92 0 0);
--sidebar-primary: oklch(0.705 0.213 47.604);
--sidebar-primary-foreground: oklch(0.92 0 0);
--sidebar-accent: oklch(0.32 0.01 265);
--sidebar-accent-foreground: oklch(0.92 0 0);
--sidebar-border: oklch(0.38 0.01 265);
--sidebar-ring: oklch(0.408 0.123 38.172);
}
@theme inline {
--font-sans: "Geist", "Geist Fallback";
--font-mono: "Geist Mono", "Geist Mono Fallback";
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--color-accent-orange: var(--accent-orange);
/* Added brighter orange to theme */
--color-accent-orange-bright: var(--accent-orange-bright);
/* Custom keyframe animations for hero section */
--animate-float: float 3s ease-in-out infinite;
--animate-shimmer: shimmer 3s ease-in-out infinite;
--animate-pulse-slow: pulse-slow 4s ease-in-out infinite;
--animate-pulse-slow-delayed: pulse-slow 4s ease-in-out infinite 2s;
/* Added one-time glow animation for BrowserOS text */
--animate-glow-once: glow-once 1.5s ease-out 1s forwards;
/* Added shine animation for card hover highlight effect */
--animate-shine: shine 0.8s ease-in-out;
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground font-sans! antialiased;
}
/* Styled scrollbar with stable gutter and theme-aware colors */
.styled-scrollbar {
/* Firefox support */
scrollbar-width: thin;
scrollbar-color: oklch(from var(--border) l c h / 0.4) transparent;
}
/* Webkit browsers (Chrome, Safari, Edge) */
.styled-scrollbar::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.styled-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.styled-scrollbar::-webkit-scrollbar-thumb {
background: oklch(from var(--border) l c h / 0.4);
border-radius: 4px;
border: 2px solid transparent;
background-clip: padding-box;
}
.styled-scrollbar::-webkit-scrollbar-thumb:hover {
background: oklch(from var(--border) l c h / 0.6);
background-clip: padding-box;
}
/* Dark mode adjustments */
.dark .styled-scrollbar {
scrollbar-color: oklch(from var(--border) l c h / 0.6) transparent;
}
.dark .styled-scrollbar::-webkit-scrollbar-thumb {
background: oklch(from var(--border) l c h / 0.6);
background-clip: padding-box;
}
.dark .styled-scrollbar::-webkit-scrollbar-thumb:hover {
background: oklch(from var(--border) l c h / 0.8);
background-clip: padding-box;
}
/* Custom animation keyframes for minimal, elegant hero animations */
@keyframes float {
0%,
100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
@keyframes shimmer {
0% {
background-position: -200% center;
}
100% {
background-position: 200% center;
}
}
@keyframes pulse-slow {
0%,
100% {
opacity: 0.3;
transform: scale(1);
}
50% {
opacity: 0.5;
transform: scale(1.05);
}
}
/* Added subtle one-time glow animation that draws focus then settles */
@keyframes glow-once {
0% {
text-shadow: none;
transform: scale(1);
}
50% {
text-shadow:
0 0 20px rgba(214, 123, 68, 0.6),
0 0 40px rgba(214, 123, 68, 0.4),
0 0 60px rgba(214, 123, 68, 0.2);
transform: scale(1.02);
}
100% {
text-shadow: none;
transform: scale(1);
}
}
/* Added shine animation for card hover highlight effect */
@keyframes shine {
0% {
transform: translateX(-100%) translateY(-100%) rotate(30deg);
}
100% {
transform: translateX(100%) translateY(100%) rotate(30deg);
}
}
/* Collapsible animations for smooth expand/collapse */
@keyframes collapsible-down {
from {
height: 0;
opacity: 0;
}
to {
height: var(--radix-collapsible-content-height);
opacity: 1;
}
}
@keyframes collapsible-up {
from {
height: var(--radix-collapsible-content-height);
opacity: 1;
}
to {
height: 0;
opacity: 0;
}
}
.bg-grid-pattern {
background-image:
linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
background-size: 60px 60px;
}
.dark .bg-grid-pattern {
background-image:
linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
background-size: 60px 60px;
}
.bg-gradient-radial-focus {
background: radial-gradient(
circle at center,
transparent 0%,
transparent 30%,
var(--background) 70%
);
}
/* Animation utility classes */
.animate-float {
animation: float 3s ease-in-out infinite;
}
.animate-shimmer {
animation: shimmer 3s ease-in-out infinite;
}
.animate-pulse-slow {
animation: pulse-slow 4s ease-in-out infinite;
}
.animate-pulse-slow-delayed {
animation: pulse-slow 4s ease-in-out infinite 2s;
}
/* Added utility class for one-time glow animation */
.animate-glow-once {
animation: glow-once 1.5s ease-out forwards;
}
/* Added utility class for shine animation on card hover */
.animate-shine {
animation: shine 0.8s ease-in-out;
}
/* Collapsible animation utility classes */
.animate-collapsible-down {
animation: collapsible-down 0.2s ease-out;
}
.animate-collapsible-up {
animation: collapsible-up 0.2s ease-out;
}
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
}