vitalmetrics-pro / style.css
CSNET's picture
เขียนต่อให้จบ
3363380 verified
Raw History Blame Contribute Delete
4.31 kB
/* Additional styles for VitalMetrics Pro */
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
/* Animations */
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-slide-in {
animation: slideIn 0.3s ease-out;
}
/* Metric cards grid */
.metrics-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1rem;
}
/* Status indicators */
.status-indicator {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
.status-good {
background: #10b981;
}
.status-warning {
background: #f59e0b;
}
.status-danger {
background: #ef4444;
}
/* Enhanced metric cards */
.metric-enhanced {
border-left: 4px solid transparent;
transition: all 0.3s ease;
}
.metric-enhanced:hover {
border-left-color: #10b981;
transform: translateX(4px);
}
/* Loading skeleton */
.skeleton {
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
background-size: 200% 100%;
animation: loading 1.5s infinite;
}
@keyframes loading {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* Responsive improvements */
@media (max-width: 768px) {
.metrics-grid {
grid-template-columns: 1fr;
}
.tab-btn {
font-size: 0.875rem;
padding: 0.5rem 0.75rem;
}
}
/* Print styles */
@media print {
.no-print {
display: none !important;
}
.metric-card {
break-inside: avoid;
}
}
/* Focus styles for accessibility */
.filter-btn:focus,
.search-input:focus,
.tab-btn:focus {
outline: 2px solid #10b981;
outline-offset: 2px;
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
.glass-effect {
background: rgba(31, 41, 55, 0.95);
border-color: rgba(75, 85, 99, 0.3);
}
.metric-card {
background: #1f2937;
color: #f9fafb;
}
.text-gray-500 {
color: #9ca3af;
}
.text-gray-900 {
color: #f9fafb;
}
}
/* Chart container enhancements */
.chart-container {
position: relative;
height: 250px;
width: 100%;
margin: 1rem 0;
}
.chart-loading {
display: flex;
align-items: center;
justify-content: center;
height: 250px;
}
/* Modal enhancements */
.modal-backdrop {
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
}
.modal-content {
background: white;
border-radius: 1rem;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
/* Progress bars */
.progress-bar {
height: 8px;
background: #e5e7eb;
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #10b981, #059669);
transition: width 0.5s ease;
}
/* Tooltips */
.tooltip {
position: relative;
}
.tooltip:hover::after {
content: attr(data-tooltip);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background: #1f2937;
color: white;
padding: 0.5rem;
border-radius: 0.375rem;
font-size: 0.875rem;
white-space: nowrap;
z-index: 1000;
}
/* Badge variations */
.badge-sm {
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
}
.badge-lg {
font-size: 1rem;
padding: 0.5rem 1rem;
}
/* Tab content transitions */
.tab-content {
animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* Metric value display */
.metric-value {
font-variant-numeric: tabular-nums;
letter-spacing: -0.025em;
}
/* Trend indicators */
.trend-indicator {
display: inline-flex;
align-items: center;
font-weight: 500;
}
.trend-positive {
color: #10b981;
}
.trend-negative {
color: #ef4444;
}
.trend-neutral {
color: #6b7280;
}
/* Search highlight */
.search-highlight {
background: #fef3c7;
padding: 0 2px;
border-radius: 2px;
}