Skip to content

Commit f6d3195

Browse files
fix: Tooltip for open result icon not placed properly (#318)
Fixed Issue#314
1 parent 864f30a commit f6d3195

File tree

1 file changed

+32
-7
lines changed

1 file changed

+32
-7
lines changed

src/style.css

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,7 @@ input[type='number']::-webkit-outer-spin-button {
498498
margin-left: 3rem;
499499
}
500500

501-
.close-sideBar span.tooltip,
502-
.open-sidebar > span.tooltip {
501+
.close-sideBar span.tooltip {
503502
position: relative;
504503
bottom: -20px;
505504
right: 40px;
@@ -516,12 +515,27 @@ input[type='number']::-webkit-outer-spin-button {
516515
}
517516

518517
.open-sidebar > span.tooltip {
519-
top: 38%;
520-
left: -45px;
518+
position: relative;
519+
bottom: -20px;
520+
right: 40px;
521+
padding: 5px;
522+
width: 50px;
523+
margin-top: 10px;
524+
margin-right: -50px;
525+
font-size: 15px;
526+
text-align: center;
527+
color: var(--input-color);
528+
background-color: var(--text-color);
529+
border-radius: 5px;
530+
display: none;
531+
}
532+
533+
.open-sidebar > span.tooltip {
534+
top: 5%;
535+
left: -10px;
521536
}
522537

523-
.close-sideBar .tooltip::before,
524-
.open-sidebar > span.tooltip::before {
538+
.close-sideBar .tooltip::before {
525539
content: '';
526540
position: absolute;
527541
top: -15%;
@@ -533,7 +547,18 @@ input[type='number']::-webkit-outer-spin-button {
533547
}
534548

535549
.open-sidebar > span.tooltip::before {
536-
top: 10%;
550+
content: '';
551+
position: absolute;
552+
top: -15%;
553+
left: 5%;
554+
margin-top: -5px;
555+
border-width: 12px;
556+
border-style: solid;
557+
border-color: transparent var(--text-color) transparent transparent;
558+
}
559+
560+
.open-sidebar > span.tooltip::before {
561+
top: -26%;
537562
}
538563

539564
.close-sideBar:hover .tooltip,

0 commit comments

Comments
 (0)