mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-19 22:10:24 +00:00
* Remove default kbd element shadow, simplify selector while here * Add new -shadow-inset variable so our shadows match on .form-control's, .form-select's, and .progress's * Reuse box-shadow variables for .dropdown's, .popover's, .toast's, .modal's, and .img-thumbnail's
47 lines
996 B
SCSS
47 lines
996 B
SCSS
// Inline code
|
|
code {
|
|
@include font-size($code-font-size);
|
|
color: $code-color;
|
|
word-break: break-word;
|
|
|
|
// Streamline the style when inside anchors to avoid broken underline and more
|
|
a > & {
|
|
color: inherit;
|
|
}
|
|
}
|
|
|
|
// User input typically entered via keyboard
|
|
kbd {
|
|
padding: $kbd-padding-y $kbd-padding-x;
|
|
@include font-size($kbd-font-size);
|
|
color: $kbd-color;
|
|
background-color: $kbd-bg;
|
|
@include border-radius($border-radius-sm);
|
|
|
|
// stylelint-disable-next-line no-duplicate-selectors
|
|
& {
|
|
padding: 0;
|
|
@include font-size(100%);
|
|
font-weight: $nested-kbd-font-weight;
|
|
}
|
|
}
|
|
|
|
// Blocks of code
|
|
pre {
|
|
display: block;
|
|
@include font-size($code-font-size);
|
|
color: $pre-color;
|
|
|
|
// Account for some code outputs that place code tags in pre tags
|
|
code {
|
|
@include font-size(inherit);
|
|
color: inherit;
|
|
word-break: normal;
|
|
}
|
|
}
|
|
|
|
// Enable scrollable blocks of code
|
|
.pre-scrollable {
|
|
max-height: $pre-scrollable-max-height;
|
|
overflow-y: scroll;
|
|
}
|