1 Star 5 Fork 0

Youarefortunate/typora1.6.7

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fortunate.css 26.96 KB
一键复制 编辑 原始数据 按行查看 历史
Youarefortunate 提交于 2024-06-11 23:03 . 🚠h1,h2标题附加图标
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498
@charset "UTF-8";
:root {
--bg-color: #363b40;
--side-bar-bg-color: #2e3033;
--text-color: #b8bfc6;
--select-text-bg-color: #4a89dc;
--item-hover-bg-color: #0a0d16;
--control-text-color: #b7b7b7;
--control-text-hover-color: #eee;
--window-border: 1px solid #555;
--active-file-bg-color: rgb(34, 34, 34);
--active-file-border-color: #8d8df0;
--primary-color: #a3d5fe;
--active-file-text-color: white;
--item-hover-bg-color: #70717d;
--item-hover-text-color: white;
--primary-color: #6dc1e7;
--rawblock-edit-panel-bd: #333;
--search-select-bg-color: #428bca;
--mermaid-theme: night;
/* 自定义 */
--custom-font-family: "JetBrains Mono", "HYZhengYuan";
/* 三个小球的颜色 */
--ball-left-color: #FE5F57;
--ball-center-color: #FDBE2A;
--ball-right-color: #23CA40;
/* 三个小球的大小 */
--ball-size: 1rem;
/* 三个小球距离顶端的距离,距离越大越往下 */
--ball-top: 0.8rem;
/* 文件夹图标 */
--fa-folder: "";
/* 文件图标 */
--fa-file: "";
/* =====================颜色变量===================== */
/* 方法名颜色 */
--color-function: #50D94C;
/* 类型变量颜色 */
--color-type: #79e4ff;
/* 字符串颜色 */
--color-string: #F1FA8C;
/* java注解颜色 */
--color-annotation: yellow;
/* 形参颜色 */
--color-params: #D99C2C;
/* =====================elment主颜色变量===================== */
/* elment主颜色 */
--el-color-primary: #409eff;
/* =====================标题下划线颜色===================== */
--h-border-bottom-color: rgba(170, 178, 180, 0.5);
/* pre代码块背景颜色 */
--pre-bg-color: rgb(29, 31, 35);
}
html {
font-size: 16px;
-webkit-font-smoothing: antialiased;
}
html,
body {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
background: #363b40;
background: var(--bg-color);
fill: currentColor;
line-height: 1.625rem;
}
#write {
max-width: 914px;
}
@media only screen and (min-width: 1400px) {
#write {
max-width: 1024px;
}
}
@media only screen and (min-width: 1800px) {
#write {
max-width: 1200px;
}
}
html,
body,
button,
input,
select,
textarea,
div.code-tooltip-content {
color: #b8bfc6;
border-color: transparent;
}
div.code-tooltip,
.md-hover-tip .md-arrow:after {
background: #333;
}
.native-window #md-notification {
border: 1px solid #70717d;
}
.popover.bottom > .arrow:after {
border-bottom-color: #333;
}
html,
body,
button,
input,
select,
textarea {
font-family: var(--custom-font-family), "Helvetica Neue", Helvetica, Arial, "Segoe UI Emoji", sans-serif !important;
}
hr {
height: 2px;
border: 0;
margin: 24px 0 !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--custom-font-family), "Lucida Grande", "Corbel", sans-serif;
font-weight: normal;
clear: both;
-ms-word-wrap: break-word;
word-wrap: break-word;
margin: 0;
padding: 0;
color: #dedede;
}
h1 {
font-size: 2.5rem;
/* 36px */
line-height: 2.75rem;
/* 40px */
margin-bottom: 1.5rem;
/* 24px */
letter-spacing: -1.5px;
}
h2 {
font-size: 1.63rem;
/* 24px */
line-height: 1.875rem;
/* 30px */
margin-bottom: 1.5rem;
/* 24px */
letter-spacing: -1px;
font-weight: bold;
}
h3 {
font-size: 1.17rem;
/* 18px */
line-height: 1.5rem;
/* 24px */
margin-bottom: 1.5rem;
/* 24px */
letter-spacing: -1px;
font-weight: bold;
}
h4 {
font-size: 1.12rem;
/* 16px */
line-height: 1.375rem;
/* 22px */
margin-bottom: 1.5rem;
/* 24px */
color: white;
}
h5 {
font-size: 0.97rem;
/* 16px */
line-height: 1.25rem;
/* 22px */
margin-bottom: 1.5rem;
/* 24px */
font-weight: bold;
}
h6 {
font-size: 0.93rem;
/* 16px */
line-height: 1rem;
/* 16px */
margin-bottom: 0.75rem;
color: white;
}
@media (min-width: 980px) {
h3.md-focus:before,
h4.md-focus:before,
h5.md-focus:before,
h6.md-focus:before {
color: #ddd;
border: 1px solid #ddd;
border-radius: 3px;
position: absolute;
left: -1.642857143rem;
top: 0.357142857rem;
float: left;
font-size: 9px;
padding-left: 2px;
padding-right: 2px;
vertical-align: bottom;
font-weight: normal;
line-height: normal;
}
h3.md-focus:before {
content: "h3";
}
h4.md-focus:before {
content: "h4";
}
h5.md-focus:before {
content: "h5";
top: 0px;
}
h6.md-focus:before {
content: "h6";
top: 0px;
}
}
a {
text-decoration: none;
outline: 0;
}
a:hover {
outline: 0;
}
a:focus {
outline: thin dotted;
}
sup.md-footnote {
background-color: #555;
color: #ddd;
}
p {
-ms-word-wrap: break-word;
word-wrap: break-word;
}
p,
ul,
dd,
ol,
hr,
address,
pre,
table,
iframe,
.wp-caption,
.wp-audio-shortcode,
.wp-video-shortcode {
margin-top: 0;
margin-bottom: 1.5rem;
/* 24px */
}
audio:not([controls]) {
display: none;
}
[hidden] {
display: none;
}
::-moz-selection {
background: #4a89dc;
color: #fff;
text-shadow: none;
}
*.in-text-selection,
::selection {
background: #4a89dc;
color: #fff;
text-shadow: none;
}
ul,
ol {
padding: 0 0 0 1.875rem;
/* 30px */
}
ul {
list-style: square;
}
ol {
list-style: decimal;
}
ul ul,
ol ol,
ul ol,
ol ul {
margin: 0;
}
b,
th,
dt,
strong {
font-weight: bold;
}
i,
em,
dfn,
cite {
font-style: italic;
}
blockquote {
--py: 10px;
padding-left: 1.875rem;
margin-bottom: 1.875rem;
/* margin: 0 0 1.875rem 1.875rem; */
/* border-left: solid 2px #474d54;
padding-left: 30px;
margin-top: 35px; */
margin-top: 0px;
padding-left: 28px;
padding-top: var(--py);
padding-bottom: var(--py);
/* border-left: solid 5px #474d54; */
background-color: rgba(51, 51, 51, 0.7);
}
pre,
code,
kbd,
tt,
var {
font-size: 0.875em;
font-family: var(--custom-font-family), Consolas, Monaco, "Andale Mono", "DejaVu Sans Mono", monospace;
}
/* code,
tt,
var {
color: #02f6d0;
background: rgba(0, 0, 0, 0.05);
} */
kbd {
padding: 2px 4px;
font-size: 90%;
color: #fff;
background-color: #333;
border-radius: 3px;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
pre.md-fences {
padding: 10px 10px 10px 30px;
margin-bottom: 20px;
background: #333;
}
.CodeMirror-gutters {
background: #333;
border-right: 1px solid transparent;
}
.enable-diagrams pre.md-fences[lang=sequence] .code-tooltip,
.enable-diagrams pre.md-fences[lang=flow] .code-tooltip,
.enable-diagrams pre.md-fences[lang=mermaid] .code-tooltip {
bottom: -2.2em;
right: 4px;
}
code,
kbd,
tt,
var {
padding: 2px 5px;
}
table {
max-width: 100%;
width: 100%;
border-collapse: collapse;
border-spacing: 0;
}
th,
td {
padding: 5px 10px;
vertical-align: top;
}
a {
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
hr {
background: #474d54;
/* variable */
}
h1 {
margin-top: 2em;
}
a:hover {
color: #fff;
}
.md-inline-math script {
color: #81b1db;
}
b,
th,
dt,
strong {
color: #dedede;
/* variable */
}
mark {
background: #d3d40e;
}
blockquote {
color: #9da2a6;
}
table a {
color: #1b7ed7;
/* color: #dedede; */
/* variable */
}
th,
td {
border: solid 1px #474d54;
/* variable */
}
.task-list {
padding-left: 0;
}
.md-task-list-item {
padding-left: 1.25rem;
}
.md-task-list-item > input {
top: auto;
}
.md-task-list-item > input:before {
content: "";
display: inline-block;
width: 0.875rem;
height: 0.875rem;
vertical-align: middle;
text-align: center;
border: 1px solid #b8bfc6;
background-color: #363b40;
margin-top: -0.4rem;
}
.md-task-list-item > input:checked:before,
.md-task-list-item > input[checked]:before {
content: "√";
/*◘*/
font-size: 0.625rem;
line-height: 0.625rem;
color: #dedede;
}
/** quick open **/
.auto-suggest-container {
border: 0px;
background-color: #525c65;
}
#typora-quick-open {
background-color: #525c65;
}
#typora-quick-open input {
background-color: #525c65;
border: 0;
border-bottom: 1px solid grey;
}
.typora-quick-open-item {
background-color: inherit;
color: inherit;
}
.typora-quick-open-item.active,
.typora-quick-open-item:hover {
background-color: #4d8bdb;
color: white;
}
.typora-quick-open-item:hover {
background-color: rgba(77, 139, 219, 0.8);
}
.typora-search-spinner > div {
background-color: #fff;
}
#write pre.md-meta-block {
border-bottom: 1px dashed #ccc;
background: transparent;
padding-bottom: 0.6em;
line-height: 1.6em;
}
.btn,
.btn .btn-default {
background: transparent;
color: #b8bfc6;
}
.ty-table-edit {
border-top: 1px solid gray;
background-color: #363b40;
}
.popover-title {
background: transparent;
}
.md-image > .md-meta {
color: #bbbbbb;
background: transparent;
}
.md-expand.md-image > .md-meta {
color: #ddd;
}
#write > h3:before,
#write > h4:before,
#write > h5:before,
#write > h6:before {
border: none;
border-radius: 0px;
color: #888;
left: -1.4rem;
top: 0.2rem;
}
#write > h3.md-focus:before {
top: 2px;
}
#write > h4.md-focus:before {
top: 2px;
}
.md-toc-item {
color: #a8c2dc;
}
#write div.md-toc-tooltip {
background-color: #363b40;
}
.dropdown-menu .btn:hover,
.dropdown-menu .btn:focus,
.md-toc .btn:hover,
.md-toc .btn:focus {
color: white;
background: black;
}
#toc-dropmenu {
background: rgba(50, 54, 59, 0.93);
border: 1px solid rgba(253, 253, 253, 0.15);
}
#toc-dropmenu .divider {
background-color: #9b9b9b;
}
.outline-expander:before {
top: 2px;
}
#typora-sidebar {
box-shadow: none;
border-right: 1px dashed;
border-right: none;
}
.sidebar-tabs {
border-bottom: 0;
}
#typora-sidebar:hover .outline-title-wrapper {
border-left: 1px dashed;
}
.outline-title-wrapper .btn {
color: inherit;
}
.outline-item:hover {
border-color: #363b40;
background-color: #363b40;
color: white;
}
h1.md-focus .md-attr,
h2.md-focus .md-attr,
h3.md-focus .md-attr,
h4.md-focus .md-attr,
h5.md-focus .md-attr,
h6.md-focus .md-attr,
.md-header-span .md-attr {
color: #8c8e92;
display: inline;
}
.md-comment {
color: #5a95e3;
opacity: 0.8;
}
.md-inline-math svg {
color: #b8bfc6;
}
#math-inline-preview .md-arrow:after {
background: black;
}
.modal-content {
background: var(--bg-color);
border: 0;
}
.modal-title {
font-size: 1.5em;
}
.modal-content input {
background-color: rgba(26, 21, 21, 0.51);
color: white;
}
.modal-content .input-group-addon {
color: white;
}
.modal-backdrop {
background-color: rgba(174, 174, 174, 0.7);
}
.modal-content .btn-primary {
border-color: var(--primary-color);
}
.md-table-resize-popover {
background-color: #333;
}
.form-inline .input-group .input-group-addon {
color: white;
}
#md-searchpanel {
border-bottom: 1px dashed grey;
}
/** UI for electron */
.context-menu,
#spell-check-panel,
#footer-word-count-info {
background-color: #42464a;
}
.context-menu.dropdown-menu .divider,
.dropdown-menu .divider {
background-color: #777777;
opacity: 1;
}
footer {
color: inherit;
}
@media (max-width: 1000px) {
footer {
border-top: none;
}
footer:hover {
color: inherit;
}
}
#file-info-file-path .file-info-field-value:hover {
background-color: #555;
color: #dedede;
}
.megamenu-content,
.megamenu-opened header {
background: var(--bg-color);
}
.megamenu-menu-panel h2,
.megamenu-menu-panel h1,
.long-btn {
color: inherit;
}
.megamenu-menu-panel input[type=text] {
background: inherit;
border: 0;
border-bottom: 1px solid;
}
#recent-file-panel-action-btn {
background: inherit;
border: 1px grey solid;
}
.megamenu-menu-panel .dropdown-menu > li > a {
color: inherit;
background-color: #2f353a;
text-decoration: none;
}
.megamenu-menu-panel table td:nth-child(1) {
color: inherit;
font-weight: bold;
}
.megamenu-menu-panel tbody tr:hover td:nth-child(1) {
color: white;
}
.modal-footer .btn-default,
.modal-footer .btn-primary,
.modal-footer .btn-default:not(:hover) {
border: 1px solid;
border-color: transparent;
}
.btn-primary {
color: white;
}
.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
color: white;
border: 1px solid #ddd;
background-color: inherit;
}
.modal-header {
border-bottom: 0;
}
.modal-footer {
border-top: 0;
}
#recent-file-panel tbody tr:nth-child(2n-1) {
background-color: transparent !important;
}
.megamenu-menu-panel tbody tr:hover td:nth-child(2) {
color: inherit;
}
.megamenu-menu-panel .btn {
border: 1px solid #eee;
background: transparent;
}
.mouse-hover .toolbar-icon.btn:hover,
#w-full.mouse-hover,
#w-pin.mouse-hover {
background-color: inherit;
}
.typora-node::-webkit-scrollbar {
width: 5px;
}
.typora-node::-webkit-scrollbar-thumb:vertical {
background: rgba(250, 250, 250, 0.3);
}
.typora-node::-webkit-scrollbar-thumb:vertical:active {
background: rgba(250, 250, 250, 0.5);
}
#w-unpin {
background-color: #4182c4;
}
#top-titlebar,
#top-titlebar * {
color: var(--item-hover-text-color);
}
.typora-sourceview-on #toggle-sourceview-btn,
#footer-word-count:hover,
.ty-show-word-count #footer-word-count {
background: #333333;
}
#toggle-sourceview-btn:hover {
color: #eee;
background: #333333;
}
/** focus mode */
.on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) * {
color: #686868 !important;
}
.on-focus-mode .md-end-block:not(.md-focus) img,
.on-focus-mode .md-task-list-item:not(.md-focus-container) > input {
opacity: #686868 !important;
}
.on-focus-mode li[cid]:not(.md-focus-container) {
color: #686868;
}
.on-focus-mode .md-fences.md-focus .CodeMirror-code > *:not(.CodeMirror-activeline) *,
.on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) * {
color: #686868 !important;
}
.on-focus-mode .md-focus,
.on-focus-mode .md-focus-container {
color: #fff;
}
.on-focus-mode #typora-source .CodeMirror-code > *:not(.CodeMirror-activeline) * {
color: #686868 !important;
}
/*diagrams*/
#write .md-focus .md-diagram-panel {
border: 1px solid #ddd;
margin-left: -1px;
width: calc(100% + 2px);
}
/*diagrams*/
#write .md-focus.md-fences-with-lineno .md-diagram-panel {
margin-left: auto;
}
.md-diagram-panel-error {
color: #f1908e;
}
.active-tab-files #info-panel-tab-file,
.active-tab-files #info-panel-tab-file:hover,
.active-tab-outline #info-panel-tab-outline,
.active-tab-outline #info-panel-tab-outline:hover {
color: #eee;
}
.sidebar-footer-item:hover,
.footer-item:hover {
background: inherit;
color: white;
}
.ty-side-sort-btn.active,
.ty-side-sort-btn:hover,
.selected-folder-menu-item a:after {
color: white;
}
#sidebar-files-menu {
border: solid 1px;
box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79);
background-color: var(--bg-color);
}
.file-list-item {
border-bottom: none;
}
.file-list-item-summary {
opacity: 1;
}
.file-list-item.active:first-child {
border-top: none;
}
.file-node-background {
height: 32px;
}
.file-library-node.active > .file-node-content,
.file-list-item.active {
color: white;
color: var(--active-file-text-color);
}
.file-library-node.active > .file-node-background {
background-color: rgb(34, 34, 34);
background-color: var(--active-file-bg-color);
}
.file-list-item.active {
background-color: rgb(34, 34, 34);
background-color: var(--active-file-bg-color);
}
#ty-tooltip {
background-color: black;
color: #eee;
}
.md-task-list-item > input {
margin-left: -1.3em;
margin-top: 0.3rem;
-webkit-appearance: none;
}
.md-mathjax-midline {
background-color: #57616b;
border-bottom: none;
}
footer.ty-footer {
border-color: #656565;
}
.ty-preferences .btn-default {
background: transparent;
}
.ty-preferences .btn-default:hover {
background: #57616b;
}
.ty-preferences select {
border: 1px solid #989698;
height: 21px;
}
.ty-preferences .nav-group-item.active,
.export-item.active,
.export-items-list-control,
.export-detail {
background: var(--item-hover-bg-color);
}
.ty-preferences input[type=search] {
border-color: #333;
background: #333;
line-height: 22px;
border-radius: 6px;
color: white;
}
.ty-preferences input[type=search]:focus {
box-shadow: none;
}
[data-is-directory=true] .file-node-content {
margin-bottom: 0;
}
.file-node-title {
line-height: 22px;
}
.html-for-mac .file-node-open-state,
.html-for-mac .file-node-icon {
line-height: 26px;
}
::-webkit-scrollbar-thumb {
background: rgba(230, 230, 230, 0.3);
}
::-webkit-scrollbar-thumb:active {
background: rgba(230, 230, 230, 0.5);
}
#typora-sidebar:hover div.sidebar-content-content::-webkit-scrollbar-thumb:horizontal {
background: rgba(230, 230, 230, 0.3);
}
.nav-group-item:active {
background-color: #474d54 !important;
}
.md-search-hit {
background: rgba(199, 140, 60, 0.81);
color: #eee;
}
.md-search-hit * {
color: #eee;
}
#md-searchpanel input {
color: white;
}
.modal-backdrop.in {
opacity: 1;
backdrop-filter: blur(1px);
}
.clear-btn-icon {
top: 8px;
}
/* try fix https://github.com/typora/typora-issues/issues/5253 */
.file-node-expanded > .file-node-children {
display: grid;
}
/* #region 三文件合并 */
/* 1、mermaid.dark.css */
[lang=mermaid] .label {
color: #333;
}
/* 2、sourcemode.dark.css */
.cm-s-typora-default .cm-header,
.cm-s-typora-default .cm-property {
color: #cebcca;
}
.CodeMirror.cm-s-typora-default div.CodeMirror-cursor {
border-left: 3px solid #b8bfc6;
}
.cm-s-typora-default .cm-comment {
color: #9fb1ff;
}
.cm-s-typora-default .cm-string {
color: #a7a7d9;
}
.cm-s-typora-default .cm-atom,
.cm-s-typora-default .cm-number {
color: #848695;
font-style: italic;
}
.cm-s-typora-default .cm-link {
color: #95b94b;
}
.cm-s-typora-default .CodeMirror-activeline-background {
background: rgba(51, 51, 51, 0.72);
}
.cm-s-typora-default .cm-comment,
.cm-s-typora-default .cm-code {
color: #8aa1e1;
}
/* 3、codeblock.dark.css */
.cm-s-inner .cm-variable,
.cm-s-inner .cm-operator,
.cm-s-inner .cm-property {
color: #b8bfc6;
}
.cm-s-inner .cm-keyword {
color: #c88fd0;
}
.cm-s-inner .cm-tag {
color: #7df46a;
}
.cm-s-inner .cm-attribute {
color: #7575e4;
}
.CodeMirror div.CodeMirror-cursor {
border-left: 1px solid #b8bfc6;
z-index: 3;
}
.cm-s-inner .cm-string {
color: #d26b6b;
}
.cm-s-inner .cm-comment,
.cm-s-inner.cm-comment {
color: #da924a;
}
.cm-s-inner .cm-header,
.cm-s-inner .cm-def,
.cm-s-inner.cm-header,
.cm-s-inner.cm-def {
color: #8d8df0;
}
.cm-s-inner .cm-quote,
.cm-s-inner.cm-quote {
color: #57ac57;
}
.cm-s-inner .cm-hr {
color: #d8d5d5;
}
.cm-s-inner .cm-link {
color: #d3d3ef;
}
.cm-s-inner .cm-negative {
color: #d95050;
}
.cm-s-inner .cm-positive {
color: #50e650;
}
.cm-s-inner .cm-string-2 {
/* color: #f50; */
color: #ff79bd;
}
.cm-s-inner .cm-meta,
.cm-s-inner .cm-qualifier {
color: #b7b3b3;
}
.cm-s-inner .cm-builtin {
color: #f3b3f8;
}
.cm-s-inner .cm-bracket {
color: #997;
}
.cm-s-inner .cm-atom,
.cm-s-inner.cm-atom {
color: #84b6cb;
}
.cm-s-inner .cm-number {
color: #64ab8f;
}
.cm-s-inner .cm-variable {
color: #b8bfc6;
}
.cm-s-inner .cm-variable-2 {
color: #9fbad5;
}
.cm-s-inner .cm-variable-3 {
color: #1cc685;
}
.CodeMirror-selectedtext,
.CodeMirror-selected {
background: #4a89dc;
color: #fff !important;
text-shadow: none;
}
.CodeMirror-gutters {
border-right: none;
}
/* =============================================================分割线=============================================================== */
/* #endregion 三文件合并结束 */
/* #region Custom自定义CSS样式 */
/* font */
@font-face {
font-family: "FontAwesome";
src: url("./fortunate/iconfont.woff") format("woff");
font-weight: normal;
font-style: normal;
}
.fa {
/* 字体类型,必须为fa,与上面@font-face的font-family对应 */
font-family: FontAwesome;
/* 图标大小 */
font-size: 1rem;
}
/* 文件夹图标 */
.fa-folder:before {
content: var(--fa-folder);
}
/* 文件图标 */
.fa-file-text-o:before {
content: var(--fa-file);
}
#write h2 {
padding-bottom: 0.5em;
border-bottom: 3px double var(--h-border-bottom-color);
}
#write h2::before {
content: "🥝";
margin-right: 5px;
}
#write h3 {
padding-bottom: 0.5em;
border-bottom: 2px solid var(--h-border-bottom-color);
}
#write h3::before {
content: "🍍";
margin-right: 5px;
}
#write h1, #write h2, #write h3, #write h4, #write h5, #write h6 {
line-height: 1em;
text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
padding-top: 0.3em;
}
code,
tt,
var {
color: #02f6d0;
background: rgba(0, 0, 0, 0.05);
}
/* 标签样式(全局) */
code {
border-color: #25371c;
color: rgb(114, 221, 34);
display: inline-flex;
justify-content: center;
align-items: center;
vertical-align: middle;
height: 24px;
padding: 0 9px;
font-size: 12px;
line-height: 1;
border-width: 1px;
border-style: solid;
border-radius: 4px;
box-sizing: border-box;
white-space: nowrap;
background-color: rgba(32, 35, 31, 0.7);
}
/* <a href="http" />为前缀的超链接样式 */
a[href^=http] {
display: inline-flex;
flex-direction: row;
align-items: center;
justify-content: center;
vertical-align: middle;
position: relative;
text-decoration: none;
outline: none;
cursor: pointer;
padding: 0;
font-size: 14px;
font-weight: 500;
color: var(--el-color-primary);
transition: color 0.5s;
}
a[href^=http]:hover {
color: #dadada;
border-bottom: 1px solid #79bbff;
}
table thead {
height: 40px;
line-height: 40px;
background-color: rgba(36, 36, 36, 0.4);
}
table tbody {
/* 奇数行背景色 */
}
table tbody tr:nth-child(even) {
background-color: rgba(114, 112, 112, 0.1);
}
pre .cm-s-inner .cm-comment {
color: #5B9654;
}
pre .cm-s-inner .cm-atom,
pre .cm-s-inner .cm-comment {
font-style: italic;
}
pre .cm-s-inner .cm-meta,
pre .cm-s-inner .cm-variable-3,
pre .cm-s-inner .cm-atom,
pre .cm-s-inner .cm-keyword,
pre .cm-s-inner .cm-builtin,
pre .cm-s-inner .cm-def,
pre .cm-s-inner .cm-tag {
font-weight: bold;
}
pre[lang=java] .cm-s-inner .cm-meta,
pre[lang=properties] .cm-s-inner .cm-meta {
color: var(--color-annotation);
}
pre[lang=java] .cm-s-inner .cm-def,
pre[lang=properties] .cm-s-inner .cm-def {
color: var(--color-function);
}
pre[lang=java] .cm-s-inner .cm-variable-3,
pre[lang=properties] .cm-s-inner .cm-variable-3 {
color: #8BE9FD;
}
pre[lang=java] .cm-s-inner .cm-variable + .cm-variable-3:has(~ .cm-def),
pre[lang=properties] .cm-s-inner .cm-variable + .cm-variable-3:has(~ .cm-def) {
color: var(--color-params);
font-style: italic;
}
pre[lang=json] .cm-s-inner .cm-property {
color: #cda8ff !important;
}
pre[lang=json] .cm-s-inner .cm-string {
color: #adcfff;
}
pre[lang=json] .cm-s-inner .cm-property,
pre[lang=json] .cm-s-inner .cm-string {
font-weight: bold;
}
pre[lang=ts] .cm-s-inner,
pre[lang=typescript] .cm-s-inner {
/* 场景:const appStore = useAppStoreHook(); */
}
pre[lang=ts] .cm-s-inner span[role=presentation]:has(> .cm-keyword + .cm-def + .cm-operator + .cm-variable) .cm-def,
pre[lang=typescript] .cm-s-inner span[role=presentation]:has(> .cm-keyword + .cm-def + .cm-operator + .cm-variable) .cm-def {
color: rgb(213, 213, 213);
font-style: normal;
font-weight: normal;
}
pre[lang=ts] .cm-s-inner .cm-keyword + .cm-def,
pre[lang=typescript] .cm-s-inner .cm-keyword + .cm-def {
color: var(--color-function);
font-style: normal;
/* &:has(~.cm-type):let data: AuthorizationResultDataType; 场景 */
/* &:has(+.cm-operator):const cosInstance = new Xxx(); 场景 */
}
pre[lang=ts] .cm-s-inner .cm-keyword + .cm-def:has(+ :not(.cm-operator)),
pre[lang=typescript] .cm-s-inner .cm-keyword + .cm-def:has(+ :not(.cm-operator)) {
/* 方法名颜色 */
color: var(--color-function);
font-style: normal;
}
pre[lang=ts] .cm-s-inner .cm-keyword + .cm-def:has(+ .cm-type), pre[lang=ts] .cm-s-inner .cm-keyword + .cm-def:has(+ .cm-operator + .cm-keyword, + .cm-operator + .cm-keyword + .cm-variable), pre[lang=ts] .cm-s-inner .cm-keyword + .cm-def:has(~ .cm-atom, ~ .cm-atom + .cm-operator + .cm-atom), pre[lang=ts] .cm-s-inner .cm-keyword + .cm-def:has(~ .cm-string, ~ .cm-string + .cm-operator + .cm-string), pre[lang=ts] .cm-s-inner .cm-keyword + .cm-def:has(+ .cm-operator ~ .cm-property, + .cm-operator ~ .cm-number),
pre[lang=typescript] .cm-s-inner .cm-keyword + .cm-def:has(+ .cm-type),
pre[lang=typescript] .cm-s-inner .cm-keyword + .cm-def:has(+ .cm-operator + .cm-keyword, + .cm-operator + .cm-keyword + .cm-variable),
pre[lang=typescript] .cm-s-inner .cm-keyword + .cm-def:has(~ .cm-atom, ~ .cm-atom + .cm-operator + .cm-atom),
pre[lang=typescript] .cm-s-inner .cm-keyword + .cm-def:has(~ .cm-string, ~ .cm-string + .cm-operator + .cm-string),
pre[lang=typescript] .cm-s-inner .cm-keyword + .cm-def:has(+ .cm-operator ~ .cm-property, + .cm-operator ~ .cm-number) {
color: rgb(213, 213, 213);
font-style: normal;
font-weight: normal;
}
pre[lang=ts] .cm-s-inner .cm-def,
pre[lang=typescript] .cm-s-inner .cm-def {
color: var(--color-params);
}
pre[lang=ts] .cm-s-inner .cm-type,
pre[lang=typescript] .cm-s-inner .cm-type {
color: var(--color-type);
}
pre[lang=ts] .cm-s-inner .cm-string,
pre[lang=typescript] .cm-s-inner .cm-string {
color: var(--color-string);
}
pre[lang=ts] .cm-s-inner .cm-def,
pre[lang=typescript] .cm-s-inner .cm-def {
font-style: italic;
}
pre[lang=scss] .cm-s-inner .cm-def,
pre[lang=css] .cm-s-inner .cm-def {
color: #FF79C6;
}
pre[lang=scss] .cm-s-inner .cm-def + .cm-atom,
pre[lang=css] .cm-s-inner .cm-def + .cm-atom {
color: var(--color-type);
font-style: italic;
}
pre[lang=scss] .cm-s-inner .cm-string,
pre[lang=css] .cm-s-inner .cm-string {
color: var(--color-string);
}
pre[lang=scss] .cm-s-inner .cm-qualifier,
pre[lang=css] .cm-s-inner .cm-qualifier {
color: #50fa7b;
}
pre[lang=scss] .cm-s-inner .cm-property,
pre[lang=css] .cm-s-inner .cm-property {
color: var(--color-type);
}
pre[lang=scss] .cm-s-inner .cm-atom,
pre[lang=scss] .cm-s-inner .cm-keyword,
pre[lang=css] .cm-s-inner .cm-atom,
pre[lang=css] .cm-s-inner .cm-keyword {
color: #af93f9;
font-style: normal;
}
pre[lang=bash] .cm-s-inner .cm-def {
color: var(--color-type);
}
pre[lang=bash] .cm-s-inner .cm-attribute {
color: var(--color-string);
}
blockquote {
padding-right: 28px;
border-left: 5px solid #5290ca;
}
#write .md-fences {
position: relative;
padding: 40px 10px 10px;
}
#write .md-fences > .CodeMirror {
position: static;
}
#write .md-fences::before {
content: " ";
display: block;
z-index: 10;
width: var(--ball-size);
height: var(--ball-size);
top: var(--ball-top);
border-radius: var(--ball-size);
position: absolute;
left: 1.2rem;
background-color: var(--ball-left-color);
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}
#write .md-fences::after {
content: " ";
display: block;
z-index: 10;
width: var(--ball-size);
height: var(--ball-size);
top: var(--ball-top);
border-radius: var(--ball-size);
position: absolute;
left: 2.5rem;
background-color: var(--ball-center-color);
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}
#write .md-fences > .CodeMirror::before {
content: " ";
display: block;
z-index: 10;
width: var(--ball-size);
height: var(--ball-size);
top: var(--ball-top);
border-radius: var(--ball-size);
position: absolute;
left: 3.8rem;
background-color: var(--ball-right-color);
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}
/* #endregion Custom自定义CSS样式结束 */
/*# sourceMappingURL=fortunate.css.map */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/youarefortunate/typora1.6.7.git
[email protected]:youarefortunate/typora1.6.7.git
youarefortunate
typora1.6.7
typora1.6.7
master

搜索帮助