
code,
kbd,
samp,
var {
	font-family: $font-monospace;
	@include ritmo-font-size($base-font-size, 3); // Keep it lower than $base-line-multi!!
	display:inline;
	vertical-align: baseline;
	box-decoration-break: clone;
	white-space: nowrap; // Avoid line breaking!
	@if $code-background != false {
		background-color: $code-background;
		color: contrast-color($code-background);
		padding: ritmo(0.5) ritmo(1);
	}
	@if $code-border-radius != false {
		border-radius: $code-border-radius;
	}
}

.code-block {

	display:block;
	margin-bottom: $spacer;

	@include ritmo-font-size($base-font-size); // Keep it lower than $base-line-multi!!

	
	@if $code-background != false or $code-block-background != false {
		padding: $gutter;
	}
	@if $code-block-background {
		background-color: $code-block-background;
		color: contrast-color($code-block-background);
	}

	// Delete margin on pre element
	pre {
		margin:0;
	}
}

// Some people wrap <pre> inside <code>,
// some people do the opposite.
// Ensure that white-space is inherited if <pre> is the wrapper:

pre code {
    white-space: inherit;
}