@@ -45,7 +45,7 @@ select {
45
45
padding : 12px ;
46
46
font-size : 1em ;
47
47
border : 1px solid # ddd ;
48
- border-radius : 5 px ;
48
+ border-radius : 12 px ;
49
49
background-color : # f8f8f8 ;
50
50
transition : border-color 0.3s , box-shadow 0.3s ;
51
51
}
@@ -56,39 +56,57 @@ select:focus {
56
56
box-shadow : 0 0 5px rgba (0 , 138 , 173 , 0.4 );
57
57
}
58
58
59
- /* Dotted Underline for Labels with Tooltips */
59
+ /* Dotted underline and icon indicator */
60
60
.tooltip-container {
61
61
position : relative;
62
62
display : inline-flex;
63
63
align-items : center;
64
64
border-bottom : 1px dotted # 008aad ;
65
- /* Dotted underline */
66
65
padding-bottom : 2px ;
67
- /* Adjust underline positioning */
68
66
cursor : help;
69
67
color : # 333 ;
70
68
transition : border-color 0.3s ;
71
69
}
72
70
73
- /* Tooltip Icon Styling */
74
- .tooltip-icon {
75
- font-size : 0.9em ;
76
- color : # 008aad ;
77
- /* Icon color to match the dotted underline */
78
- margin-left : 5px ;
79
- /* Spacing between text and icon */
80
- cursor : pointer;
81
- transition : color 0.3s ;
71
+ /* Custom tooltip styling */
72
+ .tooltip-container .tooltiptext {
73
+ visibility : hidden;
74
+ width : 240px ;
75
+ background-color : rgba (51 , 51 , 51 , 0.95 );
76
+ color : # fff ;
77
+ text-align : left;
78
+ border-radius : 8px ;
79
+ padding : 10px ;
80
+ position : absolute;
81
+ z-index : 10 ;
82
+ bottom : 150% ;
83
+ /* Positions tooltip above the label */
84
+ left : 50% ;
85
+ margin-left : -120px ;
86
+ opacity : 0 ;
87
+ transform : scale (0.95 );
88
+ box-shadow : 0px 8px 16px rgba (0 , 0 , 0 , 0.3 );
89
+ font-size : 0.95em ;
90
+ transition : opacity 0.3s , transform 0.3s ;
82
91
}
83
92
84
- .tooltip-container : hover {
85
- border-bottom-color : # 005f6b ;
86
- /* Darker color on hover */
93
+ /* Tooltip visibility on hover */
94
+ .tooltip-container : hover .tooltiptext {
95
+ visibility : visible;
96
+ opacity : 1 ;
97
+ transform : scale (1 );
87
98
}
88
99
89
- .tooltip-container : hover .tooltip-icon {
90
- color : # 005f6b ;
91
- /* Darken icon color on hover */
100
+ .tooltiptext ::after {
101
+ content : "" ;
102
+ position : absolute;
103
+ top : 100% ;
104
+ /* Positions arrow at the bottom of the tooltip */
105
+ left : 50% ;
106
+ margin-left : -5px ;
107
+ border-width : 5px ;
108
+ border-style : solid;
109
+ border-color : rgba (51 , 51 , 51 , 0.95 ) transparent transparent transparent;
92
110
}
93
111
94
112
/* Modern Tooltip Styling */
0 commit comments