Files
tuxmate-abusoww/src/app/globals.css
NIJAT b0bd27341a feat: huge UI/UX overhaul, AUR improvements, and code polish
- Shortcuts Bar: Redesigned layout (Esc/Tab grouped, Space added), unified NAV styling, and implemented consistent Arch Blue branding.
- AUR Integration:
  - Added yay/paru helper toggle with keyboard shortcuts (1/2).
  - Implemented minimal visual ARCH logo indicator for AUR packages.
  - Standardized all AUR-related UI elements (checkboxes, badges) to official Arch Blue (#1793d1).
- Theme System: Refactored useTheme hook to a global Context Provider for perfect animation sync.
- Animations & UI: Enhanced drawer animations (slide-up/down), tooltips, and hover states using GSAP.
- Performance: Optimized app filtering with useMemo to prevent re-renders; fixed reconciliation issues.
- Fixes: Resolved hydration mismatches and malformed HTML tags.
- Docs: Updated README and CONTRIBUTING guidelines.
- Refactor: Cleaned up unused code.
2025-12-29 00:02:45 +04:00

621 lines
12 KiB
CSS

@import "tailwindcss";
/* ===== WARM PAPER AESTHETIC THEMES ===== */
:root {
/* Dark theme - warm charcoal with paper undertones */
--bg-primary: #1e1d1a;
--bg-secondary: #262520;
--bg-tertiary: #302f29;
--bg-hover: #3a3832;
--bg-focus: #454339;
--text-primary: #f5f3ef;
--text-secondary: #d8d4cc;
--text-muted: #a09a8e;
--border-primary: #3a3832;
--border-secondary: #454339;
--accent: #9a958a;
}
.light {
/* Light theme - warm paper/parchment */
--bg-primary: #f5f2ed;
--bg-secondary: #ebe8e2;
--bg-tertiary: #e0dcd4;
--bg-hover: #d8d4ca;
--bg-focus: #cec9bd;
--text-primary: #1a1815;
--text-secondary: #3a3733;
--text-muted: #5c5850;
--border-primary: #d8d4ca;
--border-secondary: #cec9bd;
--accent: #7d7970;
}
@theme inline {
--color-background: var(--bg-primary);
--color-foreground: var(--text-primary);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}
body {
background: var(--bg-primary);
color: var(--text-primary);
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-weight: 450;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transition: background 0.3s ease, color 0.3s ease;
}
body::before {
content: "";
position: fixed;
inset: 0;
z-index: 999;
background-image: url('/noise.png');
opacity: 0.04;
pointer-events: none;
mix-blend-mode: overlay;
}
/* Smooth scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border-secondary);
border-radius: 3px;
}
html {
scroll-behavior: smooth;
}
::selection {
background: rgba(128, 120, 100, 0.25);
}
/* ===== THEME SWITCH ===== */
.switch {
position: relative;
-webkit-tap-highlight-color: transparent;
}
.switch__input {
background-color: var(--bg-tertiary);
}
.switch__input:before {
background-color: var(--text-primary);
}
.switch__input {
position: relative;
border-radius: 0.75em;
cursor: pointer;
display: block;
width: 3em;
height: 1.5em;
transition: background-color 0.4s cubic-bezier(0.65, 0, 0.35, 1);
-webkit-appearance: none;
appearance: none;
border: none;
outline: none;
}
.switch__input:before {
border-radius: 50%;
content: "";
display: block;
position: absolute;
top: 0.125em;
left: 0.125em;
width: 1.25em;
height: 1.25em;
transition:
background-color 0.4s cubic-bezier(0.65, 0, 0.35, 1),
transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.switch__icon,
.switch__icon-part {
display: block;
position: absolute;
top: 0;
left: 0;
}
.switch__icon {
background-color: var(--bg-primary);
border-radius: 50%;
overflow: hidden;
pointer-events: none;
top: 0.125em;
left: 0.125em;
width: 1.25em;
height: 1.25em;
transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.switch__icon-part {
transition:
box-shadow 0.4s cubic-bezier(0.65, 0, 0.35, 1),
transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.switch__icon-part--1,
.switch__icon-part--2,
.switch__icon-part--3 {
border-radius: 50%;
}
.switch__icon-part--1 {
background-color: var(--bg-primary);
top: calc(50% - 0.375em);
left: calc(50% - 0.375em);
width: 0.75em;
height: 0.75em;
}
.switch__icon-part--2 {
background-color: var(--text-primary);
top: calc(50% - 0.4375em);
left: calc(50% - 0.0625em);
width: 0.5em;
height: 0.5em;
transform: translate(-0.1875em, 0.1875em) scale(0.2);
}
.switch__icon-part--3 {
box-shadow: 0 0 0 0.625em var(--text-primary) inset;
width: 1.25em;
height: 1.25em;
transform: scale(0.25);
}
.switch__icon-part--3~.switch__icon-part {
background-color: var(--text-primary);
border-radius: 0.0625em;
top: 50%;
left: 50%;
width: 0.125em;
height: 0.1875em;
transform-origin: 50% 0;
}
.switch__icon-part--4 {
transform: translateX(-50%) rotate(0) translateY(0.25em);
}
.switch__icon-part--5 {
transform: translateX(-50%) rotate(45deg) translateY(0.25em);
}
.switch__icon-part--6 {
transform: translateX(-50%) rotate(90deg) translateY(0.25em);
}
.switch__icon-part--7 {
transform: translateX(-50%) rotate(135deg) translateY(0.25em);
}
.switch__icon-part--8 {
transform: translateX(-50%) rotate(180deg) translateY(0.25em);
}
.switch__icon-part--9 {
transform: translateX(-50%) rotate(225deg) translateY(0.25em);
}
.switch__icon-part--10 {
transform: translateX(-50%) rotate(270deg) translateY(0.25em);
}
.switch__icon-part--11 {
transform: translateX(-50%) rotate(315deg) translateY(0.25em);
}
.switch__sr {
overflow: hidden;
position: absolute;
width: 1px;
height: 1px;
}
/* Checked state (dark mode) */
.switch__input:checked {
background-color: var(--bg-tertiary);
}
.switch__input:checked:before,
.switch__input:checked~.switch__icon {
transform: translateX(1.5em);
}
.switch__input:checked~.switch__icon .switch__icon-part--2 {
transform: translate(0, 0) scale(1);
}
.switch__input:checked~.switch__icon .switch__icon-part--3 {
box-shadow: 0 0 0 0.25em var(--text-primary) inset;
transform: scale(1);
}
.switch__icon-part--4,
.switch__icon-part--5,
.switch__icon-part--6,
.switch__icon-part--7,
.switch__icon-part--8,
.switch__icon-part--9,
.switch__icon-part--10,
.switch__icon-part--11 {
transition:
transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.switch__input:checked~.switch__icon .switch__icon-part--4 {
transform: translateX(-50%) rotate(0) translateY(0.625em) scale(0);
}
.switch__input:checked~.switch__icon .switch__icon-part--5 {
transform: translateX(-50%) rotate(45deg) translateY(0.625em) scale(0);
}
.switch__input:checked~.switch__icon .switch__icon-part--6 {
transform: translateX(-50%) rotate(90deg) translateY(0.625em) scale(0);
}
.switch__input:checked~.switch__icon .switch__icon-part--7 {
transform: translateX(-50%) rotate(135deg) translateY(0.625em) scale(0);
}
.switch__input:checked~.switch__icon .switch__icon-part--8 {
transform: translateX(-50%) rotate(180deg) translateY(0.625em) scale(0);
}
.switch__input:checked~.switch__icon .switch__icon-part--9 {
transform: translateX(-50%) rotate(225deg) translateY(0.625em) scale(0);
}
.switch__input:checked~.switch__icon .switch__icon-part--10 {
transform: translateX(-50%) rotate(270deg) translateY(0.625em) scale(0);
}
.switch__input:checked~.switch__icon .switch__icon-part--11 {
transform: translateX(-50%) rotate(315deg) translateY(0.625em) scale(0);
}
/* Set switch size */
.switch {
font-size: 1.5rem;
}
/* ===== ANIMATIONS ===== */
/* Checkbox pop */
@keyframes checkPop {
0% {
transform: scale(0.8);
}
60% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
.checkbox-pop {
animation: checkPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Checkmark entrance */
@keyframes checkIn {
0% {
transform: scale(0) rotate(-45deg);
opacity: 0;
}
100% {
transform: scale(1) rotate(0);
opacity: 1;
}
}
.check-animate {
animation: checkIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
/* Spring chevron */
.chevron-spring {
transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Stagger items */
@keyframes staggerIn {
0% {
opacity: 0;
transform: translateY(-6px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.stagger-item {
animation: staggerIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Tooltip fade */
@keyframes tooltipIn {
0% {
opacity: 0;
transform: translateY(4px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.tooltip-animate {
animation: tooltipIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Dropdown entrance */
@keyframes dropIn {
0% {
opacity: 0;
transform: translateY(-8px) scale(0.95);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.dropdown-animate {
animation: dropIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Button press */
.btn-press {
transition: transform 0.1s ease;
}
.btn-press:active {
transform: scale(0.95);
}
/* Focus row highlight */
.focus-row {
background: var(--bg-focus);
transition: background 0.15s ease;
}
/* ===== ENTRANCE ANIMATION INITIAL STATES ===== */
/* These prevent the flash of content before GSAP animates */
.category-header {
clip-path: inset(0 100% 0 0);
}
.app-item {
opacity: 0;
transform: translateY(-20px);
}
.header-animate {
clip-path: inset(0 100% 0 0);
}
.header-controls {
opacity: 0;
transform: translateY(-10px);
}
/* ===== HOW IT WORKS POPUP ===== */
@keyframes popupSlideIn {
0% {
opacity: 0;
transform: translateY(-10px) scale(0.98);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.how-it-works-popup {
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -2px rgba(0, 0, 0, 0.1),
0 20px 50px -12px rgba(0, 0, 0, 0.25);
}
.how-it-works-popup::-webkit-scrollbar {
width: 4px;
}
.how-it-works-popup::-webkit-scrollbar-track {
background: transparent;
}
.how-it-works-popup::-webkit-scrollbar-thumb {
background: var(--border-secondary);
border-radius: 2px;
}
/* ===== SLIDE-UP DRAWER ANIMATIONS ===== */
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes slideUp {
0% {
opacity: 0;
transform: translateY(20px) scale(0.98);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes slideDown {
0% {
opacity: 1;
transform: translateY(0) scale(1);
}
100% {
opacity: 0;
transform: translateY(20px) scale(0.98);
}
}
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/* Smooth spring-like animations for floating cards */
@keyframes cardSlideIn {
0% {
opacity: 0;
transform: translateY(20px) scale(0.95);
}
60% {
transform: translateY(-3px) scale(1.01);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes cardSlideOut {
0% {
opacity: 1;
transform: translateY(0) scale(1);
}
100% {
opacity: 0;
transform: translateY(10px) scale(0.95);
}
}
@keyframes cardSlideInSecond {
0% {
opacity: 0;
transform: translateY(15px) scale(0.97);
}
60% {
transform: translateY(-2px) scale(1.005);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes tooltipSlideUp {
0% {
opacity: 0;
transform: translateY(8px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* ===== COMMAND BAR SCROLLBAR ===== */
.command-scroll {
scrollbar-width: none;
/* Firefox */
-ms-overflow-style: none;
/* IE/Edge */
}
.command-scroll::-webkit-scrollbar {
display: none;
/* Chrome/Safari/Opera */
}
/* ===== SEARCH POPUP ANIMATION ===== */
@keyframes searchPopIn {
0% {
opacity: 0;
transform: translateY(10px) scale(0.95);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* ===== THEME FLASH ANIMATION ===== */
@keyframes themeFlash {
0% {
opacity: 0;
}
50% {
opacity: 0.15;
}
100% {
opacity: 0;
}
}
body.theme-flash::after {
content: "";
position: fixed;
inset: 0;
z-index: 9999;
pointer-events: none;
background: var(--text-primary);
animation: themeFlash 0.15s ease-out forwards;
}