//
// Code (inline and block)
// --------------------------------------------------

// Inline and block code styles
code,
kbd,
pre,
samp {
	font-family: @font-family-monospace;
	background: @code-bg !important;
	color: @code-color !important;
}

// User input typically entered via keyboard
kbd {
	padding: 2px 4px;
	font-size: 90%;
	color: @kbd-color;
	background-color: @kbd-bg;
	border-radius: @border-radius-small;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);

	kbd {
		padding: 0;
		font-size: 100%;
		font-weight: bold;
		box-shadow: none;
	}
}

// Inline code
code {
	display: inline-block;
	margin-bottom: 2px;
	padding: 5px;
	line-height: 1.3;
	font-size: 90%;
	border-radius: 4px;
}

// Blocks of code
pre {
	font-size: (@font-size-base - 1); // 14px to 13px
	word-break: break-all;
	word-wrap: break-word;
	display: block !important;
	border-radius: @border-radius-base;
	max-height: @pre-scrollable-max-height;

	// Account for some code outputs that place code tags in pre tags
	code {
		display: block !important;
		font-size: inherit;
		white-space: pre-wrap;
		background-color: transparent;
		border-radius: 0;
		box-shadow: unset;
		padding: 10px;
		min-width: 100%;

		&.hljs {
			overflow-x: unset;
		}
	}
}
