1- html , body {
1+ html {
2+ margin : 0px ;
3+ padding : 0px ;
4+ height : 100% ;
5+ width : 100% ;
6+ }
7+ body {
28 font-family : sans-serif;
39 font-size : 12px ;
410 height : 100% ;
5- /* width: 100%; */
11+ margin : 0px ;
12+ padding : 5px ;
13+ box-sizing : border-box;
614}
715
8- .select2-container .select2-selection .select2-selection__rendered ,
9- .select2-container .select2-selection--single .select2-selection__rendered ,
10- .select2-container .select2-results__option {
11- font-family : monospace;
12- /* font-size: 20px; */
13- }
14- .select2-results__group {
15- font-family : sans-serif;
16- /* font-size: 12px; */
17- /* color: blue; */
16+ span {
17+ font-size : 12px ;
1818}
1919
2020.maingrid {
2121 display : grid;
2222 grid-template-columns : min-content auto;
2323 width : 100% ;
24- gap : 5px ;
24+ gap : 0px ;
25+ }
26+
27+ /* to keep shadows visible at overflow hidden*/
28+ /* https://stackoverflow.com/questions/70802682/parents-overflowhidden-doesnt-show-childs-box-shadow */
29+ /* to the sides we only go +- 5 px (padding of body)*/
30+ .graphplot-col {
31+ /* overflow: hidden; /\* otherwise axis won't shrink *\/ */
32+ margin : -10px -10px -10px -5px ; /* t r b l */
33+ padding : 10px 10px 10px 5px ;
34+ }
35+ .timeseries-col {
36+ overflow : hidden; /* otherwise axis won't shrink */
37+ margin : -10px -5px -10px -10px ; /* t r b l */
38+ padding : 10px 5px 10px 10px ;
2539}
2640
2741.graphplot-col , .timeseries-col , .timeseries-stack {
2842 display : flex;
2943 flex-direction : column;
30- gap : 5 px ;
31- /* to keep shadows visible */
32- /* https://stackoverflow.com/questions/70802682/parents-overflowhidden-doesnt-show-childs-box-shadow */
33- overflow : hidden; /* otherwise it won't shrink */
34- margin : -10 px ;
35- padding : 10 px
44+ gap : 0 px ;
45+ }
46+
47+ . bonito-card {
48+ margin : 5 px !important ;
49+ position : relative;
3650}
3751
3852.graphplot-card {
39- height : 400 px ; /* initial widht and height */
40- width : 400 px ;
41- min-width : 250 px ;
53+ height : 350 px ; /* initial widht and height */
54+ width : 350 px ;
55+ min-width : 200 px ;
4256 resize : both;
4357 overflow : hidden;
4458}
@@ -53,7 +67,7 @@ html, body {
5367.timeseries-card {
5468 resize : vertical;
5569 overflow : hidden;
56- /* grid-column: 2; */
70+ position : relative; /* for close button */
5771}
5872.timeseries-card .active-tseries {
5973 box-shadow : 0 4px 8px rgba (0.0 , 0.0 , 51.0 , 0.65 );
@@ -71,6 +85,25 @@ html, body {
7185 flex-grow : 1 ;
7286 overflow : hidden;
7387}
88+ button .close-button {
89+ position : absolute;
90+ top : 0 ;
91+ right : 0 ;
92+ width : 20px ;
93+ height : 20px ;
94+ min-width : 0 ;
95+ min-height : 0 ;
96+ border-width : 0 ;
97+ box-shadow : none;
98+ background-color : transparent;
99+ padding : 0 ;
100+ margin : 0 ;
101+ }
102+ button .close-button : hover {
103+ box-shadow : none;
104+ background-color : transparent;
105+ text-shadow : 0 0 1px # 000 ;
106+ }
74107
75108.tooltip {
76109 position : absolute;
@@ -110,3 +143,100 @@ button{
110143 font-weight : normal !important ;
111144 font-family : sans-serif !important ;;
112145}
146+
147+
148+ /* Style for TomSelect elements */
149+ .ts-dropdown .optgroup-header {
150+ font-weight : bolder;
151+ }
152+ .ts-dropdown .option {
153+ font-family : monospace !important ;
154+ }
155+ .ts-dropdown .option .selected {
156+ background-color : # dddd ;
157+ }
158+ .ts-control .item {
159+ font-family : monospace;
160+ }
161+
162+ .ts-control .item ::before {
163+ display : inline-block;
164+ margin-right : 6px ;
165+ }
166+
167+ .ts-control {
168+ padding : 5px !important ;
169+ padding-bottom : 3px !important ;
170+ }
171+
172+
173+ .help-icon {
174+ position : absolute;
175+ /* text-shadow: 0 0 1px #999999; */
176+ color : # 999999 ;
177+ top : 0px ;
178+ left : 0px ;
179+ width : 20px ;
180+ height : 20px ;
181+ min-width : 0 ;
182+ min-height : 0 ;
183+ border-width : 0 ;
184+ box-shadow : none;
185+ /* background-color: #333; */
186+ padding : 0 ;
187+ margin : 0 ;
188+ text-align : center;
189+ font-size : 10px ;
190+ cursor : pointer;
191+ display : flex; /* Use flexbox for centering */
192+ align-items : center; /* Vertically center */
193+ justify-content : center; /* Horizontally center */
194+ }
195+
196+ .timeseries-card .help-icon {
197+ display : none;
198+ }
199+ .timeseries-card .active-tseries .help-icon {
200+ display : flex;
201+ }
202+
203+ .tooltip .help-text {
204+ position : absolute;
205+ top : 5px ; /* Adjust based on the size of the icon */
206+ left : 5px ;
207+ width : 200px ; /* Adjust as needed */
208+ white-space : normal; /* Allow text to wrap */
209+ word-wrap : break-word; /* Break long words if necessary */
210+ }
211+
212+ .tooltip {
213+ display : none; /* Initially hidden */
214+ position : absolute;
215+ background-color : rgba (51 , 51 , 51 , 0.99 ); /* Slightly transparent */
216+ color : white;
217+ padding : 5px 5px ;
218+ border-radius : 5px ;
219+ font-size : 12px ;
220+ white-space : normal; /* Allow text to wrap */
221+ z-index : 1000 ; /* Ensure it's above other elements */
222+ }
223+
224+ .tooltip ul {
225+ margin : 0 ; /* Remove extra padding for list items */
226+ padding-left : 10px ; /* Adjust as needed for bullet alignment */
227+ }
228+
229+ .tooltip li {
230+ padding-left : 0 ; /* Remove extra padding for list items */
231+ }
232+
233+ .tooltip .gp-tooltip {
234+ font-family : monospace;
235+ pointer-events : none;
236+ transform : translate (12px , 12px ); /* Offset from cursor */
237+ white-space : normal; /* Allow text to wrap */
238+ }
239+
240+ .help-icon : hover + .help-text {
241+ display : block; /* Show on hover */
242+ }
0 commit comments