| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | .kbd-group { |
| 9 | display: inline-flex; |
| 10 | gap: 4px; |
| 11 | line-height: 12px; |
| 12 | padding-inline: 4px; |
| 13 | } |
| 14 | |
| 15 | .dark-theme kbd { |
| 16 | --kbd-background: var(--vscode-keybindingLabel-background, rgba(128, 128, 128, 0.17)); |
| 17 | --kbd-foreground: var(--vscode-keybindingLabel-foreground, #cccccc); |
| 18 | --kbd-border: var(--vscode-keybindingLabel-border, rgba(51, 51, 51, 0.6)); |
| 19 | --kbd-bottomBorder: var(--vscode-keybindingLabel-bottomBorder, rgba(68, 68, 68, 0.6)); |
| 20 | --kbd-shadow: var(--vscode-widget-shadow, rgba(0, 0, 0, 0.36)); |
| 21 | } |
| 22 | |
| 23 | .light-theme kbd { |
| 24 | --kbd-background: var(--vscode-keybindingLabel-background, rgba(221, 221, 221, 0.4)); |
| 25 | --kbd-foreground: var(--vscode-keybindingLabel-foreground, #555555); |
| 26 | --kbd-border: var(--vscode-keybindingLabel-border, rgba(204, 204, 204, 0.4)); |
| 27 | --kbd-bottomBorder: var(--vscode-keybindingLabel-bottomBorder, rgba(187, 187, 187, 0.4)); |
| 28 | --kbd-shadow: var(--vscode-widget-shadow, rgba(0, 0, 0, 0.16)); |
| 29 | } |
| 30 | |
| 31 | kbd { |
| 32 | background-color: var(--kbd-background); |
| 33 | color: var(--kbd-foreground); |
| 34 | border-style: solid; |
| 35 | border-width: 1px; |
| 36 | border-radius: 3px; |
| 37 | border-color: var(--kbd-border); |
| 38 | border-bottom-color: var(--kbd-bottomBorder); |
| 39 | box-shadow: inset 0 -1px 0 var(--kbd-shadow); |
| 40 | vertical-align: middle; |
| 41 | padding: 2px 3px; |
| 42 | line-height: 10px; |
| 43 | font-family: -apple-system, BlinkMacSystemFont, sans-serif; |
| 44 | font-size: 12px; |
| 45 | } |
| 46 | |