diff options
| author | kat <kat@vector35.com> | 2023-05-26 10:40:40 -0400 |
|---|---|---|
| committer | kat <kat@vector35.com> | 2023-05-26 11:07:22 -0400 |
| commit | a05596610bbbe9274d9300882fbbbfb41eec107d (patch) | |
| tree | feb0e15a6c908bd1a65e0d3dd5226bd44782534d /api-docs/cppdocs/custom.css | |
| parent | f8ba38091323f7e3402bd73bb1e53ac358696dd0 (diff) | |
Add a thread safety indicator for C++ docs
Diffstat (limited to 'api-docs/cppdocs/custom.css')
| -rw-r--r-- | api-docs/cppdocs/custom.css | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/api-docs/cppdocs/custom.css b/api-docs/cppdocs/custom.css index 11997bbe..fff8d2dc 100644 --- a/api-docs/cppdocs/custom.css +++ b/api-docs/cppdocs/custom.css @@ -107,4 +107,69 @@ a.index\.html { padding-top: 0px; right: -22px; } +} + +.memitem { + position:relative; +} + +dl.threadsafe { + position: absolute; + top: 0px; + right: 8px; + margin-top: 10px; + background-color: #434956; + font-weight: normal; + padding: 2px 10px; + border-radius: 4px; +} +.threadsafe dt { + padding-right: 35px; +} +.threadsafe.Yes dd { + display: inline!important; + margin-inline-start: 0; + position: absolute; + top: 1px; + right: 1px; + padding: 1px 6px 1px 5px; + background-color: #4e8646; + border-bottom-right-radius: 3px; + border-top-right-radius: 3px; + width: 25px; + text-align: center; +} +.threadsafe.No dd { + display: inline!important; + margin-inline-start: 0; + position: absolute; + top: 1px; + right: 1px; + padding: 1px 6px 1px 5px; + background-color: #d0584d; + border-bottom-right-radius: 3px; + border-top-right-radius: 3px; + width: 25px; + text-align: center; +} + +.light-mode dl.threadsafe { + background-color: #d0d6e2; +} +.light-mode .threadsafe.Yes dd { + background-color: #9af78c; +} +.light-mode .threadsafe.No dd { + background-color: #fb877d; +} + +img.thread { + max-width: 15px; + position: relative; + top: 2px; + padding-right: 3px; +} + +.dark-mode img.thread { + filter: invert(0.7); }
\ No newline at end of file |
