1 Star 1 Fork 0

郭泳辰/typora-theme

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
milkbox-dark-orange.css 44.37 KB
一键复制 编辑 原始数据 按行查看 历史
郭泳辰 提交于 2024-09-09 17:29 +08:00 . !9修复code大小问题
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282
/* 本文件,文件名规则:只能使用小写加中划线,如果包含其余的字符则导致软件无法识别 */
/* 本样式是基于github-dark-default样式的基础之上进行修改 */
/* 作者(b站):六杯咖啡 */
/* 网站:www.milkbox.top */
/* 当前主题色:橙色 */
@font-face {
font-family: "ubuntu mono r";
src: url("./milkbox/UbuntuMono-R-12.ttf");
}
@font-face {
font-family: "ubuntu mono b";
src: url("./milkbox/UbuntuMono-B-1.ttf");
}
:root {
/* 主题色-主要颜色 */
--theme-color-primary: #ffa500;
/* 主题色-次要颜色 */
--theme-color-secondary: #2b1700;
/* 主题色-亮色 */
--theme-color-light: #dcc9a7;
/* 主题色-互补色 */
--theme-color-contrary: #1047A9;
/* 正文字体大小 */
--font-size-common: 18px;
/* 标题字体 */
--font-family-h: "楷体", "黑体";
/* 正文字体 */
--font-family-write: "宋体", "黑体";
/* 代码字体 */
--font-family-code: "ubuntu mono b", "宋体", "黑体";
/* 字体颜色 */
--text-color: #c8d1d9;
/* 背景颜色 */
--bg-color: #0d1117;
--side-bar-bg-color: #0d1117;
--control-text-color: #a9aaab;
--primary-color: #f9826c;
--primary-btn-border-color: #f9826c;
/* 文件列表被选中的文件的字体颜色,默认值inherit */
--active-file-text-color: var(--theme-color-primary);
/* 文件列表被选中的文件的边框颜色,默认值#f9826c */
--active-file-border-color: var(--theme-color-primary);
/* 文件列表被选中的文件的背景颜色,默认值#0d1117 */
--active-file-bg-color: var(--theme-color-secondary);
--primary-btn-text-color: #f9826c;
--window-border: 0 solid #0d1117;
/* 表格隔行换色的主要色,左侧大纲背景色,默认:#161b22 */
--item-hover-bg-color: #161b22;
--item-hover-text-color: #f9826c;
--meta-content-color: #f9826c;
/* 使用搜索时,被搜到的文字颜色 */
--search-select-text-color: #f9826c;
--control-text-color: var(--text-color);
--control-text-hover-color: var(--text-color);
--heading-char-color: #f9826c;
--active-toggle-btn-color: #192133;
--blur-text-color: rgba(200, 200, 200, 0.33);
--rawblock-edit-panel-bd: var(--item-hover-bg-color) !important;
/* 被鼠标选中的文字背景色 */
--select-text-bg-color: var(--theme-color-primary) !important;
/* 被鼠标选中的文字颜色 */
--select-text-font-color: #fff !important;
/* 二级标题底部的线颜色 */
--color-border-secondary: #21262d !important;
--mermaid-node-color: #b87f62 !important;
--mermaid-node-border: #bd7958;
--mermaid-contrast-color: #afe61d;
--mermaid-theme: dark;
--monospace: ui-monospace,
Menlo, Monaco,
"Cascadia Mono", "Segoe UI Mono",
"Roboto Mono",
"Oxygen Mono",
"Ubuntu Monospace",
"Source Code Pro",
"Fira Mono",
"Droid Sans Mono",
"Courier New", monospace;
}
.pane-group {
background-color: var(--bg-color);
}
.dropdown-menu {
background-color: var(--bg-color) !important;
border: 1px solid var(--item-hover-bg-color) !important;
color: #8b949e !important;
}
.dropdown-menu > li > a {
border-left: 1px solid var(--bg-color);
border-right: 1px solid var(--bg-color);
color: var(--text-color) !important;
}
.dropdown-menu > li > a:hover {
background-color: var(--item-hover-bg-color);
border-left: 1px solid var(--bg-color);
border-right: 1px solid var(--bg-color);
color: var(--text-color) !important;
}
body {
line-height: 1.5;
font-family: system-ui,
-apple-system, BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
Arial, sans-serif;
font-weight: 500;
}
#write {
background-color: var(--bg-color) !important;
font-family: system-ui,
-apple-system, BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
Arial, sans-serif;
font-weight: 500;
max-width: 860px;
margin: 0 auto;
padding: 30px;
}
#write > ul:first-child,
#write > ol:first-child {
font-weight: 500;
margin-top: 30px;
}
content {
background-color: var(--bg-color) !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--text-color);
font-family: system-ui,
-apple-system, BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
Arial, sans-serif;
font-weight: 400;
padding-top: 5px;
}
html {
/* font-size: 13px; */
font-size: var(--font-size-common);
font-family: system-ui,
-apple-system, BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
Arial, sans-serif;
font-weight: 500;
}
#write {
text-align: justify;
}
h1,
h2,
h3,
h4,
h5,
h6 {
position: relative;
margin-top: 1rem;
margin-bottom: 1rem;
font-family: var(--font-family-h);
font-weight: bold;
line-height: 1.5;
cursor: text;
}
h1:hover a.anchor,
h2:hover a.anchor,
h3:hover a.anchor,
h4:hover a.anchor,
h5:hover a.anchor,
h6:hover a.anchor {
text-decoration: none;
}
h1 tt,
h1 code {
font-size: inherit;
}
h2 tt,
h2 code {
font-size: inherit;
}
h3 tt,
h3 code {
font-size: inherit;
}
h4 tt,
h4 code {
font-size: inherit;
}
h5 tt,
h5 code {
font-size: inherit;
}
h6 tt,
h6 code {
font-size: inherit;
}
h1 {
padding-top: 40px;
text-align: center;
font-size: 2.6rem;
padding-bottom: .15rem;
border-bottom: 1px solid var(--theme-color-primary);
color: var(--theme-color-primary);
}
h2 {
font-size: 1.9rem;
padding-bottom: .15rem;
border-bottom: 1px solid var(--color-border-secondary);
}
h3 {
font-size: 1.7rem;
}
h4 {
font-size: 1.4rem;
}
h5 {
font-size: 1.2rem;
}
h6 {
font-size: 1rem;
color: rgb(139, 148, 158);
}
h1.md-focus:before,
h2.md-focus:before,
h3.md-focus:before,
h4.md-focus:before,
h5.md-focus:before,
h6.md-focus:before {
content: '';
border: 0;
}
p {
color: var(--text-color);
line-height: 1.20rem;
margin: 0 0 1.25rem;
}
kbd {
display: inline-block;
padding: 3px 5px;
font: 11px ui-monospace,
Menlo, Monaco,
"Cascadia Mono", "Segoe UI Mono",
"Roboto Mono",
"Oxygen Mono",
"Ubuntu Monospace",
"Source Code Pro",
"Fira Mono",
"Droid Sans Mono",
"Courier New", monospace;
line-height: 10px;
color: #b1bac4;
vertical-align: middle;
background-color: var(--bg-color);
border-bottom-color: #6e7681;
border: 1px solid #6e7681;
border-radius: 6px;
box-shadow: inset 0 -1px 0 #6e7681;
}
p {
font-size: 1.25rem;
line-height: 1.5;
}
table {
font-size: 1.25rem;
}
a,
.md-def-url {
/* 超链接颜色 */
color: var(--theme-color-light);
text-decoration: none;
}
a:hover {
color: var(--theme-color-primary);
text-decoration: underline;
}
/* Summary */
.md-toc {
margin-left: 0;
margin-right: 0;
}
.md-toc-content {
background-color: var(--item-hover-bg-color) !important;
border-radius: 6px;
padding-top: 10px;
padding-bottom: 10px;
}
#write div.md-toc-tooltip {
background-color: var(--item-hover-bg-color) !important;
border: 1px solid var(--item-hover-bg-color);
padding-left: 5px;
font-size: 1.4rem;
color: var(--text-color);
}
.md-toc:focus .md-toc-content {
border: 1px solid var(--item-hover-bg-color);
}
.md-delete-toc {
color: var(--text-color);
}
table {
margin-bottom: 20px;
line-height: 24px;
}
table th,
table td {
padding: 8px;
line-height: 1.25rem;
vertical-align: middle;
border-top: 1px solid #3D454D;
}
table th {
font-weight: 700;
padding: 6px 13px;
}
table caption + thead tr:first-child th,
table caption + thead tr:first-child td,
table colgroup + thead tr:first-child th,
table colgroup + thead tr:first-child td,
table thead:first-child tr:first-child th,
table thead:first-child tr:first-child td {
border-top: 0;
}
table tbody + tbody {
border-top: 2px solid #3D454D;
}
table tr th {
border: 1px solid #324560;
border-bottom: solid 2px #3D454D;
border-bottom: 0;
font-weight: 700;
margin: 0;
padding: 10px 16px;
}
table tr td {
background: #192534;
border: 1px solid #3D454D;
margin: 0;
padding: 10px 16px;
}
table tr th:first-child,
table tr td:first-child {
margin-top: 0;
}
table tr th:last-child,
table tr td:last-child {
margin-bottom: 0;
}
table {
padding: 0;
word-break: initial;
}
table tr {
border-top: 1px solid #3D454D;
margin: 0;
padding: 0;
}
thead {
background-color: var(--bg-color);
color: var(--theme-color-primary);
}
table tr th {
border: 1px solid #3D454D;
border-bottom: solid 2px #ccc;
border-bottom: 0;
font-weight: 700;
margin: 0;
padding: 10px 16px;
}
table tr td {
background: #192534;
border: 1px solid #3D454D;
margin: 0;
padding: 10px 16px;
line-height: 1.6rem;
}
table tr th:first-child,
table tr td:first-child {
margin-top: 0;
}
table tr th:last-child,
table tr td:last-child {
margin-bottom: 0;
}
table tr:nth-child(2n),
table tr:nth-child(1n) td {
background-color: var(--item-hover-bg-color);
}
table tr:nth-child(2n),
table tr:nth-child(2n) td {
background-color: var(--bg-color);
}
.md-fences,
tt {
color: var(--item-hover-bg-color);
font-size: 1.05rem;
font-weight: 500;
}
code {
padding: .18rem .4rem .22rem;
margin: 0;
background-color: #343941;
border-radius: 6px;
font-family: ui-monospace,
Menlo, Monaco,
"Cascadia Mono", "Segoe UI Mono",
"Roboto Mono",
"Oxygen Mono",
"Ubuntu Monospace",
"Source Code Pro",
"Fira Mono",
"Droid Sans Mono",
"Courier New", monospace;
font-weight: 500;
line-height: 1.5;
}
#write code {
/*font-size: 1.25rem;*/
}
.sidebar-content code {
font-size: 1rem;
}
.md-fences {
margin-bottom: 15px;
margin-top: 15px;
padding-bottom: 6px;
padding-top: 88px;
color: var(--text-color);
}
.file-tree-node {
padding-top: 2px;
}
#write pre.md-meta-block {
background-color: var(--item-hover-bg-color);
border: 0;
border-radius: 3px;
color: #fff;
font-size: 100%;
line-height: 1.45;
margin-top: 0 !important;
padding: 1rem;
}
.mathjax-block > .code-tooltip {
bottom: .375rem;
}
.md-mathjax-midline {
background: #fafafa;
}
.md-image > .md-meta {
border-radius: 6px;
color: inherit;
font-size: .9rem;
padding: 2px 0 0 4px;
}
.md-tag {
color: #70bfd9;
opacity: 1;
}
.CodeMirror-line {
padding-left: 15px;
}
.code-tooltip {
background: var(--item-hover-bg-color);
border: 1px solid var(--item-hover-bg-color);
box-shadow: 0 1px 1px 0 rgba(0, 28, 36, .3);
border-radius: 6px;
}
/* Yellow border when focusing Code block language input */
.code-tooltip .ty-input {
border: 0;
}
/* Languages suggestions Menu */
.auto-suggest-container {
background-color: var(--item-hover-bg-color);
border: 1px solid var(--item-hover-bg-color);
color: var(--text-color);
border-radius: 6px;
}
.dropdown-menu {
color: #70c0d8;
margin-right: 5px;
}
.md-fences {
padding: .3rem;
font-size: .9rem;
margin-left: .2rem;
margin-right: .2rem;
}
.md-fences {
margin: 0 0 20px;
/* font-size: 1.105rem; */
font-size: 1.25rem;
padding: 0;
padding-top: .4rem;
}
blockquote .md-end-block.md-heading {
color: inherit;
}
blockquote .md-end-block.md-heading:before {
content: '' !important;
}
blockquote {
margin: 0 0 1rem;
padding: 0 1rem;
border-left: .25rem solid #3b434b;
}
blockquote,
blockquote p {
line-height: 1.5;
color: #8b949e;
}
.MathJax_Display {
font-size: 1rem !important;
margin-top: .5rem;
margin-bottom: 0;
}
.md-math-block {
font-size: 1.4rem;
}
.md-rawblock-tooltip .md-rawblock-control {
background-color: var(--item-hover-bg-color);
}
/* Edit Math Blocks */
.md-rawblock-control:not(.md-rawblock-tooltip) {
font-size: 1.105rem;
background-color: var(--item-hover-bg-color);
}
.md-rawblock-control .CodeMirror.cm-s-inner {
border: 0px;
}
/* Inline Math Editing */
.md-inline-math script {
color: #f9826c;
}
.md-math-tex inline-math-svg {
font-size: 1.4rem;
}
.md-rawblock-panel .code-tooltip {
border: 0px;
}
.md-rawblock-input {
font-size: 1.105rem;
}
/* Mathjax edit panel*/
.md-rawblock-before {
border-top-left-radius: 6px;
}
.md-rawblock-after {
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
/* Inline Math */
.MathJax_SVG {
font-size: 1.4rem;
}
.MathJax_SVG:focus {
outline: none;
background-color: transparent;
}
.md-rawblock > .md-rawblock-container {
transition: 0.5s;
}
.md-rawblock > .md-rawblock-tooltip {
transition: 0.5s;
display: block;
visibility: hidden;
opacity: 0;
}
.md-rawblock:hover > .md-rawblock-tooltip {
transition: 0.5s;
visibility: visible;
opacity: 1;
animation: none;
}
p.mathjax-block,
.mathjax-block {
padding-bottom: 0;
}
.mathjax-block > .code-tooltip {
bottom: 5px;
box-shadow: none;
}
.md-image > .md-meta {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
.md-image > img {
margin-top: 2px;
padding-top: 10px;
padding-bottom: 10px;
}
.md-image > .md-meta:first-of-type:before {
padding-left: 4px;
}
#typora-source {
color: var(--text-color);
}
.typora-sourceview-on #toggle-sourceview-btn {
color: var(--text-color);
background-color: #484f58;
}
.md-image-pick-file-btn,
.md-image-input-src-btn {
background-color: var(--item-hover-bg-color);
}
.md-image-btn.selected,
.md-image-btn:hover,
.md-image-pick-file-btn:hover,
.md-image-input-src-btn:hover {
color: #f9826c !important;
background-color: var(--item-hover-bg-color) !important;
}
.searchpanel-search-option-btn {
background-color: var(--item-hover-bg-color) !important;
border: 1px solid #30363d;
}
.searchpanel-search-option-btn.active {
color: #ddd;
border: 1px solid #8b949e;
}
.searchpanel-search-option-btn:hover {
border: 1px solid #8b949e;
}
#md-searchpanel {
border-bottom: 0 solid #324560;
font-family: system-ui,
-apple-system, BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
Arial, sans-serif;
font-weight: 500;
}
#md-searchpanel input {
background-color: #21262d !important;
border: 1px solid #30363d;
}
#md-searchpanel .btn {
font-size: 11px;
}
#md-searchpanel .btn:hover {
color: #8b949e;
}
#md-notification:before {
top: 13px;
}
#md-notification {
background: var(--bg-color);
font-size: 13px;
border-bottom: 0;
}
#md-notification .ty-enter-mode-warning-header {
color: #f9826c;
}
#md-notification p,
#md-notification .btn,
#md-notification label {
font-size: 13px !important;
}
.megamenu-menu-panel .btn {
border: 1px solid #ccc;
}
.on-focus-mode blockquote {
border-left-color: rgba(85, 85, 85, 0.12);
}
header,
.context-menu,
.megamenu-content,
footer {
font-family: system-ui,
-apple-system, BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
Arial, sans-serif;
font-weight: 500;
}
.megamenu-opened header {
background-image: none;
}
/* 文件区域,文档树模式下,最左侧的三角符号样式 */
/* .fa-caret-right 表示未展开样式,.fa-caret-down表示展开后的样式 */
.file-node-content .fa-caret-right,
.file-node-content .fa-caret-down {
/* color: #f9826c; */
font-size: 1.25rem;
margin-left: -10px;
line-height: 1rem;
}
/* 不展开样式 */
.file-node-content .fa-caret-right {
color: var(--theme-color-primary);
}
/* 展开后样式 */
.file-node-content .fa-caret-down {
color: var(--theme-color-light);
margin-left: -14px !important;
}
/* 文件区域,鼠标覆盖样式 */
.file-node-content:hover {
background-color: var(--theme-color-contrary);
}
/* 文件树文字行高 */
.file-node-content {
line-height: 1.25rem;
}
/* 文件区域纯文字样式 */
.file-node-title {
/* color: var(--text-color); */
}
.active-tab-files {
background-color: var(--item-hover-bg-color) !important;
}
#typora-sidebar #ty-sidebar-footer {
background-color: var(--item-hover-bg-color) !important;
border-top: 0 solid #090b10;
}
.sidebar-tabs {
border-bottom: 0;
}
.megamenu-menu-header {
border-bottom: 1px solid #090b10;
}
.megamenu-menu-list li:not(.saved) a:not(.active):hover,
.megamenu-menu-list li a.active {
background: var(--item-hover-bg-color) !important;
}
.file-node-open-state {
background-color: transparent !important;
}
.mac-seamless-mode #typora-sidebar {
background-color: var(--item-hover-bg-color);
border-right: 0 solid #090c12;
font-family: system-ui,
-apple-system, BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
Arial, sans-serif;
font-weight: 500;
}
titlebar {
background-color: var(--bg-color);
}
/* Sidebar header on Win/Linux (Files/Plan) */
.info-panel-tab-title {
}
/* Plan should get the same sidebar background color on Win/Linux */
.typora-node.pin-outline:not(.megamenu-opened):not(.typora-sourceview-on) #typora-sidebar {
background-color: var(--item-hover-bg-color)
}
/* Bottom border on Win/Linux Sidebar */
.info-panel-tab-border {
background-color: #f9826c !important;
}
.sidebar-footer-item:hover {
background-color: inherit;
}
.sidebar-tab.active {
color: var(--text-color);
font-weight: 700;
}
/* .file-node-icon 控制文件图标样式 */
.file-node-icon,
.file-node-open-state {
color: #6E7681;
line-height: 1rem;
}
.fa-file-text-o:before {
color: var(--text-color) !important;
}
.md-lang {
color: #b4654d;
}
.html-for-mac .context-menu {
--item-hover-bg-color: var(--bg-color);
color: #efb752;
}
hr {
background-color: var(--theme-color-light);
border: 0 none;
box-sizing: content-box;
/* height: 0.25rem; */
height: 2px;
margin: 16px 0;
overflow: hidden;
padding: 0;
}
input {
color: #82bed6;
}
#searchpanel-word-option-btn,
#find-and-replace-icon-word,
#find-and-replace-icon-case,
.searchpanel-search-option-btn,
.icon,
.glyphicon .popover,
.popover-title {
color: #82bed6 !important;
fill: #82bed6 !important;
}
#md-notification .btn {
border: 0;
}
.show-word-count #footer-word-count {
background: #000;
}
#recent-file-panel-action-btn {
background-color: #82bed6;
}
.dropdown-menu .divider {
border-color: #303d50;
}
.ty-preferences .window-content {
background-color: #fafafa;
}
.ty-preferences .nav-group-item.active {
background: var(--bg-color);
color: var(--text-color);
}
/* Code block */
.cm-s-inner {
border: 1px solid #324560;
border-radius: 6px;
padding: 1.2rem 1rem;
}
.cm-s-inner .cm-link,
.cm-s-inner.cm-link {
color: #d2a8ff;
}
.cm-s-inner .cm-header {
color: #d2a8ff;
}
.cm-s-inner.CodeMirror,
.cm-s-inner .CodeMirror-gutters {
background-color: var(--item-hover-bg-color) !important;
border: 1px solid var(--item-hover-bg-color);
}
.cm-s-inner .CodeMirror-gutters {
border: 0;
color: #6d8a88;
}
#typora-source .CodeMirror-gutter-wrapper {
font-size: 1rem;
}
/* Code block in Source Mode. If activated, borders are nicer but displayed funny when stacked
#typora-source .cm-s-inner {
border-radius: 6px;
}
*/
.cm-s-inner .CodeMirror-cursor {
border-left: solid thin #f8f8f2 !important;
}
.cm-s-inner .CodeMirror-linenumber {
color: #6d8a88;
}
.cm-s-inner .CodeMirror-line::selection,
.cm-s-inner .CodeMirror-line::-moz-selection,
.cm-s-inner .CodeMirror-line > span::selection,
.cm-s-inner .CodeMirror-line > span::-moz-selection,
.cm-s-inner .CodeMirror-line > span > span::selection,
.cm-s-inner .CodeMirror-line > span > span::-moz-selection {
background: rgba(255, 255, 255, .1);
}
.cm-s-inner span.cm-comment {
color: #8b949e;
font-style: normal;
}
.cm-s-inner span.cm-string,
.cm-s-inner span.cm-string-2,
.cm-s-inner span.cm-quote {
color: #a5d6ff;
}
.cm-s-inner span.cm-number {
color: #79c0ff;
}
.cm-s-inner span.cm-variable {
color: var(--text-color);
}
.cm-s-inner span.cm-variable-2 {
color: var(--text-color);
}
.cm-s-inner span.cm-def {
color: var(--text-color);
}
.cm-s-inner span.cm-operator {
color: #ff7b72;
}
.cm-s-inner span.cm-keyword {
color: #ff7b72;
}
.cm-s-inner span.cm-atom {
color: #8b949e;
}
.cm-s-inner span.cm-meta {
color: #8b949e;
}
.cm-s-inner span.cm-tag {
color: #7ee787;
}
.cm-s-inner span.cm-attribute {
color: #79c0ff;
}
.cm-s-inner span.cm-defined {
color: #d2a8ff;
}
.cm-s-inner span.cm-qualifier {
color: #50fa7b;
}
.cm-s-inner span.cm-property {
color: #d2a8ff;
}
.cm-s-inner span.cm-builtin {
color: #79c0ff;
}
.cm-s-inner span.cm-variable-3 {
color: #ff7b72;
}
.cm-s-inner span.cm-block-start {
color: #ffa657;
}
.cm-s-inner span.cm-type {
color: #ffb86c;
}
.cm-positive {
color: #aff5b4;
background-color: #033a16;
}
.cm-negative {
color: #aff5b4;
background-color: #67060c;
}
.md-fences.md-focus .cm-s-inner .CodeMirror-activeline-background {
background: rgba(255, 255, 255, 0.1);
}
.cm-s-inner .CodeMirror-matchingbracket {
color: var(--text-color) !important;
text-decoration: underline;
}
.cm-s-inner .CodeMirror-selected,
.cm-s-inner .CodeMirror-selectedtext,
body::selection,
body::-moz-selection {
background: var(--select-text-bg-color) !important;
background-color: var(--select-text-bg-color) !important;
color: var(--select-text-font-color) !important;
text-shadow: none;
}
#write ol,
#write ul {
/* 序号或符号颜色 */
color: var(--theme-color-primary);
font-size: 1.25rem;
font-weight: 500;
padding-left: 2rem;
}
/* Code block inside lists */
#write li .cm-s-inner {
font-size: 1.05rem;
font-weight: 500;
margin-bottom: -0.65rem;
}
/* Code block inside list with better margins, but it resizes borders and consider all as first-child :(
#write li .cm-s-inner>:first-child {
margin-top: 1.2rem;
}
#write li .cm-s-inner>:last-child {
margin-bottom: 1.2rem;
}
*/
#write ol > li,
#write ul > li {
font-weight: 500;
margin-bottom: 0;
}
#write ul > li ul > li {
list-style-type: circle;
background-color: transparent;
font-weight: 500;
}
#write ul > li ul > li ul > li {
list-style-type: square;
font-weight: 500;
}
#write ol > li ol > li {
list-style-type: lower-roman;
}
#write ol > li ol > li ol > li {
list-style-type: lower-latin;
}
#write ol > li > *,
#write ul > li > * {
font-weight: 500;
}
#write ol > li > *:not(ol):not(ul),
#write ul > li > *:not(ol):not(ul) {
font-weight: 500;
padding-left: 0.25rem;
}
#write ul {
font-weight: 500;
list-style-type: disc;
}
ul:first-child,
ol:first-child {
font-weight: 500;
margin-top: 0;
}
ul:last-child,
ol:last-child {
font-weight: 500;
margin-top: 0;
}
sup.md-footnote {
/* background-color: rgba(56, 139, 253, 0.1); */
/* color: #58a6ff; */
background-color: var(--theme-color-secondary);
color: var(--theme-color-primary);
font-weight: 700;
font-size: 75%;
font-style: normal;
}
sup.md-footnote a {
font-style: normal;
}
sup.md-footnote:hover {
/* background-color: rgba(56, 139, 253, 0.15); */
color: var(--theme-color-light);
}
sup.md-footnote .md-meta {
color: #58a6ff;
}
.md-def-footnote .md-def-name:before,
.md-def-footnote .md-def-name:after {
content: '';
}
.md-def-footnote .md-def-name {
padding: 2px;
padding-left: 4px;
padding-right: 4px;
/* background-color: rgba(56, 139, 253, 0.1); */
/* color: #58a6ff; */
background-color: var(--theme-color-secondary);
color: var(--theme-color-primary);
border-radius: 4px;
cursor: pointer;
}
.footnotes {
opacity: 1;
}
.md-def-footnote .md-def-content {
font-size: 15px;
}
a.reversefootnote {
color: #f9826c;
font-weight: bold;
font-size: 13px;
}
mark {
background-color: #2ea44f;
border-radius: 6px;
color: white;
line-height: 2;
padding: 5px 10px;
white-space: nowrap;
}
.cm-s-typora-default {
font-family: system-ui,
-apple-system, BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
Arial, sans-serif;
font-weight: 500;
font-size: 13px;
color: var(--text-color);
}
.cm-s-typora-default .cm-header,
.cm-s-typora-default .cm-property {
color: var(--text-color);
}
.CodeMirror.cm-s-typora-default div.CodeMirror-cursor {
border-left: 3px solid #b8bfc6;
}
.cm-s-typora-default .cm-comment {
color: #8b949e;
}
.cm-s-typora-default .cm-string {
color: #a5d6ff;
}
.cm-s-typora-default .cm-atom,
.cm-s-typora-default .cm-number {
color: #8b949e;
font-style: italic;
}
.cm-s-typora-default .cm-link,
.cm-s-typora-default .cm-tag {
color: rgb(165, 214, 255);
}
.cm-s-typora-default .cm-string {
color: #f0b752;
}
.cm-s-typora-default pre.cm-s-inner {
background-color: var(--item-hover-bg-color) !important;
border: 1px solid var(--item-hover-bg-color);
color: var(--text-color);
font-size: 0.9rem;
}
.cm-s-typora-default .cm-atom {
color: #8b949e;
}
.CodeMirror-activeline .cm-atom {
color: var(--text-color) !important;
}
.cm-s-typora-default .CodeMirror-activeline-background {
background: #484f58;
}
.cm-s-typora-default .cm-comment,
.cm-s-typora-default .cm-code {
color: #8aa1e1;
font-size: 0.9rem !important;
}
/* Mega menu */
.megamenu-content,
.megamenu-opened header {
background: var(--bg-color1);
}
.megamenu-content {
display: block;
visibility: hidden;
opacity: 0;
transition: 0.3s;
}
.megamenu-menu-list {
background-color: var(--item-hover-bg-color) !important;
}
.megamenu-opened .megamenu-content {
visibility: visible;
opacity: 1;
animation: none;
background-color: inherit;
}
/* Mega menu sidebar */
.megamenu-menu {
background-color: var(--item-hover-bg-color);
}
/* Return button in mega menu */
#megamenu-menu-sidebar .menu-style-btn {
border: 0px;
}
/* Remove divider in mega menu */
.megamenu-menu-header {
}
/* Return button color in mega menu */
.megamenu-menu-header #megamenu-menu-header-title,
.megamenu-menu-header #megamenu-menu-header-title:before {
color: var(--text-color);
}
.megamenu-menu-list li a:hover,
.megamenu-menu-list li a.active {
background-color: var(--bg-color);
}
/* Return button hover in mega menu */
.megamenu-menu-header:hover {
}
/* Return button hover in mega menu */
.megamenu-menu-header:hover #megamenu-menu-header-title {
}
/* Long button in mega menu */
.long-btn {
border: 0px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
margin-bottom: 10px;
margin-left: 10px;
background-color: var(--item-hover-bg-color);
}
.long-btn:hover {
background-color: var(--item-hover-bg-color);
border-color: 1px solid #8b949e;
color: var(--text-color) !important;
}
#recent-file-panel-action-btn {
background-color: var(--item-hover-bg-color);
border: 0px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
margin-bottom: 10px;
margin-left: 10px;
}
/* Mermaid Diagrams */
.titleText,
.pieTitleText {
fill: var(--mermaid-contrast-color);
font-size: 2rem;
font-family: system-ui,
-apple-system, BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
Arial, sans-serif;
font-weight: 300;
}
/* Node text */
.grid .tick text,
.taskText,
text.actor,
.node .label,
.taskTextOutsideRight,
.taskTextOutsideLeft,
.labelText,
.loopText,
g.classGroup text {
color: var(--text-color);
fill: var(--text-color);
stroke: black;
stroke-width: 0.05px;
.title {
font-weight: 600;
}
}
/* Node color */
.actor,
.task,
.node rect,
.node circle,
.node ellipse,
.node polygon,
g.classGroup rect,
.labelBox {
fill: var(--mermaid-node-color);
stroke: var(--mermaid-node-border);
color: var(--text-color);
}
/* Node Labels (Notes & On path) */
.edgeLabel foreignObject {
color: black;
background-color: var(--primary-color);
stroke: var(--primary-btn-border-color);
stroke-width: 1px;
height: 20px;
text-align: center;
}
.note {
fill: var(--primary-color);
stroke: var(--primary-btn-border-color);
}
.noteText {
color: black;
}
.noteText > tspan {
fill: #333 !important;
color: #333 !important;
}
.taskText {
fill: white !important;
}
/* Class diagram specific */
g.classGroup line {
stroke: var(--text-color);
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: var(--primary-color);
opacity: 1;
}
svg[id^="mermaidChart"] .composition,
svg[id^="mermaidChart"] .aggregation,
svg[id^="mermaidChart"] .dependency,
svg[id^="mermaidChart"] .relation {
stroke: var(--text-color);
}
.classLabel .label {
fill: black;
}
#extensionStart,
#extensionEnd,
#compositionStart,
#compositionEnd,
#aggregationStart,
#aggregationEnd,
#dependencyStart,
#dependencyEnd {
fill: var(--text-color);
stroke: var(--text-color);
}
/* Gantt Specific */
svg[id^="mermaidChart"] .today {
stroke: var(--mermaid-contrast-color);
}
/* Pie Chart Specific */
svg[id^="mermaidChart"] g path {
stroke: var(--text-color);
}
text.slice {
fill: var(--text-color);
}
.legend text {
fill: var(--text-color);
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: var(--text-color) !important;
stroke: var(--text-color) !important;
}
/* End mermaid */
/* Tip when hover on a button */
#ty-tooltip {
background-color: black;
color: white;
}
/* Header in setting */
.window-header {
}
/* Sidebar in setting */
.sidebar {
background-color: var(--item-hover-bg-color) !important;
}
.list-group-content {
margin-left: 10px !important;
}
/* Sidebar button in setting menu */
.nav-group-item {
color: var(--text-color) !important;
border-top-left-radius: 6px !important;
border-bottom-left-radius: 6px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
}
/* Sidebar button hover in setting menu */
.nav-group-item:hover,
.nav-group-item:active,
.nav-group-item.active {
background-color: #0d1117 !important;
color: var(--text-color) !important;
}
/* The indent example in setting.editor */
div.pane > div:nth-child(4) > div:nth-child(2) .label-input-group td:last-child div {
border: 1px solid #30363d !important;
border-radius: 6px;
background-color: var(--color-border-secondary);
margin: 10px !important;
}
/* Button in setting menu */
.ty-preferences button.btn-default {
border: 1px solid #30363d;
background-color: var(--color-border-secondary);
border-radius: 6px;
}
/* Button hover in setting menu */
.ty-preferences .btn-default:not([disabled]):hover {
border-color: #8b949e !important;
background-color: var(--color-border-secondary) !important;
}
/* Return button in setting menu */
.window-header button:hover {
color: var(--text-color) !important;
}
/* Search input in setting menu */
.search-input {
border: 1px solid #30363d;
border-top-left-radius: 6px !important;
border-bottom-left-radius: 6px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
margin-top: 10px !important;
margin-bottom: 10px !important;
margin-left: 10px !important;
}
.search-input:hover {
border: 1px solid #8b949e;
}
.search-input:focus {
border: none !important;
}
/* Select item (mostly in setting menu) */
/* 下拉选择框样式 */
select {
border: 1px solid #30363d;
border-radius: 6px;
background-color: var(--color-border-secondary) !important;
padding-top: 5px !important;
padding-bottom: 5px !important;
font-size: 1.25rem !important;
width: 100% !important;
}
/* Enabled select item hover */
select:not([disabled]):hover {
color: var(--text-color);
opacity: 1;
border: 1px solid #8b949e;
}
/* Disabled select item hover */
select[disabled]:hover {
opacity: 0.5;
border: 1px solid #8b949e;
}
/* Radio */
input[type="radio"] {
background-color: var(--item-hover-bg-color) !important;
border: 0px !important;
}
input[type="radio"]:before {
content: "";
display: inline-block;
width: 1.1rem;
height: 1.1rem;
vertical-align: middle;
text-align: center;
border: 1px solid #30363d;
border-radius: 0.55rem;
background-color: var(--item-hover-bg-color) !important;
margin-top: -0.5rem;
margin-left: -0.1rem;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
/* Radio hover */
input[type="radio"]:not([disabled]):not(:checked):hover:before {
content: "\25CF";
font-size: 1rem;
line-height: 1rem;
color: var(--text-color);
}
/* Radio checked */
input[type="radio"]:checked:before {
content: "\25CF";
font-size: 1rem;
line-height: 1rem;
color: var(--text-color);
background-color: var(--item-hover-bg-color) !important;
}
/* Remove up and down button from number type input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none !important;
}
input {
background-color: var(--item-hover-bg-color) !important;
border: 0px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
/* Checkbox */
input[type="checkbox"]:before {
content: "";
display: inline-block;
width: 1.6rem;
height: 1.6rem;
vertical-align: middle;
text-align: center;
font-weight: bold;
border: 1px solid #30363d;
border-radius: 3px;
background-color: var(--item-hover-bg-color);
/* margin-top: -0.5rem; */
margin-left: -0.4rem;
}
/* Checkbox hover */
/* 未选中时鼠标覆盖的样式 */
input[type="checkbox"]:not([disabled]):not(:checked):hover:before {
/* content: "\2713"; */
/* font-size: 0.9rem;
line-height: 1rem;
color: var(--theme-color-light); */
}
/* Checkbox checked */
/* 复选框被选中的样式 */
input[type="checkbox"]:checked:before {
content: "\2713";
font-size: 1.1rem;
/* line-height: 1rem; */
color: var(--theme-color-primary);
/* margin-top: -0.5rem; */
/* margin-left: -0.1rem; */
}
#write input[type="checkbox"]:before,
#write input[type="checkbox"]:checked:before {
/* margin-top: -0.9rem; */
margin-top: -1.5rem;
}
/* Checkbox checked hover*/
/* 鼠标覆盖到已经被选中的复选框上的样式 */
input[type="checkbox"]:checked:hover:before {
/* 变成错号 */
/* content: "\2717"; */
/* font-size: 0.9rem;
line-height: 1rem;
color: var(--theme-color-light);
margin-top: -0.5rem;
margin-left: -0.1rem; */
}
/* Using checkboxes in sublists should not get list circles inside inputs */
.md-task-list-item {
list-style-type: none !important;
}
/* Input number in settings for Win/Linux */
input:not([type="range"]):not([type="color"]) {
border: 1px solid #30363d !important;
border-radius: 3px;
background-color: var(--item-hover-bg-color);
}
.pane-sm input[type="search"] {
border: 1px solid #30363d !important;
}
/* Search in settings */
#file-library-search-input:hover {
border: 1px solid #8b949e !important;
}
/* Scrollbar */
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:active {
border-radius: 10px;
background-color: #2F333A;
}
/* Remove dashed border on filenames in the sidebar */
.file-library-node:not(.file-node-root):focus > .file-node-content {
outline: 0 !important;
}
/* Handle long filenames in sidebar */
file-node-title-name-part {
white-space: pre-wrap;
}
/* Custom syntax highlighting */
div.cm-s-inner[lang="css"] .cm-qualifier {
color: #a5d6ff !important;
}
div.cm-s-inner[lang="css"] .cm-def {
color: #ff7b72 !important;
}
div.cm-s-inner[lang="css"] .cm-tag {
color: #7ee787 !important;
}
div.cm-s-inner[lang="diff"] .cm-meta {
color: #d2a8ff !important;
font-weight: 700;
}
div.cm-s-inner[lang="diff"] .cm-negative {
color: #d2a8ff !important;
font-weight: 700;
}
div.cm-s-inner[lang="dockerfile"] .cm-variable-2 {
color: #ff7b72 !important;
}
div.cm-s-inner[lang="elixir"] .cm-def {
color: #ff7b72 !important;
}
div.cm-s-inner[lang="elixir"] .cm-atom {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="erlang"] .cm-tag {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="fsharp"] .cm-variable {
color: #ffa657 !important;
}
div.cm-s-inner[lang="go"] .cm-atom {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="http"] .cm-atom {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="java"] .cm-def {
color: #ffa657 !important;
}
div.cm-s-inner[lang="javascript"] .cm-def {
color: #ffa657 !important;
}
div.cm-s-inner[lang="less"] .cm-def {
color: #ff7b72 !important;
}
div.cm-s-inner[lang="kotlin"] .cm-def {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="markdown"] .cm-comment.cm-variable-2 {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="perl"] .cm-def {
color: #ff7b72 !important;
}
div.cm-s-inner[lang="perl"] .cm-meta {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="perl"] .cm-variable-2 {
color: #8b949e !important;
}
div.cm-s-inner[lang="php"] .cm-def {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="python"] .cm-property {
color: #ffa657 !important;
}
div.cm-s-inner[lang="rust"] .cm-def {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="rust"] .cm-variable-3 {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="scss"] .cm-def {
color: #ff7b72 !important;
}
div.cm-s-inner[lang="scss"] .cm-variable-2 {
color: #ffa657 !important;
}
div.cm-s-inner[lang="scss"] .cm-tag {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="scss"] .cm-error {
color: #d2a8ff !important;
}
div.cm-s-inner[lang="ruby"] .cm-atom {
color: #d2a8ff !important;
}
/* 目录、标题和大纲的序号样式 *************************************************************/
/* 必须限定范围,否则设置页面里的选项也会显示编号 */
body {
counter-reset: h1-write;
counter-reset: h1-sidebar;
counter-reset: h1-toc;
}
/* 正文标题序号 */
#write h1 {
counter-increment: h1-write;
counter-reset: h2-write;
}
#write h2 {
counter-increment: h2-write;
counter-reset: h3-write;
}
#write h3 {
counter-increment: h3-write;
counter-reset: h4-write;
}
#write h4 {
counter-increment: h4-write;
counter-reset: h5-write;
}
#write h5 {
counter-increment: h5-write;
counter-reset: h6-write;
}
#write h6 {
counter-increment: h6-write;
}
#write h1:before {
content: counter(h1-write) ".";
}
#write h2:before {
content: counter(h1-write) "." counter(h2-write) ".";
}
#write h3:before {
content: counter(h1-write) "." counter(h2-write) "." counter(h3-write) ".";
}
#write h4:before {
content: counter(h1-write) "." counter(h2-write) "." counter(h3-write) "." counter(h4-write) ".";
}
#write h5:before {
content: counter(h1-write) "." counter(h2-write) "." counter(h3-write) "." counter(h4-write) "." counter(h5-write) ".";
}
#write h6:before {
content: counter(h1-write) "." counter(h2-write) "." counter(h3-write) "." counter(h4-write) "." counter(h5-write) "." counter(h6-write) ".";
}
/* 大纲标题序号 */
.outline-h1 {
counter-increment: h1-sidebar;
counter-reset: h2-sidebar;
}
.outline-h2 {
counter-increment: h2-sidebar;
counter-reset: h3-sidebar;
}
.outline-h3 {
counter-increment: h3-sidebar;
counter-reset: h4-sidebar;
}
.outline-h4 {
counter-increment: h4-sidebar;
counter-reset: h5-sidebar;
}
.outline-h5 {
counter-increment: h5-sidebar;
counter-reset: h6-sidebar;
}
.outline-h6 {
counter-increment: h6-sidebar;
}
.outline-h1 > .outline-item > .outline-label:before {
content: counter(h1-sidebar) ".";
}
.outline-h2 > .outline-item > .outline-label:before {
content: counter(h1-sidebar) "." counter(h2-sidebar) ".";
}
.outline-h3 > .outline-item > .outline-label:before {
content: counter(h1-sidebar) "." counter(h2-sidebar) "." counter(h3-sidebar) ".";
}
.outline-h4 > .outline-item > .outline-label:before {
content: counter(h1-sidebar) "." counter(h2-sidebar) "." counter(h3-sidebar) "." counter(h4-sidebar) ".";
}
.outline-h5 > .outline-item > .outline-label:before {
content: counter(h1-sidebar) "." counter(h2-sidebar) "." counter(h3-sidebar) "." counter(h4-sidebar) "." counter(h5-sidebar) ".";
}
.outline-h6 > .outline-item > .outline-label:before {
content: counter(h1-sidebar) "." counter(h2-sidebar) "." counter(h3-sidebar) "." counter(h4-sidebar) "." counter(h5-sidebar) "." counter(h6-sidebar) ".";
}
/* 目录标题序号样式 */
.md-toc-h1 {
counter-increment: h1-toc;
counter-reset: h2-toc;
}
.md-toc-h2 {
counter-increment: h2-toc;
counter-reset: h3-toc;
}
.md-toc-h3 {
counter-increment: h3-toc;
counter-reset: h4-toc;
}
.md-toc-h4 {
counter-increment: h4-toc;
counter-reset: h5-toc;
}
.md-toc-h5 {
counter-increment: h5-toc;
counter-reset: h6-toc;
}
.md-toc-h6 {
counter-increment: h6-toc;
}
.md-toc-h1 > .md-toc-inner:before {
content: counter(h1-toc) ".";
}
.md-toc-h2 > .md-toc-inner:before {
content: counter(h1-toc) "." counter(h2-toc) ".";
}
.md-toc-h3 > .md-toc-inner:before {
content: counter(h1-toc) "." counter(h2-toc) "." counter(h3-toc) ".";
}
.md-toc-h4 > .md-toc-inner:before {
content: counter(h1-toc) "." counter(h2-toc) "." counter(h3-toc) "." counter(h4-toc) ".";
}
.md-toc-h5 > .md-toc-inner:before {
content: counter(h1-toc) "." counter(h2-toc) "." counter(h3-toc) "." counter(h4-toc) "." counter(h5-toc) ".";
}
.md-toc-h6 > .md-toc-inner:before {
content: counter(h1-toc) "." counter(h2-toc) "." counter(h3-toc) "." counter(h4-toc) "." counter(h5-toc) "." counter(h6-toc) ".";
}
/* 目录、标题和大纲的序号样式结束 *************************************************************/
/* 正文内容宽度 */
@media only screen and (min-width: 1000px) {
#write {
max-width: 1100px;
}
}
@media only screen and (min-width: 1800px) {
#write {
max-width: 1400px;
}
}
/* 适配2k屏幕 */
@media only screen and (min-width: 2200px) {
#write {
max-width: 1800px;
}
}
/* 正文区域的单行代码格式 */
#write code {
color: var(--theme-color-primary);
font-family: var(--font-family-code);
}
/* 代码块样式 */
#write .CodeMirror {
font-family: var(--font-family-code);
}
/* 正文区域的段落 */
#write p {
font-family: var(--font-family-write);
}
/* 正文区域的标题鼠标覆盖 */
#write h1:hover,
#write h2:hover,
#write h3:hover,
#write h4:hover,
#write h5:hover,
#write h6:hover {
background-color: var(--item-hover-bg-color);
}
/* 大纲样式 */
.sidebar-content-content {
font-size: 1rem;
}
/* 大纲标题被选中的样式 */
.outline-item-active {
color: var(--theme-color-primary);
font-weight: bold;
border-bottom: 1px solid var(--theme-color-primary);
}
/* 大纲每一项鼠标覆盖样式 */
.outline-item:hover {
background-color: var(--theme-color-contrary);
}
/* 取消大纲的一些奇怪样式 */
/* 某些样式是在导出为html的时候显示异常,这里进行修改 */
.outline-label:hover {
text-decoration: none;
color: #c8d1d9;
}
/* 警告框样式 */
blockquote {
margin: 0 0 1rem;
padding: 10px;
border-radius: 0px 10px 10px 0px;
border-left: .25rem solid var(--theme-color-primary);
background-color: var(--theme-color-secondary);
}
/* 警告框内的段落样式 */
blockquote p {
color: #d4d4d4;
}
/* 表单输入项的描述信息 */
.input-group-header {
font-size: 1.25rem !important;
font-family: var(--font-family-write);
}
/* 偏好设置的复选框标签 */
.input-group-content .checkbox label {
font-size: 1.25rem !important;
font-family: var(--font-family-write);
}
/* 偏好设置的表格样式 */
.input-group-content table {
font-size: 1.25rem;
}
.label-input-group td {
height: 3rem;
}
/* 按钮样式 */
.btn {
font-size: 1.25rem !important;
}
.md-table-fig {
margin-top: 2.2em;
}
strong {
color: var(--theme-color-light);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/guo-yongchen/typora-theme.git
git@gitee.com:guo-yongchen/typora-theme.git
guo-yongchen
typora-theme
typora-theme
master

搜索帮助