Skip to content

Commit d49f6a9

Browse files
committed
css for tables update
1 parent 2aa3041 commit d49f6a9

File tree

3 files changed

+96
-4
lines changed

3 files changed

+96
-4
lines changed

client/site/css/grid-styles.css

Lines changed: 81 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,29 @@
1111
background-image: unset!important;
1212
}
1313

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+
1437
/* Conditional Grid Row Styles */
1538
.grid-row-red {
1639
background-color: #ffebee !important;
@@ -37,11 +60,67 @@
3760
border-left: 3px solid #ff9800 !important;
3861
}
3962

63+
/* Selection styles */
4064
.x-grid3-row-selected {
4165
background-image: none !important;
4266
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;
45124
}
46125

47126
/* Conditional tooltip for grid cells - only shows when text is truncated */

client/site/libs/ext/resources/css/geo-portal.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,16 +569,22 @@ ul.x-tab-strip-bottom{
569569
.x-grid3-row {
570570
border-color:#ededed;
571571
border-top-color:#fff;
572+
border-left: 3px solid transparent !important;
573+
box-sizing: border-box !important;
572574
}
573575

574576
.x-grid3-row-alt{
575577
background-color:#fafafa;
578+
border-left: 3px solid transparent !important;
579+
box-sizing: border-box !important;
576580
}
577581

578582
.x-grid3-row-over {
579583
border-color:#ddd;
580584
background-color:#efefef;
581585
background-image:url(../images/default/grid/row-over.gif);
586+
border-left: 3px solid transparent !important;
587+
box-sizing: border-box !important;
582588
}
583589

584590
.x-grid3-resize-proxy {
@@ -652,6 +658,9 @@ td.x-grid3-hd-over .x-grid3-hd-inner, td.sort-desc .x-grid3-hd-inner, td.sort-as
652658
background-color:#CCCCCC !important;
653659
background-image: none;
654660
border-color:#ACACAC;
661+
/* Remove border styling here as it's handled in grid-styles.css */
662+
border-left: none !important;
663+
box-sizing: border-box !important;
655664
}
656665

657666
.x-grid3-cell-selected{
@@ -805,10 +814,14 @@ td.x-grid3-hd-over .x-grid3-hd-inner, td.sort-desc .x-grid3-hd-inner, td.sort-as
805814

806815
.x-grid-with-col-lines .x-grid3-row{
807816
border-top-color:#ededed;
817+
border-left: 3px solid transparent !important;
818+
box-sizing: border-box !important;
808819
}
809820

810821
.x-grid-with-col-lines .x-grid3-row-selected {
811822
border-top-color:#B9B9B9;
823+
border-left: none !important; /* Let grid-styles.css handle this */
824+
box-sizing: border-box !important;
812825
}
813826
.x-pivotgrid .x-grid3-header-offset table td {
814827
background: url(../images/gray/grid/grid3-hrow2.gif) repeat-x 50% 100%;

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,15 @@ class="mapicon"></a>
327327

328328
<title></title>
329329
<link rel="stylesheet" type="text/css" href="client/site/libs/ext/resources/css/ext-all-notheme.css"/>
330-
<link rel="stylesheet" type="text/css" href="client/site/libs/ext/resources/css/geo-portal.css?v=20250813"/>
330+
<link rel="stylesheet" type="text/css" href="client/site/libs/ext/resources/css/geo-portal.css?v=20251030"/>
331331
<link rel="stylesheet" type="text/css" href="client/site/libs/ext/ux/css/ux-all.css?v=20180219"/>
332332
<link rel="stylesheet" type="text/css" href="client/site/css/TriStateTreeAndCheckbox.css?v=20250818"/>
333333
<!-- <link rel="stylesheet" type="text/css" href="client/site/css/ThemeSwitcherDataView.css"/>-->
334334
<link rel="stylesheet" type="text/css" href="client/site/css/popup.css?v=20250813"/>
335335
<!-- <link rel="stylesheet" type="text/css" href="client/site/css/layerOrderTab.css?v=20200405"/>-->
336336
<link rel="stylesheet" type="text/css" href="client/site/css/contextMenu.css?v=20250813"/>
337337
<link rel="stylesheet" type="text/css" href="client/site/css/style-gray.css?v=20250813"/>
338-
<link rel="stylesheet" type="text/css" href="client/site/css/grid-styles.css?v=20250813a">
338+
<link rel="stylesheet" type="text/css" href="client/site/css/grid-styles.css?v=20251030">
339339

340340
<?php if ($edit) {
341341
echo '<link rel="stylesheet" type="text/css" href="plugins/editing/theme/geosilk/geosilk.css?v='.$editVer.'"/>';

0 commit comments

Comments
 (0)