Commit ae64aa1d authored by Michael Le's avatar Michael Le Committed by Michael Le

Use kbd styling for keyboard shortcut hints

parent b28e70e2
......@@ -12,4 +12,20 @@ kbd {
border-image: none;
border-radius: 3px;
box-shadow: 0 -1px 0 var(--gray-200, $gray-200) inset;
&.flat {
color: $code-color;
background-color: $gray-50;
border: none;
box-shadow: none;
border-radius: $border-radius-default;
font-family: $monospace-font;
font-size: $gl-font-size-small;
line-height: 12px;
white-space: pre-wrap;
// Safari
word-wrap: break-word;
overflow-wrap: break-word;
word-break: keep-all;
}
}
......@@ -10,7 +10,7 @@
%li
%button.js-shortcuts-modal-trigger{ type: "button" }
= _("Keyboard shortcuts")
%span.text-secondary.float-right{ "aria-hidden": "true" }= '?'.html_safe
%kbd.flat.float-right{ "aria-hidden": "true" }= '?'.html_safe
%li.divider
%li
= link_to _("Submit feedback"), "https://about.gitlab.com/submit-feedback"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment