Commit 63b4539a authored by David Sveningsson's avatar David Sveningsson
Browse files

docs: inline bootstrap code styling

parent 9475407a
Loading
Loading
Loading
Loading

docs/app/_code.scss

0 → 100644
+56 −0
Original line number Diff line number Diff line
@use "sass:math";
@use "bootstrap/variables" as bootstrap;

code,
kbd,
pre,
samp {
	font-family: bootstrap.$font-family-monospace;
}

code {
	padding: 2px 4px;
	font-size: 90%;
	color: bootstrap.$code-color;
	background-color: bootstrap.$code-bg;
	border-radius: bootstrap.$border-radius-base;
}

kbd {
	padding: 2px 4px;
	font-size: 90%;
	color: bootstrap.$kbd-color;
	background-color: bootstrap.$kbd-bg;
	border-radius: bootstrap.$border-radius-small;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);

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

pre {
	display: block;
	padding: math.div((bootstrap.$line-height-computed - 1), 2);
	margin: 0 0 math.div(bootstrap.$line-height-computed, 2);
	font-size: (bootstrap.$font-size-base - 1); // 14px to 13px
	line-height: bootstrap.$line-height-base;
	color: bootstrap.$pre-color;
	word-break: break-all;
	word-wrap: break-word;
	background-color: bootstrap.$pre-bg;
	border: 1px solid bootstrap.$pre-border-color;
	border-radius: bootstrap.$border-radius-base;

	code {
		padding: 0;
		font-size: inherit;
		color: inherit;
		white-space: pre-wrap;
		background-color: transparent;
		border-radius: 0;
	}
}
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ $fa-font-path: "fonts";
@import "bootstrap/mixins/text-overflow";
@import "bootstrap/normalize";
@import "bootstrap/type";
@import "bootstrap/code";

// Highlight.js
@import "github";
@@ -29,6 +28,7 @@ $fa-font-path: "fonts";
@import "layout";
@import "anchorlink";
@import "button";
@import "code";
@import "config-tabs";
@import "container";
@import "jumbotron";