2021-05-07 18:10:21 +00:00
|
|
|
kbd {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 3px 5px;
|
|
|
|
font-size: $gl-font-size-monospace-sm;
|
|
|
|
line-height: 10px;
|
|
|
|
color: var(--gray-700, $gray-700);
|
|
|
|
vertical-align: middle;
|
|
|
|
background-color: var(--gray-10, $gray-10);
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: var(--gray-100, $gray-100) var(--gray-100, $gray-100) var(--gray-200, $gray-200);
|
|
|
|
border-image: none;
|
|
|
|
border-radius: 3px;
|
|
|
|
box-shadow: 0 -1px 0 var(--gray-200, $gray-200) inset;
|
2021-11-09 18:13:13 +00:00
|
|
|
|
|
|
|
&.flat {
|
|
|
|
color: $code-color;
|
|
|
|
background-color: $gray-100;
|
|
|
|
border-color: var(--gray-10, $gray-10) var(--gray-10, $gray-10) var(--gray-50, $gray-50);
|
|
|
|
box-shadow: none;
|
|
|
|
border-radius: $border-radius-default;
|
|
|
|
font-family: $monospace-font;
|
|
|
|
font-size: $gl-font-size-small;
|
|
|
|
line-height: 1;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
// Safari
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
word-break: keep-all;
|
|
|
|
}
|
2021-05-07 18:10:21 +00:00
|
|
|
}
|