|
11 | 11 | background-image: unset!important; |
12 | 12 | } |
13 | 13 |
|
| 14 | +/* Grid Row Styles - Reserve space for selection and conditional styling */ |
| 15 | + |
| 16 | +/* Base grid row style - reserve space for all possible borders and styling */ |
| 17 | +.x-grid3-row { |
| 18 | + border-left: 3px solid transparent !important; |
| 19 | + box-sizing: border-box !important; |
| 20 | +} |
| 21 | + |
| 22 | +.x-grid3-row-alt { |
| 23 | + border-left: 3px solid transparent !important; |
| 24 | + box-sizing: border-box !important; |
| 25 | +} |
| 26 | + |
| 27 | +.x-grid3-row-over { |
| 28 | + border-left: 3px solid transparent !important; |
| 29 | + box-sizing: border-box !important; |
| 30 | +} |
| 31 | + |
| 32 | +/* Ensure table cells maintain proper alignment */ |
| 33 | +.x-grid3-row td { |
| 34 | + box-sizing: border-box !important; |
| 35 | +} |
| 36 | + |
14 | 37 | /* Conditional Grid Row Styles */ |
15 | 38 | .grid-row-red { |
16 | 39 | background-color: #ffebee !important; |
|
37 | 60 | border-left: 3px solid #ff9800 !important; |
38 | 61 | } |
39 | 62 |
|
| 63 | +/* Selection styles */ |
40 | 64 | .x-grid3-row-selected { |
41 | 65 | background-image: none !important; |
42 | 66 | border-color: initial !important; |
43 | | - /*border: 2px dotted !important;*/ |
44 | | - border-left: 3px solid !important; |
| 67 | + border-left: 3px solid #777777 !important; |
| 68 | + box-sizing: border-box !important; |
| 69 | +} |
| 70 | + |
| 71 | +/* Handle selection with conditional coloring */ |
| 72 | +.x-grid3-row-selected.grid-row-red { |
| 73 | + border-left: 3px solid #d32f2f !important; /* darker red for selection */ |
| 74 | +} |
| 75 | + |
| 76 | +.x-grid3-row-selected.grid-row-green { |
| 77 | + border-left: 3px solid #388e3c !important; /* darker green for selection */ |
| 78 | +} |
| 79 | + |
| 80 | +.x-grid3-row-selected.grid-row-blue { |
| 81 | + border-left: 3px solid #1976d2 !important; /* darker blue for selection */ |
| 82 | +} |
| 83 | + |
| 84 | +.x-grid3-row-selected.grid-row-yellow { |
| 85 | + border-left: 3px solid #f57f17 !important; /* darker yellow for selection */ |
| 86 | +} |
| 87 | + |
| 88 | +.x-grid3-row-selected.grid-row-orange { |
| 89 | + border-left: 3px solid #f57c00 !important; /* darker orange for selection */ |
| 90 | +} |
| 91 | + |
| 92 | +/* Conditional tooltip for grid cells - only shows when text is truncated */ |
| 93 | +.overflow-tooltip { |
| 94 | + overflow: hidden; |
| 95 | + text-overflow: ellipsis; |
| 96 | + white-space: nowrap; |
| 97 | + cursor: default; |
| 98 | +} |
| 99 | + |
| 100 | +/* Use a different approach - create tooltip outside the grid structure */ |
| 101 | +.overflow-tooltip.text-overflowing { |
| 102 | + position: relative; |
| 103 | +} |
| 104 | + |
| 105 | +/* Create tooltip using a separate overlay element instead of modifying grid structure */ |
| 106 | +.grid-tooltip-overlay { |
| 107 | + position: fixed; |
| 108 | + background: #ffffe1; |
| 109 | + border: 1px solid #a3bad9; |
| 110 | + color: #2e2e2e; |
| 111 | + padding: 2px 5px; |
| 112 | + font-family: tahoma, arial, verdana, sans-serif; |
| 113 | + font-size: 11px; |
| 114 | + line-height: 16px; |
| 115 | + white-space: normal; |
| 116 | + word-wrap: break-word; |
| 117 | + max-width: 300px; |
| 118 | + min-width: 40px; |
| 119 | + box-shadow: 2px 2px 3px rgba(0,0,0,0.2); |
| 120 | + pointer-events: none; |
| 121 | + z-index: 50000; |
| 122 | + opacity: 1; |
| 123 | + display: none; |
45 | 124 | } |
46 | 125 |
|
47 | 126 | /* Conditional tooltip for grid cells - only shows when text is truncated */ |
|
0 commit comments