admin and vendor backends features
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
/* static/css/shared/base.css */
|
||||
/* Base styles shared across all pages */
|
||||
|
||||
/* Import responsive utilities */
|
||||
@import url('responsive-utilities.css');
|
||||
|
||||
/* Rest of your base.css... */
|
||||
:root {
|
||||
/* Color Palette */
|
||||
--primary-color: #667eea;
|
||||
|
||||
728
static/css/shared/components.css
Normal file
728
static/css/shared/components.css
Normal file
@@ -0,0 +1,728 @@
|
||||
/**
|
||||
* Universal Components Styles
|
||||
* Shared component styles for Admin, Vendor, and Shop sections
|
||||
*/
|
||||
|
||||
/* =============================================================================
|
||||
MODAL SYSTEM STYLES
|
||||
============================================================================= */
|
||||
|
||||
/* Modal Backdrop */
|
||||
.modal-backdrop {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 9999;
|
||||
animation: fadeIn 0.2s ease-in;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modal Container */
|
||||
.modal-container {
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
||||
max-width: 500px;
|
||||
width: 90%;
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
animation: slideUp 0.3s ease-out;
|
||||
}
|
||||
|
||||
@keyframes slideUp {
|
||||
from {
|
||||
transform: translateY(20px);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modal Header */
|
||||
.modal-header {
|
||||
padding: 20px 24px;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.modal-title {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
color: #111827;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1.5rem;
|
||||
color: #6b7280;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
background-color: #f3f4f6;
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
/* Modal Body */
|
||||
.modal-body {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.modal-message {
|
||||
font-size: 0.95rem;
|
||||
color: #374151;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.modal-warning {
|
||||
background-color: #fef3c7;
|
||||
border-left: 4px solid #f59e0b;
|
||||
padding: 12px 16px;
|
||||
border-radius: 4px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.modal-warning p {
|
||||
margin: 0;
|
||||
color: #92400e;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.modal-details {
|
||||
background-color: #f9fafb;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 4px;
|
||||
padding: 12px;
|
||||
margin-top: 12px;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.875rem;
|
||||
color: #374151;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* Modal Footer */
|
||||
.modal-footer {
|
||||
padding: 16px 24px;
|
||||
border-top: 1px solid #e5e7eb;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
/* Modal Icon Styles */
|
||||
.modal-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto 16px;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.modal-icon.success {
|
||||
background-color: #d1fae5;
|
||||
color: #059669;
|
||||
}
|
||||
|
||||
.modal-icon.error {
|
||||
background-color: #fee2e2;
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.modal-icon.warning {
|
||||
background-color: #fef3c7;
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
/* Loading Overlay */
|
||||
.loading-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10000;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 4px solid #e5e7eb;
|
||||
border-top-color: #3b82f6;
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
BUTTON STYLES
|
||||
============================================================================= */
|
||||
|
||||
.btn {
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #3b82f6;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover:not(:disabled) {
|
||||
background-color: #2563eb;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: #6b7280;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-secondary:hover:not(:disabled) {
|
||||
background-color: #4b5563;
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background-color: #10b981;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-success:hover:not(:disabled) {
|
||||
background-color: #059669;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background-color: #ef4444;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-danger:hover:not(:disabled) {
|
||||
background-color: #dc2626;
|
||||
}
|
||||
|
||||
.btn-warning {
|
||||
background-color: #f59e0b;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-warning:hover:not(:disabled) {
|
||||
background-color: #d97706;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background-color: transparent;
|
||||
border: 1px solid #d1d5db;
|
||||
color: #374151;
|
||||
}
|
||||
|
||||
.btn-outline:hover:not(:disabled) {
|
||||
background-color: #f9fafb;
|
||||
border-color: #9ca3af;
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
background-color: transparent;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.btn-ghost:hover:not(:disabled) {
|
||||
background-color: #f3f4f6;
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
padding: 6px 12px;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.btn-lg {
|
||||
padding: 12px 24px;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
ADMIN LAYOUT STYLES
|
||||
============================================================================= */
|
||||
|
||||
.admin-header {
|
||||
background-color: #1f2937;
|
||||
color: white;
|
||||
padding: 0 24px;
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
background: none;
|
||||
border: none;
|
||||
color: white;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
padding: 8px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.user-name {
|
||||
font-size: 0.95rem;
|
||||
color: #e5e7eb;
|
||||
}
|
||||
|
||||
.btn-logout {
|
||||
background-color: #374151;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 8px 16px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 0.9rem;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.btn-logout:hover {
|
||||
background-color: #4b5563;
|
||||
}
|
||||
|
||||
.admin-sidebar {
|
||||
width: 260px;
|
||||
background-color: #f9fafb;
|
||||
border-right: 1px solid #e5e7eb;
|
||||
height: calc(100vh - 64px);
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 64px;
|
||||
overflow-y: auto;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
padding: 16px 0;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 24px;
|
||||
color: #374151;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
background-color: #e5e7eb;
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.nav-item.active {
|
||||
background-color: #3b82f6;
|
||||
color: white;
|
||||
border-left: 4px solid #2563eb;
|
||||
}
|
||||
|
||||
.nav-item i {
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.admin-content {
|
||||
margin-left: 260px;
|
||||
padding: 24px;
|
||||
min-height: calc(100vh - 64px);
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
VENDOR LAYOUT STYLES
|
||||
============================================================================= */
|
||||
|
||||
.vendor-header {
|
||||
background-color: #059669;
|
||||
color: white;
|
||||
padding: 0 24px;
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.vendor-header .btn-logout {
|
||||
background-color: #047857;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 8px 16px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 0.9rem;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.vendor-header .btn-logout:hover {
|
||||
background-color: #065f46;
|
||||
}
|
||||
|
||||
.vendor-header .menu-toggle {
|
||||
background: none;
|
||||
border: none;
|
||||
color: white;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
padding: 8px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.vendor-sidebar {
|
||||
width: 260px;
|
||||
background-color: #f9fafb;
|
||||
border-right: 1px solid #e5e7eb;
|
||||
height: calc(100vh - 64px);
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 64px;
|
||||
overflow-y: auto;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.vendor-content {
|
||||
margin-left: 260px;
|
||||
padding: 24px;
|
||||
min-height: calc(100vh - 64px);
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
SHOP LAYOUT STYLES
|
||||
============================================================================= */
|
||||
|
||||
.shop-header {
|
||||
background-color: white;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
padding: 16px 24px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.shop-header-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.shop-logo {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: #111827;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.shop-search {
|
||||
flex: 1;
|
||||
max-width: 500px;
|
||||
margin: 0 32px;
|
||||
}
|
||||
|
||||
.search-form {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
flex: 1;
|
||||
padding: 10px 16px;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 6px;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
outline: none;
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||||
}
|
||||
|
||||
.shop-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.cart-button {
|
||||
position: relative;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 8px;
|
||||
font-size: 1.5rem;
|
||||
color: #374151;
|
||||
}
|
||||
|
||||
.cart-button:hover {
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.cart-count {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
background-color: #ef4444;
|
||||
color: white;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
padding: 2px 6px;
|
||||
border-radius: 10px;
|
||||
min-width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.shop-nav {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
max-width: 1280px;
|
||||
margin: 16px auto 0;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.shop-nav-item {
|
||||
color: #6b7280;
|
||||
text-decoration: none;
|
||||
font-size: 0.95rem;
|
||||
padding: 8px 0;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.shop-nav-item:hover {
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.shop-nav-item.active {
|
||||
color: #3b82f6;
|
||||
font-weight: 500;
|
||||
border-bottom: 2px solid #3b82f6;
|
||||
}
|
||||
|
||||
.shop-content {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 32px 24px;
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
SHOP ACCOUNT LAYOUT STYLES
|
||||
============================================================================= */
|
||||
|
||||
.account-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 260px 1fr;
|
||||
gap: 32px;
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 32px 24px;
|
||||
}
|
||||
|
||||
.account-sidebar {
|
||||
background-color: #f9fafb;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
height: fit-content;
|
||||
}
|
||||
|
||||
.account-nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
color: #374151;
|
||||
text-decoration: none;
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.account-nav-item:hover {
|
||||
background-color: #e5e7eb;
|
||||
}
|
||||
|
||||
.account-nav-item.active {
|
||||
background-color: #3b82f6;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.account-content {
|
||||
background-color: white;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 8px;
|
||||
padding: 32px;
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
RESPONSIVE STYLES
|
||||
============================================================================= */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.menu-toggle {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.vendor-header .menu-toggle {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.admin-sidebar,
|
||||
.vendor-sidebar {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.admin-sidebar.open,
|
||||
.vendor-sidebar.open {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.admin-content,
|
||||
.vendor-content {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.shop-search {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.account-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.account-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.modal-container {
|
||||
width: 95%;
|
||||
margin: 16px;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.modal-footer .btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
UTILITY CLASSES
|
||||
============================================================================= */
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mb-0 { margin-bottom: 0; }
|
||||
.mb-1 { margin-bottom: 8px; }
|
||||
.mb-2 { margin-bottom: 16px; }
|
||||
.mb-3 { margin-bottom: 24px; }
|
||||
.mb-4 { margin-bottom: 32px; }
|
||||
|
||||
.mt-0 { margin-top: 0; }
|
||||
.mt-1 { margin-top: 8px; }
|
||||
.mt-2 { margin-top: 16px; }
|
||||
.mt-3 { margin-top: 24px; }
|
||||
.mt-4 { margin-top: 32px; }
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
428
static/css/shared/modals.css
Normal file
428
static/css/shared/modals.css
Normal file
@@ -0,0 +1,428 @@
|
||||
/**
|
||||
* Enhanced Modal Styles
|
||||
* Additional styling and animations for modal system
|
||||
*/
|
||||
|
||||
/* =============================================================================
|
||||
MODAL ANIMATIONS
|
||||
============================================================================= */
|
||||
|
||||
/* Fade In Animation */
|
||||
@keyframes modalFadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Slide Down Animation */
|
||||
@keyframes modalSlideDown {
|
||||
from {
|
||||
transform: translateY(-50px);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Slide Up Animation */
|
||||
@keyframes modalSlideUp {
|
||||
from {
|
||||
transform: translateY(50px);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Scale Animation */
|
||||
@keyframes modalScale {
|
||||
from {
|
||||
transform: scale(0.9);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shake Animation for errors */
|
||||
@keyframes modalShake {
|
||||
0%, 100% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
10%, 30%, 50%, 70%, 90% {
|
||||
transform: translateX(-10px);
|
||||
}
|
||||
20%, 40%, 60%, 80% {
|
||||
transform: translateX(10px);
|
||||
}
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
MODAL VARIANTS
|
||||
============================================================================= */
|
||||
|
||||
/* Modal with slide down animation */
|
||||
.modal-container.slide-down {
|
||||
animation: modalSlideDown 0.3s ease-out;
|
||||
}
|
||||
|
||||
/* Modal with scale animation */
|
||||
.modal-container.scale {
|
||||
animation: modalScale 0.3s ease-out;
|
||||
}
|
||||
|
||||
/* Modal with shake animation (for errors) */
|
||||
.modal-container.shake {
|
||||
animation: modalShake 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
MODAL SIZES
|
||||
============================================================================= */
|
||||
|
||||
.modal-container.modal-sm {
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.modal-container.modal-md {
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.modal-container.modal-lg {
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.modal-container.modal-xl {
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
.modal-container.modal-full {
|
||||
max-width: 95%;
|
||||
max-height: 95vh;
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
MODAL THEMES
|
||||
============================================================================= */
|
||||
|
||||
/* Success Modal Theme */
|
||||
.modal-container.modal-success .modal-header {
|
||||
background-color: #d1fae5;
|
||||
border-bottom-color: #a7f3d0;
|
||||
}
|
||||
|
||||
.modal-container.modal-success .modal-title {
|
||||
color: #065f46;
|
||||
}
|
||||
|
||||
/* Error Modal Theme */
|
||||
.modal-container.modal-error .modal-header {
|
||||
background-color: #fee2e2;
|
||||
border-bottom-color: #fecaca;
|
||||
}
|
||||
|
||||
.modal-container.modal-error .modal-title {
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
/* Warning Modal Theme */
|
||||
.modal-container.modal-warning .modal-header {
|
||||
background-color: #fef3c7;
|
||||
border-bottom-color: #fde68a;
|
||||
}
|
||||
|
||||
.modal-container.modal-warning .modal-title {
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
/* Info Modal Theme */
|
||||
.modal-container.modal-info .modal-header {
|
||||
background-color: #dbeafe;
|
||||
border-bottom-color: #bfdbfe;
|
||||
}
|
||||
|
||||
.modal-container.modal-info .modal-title {
|
||||
color: #1e40af;
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
MODAL CONTENT STYLES
|
||||
============================================================================= */
|
||||
|
||||
/* Modal List */
|
||||
.modal-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.modal-list-item {
|
||||
padding: 12px;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.modal-list-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.modal-list-item i {
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
/* Modal Form Elements */
|
||||
.modal-form-group {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.modal-label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-weight: 500;
|
||||
color: #374151;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.modal-input,
|
||||
.modal-textarea,
|
||||
.modal-select {
|
||||
width: 100%;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 6px;
|
||||
font-size: 0.95rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.modal-input:focus,
|
||||
.modal-textarea:focus,
|
||||
.modal-select:focus {
|
||||
outline: none;
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||||
}
|
||||
|
||||
.modal-textarea {
|
||||
min-height: 100px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.modal-input.error,
|
||||
.modal-textarea.error,
|
||||
.modal-select.error {
|
||||
border-color: #ef4444;
|
||||
}
|
||||
|
||||
.modal-error-text {
|
||||
color: #ef4444;
|
||||
font-size: 0.875rem;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.modal-help-text {
|
||||
color: #6b7280;
|
||||
font-size: 0.875rem;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
MODAL ALERTS
|
||||
============================================================================= */
|
||||
|
||||
.modal-alert {
|
||||
padding: 12px 16px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 16px;
|
||||
display: flex;
|
||||
align-items: start;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.modal-alert i {
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.modal-alert.alert-success {
|
||||
background-color: #d1fae5;
|
||||
color: #065f46;
|
||||
border: 1px solid #a7f3d0;
|
||||
}
|
||||
|
||||
.modal-alert.alert-error {
|
||||
background-color: #fee2e2;
|
||||
color: #991b1b;
|
||||
border: 1px solid #fecaca;
|
||||
}
|
||||
|
||||
.modal-alert.alert-warning {
|
||||
background-color: #fef3c7;
|
||||
color: #92400e;
|
||||
border: 1px solid #fde68a;
|
||||
}
|
||||
|
||||
.modal-alert.alert-info {
|
||||
background-color: #dbeafe;
|
||||
color: #1e40af;
|
||||
border: 1px solid #bfdbfe;
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
MODAL PROGRESS
|
||||
============================================================================= */
|
||||
|
||||
.modal-progress {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
background-color: #e5e7eb;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.modal-progress-bar {
|
||||
height: 100%;
|
||||
background-color: #3b82f6;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.modal-progress-bar.success {
|
||||
background-color: #10b981;
|
||||
}
|
||||
|
||||
.modal-progress-bar.error {
|
||||
background-color: #ef4444;
|
||||
}
|
||||
|
||||
.modal-progress-bar.warning {
|
||||
background-color: #f59e0b;
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
LOADING SPINNER VARIANTS
|
||||
============================================================================= */
|
||||
|
||||
.loading-spinner.spinner-sm {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-width: 3px;
|
||||
}
|
||||
|
||||
.loading-spinner.spinner-lg {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-width: 5px;
|
||||
}
|
||||
|
||||
.loading-spinner.spinner-success {
|
||||
border-top-color: #10b981;
|
||||
}
|
||||
|
||||
.loading-spinner.spinner-error {
|
||||
border-top-color: #ef4444;
|
||||
}
|
||||
|
||||
.loading-spinner.spinner-warning {
|
||||
border-top-color: #f59e0b;
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
MODAL BACKDROP VARIANTS
|
||||
============================================================================= */
|
||||
|
||||
.modal-backdrop.backdrop-dark {
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
.modal-backdrop.backdrop-light {
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.modal-backdrop.backdrop-blur {
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
RESPONSIVE ENHANCEMENTS
|
||||
============================================================================= */
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.modal-container {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
max-height: 100vh;
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
padding: 12px 20px;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
|
||||
.modal-footer .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.modal-alert {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
/* =============================================================================
|
||||
ACCESSIBILITY
|
||||
============================================================================= */
|
||||
|
||||
.modal-backdrop:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.modal-container:focus {
|
||||
outline: 2px solid #3b82f6;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
/* Reduce motion for users who prefer it */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.modal-backdrop,
|
||||
.modal-container,
|
||||
.loading-spinner {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* High contrast mode support */
|
||||
@media (prefers-contrast: high) {
|
||||
.modal-container {
|
||||
border: 2px solid currentColor;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
border-top-width: 2px;
|
||||
}
|
||||
}
|
||||
370
static/css/shared/responsive-utilities.css
Normal file
370
static/css/shared/responsive-utilities.css
Normal file
@@ -0,0 +1,370 @@
|
||||
/* static/css/shared/responsive-utilities.css */
|
||||
/* Responsive utility classes - Framework-like responsiveness without the framework */
|
||||
|
||||
/* ================================
|
||||
BREAKPOINTS (Mobile-first)
|
||||
================================ */
|
||||
:root {
|
||||
--breakpoint-sm: 640px;
|
||||
--breakpoint-md: 768px;
|
||||
--breakpoint-lg: 1024px;
|
||||
--breakpoint-xl: 1280px;
|
||||
--breakpoint-2xl: 1536px;
|
||||
}
|
||||
|
||||
/* ================================
|
||||
CONTAINER
|
||||
================================ */
|
||||
.container {
|
||||
width: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding-left: var(--spacing-md);
|
||||
padding-right: var(--spacing-md);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.container { max-width: 640px; }
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.container { max-width: 768px; }
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.container { max-width: 1024px; }
|
||||
}
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
.container { max-width: 1280px; }
|
||||
}
|
||||
|
||||
/* ================================
|
||||
DISPLAY UTILITIES
|
||||
================================ */
|
||||
.hidden { display: none !important; }
|
||||
.block { display: block !important; }
|
||||
.inline-block { display: inline-block !important; }
|
||||
.inline { display: inline !important; }
|
||||
.flex { display: flex !important; }
|
||||
.inline-flex { display: inline-flex !important; }
|
||||
.grid { display: grid !important; }
|
||||
|
||||
/* Responsive Display */
|
||||
@media (max-width: 639px) {
|
||||
.sm\:hidden { display: none !important; }
|
||||
.sm\:block { display: block !important; }
|
||||
.sm\:flex { display: flex !important; }
|
||||
.sm\:grid { display: grid !important; }
|
||||
}
|
||||
|
||||
@media (min-width: 640px) and (max-width: 767px) {
|
||||
.md\:hidden { display: none !important; }
|
||||
.md\:block { display: block !important; }
|
||||
.md\:flex { display: flex !important; }
|
||||
.md\:grid { display: grid !important; }
|
||||
}
|
||||
|
||||
@media (min-width: 768px) and (max-width: 1023px) {
|
||||
.lg\:hidden { display: none !important; }
|
||||
.lg\:block { display: block !important; }
|
||||
.lg\:flex { display: flex !important; }
|
||||
.lg\:grid { display: grid !important; }
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.xl\:hidden { display: none !important; }
|
||||
.xl\:block { display: block !important; }
|
||||
.xl\:flex { display: flex !important; }
|
||||
.xl\:grid { display: grid !important; }
|
||||
}
|
||||
|
||||
/* ================================
|
||||
FLEXBOX UTILITIES
|
||||
================================ */
|
||||
.flex-row { flex-direction: row; }
|
||||
.flex-col { flex-direction: column; }
|
||||
.flex-row-reverse { flex-direction: row-reverse; }
|
||||
.flex-col-reverse { flex-direction: column-reverse; }
|
||||
|
||||
.flex-wrap { flex-wrap: wrap; }
|
||||
.flex-nowrap { flex-wrap: nowrap; }
|
||||
|
||||
.items-start { align-items: flex-start; }
|
||||
.items-center { align-items: center; }
|
||||
.items-end { align-items: flex-end; }
|
||||
.items-stretch { align-items: stretch; }
|
||||
|
||||
.justify-start { justify-content: flex-start; }
|
||||
.justify-center { justify-content: center; }
|
||||
.justify-end { justify-content: flex-end; }
|
||||
.justify-between { justify-content: space-between; }
|
||||
.justify-around { justify-content: space-around; }
|
||||
.justify-evenly { justify-content: space-evenly; }
|
||||
|
||||
.flex-1 { flex: 1 1 0%; }
|
||||
.flex-auto { flex: 1 1 auto; }
|
||||
.flex-none { flex: none; }
|
||||
|
||||
.gap-0 { gap: 0; }
|
||||
.gap-1 { gap: var(--spacing-xs); }
|
||||
.gap-2 { gap: var(--spacing-sm); }
|
||||
.gap-3 { gap: var(--spacing-md); }
|
||||
.gap-4 { gap: var(--spacing-lg); }
|
||||
.gap-5 { gap: var(--spacing-xl); }
|
||||
.gap-6 { gap: var(--spacing-2xl); }
|
||||
|
||||
/* ================================
|
||||
GRID UTILITIES
|
||||
================================ */
|
||||
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
||||
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
||||
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
|
||||
|
||||
/* Responsive Grid */
|
||||
@media (min-width: 640px) {
|
||||
.sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
||||
.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
||||
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
||||
.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
.lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
||||
}
|
||||
|
||||
/* ================================
|
||||
SPACING UTILITIES
|
||||
================================ */
|
||||
/* Margin */
|
||||
.m-0 { margin: 0; }
|
||||
.m-1 { margin: var(--spacing-xs); }
|
||||
.m-2 { margin: var(--spacing-sm); }
|
||||
.m-3 { margin: var(--spacing-md); }
|
||||
.m-4 { margin: var(--spacing-lg); }
|
||||
.m-5 { margin: var(--spacing-xl); }
|
||||
.m-auto { margin: auto; }
|
||||
|
||||
.mx-auto { margin-left: auto; margin-right: auto; }
|
||||
.my-auto { margin-top: auto; margin-bottom: auto; }
|
||||
|
||||
.mt-0 { margin-top: 0; }
|
||||
.mt-1 { margin-top: var(--spacing-xs); }
|
||||
.mt-2 { margin-top: var(--spacing-sm); }
|
||||
.mt-3 { margin-top: var(--spacing-md); }
|
||||
.mt-4 { margin-top: var(--spacing-lg); }
|
||||
.mt-5 { margin-top: var(--spacing-xl); }
|
||||
|
||||
.mb-0 { margin-bottom: 0; }
|
||||
.mb-1 { margin-bottom: var(--spacing-xs); }
|
||||
.mb-2 { margin-bottom: var(--spacing-sm); }
|
||||
.mb-3 { margin-bottom: var(--spacing-md); }
|
||||
.mb-4 { margin-bottom: var(--spacing-lg); }
|
||||
.mb-5 { margin-bottom: var(--spacing-xl); }
|
||||
|
||||
.ml-0 { margin-left: 0; }
|
||||
.ml-1 { margin-left: var(--spacing-xs); }
|
||||
.ml-2 { margin-left: var(--spacing-sm); }
|
||||
.ml-3 { margin-left: var(--spacing-md); }
|
||||
.ml-4 { margin-left: var(--spacing-lg); }
|
||||
.ml-auto { margin-left: auto; }
|
||||
|
||||
.mr-0 { margin-right: 0; }
|
||||
.mr-1 { margin-right: var(--spacing-xs); }
|
||||
.mr-2 { margin-right: var(--spacing-sm); }
|
||||
.mr-3 { margin-right: var(--spacing-md); }
|
||||
.mr-4 { margin-right: var(--spacing-lg); }
|
||||
.mr-auto { margin-right: auto; }
|
||||
|
||||
/* Padding */
|
||||
.p-0 { padding: 0; }
|
||||
.p-1 { padding: var(--spacing-xs); }
|
||||
.p-2 { padding: var(--spacing-sm); }
|
||||
.p-3 { padding: var(--spacing-md); }
|
||||
.p-4 { padding: var(--spacing-lg); }
|
||||
.p-5 { padding: var(--spacing-xl); }
|
||||
|
||||
.px-0 { padding-left: 0; padding-right: 0; }
|
||||
.px-1 { padding-left: var(--spacing-xs); padding-right: var(--spacing-xs); }
|
||||
.px-2 { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
|
||||
.px-3 { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
|
||||
.px-4 { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
|
||||
|
||||
.py-0 { padding-top: 0; padding-bottom: 0; }
|
||||
.py-1 { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
|
||||
.py-2 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
|
||||
.py-3 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
|
||||
.py-4 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
|
||||
|
||||
/* ================================
|
||||
WIDTH & HEIGHT UTILITIES
|
||||
================================ */
|
||||
.w-full { width: 100%; }
|
||||
.w-auto { width: auto; }
|
||||
.w-1\/2 { width: 50%; }
|
||||
.w-1\/3 { width: 33.333333%; }
|
||||
.w-2\/3 { width: 66.666667%; }
|
||||
.w-1\/4 { width: 25%; }
|
||||
.w-3\/4 { width: 75%; }
|
||||
|
||||
.h-full { height: 100%; }
|
||||
.h-auto { height: auto; }
|
||||
.h-screen { height: 100vh; }
|
||||
|
||||
.min-h-screen { min-height: 100vh; }
|
||||
.max-w-full { max-width: 100%; }
|
||||
|
||||
/* ================================
|
||||
TEXT UTILITIES
|
||||
================================ */
|
||||
.text-left { text-align: left; }
|
||||
.text-center { text-align: center; }
|
||||
.text-right { text-align: right; }
|
||||
|
||||
.text-xs { font-size: var(--font-xs); }
|
||||
.text-sm { font-size: var(--font-sm); }
|
||||
.text-base { font-size: var(--font-base); }
|
||||
.text-lg { font-size: var(--font-lg); }
|
||||
.text-xl { font-size: var(--font-xl); }
|
||||
.text-2xl { font-size: var(--font-2xl); }
|
||||
.text-3xl { font-size: var(--font-3xl); }
|
||||
|
||||
.font-normal { font-weight: 400; }
|
||||
.font-medium { font-weight: 500; }
|
||||
.font-semibold { font-weight: 600; }
|
||||
.font-bold { font-weight: 700; }
|
||||
|
||||
.uppercase { text-transform: uppercase; }
|
||||
.lowercase { text-transform: lowercase; }
|
||||
.capitalize { text-transform: capitalize; }
|
||||
|
||||
.truncate {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ================================
|
||||
POSITION UTILITIES
|
||||
================================ */
|
||||
.relative { position: relative; }
|
||||
.absolute { position: absolute; }
|
||||
.fixed { position: fixed; }
|
||||
.sticky { position: sticky; }
|
||||
|
||||
.top-0 { top: 0; }
|
||||
.right-0 { right: 0; }
|
||||
.bottom-0 { bottom: 0; }
|
||||
.left-0 { left: 0; }
|
||||
|
||||
.z-0 { z-index: 0; }
|
||||
.z-10 { z-index: 10; }
|
||||
.z-20 { z-index: 20; }
|
||||
.z-30 { z-index: 30; }
|
||||
.z-40 { z-index: 40; }
|
||||
.z-50 { z-index: 50; }
|
||||
|
||||
/* ================================
|
||||
OVERFLOW UTILITIES
|
||||
================================ */
|
||||
.overflow-auto { overflow: auto; }
|
||||
.overflow-hidden { overflow: hidden; }
|
||||
.overflow-visible { overflow: visible; }
|
||||
.overflow-scroll { overflow: scroll; }
|
||||
|
||||
.overflow-x-auto { overflow-x: auto; }
|
||||
.overflow-y-auto { overflow-y: auto; }
|
||||
|
||||
/* ================================
|
||||
BORDER UTILITIES
|
||||
================================ */
|
||||
.rounded-none { border-radius: 0; }
|
||||
.rounded-sm { border-radius: var(--radius-sm); }
|
||||
.rounded { border-radius: var(--radius-md); }
|
||||
.rounded-lg { border-radius: var(--radius-lg); }
|
||||
.rounded-xl { border-radius: var(--radius-xl); }
|
||||
.rounded-full { border-radius: var(--radius-full); }
|
||||
|
||||
.border { border: 1px solid var(--border-color); }
|
||||
.border-0 { border: 0; }
|
||||
.border-2 { border: 2px solid var(--border-color); }
|
||||
|
||||
/* ================================
|
||||
SHADOW UTILITIES
|
||||
================================ */
|
||||
.shadow-none { box-shadow: none; }
|
||||
.shadow-sm { box-shadow: var(--shadow-sm); }
|
||||
.shadow { box-shadow: var(--shadow-md); }
|
||||
.shadow-lg { box-shadow: var(--shadow-lg); }
|
||||
.shadow-xl { box-shadow: var(--shadow-xl); }
|
||||
|
||||
/* ================================
|
||||
RESPONSIVE HELPERS
|
||||
================================ */
|
||||
/* Hide on mobile, show on desktop */
|
||||
.mobile-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.mobile-hidden {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
/* Show on mobile, hide on desktop */
|
||||
.desktop-hidden {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.desktop-hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Tablet specific */
|
||||
@media (min-width: 640px) and (max-width: 1023px) {
|
||||
.tablet-only {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
/* ================================
|
||||
CURSOR & POINTER EVENTS
|
||||
================================ */
|
||||
.cursor-pointer { cursor: pointer; }
|
||||
.cursor-default { cursor: default; }
|
||||
.cursor-not-allowed { cursor: not-allowed; }
|
||||
.pointer-events-none { pointer-events: none; }
|
||||
|
||||
/* ================================
|
||||
OPACITY UTILITIES
|
||||
================================ */
|
||||
.opacity-0 { opacity: 0; }
|
||||
.opacity-25 { opacity: 0.25; }
|
||||
.opacity-50 { opacity: 0.5; }
|
||||
.opacity-75 { opacity: 0.75; }
|
||||
.opacity-100 { opacity: 1; }
|
||||
|
||||
/* ================================
|
||||
TRANSITION UTILITIES
|
||||
================================ */
|
||||
.transition { transition: all var(--transition-base); }
|
||||
.transition-fast { transition: all var(--transition-fast); }
|
||||
.transition-slow { transition: all var(--transition-slow); }
|
||||
.transition-none { transition: none; }
|
||||
Reference in New Issue
Block a user