@@ -56,53 +56,84 @@ select:focus {
56
56
box-shadow : 0 0 5px rgba (0 , 138 , 173 , 0.4 );
57
57
}
58
58
59
- /* Tooltip Styling */
59
+ /* Dotted Underline for Labels with Tooltips */
60
+ .tooltip-container {
61
+ position : relative;
62
+ display : inline-flex;
63
+ align-items : center;
64
+ border-bottom : 1px dotted # 008aad ;
65
+ /* Dotted underline */
66
+ padding-bottom : 2px ;
67
+ /* Adjust underline positioning */
68
+ cursor : help;
69
+ color : # 333 ;
70
+ transition : border-color 0.3s ;
71
+ }
72
+
73
+ /* Tooltip Icon Styling */
60
74
.tooltip-icon {
61
- margin-left : 5px ;
62
75
font-size : 0.9em ;
63
- color : # 6c757d ;
76
+ color : # 008aad ;
77
+ /* Icon color to match the dotted underline */
78
+ margin-left : 5px ;
79
+ /* Spacing between text and icon */
64
80
cursor : pointer;
81
+ transition : color 0.3s ;
65
82
}
66
83
67
- .tooltip-container {
68
- position : relative;
84
+ .tooltip-container : hover {
85
+ border-bottom-color : # 005f6b ;
86
+ /* Darker color on hover */
69
87
}
70
88
71
- .tooltip-container : hover .tooltiptext {
72
- visibility : visible ;
73
- opacity : 1 ;
89
+ .tooltip-container : hover .tooltip-icon {
90
+ color : # 005f6b ;
91
+ /* Darken icon color on hover */
74
92
}
75
93
76
- .tooltiptext {
94
+ /* Modern Tooltip Styling */
95
+ .tooltip-container .tooltiptext {
77
96
visibility : hidden;
78
- width : 220 px ;
79
- background-color : # 333 ;
97
+ width : 240 px ;
98
+ background-color : rgba ( 51 , 51 , 51 , 0.95 ) ;
80
99
color : # fff ;
81
- text-align : center ;
82
- border-radius : 5 px ;
83
- padding : 5 px ;
100
+ text-align : left ;
101
+ border-radius : 8 px ;
102
+ padding : 10 px ;
84
103
position : absolute;
85
- z-index : 1 ;
86
- bottom : 125 % ;
87
- /* Position above the text */
104
+ z-index : 10 ;
105
+ bottom : 150 % ;
106
+ /* Position above the label */
88
107
left : 50% ;
89
- margin-left : -110 px ;
108
+ margin-left : -120 px ;
90
109
opacity : 0 ;
91
- transition : opacity 0.3s ;
110
+ transform : scale (0.95 );
111
+ box-shadow : 0px 8px 16px rgba (0 , 0 , 0 , 0.3 );
112
+ font-size : 0.95em ;
113
+ transition : opacity 0.3s , transform 0.3s ;
114
+ }
115
+
116
+ .tooltip-container : hover .tooltiptext {
117
+ visibility : visible;
118
+ opacity : 1 ;
119
+ transform : scale (1 );
92
120
}
93
121
94
122
.tooltiptext ::after {
95
123
content : "" ;
96
124
position : absolute;
97
125
top : 100% ;
126
+ /* Position arrow at the bottom of the tooltip */
98
127
left : 50% ;
99
128
margin-left : -5px ;
100
129
border-width : 5px ;
101
130
border-style : solid;
102
- border-color : # 333 transparent transparent transparent;
131
+ border-color : rgba ( 51 , 51 , 51 , 0.95 ) transparent transparent transparent;
103
132
}
104
133
105
- /* Button Styling */
134
+
135
+
136
+ /* ----------Button Styling------------- */
106
137
.btn-submit {
107
138
background-color : # 008aad ;
108
139
color : # fff ;
@@ -125,43 +156,4 @@ select:focus {
125
156
color : # e74c3c ;
126
157
font-size : 0.9em ;
127
158
margin-top : 5px ;
128
- }
129
-
130
- /* Tooltip container */
131
- .tooltip-container {
132
- position : relative;
133
- }
134
-
135
- .tooltiptext {
136
- visibility : hidden;
137
- width : 220px ;
138
- background-color : # 333 ;
139
- color : # fff ;
140
- text-align : center;
141
- border-radius : 5px ;
142
- padding : 5px ;
143
- position : absolute;
144
- z-index : 1 ;
145
- bottom : 125% ;
146
- /* Position above the text */
147
- left : 50% ;
148
- margin-left : -110px ;
149
- opacity : 0 ;
150
- transition : opacity 0.3s ;
151
- }
152
-
153
- .tooltip-container : hover .tooltiptext {
154
- visibility : visible;
155
- opacity : 1 ;
156
- }
157
-
158
- .tooltiptext ::after {
159
- content : "" ;
160
- position : absolute;
161
- top : 100% ;
162
- left : 50% ;
163
- margin-left : -5px ;
164
- border-width : 5px ;
165
- border-style : solid;
166
- border-color : # 333 transparent transparent transparent;
167
159
}
0 commit comments