Skip to content

Commit 3aced22

Browse files
committed
Add styles for glossary tooltip
1 parent 4b82227 commit 3aced22

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/css/custom.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,23 @@ html[data-theme="dark"] a[class^='fa-solid fa-circle-question'] {
202202
.tooltip:hover .tooltiptext {
203203
visibility: visible;
204204
}
205+
206+
/* Glossary tooltip styles */
207+
.glossary-term {
208+
text-decoration: underline dotted; /* Dotted underline */
209+
cursor: help; /* Change cursor to indicate help */
210+
}
211+
212+
.tooltip-glossary {
213+
position: absolute; /* Position relative to the nearest positioned ancestor */
214+
background-color: #fff;
215+
border: 1px solid #ccc;
216+
padding: 5px;
217+
z-index: 10;
218+
visibility: visible;
219+
opacity: 0.9;
220+
transform: translateY(5px); /* Move tooltip slightly down */
221+
white-space: nowrap; /* Prevent text wrapping */
222+
border-radius: 4px; /* Optional: round the corners */
223+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: add a shadow */
224+
}

0 commit comments

Comments
 (0)