updates
This commit is contained in:
@@ -869,4 +869,62 @@ html.dark, .o_dark {
|
||||
z-index: 100000 !important;
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// LTC REPAIR KANBAN - Stage & priority color coding
|
||||
// Uses data-* attributes on <main> + CSS :has() to style the outer card.
|
||||
// =============================================================================
|
||||
|
||||
.o_kanban_view .o_kanban_record {
|
||||
|
||||
// --- Stage left border (on the full card) ---
|
||||
&:has(main[data-stage="info"]) {
|
||||
border-left: 3px solid #0dcaf0 !important;
|
||||
background-color: rgba(13, 202, 240, 0.04) !important;
|
||||
}
|
||||
&:has(main[data-stage="warning"]) {
|
||||
border-left: 3px solid #ffc107 !important;
|
||||
background-color: rgba(255, 193, 7, 0.04) !important;
|
||||
}
|
||||
&:has(main[data-stage="success"]) {
|
||||
border-left: 3px solid #198754 !important;
|
||||
background-color: rgba(25, 135, 84, 0.04) !important;
|
||||
}
|
||||
&:has(main[data-stage="danger"]) {
|
||||
border-left: 3px solid #dc3545 !important;
|
||||
background-color: rgba(220, 53, 69, 0.04) !important;
|
||||
}
|
||||
&:has(main[data-stage="secondary"]) {
|
||||
border-left: 3px solid #adb5bd !important;
|
||||
}
|
||||
|
||||
// --- Priority high: warm amber bottom accent ---
|
||||
&:has(main[data-priority="1"]) {
|
||||
box-shadow: inset 0 -2px 0 0 rgba(255, 152, 0, 0.4) !important;
|
||||
}
|
||||
|
||||
// --- Emergency: override with stronger red ---
|
||||
&:has(main[data-emergency="1"]) {
|
||||
border-left: 4px solid #dc3545 !important;
|
||||
background-color: rgba(220, 53, 69, 0.06) !important;
|
||||
box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.15) !important;
|
||||
}
|
||||
|
||||
// Emergency + priority combined
|
||||
&:has(main[data-emergency="1"][data-priority="1"]) {
|
||||
box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.15),
|
||||
inset 0 -2px 0 0 rgba(255, 152, 0, 0.4) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Dark mode: slightly stronger tints
|
||||
html.dark, .o_dark {
|
||||
.o_kanban_view .o_kanban_record {
|
||||
&:has(main[data-stage="info"]) { background-color: rgba(13, 202, 240, 0.07) !important; }
|
||||
&:has(main[data-stage="warning"]) { background-color: rgba(255, 193, 7, 0.07) !important; }
|
||||
&:has(main[data-stage="success"]) { background-color: rgba(25, 135, 84, 0.07) !important; }
|
||||
&:has(main[data-stage="danger"]) { background-color: rgba(220, 53, 69, 0.07) !important; }
|
||||
&:has(main[data-emergency="1"]) { background-color: rgba(220, 53, 69, 0.1) !important; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user