| 1 |
/* custom CSS to add a border to tab groups |
| 2 |
* see also: |
| 3 |
* https://github.com/pradyunsg/furo/discussions/633 */ |
| 4 |
:root { |
| 5 |
/* default to '#aaa', which looks okay in both light and dark */ |
| 6 |
--tabset-border-color: #aaa; |
| 7 |
} |
| 8 |
/* set the border color to decrease contrast a little on dark theme |
| 9 |
* this detection logic is taken from furo, which sets data-theme on the body |
| 10 |
* element when the user toggles the color scheme */ |
| 11 |
@media (prefers-color-scheme: dark) { |
| 12 |
body:not([data-theme="light"]) { |
| 13 |
--tabset-border-color: #777; |
| 14 |
} |
| 15 |
} |
| 16 |
.sd-tab-set { |
| 17 |
border-style: solid; |
| 18 |
border-width: 1px; |
| 19 |
border-radius: 3px; |
| 20 |
border-color: var(--tabset-border-color); |
| 21 |
padding: 1px; |
| 22 |
} |
| 23 |
.sd-tab-set .sd-tab-content { |
| 24 |
padding: 4px; |
| 25 |
} |