mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
089d434895
Conflicts: _config.yml dist/css/bootstrap-theme.css.map dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css docs/_includes/components/glyphicons.html docs/_includes/css/forms.html docs/_includes/css/tables.html docs/_includes/getting-started/browser-device-support.html docs/_includes/header.html docs/_includes/js/affix.html docs/_includes/js/alerts.html docs/_includes/js/buttons.html docs/_includes/js/dropdowns.html docs/_includes/js/overview.html docs/_includes/js/popovers.html docs/_includes/js/tooltips.html docs/_includes/nav/javascript.html docs/assets/css/docs.min.css docs/assets/css/src/docs.css docs/assets/js/customize.min.js docs/assets/js/docs.min.js docs/assets/js/raw-files.min.js docs/browser-bugs.html docs/dist/css/bootstrap-theme.css.map docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css docs/examples/blog/index.html docs/examples/carousel/index.html docs/examples/cover/index.html docs/examples/dashboard/index.html docs/examples/grid/index.html docs/examples/jumbotron-narrow/index.html docs/examples/jumbotron/index.html docs/examples/justified-nav/index.html docs/examples/navbar-fixed-top/index.html docs/examples/navbar-static-top/index.html docs/examples/navbar/index.html docs/examples/non-responsive/index.html docs/examples/offcanvas/index.html docs/examples/signin/index.html docs/examples/starter-template/index.html docs/examples/sticky-footer-navbar/index.html docs/examples/sticky-footer/index.html docs/examples/theme/index.html docs/examples/tooltip-viewport/index.html less/code.less less/panels.less less/variables.less
67 lines
1.2 KiB
Plaintext
67 lines
1.2 KiB
Plaintext
//
|
|
// Code (inline and block)
|
|
// --------------------------------------------------
|
|
|
|
|
|
// Inline and block code styles
|
|
code,
|
|
kbd,
|
|
pre,
|
|
samp {
|
|
font-family: @font-family-monospace;
|
|
}
|
|
|
|
// Inline code
|
|
code {
|
|
padding: .2rem .4rem;
|
|
font-size: 90%;
|
|
color: @code-color;
|
|
background-color: @code-bg;
|
|
.border-radius(@border-radius-base);
|
|
}
|
|
|
|
// User input typically entered via keyboard
|
|
kbd {
|
|
padding: .2rem .4rem;
|
|
font-size: 90%;
|
|
color: @kbd-color;
|
|
background-color: @kbd-bg;
|
|
.border-radius(@border-radius-small);
|
|
.box-shadow(inset 0 -.1rem 0 rgba(0,0,0,.25));
|
|
|
|
kbd {
|
|
padding: 0;
|
|
font-size: 100%;
|
|
font-weight: bold;
|
|
.box-shadow(none);
|
|
}
|
|
}
|
|
|
|
// Blocks of code
|
|
pre {
|
|
display: block;
|
|
padding: 1.5rem;
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
font-size: 90%;
|
|
line-height: @line-height-base;
|
|
color: @pre-color;
|
|
background-color: @pre-bg;
|
|
.border-radius(@border-radius-base);
|
|
|
|
// Account for some code outputs that place code tags in pre tags
|
|
code {
|
|
padding: 0;
|
|
font-size: inherit;
|
|
color: inherit;
|
|
background-color: transparent;
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
|
|
// Enable scrollable blocks of code
|
|
.pre-scrollable {
|
|
max-height: @pre-scrollable-max-height;
|
|
overflow-y: scroll;
|
|
}
|