loko/streetup/sign/static/sign/sign.css
2026-07-22 14:48:40 +02:00

254 lines
4.2 KiB
CSS

/* Sign View Styles */
#sign-main {
flex-grow: 1;
overflow: hidden;
height: calc(100vh - 70px);
}
.sign-container {
display: flex;
width: 100%;
height: 100%;
}
/* Left Panel - 1/3 of the screen */
.sign-panel {
width: calc(100% / 3);
min-width: 300px;
max-width: 500px;
height: 100%;
display: flex;
flex-direction: column;
border-right: 1px solid rgba(47, 62, 139, 0.25);
background-color: #ffffff;
}
.panel-header {
flex-shrink: 0;
border-bottom: 1px solid #dee2e6;
}
.panel-header .nav-tabs {
border-bottom: none;
}
.panel-header .nav-link {
border-radius: 0;
border: none;
border-bottom: 3px solid transparent;
color: #6c757d;
padding: 0.75rem 1rem;
}
.panel-header .nav-link:hover {
border-color: #dee2e6;
color: #2f3e8b;
}
.panel-header .nav-link.active {
color: #2f3e8b;
background-color: transparent;
border-bottom-color: #2f3e8b;
font-weight: 600;
}
.panel-content {
flex-grow: 1;
overflow-y: auto;
}
/* Tasks List Styles */
.tasks-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.task-item {
display: flex;
align-items: flex-start;
padding: 0.75rem;
border: 1px solid #dee2e6;
border-radius: 0.375rem;
background-color: #f8f9fa;
cursor: pointer;
transition: all 0.15s ease-in-out;
}
.task-item:hover {
background-color: #e9ecef;
border-color: #adb5bd;
}
.task-item.task-urgent {
border-left: 4px solid #dc3545;
}
.task-item.task-warning {
border-left: 4px solid #ffc107;
}
.task-item.task-info {
border-left: 4px solid #0d6efd;
}
.task-icon {
flex-shrink: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
margin-right: 0.75rem;
}
.task-content {
flex-grow: 1;
min-width: 0;
}
.task-title {
font-weight: 500;
margin-bottom: 0.25rem;
}
.task-description {
font-size: 0.875rem;
color: #6c757d;
margin-bottom: 0;
}
.task-meta {
font-size: 0.75rem;
color: #adb5bd;
}
/* Map Container - 2/3 of the screen */
.sign-map-container {
flex-grow: 1;
position: relative;
height: 100%;
}
#sign-map {
width: 100%;
height: 100%;
}
/* Map Legend */
.map-legend {
position: absolute;
bottom: 30px;
left: 10px;
background: rgba(255, 255, 255, 0.95);
padding: 10px 15px;
border-radius: 4px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
font-size: 0.85rem;
z-index: 10;
}
.legend-item {
display: flex;
align-items: center;
margin-top: 5px;
}
.legend-icon {
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 8px;
}
/* Detail Panel Styles */
#detail-content {
font-size: 0.9rem;
}
.detail-section {
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid #dee2e6;
}
.detail-section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.detail-label {
font-weight: 600;
color: #6c757d;
font-size: 0.75rem;
text-transform: uppercase;
margin-bottom: 0.25rem;
}
.detail-value {
font-size: 0.9rem;
}
.detail-image {
max-width: 100%;
border-radius: 0.375rem;
margin-top: 0.5rem;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.sign-container {
flex-direction: column;
}
.sign-panel {
width: 100%;
max-width: none;
height: 40vh;
min-height: 200px;
}
.sign-map-container {
height: 60vh;
}
}
/* Custom scrollbar for panel content */
.panel-content::-webkit-scrollbar {
width: 6px;
}
.panel-content::-webkit-scrollbar-track {
background: #f1f1f1;
}
.panel-content::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}
.panel-content::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* RCP (Règlement Complémentaire de Police) Styles */
/* Symbolize panels associated with RCP */
.regulation-panel-associated::before {
content: '';
position: absolute;
width: 12px;
height: 12px;
background-color: #28a745;
border-radius: 50%;
top: -6px;
right: -6px;
border: 2px solid white;
box-shadow: 0 0 4px rgba(0,0,0,0.3);
}