diff --git a/site/assets/style.css b/site/assets/style.css index d5a4ac57..6a287b0a 100644 --- a/site/assets/style.css +++ b/site/assets/style.css @@ -134,11 +134,13 @@ main { /* Standards table */ .standards-table-container { - overflow: hidden; + overflow-x: auto; + overflow-y: visible; border: 1px solid var(--border-color); border-radius: 8px; margin-top: 32px; background: var(--bg-color-raised); + position: relative; } .standards-table { @@ -167,6 +169,7 @@ main { text-align: left; transition: background-color 0.2s; user-select: none; + overflow: visible; } .standards-table th:hover { background: var(--color-gray-6); @@ -812,3 +815,80 @@ footer { .contribute-content tr:last-child td { border-bottom: none; } + +/* Tooltip styles */ +.tooltip { + position: relative; + display: inline-block; + cursor: help; +} + +.tooltip::after { + content: "?"; + display: inline-block; + width: 14px; + height: 14px; + margin-left: 6px; + font-size: 10px; + font-weight: 600; + text-align: center; + line-height: 14px; + border-radius: 50%; + background: var(--color-gray-6); + color: var(--text-color); +} + +/* Hide tooltip text by default */ +.tooltip .tooltip-text { + display: none; + position: fixed; + width: 300px; + background-color: var(--color-gray-7); + color: var(--text-color); + text-align: left; + border-radius: 6px; + padding: 12px; + z-index: 999999; + border: 1px solid var(--border-color); + font-size: 14px; + font-weight: 400; + line-height: 1.4; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); + pointer-events: none; +} + +/* Tooltip arrow */ +.tooltip .tooltip-text::after { + content: ""; + position: absolute; + top: 100%; + left: 50%; + margin-left: -5px; + border-width: 5px; + border-style: solid; + border-color: var(--color-gray-7) transparent transparent transparent; +} + +/* Category-specific styling in tooltip text */ +.tooltip-category { + margin-bottom: 8px; +} + +.tooltip-category strong { + color: var(--link-color); +} + +.tooltip-status { + margin-bottom: 8px; +} + +.tooltip-status strong { + color: var(--link-color); +} + +/* Show tooltip on hover */ +.tooltip:hover .tooltip-text { + display: block; + visibility: visible; + opacity: 1; +} diff --git a/site/templates/category.html b/site/templates/category.html index 86f4ba35..2425e9ba 100644 --- a/site/templates/category.html +++ b/site/templates/category.html @@ -1,6 +1,6 @@ -