редизайн кнопок 1st version
This commit is contained in:
@@ -25,6 +25,24 @@
|
||||
--accent-hover: #a78bfa;
|
||||
--accent-glow: rgba(139, 92, 246, 0.4);
|
||||
--accent-secondary: #ec4899;
|
||||
--button-primary-bg: #8B5CF6;
|
||||
--button-primary-bg-hover: #7C3AED;
|
||||
--button-primary-text: #FFFFFF;
|
||||
--button-secondary-bg: rgba(255, 255, 255, 0.04);
|
||||
--button-secondary-bg-hover: rgba(255, 255, 255, 0.08);
|
||||
--button-secondary-border: rgba(255, 255, 255, 0.10);
|
||||
--button-secondary-text: #F8FAFC;
|
||||
--button-ghost-bg-hover: rgba(255, 255, 255, 0.06);
|
||||
--button-danger-bg: #DC2626;
|
||||
--button-danger-bg-hover: #B91C1C;
|
||||
--button-danger-subtle-bg: rgba(239, 68, 68, 0.13);
|
||||
--button-danger-subtle-bg-hover: rgba(239, 68, 68, 0.20);
|
||||
--button-danger-subtle-border: rgba(239, 68, 68, 0.25);
|
||||
--button-danger-subtle-text: #FECACA;
|
||||
--button-focus-ring: rgba(139, 92, 246, 0.45);
|
||||
--button-disabled-bg: rgba(148, 163, 184, 0.16);
|
||||
--button-disabled-text: #94A3B8;
|
||||
--button-radius: 8px;
|
||||
|
||||
/* Status Colors */
|
||||
--error: #ef4444;
|
||||
@@ -48,10 +66,27 @@
|
||||
--text-primary: #0f172a;
|
||||
--text-secondary: #475569;
|
||||
--text-placeholder: #94a3b8;
|
||||
--accent: #6366f1;
|
||||
--accent-hover: #4f46e5;
|
||||
--accent-glow: rgba(99, 102, 241, 0.3);
|
||||
--accent: #4F46E5;
|
||||
--accent-hover: #4338CA;
|
||||
--accent-glow: rgba(79, 70, 229, 0.3);
|
||||
--accent-secondary: #d946ef;
|
||||
--button-primary-bg: #4F46E5;
|
||||
--button-primary-bg-hover: #4338CA;
|
||||
--button-primary-text: #FFFFFF;
|
||||
--button-secondary-bg: #FFFFFF;
|
||||
--button-secondary-bg-hover: #F1F5F9;
|
||||
--button-secondary-border: #CBD5E1;
|
||||
--button-secondary-text: #334155;
|
||||
--button-ghost-bg-hover: #F8FAFC;
|
||||
--button-danger-bg: #DC2626;
|
||||
--button-danger-bg-hover: #B91C1C;
|
||||
--button-danger-subtle-bg: #FEF2F2;
|
||||
--button-danger-subtle-bg-hover: #FEE2E2;
|
||||
--button-danger-subtle-border: #FECACA;
|
||||
--button-danger-subtle-text: #B91C1C;
|
||||
--button-focus-ring: rgba(79, 70, 229, 0.35);
|
||||
--button-disabled-bg: #CBD5E1;
|
||||
--button-disabled-text: #64748B;
|
||||
--error: #ef4444;
|
||||
--success: #10b981;
|
||||
--warning: #f59e0b;
|
||||
@@ -389,59 +424,19 @@ body {
|
||||
|
||||
/* ===== Submit Button ===== */
|
||||
.btn-submit {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
padding: 0.95rem;
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
|
||||
color: #fff;
|
||||
font-family: inherit;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
transition:
|
||||
transform var(--transition),
|
||||
box-shadow var(--transition),
|
||||
opacity var(--transition);
|
||||
box-shadow: 0 4px 15px var(--accent-glow);
|
||||
}
|
||||
|
||||
.btn-submit::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background: linear-gradient(rgba(255,255,255,0.2), transparent);
|
||||
border-radius: inherit;
|
||||
opacity: 0;
|
||||
transition: opacity var(--transition);
|
||||
}
|
||||
|
||||
.btn-submit:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 25px var(--accent-glow);
|
||||
}
|
||||
|
||||
.btn-submit:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.btn-submit:active {
|
||||
transform: translateY(1px);
|
||||
box-shadow: 0 2px 10px var(--accent-glow);
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.btn-submit:disabled {
|
||||
opacity: 0.6;
|
||||
background: var(--button-disabled-bg);
|
||||
color: var(--button-disabled-text);
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* ===== Ripple Effect ===== */
|
||||
@@ -480,13 +475,12 @@ body {
|
||||
|
||||
/* ===== Theme Toggle Button ===== */
|
||||
.theme-toggle {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--bg-card-border);
|
||||
color: var(--text-primary);
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: var(--button-radius);
|
||||
background: var(--button-secondary-bg);
|
||||
border: 1px solid var(--button-secondary-border);
|
||||
color: var(--button-secondary-text);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -505,12 +499,13 @@ body {
|
||||
}
|
||||
|
||||
.theme-toggle:hover {
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 4px 16px var(--accent-glow);
|
||||
background: var(--button-secondary-bg-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.theme-toggle:active {
|
||||
transform: scale(0.95);
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.theme-toggle--fixed {
|
||||
@@ -540,4 +535,95 @@ body {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.45rem;
|
||||
min-width: 0;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--button-radius);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
|
||||
}
|
||||
|
||||
.btn:hover:not(:disabled) {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px var(--button-focus-ring);
|
||||
}
|
||||
|
||||
.btn-lg {
|
||||
min-height: 48px;
|
||||
padding: 0 20px;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.btn-icon-md {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.btn-icon-md svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--button-primary-bg);
|
||||
border-color: transparent;
|
||||
color: var(--button-primary-text);
|
||||
}
|
||||
|
||||
.btn-primary:hover:not(:disabled) {
|
||||
background: var(--button-primary-bg-hover);
|
||||
color: var(--button-primary-text);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: var(--button-secondary-bg);
|
||||
border-color: var(--button-secondary-border);
|
||||
color: var(--button-secondary-text);
|
||||
}
|
||||
|
||||
.btn-secondary:hover:not(:disabled) {
|
||||
background: var(--button-secondary-bg-hover);
|
||||
color: var(--button-secondary-text);
|
||||
}
|
||||
#login-form .btn.btn-primary {
|
||||
min-height: 48px !important;
|
||||
padding: 0 20px !important;
|
||||
border-radius: var(--button-radius) !important;
|
||||
background: var(--button-primary-bg) !important;
|
||||
color: var(--button-primary-text) !important;
|
||||
font-size: 15px !important;
|
||||
font-weight: 700 !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
#login-form .btn.btn-primary:hover {
|
||||
background: var(--button-primary-bg-hover) !important;
|
||||
}
|
||||
#toggle-password.btn-icon-md {
|
||||
width: 40px !important;
|
||||
height: 40px !important;
|
||||
min-height: 40px !important;
|
||||
padding: 0 !important;
|
||||
border-radius: var(--button-radius) !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user