Skip to content

Commit 632dadb

Browse files
authored
tooltip update
1 parent 3ac0fcc commit 632dadb

File tree

1 file changed

+52
-60
lines changed

1 file changed

+52
-60
lines changed

newaccountstyles.css

+52-60
Original file line numberDiff line numberDiff line change
@@ -56,53 +56,84 @@ select:focus {
5656
box-shadow : 0 0 5px rgba(0, 138, 173, 0.4);
5757
}
5858

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 */
6074
.tooltip-icon {
61-
margin-left: 5px;
6275
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 */
6480
cursor : pointer;
81+
transition : color 0.3s;
6582
}
6683

67-
.tooltip-container {
68-
position: relative;
84+
.tooltip-container:hover {
85+
border-bottom-color: #005f6b;
86+
/* Darker color on hover */
6987
}
7088

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 */
7492
}
7593

76-
.tooltiptext {
94+
/* Modern Tooltip Styling */
95+
.tooltip-container .tooltiptext {
7796
visibility : hidden;
78-
width : 220px;
79-
background-color: #333;
97+
width : 240px;
98+
background-color: rgba(51, 51, 51, 0.95);
8099
color : #fff;
81-
text-align : center;
82-
border-radius : 5px;
83-
padding : 5px;
100+
text-align : left;
101+
border-radius : 8px;
102+
padding : 10px;
84103
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 */
88107
left : 50%;
89-
margin-left : -110px;
108+
margin-left : -120px;
90109
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);
92120
}
93121

94122
.tooltiptext::after {
95123
content : "";
96124
position : absolute;
97125
top : 100%;
126+
/* Position arrow at the bottom of the tooltip */
98127
left : 50%;
99128
margin-left : -5px;
100129
border-width: 5px;
101130
border-style: solid;
102-
border-color: #333 transparent transparent transparent;
131+
border-color: rgba(51, 51, 51, 0.95) transparent transparent transparent;
103132
}
104133

105-
/* Button Styling */
134+
135+
136+
/* ----------Button Styling------------- */
106137
.btn-submit {
107138
background-color: #008aad;
108139
color : #fff;
@@ -125,43 +156,4 @@ select:focus {
125156
color : #e74c3c;
126157
font-size : 0.9em;
127158
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;
167159
}

0 commit comments

Comments
 (0)