This commit is contained in:
Iliyan Angelov
2025-11-24 03:52:08 +02:00
parent dfcaebaf8c
commit 366f28677a
18241 changed files with 865352 additions and 567 deletions

View File

@@ -0,0 +1,407 @@
/* ====
--------- (1.01) mixins start ---------
==== */
@use "sass:color";
// Legacy mixins for backward compatibility
@mixin background($color, $repeat, $size, $position) {
background-color: $color;
background-repeat: $repeat;
background-size: $size;
background-position: $position;
}
@mixin center($width) {
max-width: $width;
margin-left: auto;
margin-right: auto;
text-align: center;
}
@mixin box($value) {
width: $value;
min-width: $value;
height: $value;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
// Modern utility mixins
@mixin flex-center {
display: flex;
align-items: center;
justify-content: center;
}
@mixin flex-between {
display: flex;
align-items: center;
justify-content: space-between;
}
@mixin flex-column {
display: flex;
flex-direction: column;
}
@mixin absolute-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@mixin absolute-cover {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
// Typography mixins
@mixin text-truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@mixin text-clamp($lines: 2) {
display: -webkit-box;
-webkit-line-clamp: $lines;
-webkit-box-orient: vertical;
overflow: hidden;
}
@mixin font-smoothing {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// Visual effects mixins
@mixin glassmorphism($opacity: 0.1, $blur: 10px) {
background: rgba(255, 255, 255, $opacity);
backdrop-filter: blur($blur);
-webkit-backdrop-filter: blur($blur);
border: 1px solid rgba(255, 255, 255, 0.2);
}
@mixin glassmorphism-dark($opacity: 0.1, $blur: 10px) {
background: rgba(0, 0, 0, $opacity);
backdrop-filter: blur($blur);
-webkit-backdrop-filter: blur($blur);
border: 1px solid rgba(255, 255, 255, 0.1);
}
@mixin gradient-text($gradient) {
background: $gradient;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
@mixin gradient-border($gradient, $width: 1px) {
position: relative;
background: $gradient;
border-radius: inherit;
&::before {
content: '';
position: absolute;
inset: $width;
background: inherit;
border-radius: inherit;
z-index: -1;
}
}
// Shadow mixins
@mixin shadow-elevation($level: 1) {
@if $level == 1 {
box-shadow: var(--shadow-sm);
} @else if $level == 2 {
box-shadow: var(--shadow-base);
} @else if $level == 3 {
box-shadow: var(--shadow-md);
} @else if $level == 4 {
box-shadow: var(--shadow-lg);
} @else if $level == 5 {
box-shadow: var(--shadow-xl);
}
}
@mixin shadow-colored($color, $opacity: 0.25) {
box-shadow: 0 4px 14px 0 rgba($color, $opacity);
}
// Animation mixins
@mixin transition($properties: all, $duration: 0.3s, $timing: ease-in-out) {
transition: $properties $duration $timing;
}
@mixin hover-lift($lift: 4px) {
transition: transform var(--transition-default);
&:hover {
transform: translateY(-#{$lift});
}
}
@mixin hover-scale($scale: 1.05) {
transition: transform var(--transition-default);
&:hover {
transform: scale($scale);
}
}
@mixin pulse-animation($color: var(--primary-500), $duration: 2s) {
animation: pulse $duration infinite;
@keyframes pulse {
0%, 100% {
box-shadow: 0 0 0 0 rgba($color, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba($color, 0);
}
}
}
@mixin shimmer-effect {
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.4),
transparent
);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
}
// Layout mixins
@mixin container($max-width: var(--container-xl)) {
width: 100%;
max-width: $max-width;
margin-left: auto;
margin-right: auto;
padding-left: var(--space-4);
padding-right: var(--space-4);
@media (min-width: 640px) {
padding-left: var(--space-6);
padding-right: var(--space-6);
}
@media (min-width: 1024px) {
padding-left: var(--space-8);
padding-right: var(--space-8);
}
}
@mixin grid($columns: 1, $gap: var(--space-4)) {
display: grid;
grid-template-columns: repeat($columns, 1fr);
gap: $gap;
}
@mixin aspect-ratio($width: 16, $height: 9) {
position: relative;
overflow: hidden;
&::before {
content: '';
display: block;
padding-top: percentage($height / $width);
}
> * {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
}
// Button mixins
@mixin button-base {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
padding: var(--space-3) var(--space-6);
border: 1px solid transparent;
border-radius: var(--radius-lg);
font-weight: var(--font-weight-medium);
font-size: var(--text-sm);
line-height: var(--leading-none);
text-decoration: none;
cursor: pointer;
transition: var(--transition-colors);
user-select: none;
&:focus {
outline: 2px solid transparent;
outline-offset: 2px;
box-shadow: 0 0 0 2px var(--primary-500);
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
}
@mixin button-variant($bg, $color: white, $hover-bg: null, $hover-color: null) {
background-color: $bg;
color: $color;
&:hover:not(:disabled) {
background-color: $hover-bg or $bg;
color: $hover-color or $color;
filter: brightness(0.9);
}
&:active:not(:disabled) {
background-color: $bg;
filter: brightness(0.85);
}
}
@mixin button-outline($color, $hover-bg: null, $hover-color: null) {
background-color: transparent;
color: $color;
border-color: $color;
&:hover:not(:disabled) {
background-color: $hover-bg or $color;
color: $hover-color or white;
}
}
// Form mixins
@mixin input-base {
display: block;
width: 100%;
padding: var(--space-3) var(--space-4);
border: 1px solid var(--secondary-300);
border-radius: var(--radius-lg);
font-size: var(--text-sm);
line-height: var(--leading-normal);
background-color: var(--white);
transition: var(--transition-colors);
&:focus {
outline: none;
border-color: var(--primary-500);
box-shadow: 0 0 0 3px var(--primary-100);
}
&::placeholder {
color: var(--secondary-400);
}
&:disabled {
background-color: var(--secondary-100);
color: var(--secondary-500);
cursor: not-allowed;
}
}
// Card mixins
@mixin card-base {
background-color: var(--white);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-sm);
overflow: hidden;
transition: var(--transition-shadow);
&:hover {
box-shadow: var(--shadow-md);
}
}
@mixin card-elevated {
@include card-base;
box-shadow: var(--shadow-lg);
&:hover {
box-shadow: var(--shadow-xl);
}
}
// Responsive mixins
@mixin mobile-only {
@media (max-width: 767px) {
@content;
}
}
@mixin tablet-up {
@media (min-width: 768px) {
@content;
}
}
@mixin desktop-up {
@media (min-width: 1024px) {
@content;
}
}
@mixin large-desktop-up {
@media (min-width: 1280px) {
@content;
}
}
// Accessibility mixins
@mixin sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@mixin focus-visible {
&:focus-visible {
outline: 2px solid var(--primary-500);
outline-offset: 2px;
}
}
// Print mixins
@mixin print-only {
@media print {
@content;
}
}
@mixin no-print {
@media print {
display: none !important;
}
}
/* ====
--------- (1.01) mixins end ---------
==== */

View File

@@ -0,0 +1,239 @@
/* ====
--------- (1.02) variables start ---------
==== */
:root {
// Base colors
--white: #ffffff;
--black: #000000;
--transparent: transparent;
// Primary color palette
--primary-50: #eff6ff;
--primary-100: #dbeafe;
--primary-200: #bfdbfe;
--primary-300: #93c5fd;
--primary-400: #60a5fa;
--primary-500: #3b82f6;
--primary-600: #2563eb;
--primary-700: #1d4ed8;
--primary-800: #1e40af;
--primary-900: #1e3a8a;
--primary-950: #172554;
// Secondary color palette (grays)
--secondary-50: #f8fafc;
--secondary-100: #f1f5f9;
--secondary-200: #e2e8f0;
--secondary-300: #cbd5e1;
--secondary-400: #94a3b8;
--secondary-500: #64748b;
--secondary-600: #475569;
--secondary-700: #334155;
--secondary-800: #1e293b;
--secondary-900: #0f172a;
--secondary-950: #020617;
// Accent colors
--accent-blue: #0ea5e9;
--accent-cyan: #06b6d4;
--accent-emerald: #10b981;
--accent-violet: #8b5cf6;
--accent-rose: #f43f5e;
--accent-amber: #f59e0b;
// Semantic colors
--success: #10b981;
--warning: #f59e0b;
--error: #ef4444;
--info: #3b82f6;
// Legacy color mappings for backward compatibility
--template-bg: var(--white);
--template-color: var(--secondary-600);
--primary-color: var(--primary-600);
--secondary-color: var(--secondary-800);
--tertiary-color: var(--secondary-500);
--quaternary-color: var(--primary-600);
--quinary-color: var(--secondary-100);
// Enterprise colors
--enterprise-blue: var(--primary-600);
--enterprise-dark-blue: var(--primary-800);
--enterprise-light-blue: var(--primary-400);
--enterprise-gray: var(--secondary-500);
--enterprise-light-gray: var(--secondary-50);
// Gold enterprise colors
--enterprise-gold: #d4af37;
--enterprise-dark-gold: #b8941f;
--enterprise-light-gold: #f4d03f;
--enterprise-gold-accent: #ffd700;
// Typography - Enterprise Grade Fonts
--font-family-sans: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-family-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
--font-family-display: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
// Font weights
--font-weight-thin: 100;
--font-weight-light: 300;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
--font-weight-extrabold: 800;
--font-weight-black: 900;
// Font sizes
--text-xs: 0.75rem; // 12px
--text-sm: 0.875rem; // 14px
--text-base: 1rem; // 16px
--text-lg: 1.125rem; // 18px
--text-xl: 1.25rem; // 20px
--text-2xl: 1.5rem; // 24px
--text-3xl: 1.875rem; // 30px
--text-4xl: 2.25rem; // 36px
--text-5xl: 3rem; // 48px
--text-6xl: 3.75rem; // 60px
--text-7xl: 4.5rem; // 72px
--text-8xl: 6rem; // 96px
--text-9xl: 8rem; // 128px
// Line heights
--leading-none: 1;
--leading-tight: 1.25;
--leading-snug: 1.375;
--leading-normal: 1.5;
--leading-relaxed: 1.625;
--leading-loose: 2;
// Spacing scale
--space-0: 0;
--space-px: 1px;
--space-0-5: 0.125rem; // 2px
--space-1: 0.25rem; // 4px
--space-1-5: 0.375rem; // 6px
--space-2: 0.5rem; // 8px
--space-2-5: 0.625rem; // 10px
--space-3: 0.75rem; // 12px
--space-3-5: 0.875rem; // 14px
--space-4: 1rem; // 16px
--space-5: 1.25rem; // 20px
--space-6: 1.5rem; // 24px
--space-7: 1.75rem; // 28px
--space-8: 2rem; // 32px
--space-9: 2.25rem; // 36px
--space-10: 2.5rem; // 40px
--space-11: 2.75rem; // 44px
--space-12: 3rem; // 48px
--space-14: 3.5rem; // 56px
--space-16: 4rem; // 64px
--space-20: 5rem; // 80px
--space-24: 6rem; // 96px
--space-28: 7rem; // 112px
--space-32: 8rem; // 128px
--space-36: 9rem; // 144px
--space-40: 10rem; // 160px
--space-44: 11rem; // 176px
--space-48: 12rem; // 192px
--space-52: 13rem; // 208px
--space-56: 14rem; // 224px
--space-60: 15rem; // 240px
--space-64: 16rem; // 256px
--space-72: 18rem; // 288px
--space-80: 20rem; // 320px
--space-96: 24rem; // 384px
// Border radius
--radius-none: 0;
--radius-sm: 0.125rem; // 2px
--radius-base: 0.25rem; // 4px
--radius-md: 0.375rem; // 6px
--radius-lg: 0.5rem; // 8px
--radius-xl: 0.75rem; // 12px
--radius-2xl: 1rem; // 16px
--radius-3xl: 1.5rem; // 24px
--radius-full: 9999px;
// Shadows
--shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
--shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
--shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
--shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
--shadow-none: 0 0 #0000;
// Legacy shadow mappings
--shadow: var(--shadow-md);
--shadow-secondary: var(--shadow-lg);
// Transitions and animations
--transition-none: none;
--transition-all: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-default: all 0.3s ease-in-out;
--transition-colors: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-opacity: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-shadow: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-transform: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
// Legacy transition mapping
--transition: var(--transition-default);
// Animation durations
--duration-75: 75ms;
--duration-100: 100ms;
--duration-150: 150ms;
--duration-200: 200ms;
--duration-300: 300ms;
--duration-500: 500ms;
--duration-700: 700ms;
--duration-1000: 1000ms;
// Animation timing functions
--ease-linear: linear;
--ease-in: cubic-bezier(0.4, 0, 1, 1);
--ease-out: cubic-bezier(0, 0, 0.2, 1);
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
// Z-index scale
--z-0: 0;
--z-10: 10;
--z-20: 20;
--z-30: 30;
--z-40: 40;
--z-50: 50;
--z-auto: auto;
// Breakpoints (for reference in media queries)
--breakpoint-sm: 640px;
--breakpoint-md: 768px;
--breakpoint-lg: 1024px;
--breakpoint-xl: 1280px;
--breakpoint-2xl: 1536px;
// Container max widths
--container-sm: 640px;
--container-md: 768px;
--container-lg: 1024px;
--container-xl: 1280px;
--container-2xl: 1536px;
// Glassmorphism
--glass-bg: rgba(255, 255, 255, 0.1);
--glass-border: rgba(255, 255, 255, 0.2);
--glass-backdrop: blur(10px);
// Dark mode colors
--dark-bg: var(--secondary-900);
--dark-surface: var(--secondary-800);
--dark-text: var(--secondary-100);
--dark-text-secondary: var(--secondary-300);
}
/* ====
--------- (1.02) variables end ---------
==== */