@@ -150,9 +150,29 @@ canvas {
150150 height : 60% ;
151151}
152152
153+ /* width */
154+ ::-webkit-scrollbar {
155+ width : 10px ;
156+ }
157+
158+ /* Track */
159+ ::-webkit-scrollbar-track {
160+ background : # f1f1f1 ;
161+ }
162+
163+ /* Handle */
164+ ::-webkit-scrollbar-thumb {
165+ background : # 888 ;
166+ }
167+
168+ /* Handle on hover */
169+ ::-webkit-scrollbar-thumb : hover {
170+ background : # 555 ;
171+ }
172+
153173/* Style for the right sidebar */
154174.right-bar {
155- flex : 0 0 250 px ; /* Fixed width of 250px for the right bar */
175+ flex : 0 0 300 px ; /* Fixed width of 250px for the right bar */
156176 background-color : # f1f1f1 ; /* Light background for the bar */
157177 box-shadow : -2px 0px 5px rgba (0 , 0 , 0 , 0.2 ); /* Left shadow to highlight the bar */
158178 padding : 20px ; /* Internal space around content */
@@ -192,10 +212,14 @@ canvas {
192212 border-radius : 4px ;
193213 width : 100% ; /* Occupies 100% of the right-bar width */
194214 box-sizing : border-box; /* Includes padding in the total width */
215+ transition :
216+ background-color 0.3s ease,
217+ transform 0.2s ease;
195218}
196219
197220.right-bar-button : hover {
198221 background-color : # 0056b3 ;
222+ transform : scale (1.02 ); /* Small scale effect on hover */
199223}
200224
201225.right-bar-button .selected-button {
@@ -249,3 +273,115 @@ canvas {
249273.dropdown-container {
250274 margin-bottom : 8px ; /* Reduce bottom margin */
251275}
276+
277+ /* Container for button and table */
278+ .toggle-table-container {
279+ display : flex;
280+ flex-direction : column;
281+ gap : 5px ; /* Spacing between button and table */
282+ width : 100% ;
283+ }
284+
285+ /* Style for buttons in the right bar with green background */
286+ .right-bar-toggle-button {
287+ background-color : # 1d7437 ; /* Dark green */
288+ border : none;
289+ color : white;
290+ padding : 6px 12px ;
291+ text-align : center; /* Center text horizontally */
292+ text-decoration : none;
293+ display : flex; /* Use flexbox to organize text and arrow */
294+ justify-content : center; /* Center content horizontally */
295+ align-items : center; /* Center content vertically */
296+ font-size : 14px ;
297+ margin : 5px 0 ; /* Adjust margin between buttons */
298+ cursor : pointer;
299+ border-radius : 4px ; /* Rounded borders */
300+ width : 100% ;
301+ box-sizing : border-box; /* Include padding on all length */
302+ transition :
303+ background-color 0.3s ease,
304+ transform 0.2s ease;
305+ position : relative; /* To position internal elements like the arrow */
306+ }
307+
308+ /* Hover for the button */
309+ .right-bar-toggle-button : hover {
310+ background-color : # 135025 ; /* Change to a darker green */
311+ transform : scale (1.02 ); /* Small scale effect */
312+ }
313+
314+ /* Triangle icon */
315+ .right-bar-toggle-button ::after {
316+ content : "" ;
317+ display : inline-block;
318+ position : absolute; /* Position the triangle on the right */
319+ right : 12px ; /* Right margin for the triangle */
320+ width : 0 ;
321+ height : 0 ;
322+ border-left : 6px solid transparent;
323+ border-right : 6px solid transparent;
324+ border-top : 6px solid white; /* White triangle */
325+ transition : transform 0.3s ease;
326+ }
327+
328+ /* Rotate triangle when opening */
329+ .right-bar-toggle-button .open ::after {
330+ transform : rotate (180deg ); /* Rotate triangle upwards */
331+ }
332+
333+ /* Table style */
334+ .toggle-table-container table {
335+ width : 100% ;
336+ border-collapse : collapse;
337+ font-size : 14px ;
338+ text-align : center;
339+ transition : opacity 0.5s ease-out; /* Make transition smoother */
340+ border-radius : 8px ; /* Rounded borders */
341+ overflow : hidden; /* Avoid content spilling */
342+ box-shadow : 0px 4px 8px rgba (0 , 0 , 0 , 0.1 );
343+ }
344+
345+ /* Table headers */
346+ .toggle-table-container th {
347+ background-color : # 1d7437 ;
348+ color : white;
349+ padding : 8px ;
350+ border : 1px solid # ddd ;
351+ text-align : center;
352+ }
353+
354+ /* Table rows */
355+ .toggle-table-container td {
356+ padding : 8px ;
357+ border : 1px solid # ddd ;
358+ text-align : center;
359+ }
360+
361+ /* Alternate between row colors */
362+ .toggle-table-container tr : nth-child (even) {
363+ background-color : # f9f9f9 ;
364+ }
365+
366+ .toggle-table-container tr : nth-child (odd) {
367+ background-color : # ffffff ;
368+ }
369+
370+ /* Hover on rows */
371+ .toggle-table-container tr : hover {
372+ background-color : # f1f1f1 ;
373+ }
374+
375+ /* Compatibility adjustments */
376+ .toggle-table-container caption {
377+ font-size : 16px ;
378+ font-weight : bold;
379+ margin-bottom : 5px ;
380+ color : # 333333 ;
381+ text-align : center;
382+ }
383+
384+ /* Hidden table */
385+ .toggle-table-container table .hidden {
386+ display : none; /* Hides table */
387+ }
0 commit comments