/* PrismJS 1.19.0
https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+c+http+java+markup-templating+nginx+php+sql&plugins=line-numbers+toolbar+copy-to-clipboard+download-button */
/**
 * okaidia theme for JavaScript, CSS and HTML
 * Loosely based on Monokai textmate theme by http://www.monokai.nl/
 * @author ocodia
 */

/* 通用样式 */
code[class*="language-"],
pre[class*="language-"] {
	color: #f5f5f5; /* 主文本颜色 */
	background: none; /* 背景 */
	text-shadow: 0 1px rgba(0, 0, 0, 0.3); /* 文本阴影 */
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; /* 字体 */
	font-size: 0.95em; /* 字体大小 */
	text-align: left; /* 文本对齐 */
	white-space: pre; /* 空白处理 */
	word-spacing: normal; /* 单词间距 */
	word-break: normal; /* 单词换行 */
	word-wrap: normal; /* 单词包裹 */
	line-height: 1.5; /* 行高 */

	-moz-tab-size: 4; /* Firefox tab 大小 */
	-o-tab-size: 4; /* Opera tab 大小 */
	tab-size: 4; /* tab 大小 */

	-webkit-hyphens: none; /* WebKit断行 */
	-moz-hyphens: none; /* Firefox断行 */
	-ms-hyphens: none; /* IE断行 */
	hyphens: none; /* 断行 */
}

/* 代码块样式 */
pre[class*="language-"] {
	padding: 1em; /* 内边距 */
	margin: .5em 0; /* 外边距 */
	overflow: auto; /* 滚动条 */
	border-radius: 0.3em; /* 边框半径 */
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #272822; /* 背景颜色 */
}

/* 行内代码样式 */
:not(pre) > code[class*="language-"] {
	padding: .1em; /* 内边距 */
	border-radius: .3em; /* 边框半径 */
	white-space: normal; /* 空白处理 */
}

/* 标记类样式 */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: slategray; /* 颜色 */
}

/* 标点符号样式 */
.token.punctuation {
	color: #f8f8f2; /* 颜色 */
}

/* 命名空间样式 */
.token.namespace {
	opacity: .7; /* 不透明度 */
}

/* 属性、标签、常量、符号、已删除样式 */
.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
	color: #f92672; /* 颜色 */
}

/* 布尔值、数字样式 */
.token.boolean,
.token.number {
	color: #ae81ff; /* 颜色 */
}

/* 选择器、属性名称、字符串、字符、内置、插入样式 */
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: #a6e22e; /* 颜色 */
}

/* 操作符、实体、URL、CSS字符串、样式字符串、变量样式 */
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #f8f8f2; /* 颜色 */
}

/* @规则、属性值、函数、类名样式 */
.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
	color: #e6db74; /* 颜色 */
}

/* 关键字样式 */
.token.keyword {
	color: #66d9ef; /* 颜色 */
}

/* 正则表达式、重要样式 */
.token.regex,
.token.important {
	color: #fd971f; /* 颜色 */
}

/* 重要、粗体样式 */
.token.important,
.token.bold {
	font-weight: bold; /* 字体加粗 */
}

/* 斜体样式 */
.token.italic {
	font-style: italic; /* 斜体 */
}

/* 实体样式 */
.token.entity {
	cursor: help; /* 光标样式 */
}

/* 带行号的代码块样式 */
pre[class*="language-"].line-numbers {
	position: relative; /* 相对定位 */
	padding-left: 3.8em; /* 左内边距 */
	counter-reset: linenumber; /* 计数器重置 */
}

pre[class*="language-"].line-numbers > code {
	position: relative; /* 相对定位 */
	white-space: inherit; /* 空白处理 */
}

/* 行号样式 */
.line-numbers .line-numbers-rows {
	position: absolute; /* 绝对定位 */
	pointer-events: none; /* 事件穿透 */
	top: 0; /* 顶部 */
	font-size: 100%; /* 字体大小 */
	left: -3.8em; /* 左偏移量 */
	width: 3em; /* 宽度 */
	letter-spacing: -1px; /* 字母间距 */
	border-right: 1px solid #999; /* 右边框 */

	-webkit-user-select: none; /* 禁止用户选择 */
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.line-numbers-rows > span {
	pointer-events: none; /* 事件穿透 */
	display: block; /* 块级显示 */
	counter-increment: linenumber; /* 计数器增加 */
}

.line-numbers-rows > span:before {
	content: counter(linenumber); /* 内容 */
	color: #999; /* 颜色 */
	display: block; /* 块级显示 */
	padding-right: 0.8em; /* 右内边距 */
	text-align: right; /* 右对齐 */
}

/* 代码工具栏样式 */
div.code-toolbar {
	position: relative; /* 相对定位 */
}

div.code-toolbar > .toolbar {
	position: absolute; /* 绝对定位 */
	top: .3em; /* 顶部偏移量 */
	right: .2em; /* 右偏移量 */
	transition: opacity 0.3s ease-in-out; /* 过渡效果 */
	opacity: 0; /* 初始透明度 */
}

div.code-toolbar:hover > .toolbar {
	opacity: 1; /* 悬停时透明度 */
}

div.code-toolbar:focus-within > .toolbar {
	opacity: 1; /* 获得焦点时透明度 */
}

div.code-toolbar > .toolbar .toolbar-item {
	display: inline-block; /* 内联块级显示 */
}

div.code-toolbar > .toolbar a {
	cursor: pointer; /* 光标样式 */
}

div.code-toolbar > .toolbar button {
	background: none; /* 背景 */
	border: 0; /* 边框 */
	color: inherit; /* 颜色 */
	font: inherit; /* 字体 */
	line-height: normal; /* 行高 */
	overflow: visible; /* 溢出处理 */
	padding: 0; /* 内边距 */

	-webkit-user-select: none; /* 禁止用户选择 */
	-moz-user-select: none;
	-ms-user-select: none;
}

div.code-toolbar > .toolbar a,
div.code-toolbar > .toolbar button,
div.code-toolbar > .toolbar span {
	color: #bbb; /* 颜色 */
	font-size: .8em; /* 字体大小 */
	padding: 0 .5em; /* 内边距 */
	background: #f5f2f0; /* 背景 */
	background: rgba(224, 224, 224, 0.2); /* 背景 */
	box-shadow: 0 2px 0 0 rgba(0,0,0,0.2); /* 阴影 */
	border-radius: .5em; /* 边框半径 */
}

div.code-toolbar > .toolbar a:hover,
div.code-toolbar > .toolbar a:focus,
div.code-toolbar > .toolbar button:hover,
div.code-toolbar > .toolbar button:focus,
div.code-toolbar > .toolbar span:hover,
div.code-toolbar > .toolbar span:focus {
	color: inherit; /* 继承颜色 */
	text-decoration: none; /* 无下划线 */
}


