Skip to content

Commit 9838eda

Browse files
committed
Put glossary tooltip styles in ABC order
1 parent a3a316d commit 9838eda

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/css/custom.css

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,20 +205,21 @@ html[data-theme="dark"] a[class^='fa-solid fa-circle-question'] {
205205

206206
/* Glossary tooltip styles */
207207
.glossary-term {
208-
text-decoration: underline dotted; /* Dotted underline */
209208
cursor: help; /* Change cursor to indicate help */
209+
text-decoration: underline dotted; /* Dotted underline */
210210
}
211211

212212
.tooltip-glossary {
213-
position: absolute; /* Position relative to the nearest positioned ancestor */
214-
background-color: #fff;
213+
background-color: #f6f6f6;
215214
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 */
222215
border-radius: 4px; /* Optional: round the corners */
223216
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: add a shadow */
217+
opacity: 1;
218+
position: absolute; /* Position relative to the nearest positioned ancestor */
219+
padding: 5px;
220+
transform: translateY(5px); /* Move tooltip slightly down */
221+
visibility: visible;
222+
white-space: normal; /* Prevent text wrapping */
223+
width: 400px; /* Set a maximum width for the tooltip */
224+
z-index: 10;
224225
}

0 commit comments

Comments
 (0)