mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-05 23:51:08 +00:00
7c54965b11
Closes https://github.com/zed-industries/zed/issues/17911 This PR enables dark mode on the documentation. This is done without any special plugins, just pure JavaScript and CSS variables. I may open fast-follow PRs to fine-tune design and code details that haven't been super polished yet. For example, when switching to dark mode, the `class` attribute on the `html` tag would change immediately, whereas other attributes such as `data-theme` and `data-color-scheme` would require a full refresh. This seems to be resolved, but not 100% confident yet. --- Release Notes: - Enabled dark mode on the documentation
8 lines
171 B
CSS
8 lines
171 B
CSS
kbd.keybinding {
|
|
background-color: var(--keybinding-bg);
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
font-family: monospace;
|
|
display: inline-block;
|
|
margin: 0 2px;
|
|
}
|