debian-mirror-gitlab/app/assets/stylesheets/framework/kbd.scss
2021-12-11 22:18:48 +05:30

31 lines
914 B
SCSS

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;
&.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;
}
}