cylinderflow-mapper / style.css
dcm23's picture
Can you redesing the front for better UX?
12e06d8 verified
Raw History Blame Contribute Delete
4.27 kB
/* Base styles */
:root {
--primary: #3b82f6;
--primary-dark: #2563eb;
--secondary: #10b981;
--danger: #ef4444;
--warning: #f59e0b;
--info: #06b6d4;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.5;
color: #1f2937;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
color: #111827;
}
/* Buttons */
.btn-primary {
background: linear-gradient(to right, var(--primary), var(--primary-dark));
color: white;
font-weight: 500;
padding: 0.625rem 1.25rem;
border-radius: 0.5rem;
transition: all 0.2s;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
transform: translateY(-1px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Cards */
.card {
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* Inputs */
.input {
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
padding: 0.625rem 1rem;
transition: all 0.2s;
}
.input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
outline: none;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.3s ease-out forwards;
}
/* Utility classes */
.rounded-xl {
border-radius: 0.75rem;
}
.shadow-lg {
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
/* Status badges */
.status-badge {
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
display: inline-flex;
align-items: center;
}
.status-badge i {
margin-right: 0.25rem;
}
/* Progress bars */
.progress-bar {
height: 0.5rem;
border-radius: 0.25rem;
background-color: #e5e7eb;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(to right, var(--primary), var(--primary-dark));
transition: width 0.3s ease;
}
/* Tooltips */
.tooltip {
position: relative;
}
.tooltip .tooltip-text {
visibility: hidden;
width: 120px;
background-color: #374151;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.stats-grid {
grid-template-columns: 1fr;
}
}
/* Map button styles */
.map-button {
transition: all 0.2s ease;
}
.map-button:hover {
transform: scale(1.1);
color: #3182ce !important;
}
/* Custom dropdown styles */
.dropdown-menu {
display: none;
position: absolute;
right: 0;
z-index: 10;
min-width: 160px;
background: white;
border-radius: 0.375rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.dropdown:hover .dropdown-menu {
display: block;
}
/* Status colors */
.status-closed {
background-color: #e6fffa;
color: #38b2ac;
}
.status-in-progress {
background-color: #ebf8ff;
color: #3182ce;
}
.status-planned {
background-color: #faf5ff;
color: #9f7aea;
}
.status-pending {
background-color: #fffaf0;
color: #dd6b20;
}
.status-error {
background-color: #fff5f5;
color: #e53e3e;
}
/* Custom input focus */
.input-focus:focus {
border-color: #4299e1;
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}
/* Responsive table */
@media (max-width: 768px) {
.responsive-table {
display: block;
overflow-x: auto;
white-space: nowrap;
}
}