吴雨瞳添加了注释

master
wyt 4 months ago
parent 8ab6dbdb8c
commit 4144c8f9e7

@ -1,258 +1,289 @@
/* PrismJS 1.25.0
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+bash+c+cpp+docker+git+go+java+javadoc+javadoclike+json+json5+jsonp+lua+markdown+markup-templating+nginx+perl+php+php-extras+plsql+powershell+properties+python+r+rust+sass+scss+shell-session+sql+visual-basic+yaml&plugins=line-numbers+highlight-keywords+toolbar+copy-to-clipboard+match-braces */
/* PrismJS 1.25.0
: https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+bash+c+cpp+docker+git+go+java+javadoc+javadoclike+json+json5+jsonp+lua+markdown+markup-templating+nginx+perl+php+php-extras+plsql+powershell+properties+python+r+rust+sass+scss+shell-session+sql+visual-basic+yaml&plugins=line-numbers+highlight-keywords+toolbar+copy-to-clipboard+match-braces */
/**
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/chriskempson/tomorrow-theme
* prism.js tomorrow night eighties
* JavaScript, CoffeeScript, CSS HTML
* https://github.com/chriskempson/tomorrow-theme
* @author Rose Pritchard
*/
/* 基础代码样式 - 所有带语言类的代码块和内联代码 */
code[class*='language-'],
pre[class*='language-'] {
color: #ccc;
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/* Code blocks */
color: #ccc; /* 文本颜色 */
background: none; /* 背景色 */
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; /* 等宽字体 */
font-size: 1em; /* 字体大小 */
text-align: left; /* 文本左对齐 */
white-space: pre; /* 保留空白和换行 */
word-spacing: normal; /* 单词间距 间距正常 */
word-break: normal; /* 单词换行规则 */
word-wrap: normal; /* 不自动换行 */
line-height: 1.5; /* 行高 */
-moz-tab-size: 4; /* Firefox 制表符宽度 */
-o-tab-size: 4; /* Opera 制表 制表符宽度 */
tab-size: 4; /* 制表符宽度 */
-webkit-hyphens: none; /* Safari 禁止连字符 */
-moz-hyphens: none; /* Firefox 禁止连字符 */
-ms-hyphens: none; /* IE 禁止止连字符 */
hyphens: none; /* 禁止连字符 */
}
/* 代码块样式 */
pre[class*='language-'] {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
padding: 1em; /* 内边距 */
margin: 0.5em 0; /* 外边距 */
overflow: auto; /* 超出界时显示滚动条 */
}
/* 非pre标签内的代码和代码块的背景 */
:not(pre) > code[class*='language-'],
pre[class*='language-'] {
background: #2d2d2d;
background: #2d2d2d; /* 深色背景 */
}
/* Inline code */
/* 内联代码样式 */
:not(pre) > code[class*='language-'] {
padding: 0.1em;
border-radius: 0.3em;
white-space: normal;
padding: 0.1em; /* 内边距 */
border-radius: 0.3em; /* 圆角 */
white-space: normal; /* 正常换行 */
}
/* 注释类token样式 */
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #999;
color: #999; /* 灰色注释 */
}
/* 标点符号token样式 */
.token.punctuation {
color: #ccc;
color: #ccc; /* 浅灰色标点 */
}
/* 标签、属性名、命名空间、删除线等token样式 */
.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color: #e2777a;
color: #e2777a; /* 粉红色 */
}
/* 函数名token样式 */
.token.function-name {
color: #6196cc;
color: #6196cc; /* 浅蓝色 */
}
/* 布尔值、数字、函数token样式 */
.token.boolean,
.token.number,
.token.function {
color: #f08d49;
color: #f08d49; /* 橙色 */
}
/* 属性、类名、常量、符号号token样式 */
.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: #f8c555;
color: #f8c555; /* 浅黄色 */
}
/* 选择器、重要标识、at规则、关键字、内置对象token样式 */
.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
color: #cc99cd;
color: #cc99cd; /* 浅紫色 */
}
/* 字符串、字符、属性值、正则、变量token样式 */
.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
color: #7ec699;
color: #7ec699; /* 浅绿色 */
}
/* 运算符、实体、URLtoken样式 */
.token.operator,
.token.entity,
.token.url {
color: #67cdcc;
color: #67cdcc; /* 青色 */
}
/* 重要文本和粗体样式 */
.token.important,
.token.bold {
font-weight: bold;
font-weight: bold; /* 粗体 */
}
/* 斜体样式 */
.token.italic {
font-style: italic;
font-style: italic; /* 斜体 */
}
/* 实体提示 */
.token.entity {
cursor: help;
cursor: help; /* 鼠标悬停显示帮助指针 */
}
/* 插入内容样式 */
.token.inserted {
color: green;
color: green; /* 绿色 */
}
/* 行号插件样式 - 带行号的代码块 */
pre[class*='language-'].line-numbers {
position: relative;
padding-left: 3.8em;
counter-reset: linenumber;
position: relative; /* 相对定位 */
padding-left: 3.8em; /* 左侧预留行号空间 */
counter-reset: linenumber; /* 重置行号计数器 */
}
pre[class*='language-'].line-numbers > code {
position: relative;
white-space: inherit;
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; /* works for line-numbers below 1000 lines */
letter-spacing: -1px;
border-right: 1px solid #999;
position: absolute; /* 绝对定位 */
pointer-events: none; /* 不响应鼠标事件 */
top: 0; /* 顶部对齐 */
font-size: 100%; /* 字体大小继承 */
left: -3.8em; /* 左侧定位 */
width: 3em; /* 宽度 (适用于少于1000行的情况) */
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 {
display: block;
counter-increment: linenumber;
display: block; /* 块级显示 */
counter-increment: linenumber; /* 递增行号计数器 */
}
/* 行号内容 */
.line-numbers-rows > span:before {
content: counter(linenumber);
color: #999;
display: block;
padding-right: 0.8em;
text-align: right;
content: counter(linenumber); /* 显示行号 */
color: #999; /* 行号颜色 */
display: block; /* 块级显示 */
padding-right: 0.8em; /* 右侧内边距 */
text-align: right; /* 右对齐 */
}
/* 工具栏插件样式 - 代码工具栏容器 */
div.code-toolbar {
position: relative;
position: relative; /* 相对定位 */
}
/* 工具栏 */
div.code-toolbar > .toolbar {
position: absolute;
top: 0.3em;
right: 0.2em;
transition: opacity 0.3s ease-in-out;
opacity: 0;
position: absolute; /* 绝对定位 */
top: 0.3em; /* 顶部位置 */
right: 0.2em; /* 右侧位置 */
transition: opacity 0.3s ease-in-out; /* 透明度过渡动画 */
opacity: 0; /* 默认隐藏 */
}
/* 鼠标悬停时显示工具栏 */
div.code-toolbar:hover > .toolbar {
opacity: 1;
opacity: 1; /* 显示 */
}
/* Separate line b/c rules are thrown out if selector is invalid.
IE11 and old Edge versions don't support :focus-within. */
/* 聚焦时显示工具栏 (兼容不支持:focus-within的浏览器) */
div.code-toolbar:focus-within > .toolbar {
opacity: 1;
opacity: 1; /* 显示 */
}
/* 工具栏项目 */
div.code-toolbar > .toolbar > .toolbar-item {
display: inline-block;
display: inline-block; /* inline-block 显示 */
}
/* 工具栏链接 */
div.code-toolbar > .toolbar > .toolbar-item > a {
cursor: pointer;
cursor: pointer; /* 指针样式 */
}
/* 工具栏按钮 */
div.code-toolbar > .toolbar > .toolbar-item > button {
background: none;
border: 0;
color: inherit;
font: inherit;
line-height: normal;
overflow: visible;
padding: 0;
-webkit-user-select: none; /* for 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 > .toolbar-item > a,
div.code-toolbar > .toolbar > .toolbar-item > button,
div.code-toolbar > .toolbar > .toolbar-item > span {
color: #bbb;
font-size: 0.8em;
padding: 0 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: 0.5em;
color: #bbb; /* 文本颜色 */
font-size: 0.8em; /* 字体大小 */
padding: 0 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: 0.5em; /* 圆角 */
}
/* 工具栏元素 hover/focus 样式 */
div.code-toolbar > .toolbar > .toolbar-item > a:hover,
div.code-toolbar > .toolbar > .toolbar-item > a:focus,
div.code-toolbar > .toolbar > .toolbar-item > button:hover,
div.code-toolbar > .toolbar > .toolbar-item > button:focus,
div.code-toolbar > .toolbar > .toolbar-item > span:hover,
div.code-toolbar > .toolbar > .toolbar-item > span:focus {
color: inherit;
text-decoration: none;
color: inherit; /* 继承颜色 */
text-decoration: none; /* 无下划线 */
}
/* 匹配括号插件样式 - 括号 hover/选中状态 */
.token.punctuation.brace-hover,
.token.punctuation.brace-selected {
outline: solid 1px;
outline: solid 1px; /* 边框高亮 */
}
/* 彩虹括号插件样式 - 不同层级括号颜色 */
.rainbow-braces .token.punctuation.brace-level-1,
.rainbow-braces .token.punctuation.brace-level-5,
.rainbow-braces .token.punctuation.brace-level-9 {
color: #e50;
color: #e50; /* 橙色 */
opacity: 1;
}
.rainbow-braces .token.punctuation.brace-level-2,
.rainbow-braces .token.punctuation.brace-level-6,
.rainbow-braces .token.punctuation.brace-level-10 {
color: #0b3;
color: #0b3; /* 绿色 */
opacity: 1;
}
.rainbow-braces .token.punctuation.brace-level-3,
.rainbow-braces .token.punctuation.brace-level-7,
.rainbow-braces .token.punctuation.brace-level-11 {
color: #26f;
color: #26f; /* 蓝色 */
opacity: 1;
}
.rainbow-braces .token.punctuation.brace-level-4,
.rainbow-braces .token.punctuation.brace-level-8,
.rainbow-braces .token.punctuation.brace-level-12 {
color: #e0e;
color: #e0e; /* 紫色 */
opacity: 1;
}
}
Loading…
Cancel
Save