1 Star 0 Fork 0

向着悠远的苍穹/TyporaThemes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
next.css 15.28 KB
一键复制 编辑 原始数据 按行查看 历史
向着悠远的苍穹 提交于 2023-12-06 23:43 . first commit
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
/**
* NexT for Typora
* Brought to you by Bill Chen || https://github.com/BillChen2K/typora-theme-next
*
* - Want code ligatures for JetBrains Mono?
* - Search for `font-variant-ligatures: none;` and comment that line.
*
* - Want to change the font size in exported pdf?
* - Change the variable `--export-font-size` below.
**/
:root {
--base-font-size: 18px;
--highlight-color: rgb(0, 160, 160);
--text-color: #333;
--headings-color: #262a30;
--export-font-size: 13px;
--select-text-bg-color: #262a30;
--select-text-font-color: #eee;
}
@font-face {
font-family: 'GlowSansSC';
font-weight: 400;
font-style: normal;
src: url('next/GlowSansSC-Normal-Book.otf') format('opentype')
}
@font-face {
font-family: 'GlowSansSC';
font-weight: bold;
font-style: normal;
src: url('next/GlowSansSC-Normal-Bold.otf') format('opentype')
}
@font-face {
font-family: 'JetBrains Mono';
src: url('next/JetBrainsMono-Regular.eot') format('embedded-opentype'), url('next/JetBrainsMono-Regular.woff2') format('woff2'), url('next/JetBrainsMono-Regular.woff') format('woff'), url('next/JetBrainsMono-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
* {
/* Disable ligatures */
font-variant-ligatures: none;
}
/* latin-ext */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 300;
font-display: swap;
src: local('Overpass Light Italic'), local('Overpass-LightItalic'), url(next/qFdC35WCmI96Ajtm81Gga3LI0hYojnA4PLDzOA.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 300;
font-display: swap;
src: local('Overpass Light Italic'), local('Overpass-LightItalic'), url(next/qFdC35WCmI96Ajtm81Gga3LI0hgojnA4PLA.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 400;
font-display: swap;
src: local('Overpass Italic'), local('Overpass-Italic'), url(next/qFdB35WCmI96Ajtm81GgY9fqxzUKg1oCNQ.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 400;
font-display: swap;
src: local('Overpass Italic'), local('Overpass-Italic'), url(next/qFdB35WCmI96Ajtm81GgY9nqxzUKg1o.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 700;
font-display: swap;
src: local('Overpass Bold Italic'), local('Overpass-BoldItalic'), url(next/qFdC35WCmI96Ajtm81Gga2LP0hYojnA4PLDzOA.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 700;
font-display: swap;
src: local('Overpass Bold Italic'), local('Overpass-BoldItalic'), url(next/qFdC35WCmI96Ajtm81Gga2LP0hgojnA4PLA.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Overpass Light'), local('Overpass-Light'), url(next/qFdA35WCmI96Ajtm81kOcc7D4hoiiVI6DLE.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Overpass Light'), local('Overpass-Light'), url(next/qFdA35WCmI96Ajtm81kOcc7N4hoiiVI6.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Overpass Regular'), local('Overpass-Regular'), url(next/qFdH35WCmI96Ajtm81GrU9vgwBcIs1s.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Overpass Regular'), local('Overpass-Regular'), url(next/qFdH35WCmI96Ajtm81GlU9vgwBcI.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Overpass Bold'), local('Overpass-Bold'), url(next/qFdA35WCmI96Ajtm81keds7D4hoiiVI6DLE.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Overpass Bold'), local('Overpass-Bold'), url(next/qFdA35WCmI96Ajtm81keds7N4hoiiVI6.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
html,
body,
#write {
color: var(--text-color);
font-size: var(--base-font-size);
background: #fcfcfc;
font-family: Overpass, "GlowSansSC", "Helvetica Neue", "pingfang sc", "microsoft yahei", sans-serif;
font-weight: 400;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
/* letter-spacing: -0.5px; */
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--headings-color);
font-weight: 700;
line-height: 1.5;
margin: 20px 0 15px
}
.CodeMirror pre {
font-family: 'JetBrains Mono';
font-size: 0.95em;
line-height: 1.65em;
}
#write {
max-width: 914px;
text-align: justify;
}
#write>h1:first-child {
margin-top: 1.75rem;
}
#write>h2:first-child {
margin-top: 1.5rem;
}
#write>h3:first-child {
margin-top: 1rem;
}
#write>h4:first-child {
margin-top: 0.5rem;
}
h1 {
font-size: 2.5em
}
h2 {
font-size: 1.75 em
}
h3 {
font-size: 1.45em
}
h4 {
font-size: 1.25em
}
h5 {
font-size: 1.1em
}
h6 {
font-size: 1em;
font-weight: bold
}
#write code {
color: var(--highlight-color);
}
p {
color: var(--text-color);
line-height: 1.7rem;
margin: 0 0 8px;
}
#write ul {
line-height: 1.75rem;
margin-block-start: 0.6em;
margin-block-end: 0.6em;
}
#write ol li {
line-height: 1.75rem;
margin-block-start: 0.6em;
margin-block-end: 0.6em;
}
u {
text-decoration: none;
border-bottom: 1px solid #999;
}
#write>h3.md-focus:before {
left: -1.875rem;
top: 0.5rem;
padding: 2px;
}
#write>h4.md-focus:before {
left: -1.875rem;
top: 0.3125rem;
padding: 2px;
}
#write>h5.md-focus:before {
left: -1.875rem;
top: 0.25rem;
padding: 2px;
}
#write>h6.md-focus:before {
left: -1.875rem;
top: .125rem;
padding: 2px;
}
@media screen and (max-width: 48em) {
blockquote {
margin-left: 1rem;
margin-right: 0;
padding: 0.5em;
}
/* .h1,
h1 {
font-size: 2.827rem;
}
.h2,
h2 {
font-size: 1.999rem;
}
.h3,
h3 {
font-size: 1.413rem;
}
.h4,
h4 {
font-size: 1.250rem;
}
.h5,
h5 {
font-size: 1.150rem;
}
.h6,
h6 {
font-size: 1rem;
} */
}
a .md-def-url {
color: #262a30;
}
a {
color: var(--highlight-color);
text-decoration: none;
font-weight: bold;
transition-duration: 0.5s;
}
a:hover {
text-decoration: underline;
}
table {
border-collapse: collapse;
border-spacing: 0;
font-size: 1em;
margin: 0 0 20px;
width: 100%;
}
table tr:nth-child(2n),
thead {
background-color: #f9f9f9;
}
tbody tr:hover {
background: #f5f5f5
}
caption,
td,
th {
font-weight: 400;
padding: 8px;
text-align: left;
vertical-align: middle
}
table tr th {
border-bottom: 3px solid #ddd;
font-weight: 700;
padding-bottom: 10px;
background-color: var(--bg-color);
}
td,
th {
border: 1px solid #ddd;
}
th {
font-weight: 700;
padding-bottom: 10px
}
td {
border-bottom-width: 1px
}
/* Inline Code */
code,
.md-fences {
background: #eee;
border-radius: 3px;
color: #555;
padding: 2px 4px;
overflow-wrap: break-word;
word-wrap: break-word;
font-family: 'JetBrains Mono';
font-size: 0.935em;
}
/* Code Blocks */
.md-fences {
margin: 0 0 20px;
font-size: 0.9em;
line-height: 1.5em;
padding: 0.4em 1em;
padding-top: 0.4em;
}
.task-list {
padding-left: 0;
}
.task-list-item {
padding-left: 2rem;
}
.task-list-item input {
top: 3px;
}
.task-list-item input {
outline: none;
margin-bottom: 0.5em;
}
.task-list-item input::before {
content: "";
display: inline-block;
width: 1rem;
height: 1rem;
vertical-align: middle;
text-align: center;
border: 1px solid gray;
background-color: #fdfdfd;
margin-left: -0.1rem;
margin-right: 0.1rem;
margin-top: -0.9rem;
}
.task-list-item input:checked::before {
padding-left: 0.125em;
content: '✔';
/*◘*/
font-size: 0.8125rem;
line-height: 0.9375rem;
margin-top: -0.9rem;
}
/* Chrome 29+ */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
.task-list-item input:before {
margin-top: -0.2rem;
}
.task-list-item input:checked:before,
.task-list-item input[checked]:before {
margin-top: -0.2rem;
}
}
blockquote {
border-left: 4px solid #ddd;
color: #666;
margin: 0;
margin-bottom: 10px;
margin-top: 10px;
padding: 0 15px
}
blockquote p {
color: #666
}
blockquote cite::before {
content: '-';
padding: 0 5px
}
/* #write pre.md-meta-block {
min-height: 30px;
background: #f8f8f8;
padding: 1.5em;
font-weight: 300;
font-size: 1em;
padding-bottom: 1.5em;
padding-top: 3em;
margin-top: -1.5em;
color: #999;
border-left: 1000px #f8f8f8 solid;
margin-left: -1000px;
border-right: 1000px #f8f8f8 solid;
margin-right: -1000px;
margin-bottom: 2em;
font-size: 0.8em;
line-height: 1.5em;
font-family: 'JetBrains Mono';
} */
#write pre.md-meta-block {
padding: 1rem;
font-size: 85%;
line-height: 1.45;
background-color: #f1f1f1;
border: 0;
border-radius: 3px;
color: hsl(0, 0%, 53%);
margin-top: 0 !important;
margin-bottom: 2em;
font-size: 0.8em;
line-height: 1.5em;
font-family: 'JetBrains Mono';
}
.MathJax_Display {
font-size: 0.9em;
margin-top: 0.5em;
margin-bottom: 0;
}
p.mathjax-block,
.mathjax-block {
padding-bottom: 0;
}
.mathjax-block>.code-tooltip {
bottom: 5px;
box-shadow: none;
}
.md-image>.md-meta {
padding-left: 0.5em;
padding-right: 0.5em;
}
.md-image>img {
margin-top: 2px;
}
.md-image>.md-meta:first-of-type:before {
padding-left: 4px;
}
#typora-source {
color: #555;
}
/** ui for windows **/
#md-searchpanel {
border-bottom: 1px solid #ccc;
}
#md-searchpanel .btn {
border: 1px solid #ccc;
}
#md-notification:before {
top: 14px;
}
#md-notification {
background: #eee;
}
.megamenu-menu-panel .btn {
border: 1px solid #ccc;
}
#write>h3.md-focus:before {
left: -1.5625rem;
top: .375rem;
}
#write>h4.md-focus:before {
left: -1.5625rem;
top: .285714286rem;
}
#write>h5.md-focus:before {
left: -1.5625rem;
top: .285714286rem;
}
#write>h6.md-focus:before {
left: -1.5625rem;
top: .285714286rem;
}
.md-image>.md-meta {
border-radius: 3px;
padding: 2px 0 0 4px;
font-size: 0.9em;
color: inherit;
}
.md-tag {
color: inherit;
}
.md-toc {
margin-top: 20px;
padding-bottom: 5px;
}
.sidebar-tabs {
border-bottom: none;
}
.mac-seamless-mode #typora-sidebar {
background-color: #efefef;
}
#typora-quick-open {
border: 1px solid #ddd;
background-color: #f8f8f8;
}
#typora-quick-open-item {
background-color: #FAFAFA;
border-color: #FEFEFE #e5e5e5 #e5e5e5 #eee;
border-style: solid;
border-width: 1px;
}
#md-notification:before {
top: 10px;
}
/** focus mode */
.on-focus-mode blockquote {
border-left-color: rgba(85, 85, 85, 0.12);
}
.file-node-content:hover .file-node-icon,
.file-node-content:hover .file-node-open-state {
visibility: visible;
}
.md-lang {
color: #b4654d;
}
.html-for-mac .context-menu {
--item-hover-bg-color: #E6F0FE;
}
.file-tree-node {
margin-top: 8px;
margin-bottom: 8px;
}
.file-node-title {
padding-top: 2px;
}
.outline-item {
padding-top: 5px;
padding-bottom: 5px;
cursor: pointer;
}
/*
.modal-footer .btn-default,
.modal-footer .btn-primary {
border: 2px solid #222;
}
#md-searchpanel .btn:not(.close-btn):hover {
background: #fff;
border-color: #222;
color: #222;
-webkit-box-shadow: none;
box-shadow: none;
}
#md-searchpanel .btn:not(.close-btn) {
background: #222;
border-color: #222;
color: #fff;
-webkit-box-shadow: none;
box-shadow: none;
transition-duration: .2s;
}
.searchpanel-search-option-btn {
border-radius: 0px;
border: 1px solid #222;
} */
/* Search panel & UI */
#md-searchpanel .btn {
border: none;
}
#md-searchpanel input {
box-shadow: none;
}
.searchpanel-search-option-btn {
border-color: #aaa;
border-radius: 0;
}
.modal-dialog .btn {
background: #222;
border-width: 2px;
border-color: #222;
border-radius: 0;
color: #fff;
display: inline-block;
font-size: .875em;
line-height: 2rem;
padding: 0 20px;
margin: 5px;
text-decoration: none;
transition-delay: 0s;
transition-duration: .2s;
transition-timing-function: ease-in-out
}
.modal-dialog .btn:hover {
background: #eee;
border-color: #222;
color: #222;
}
/* Printing issue */
.typora-export * {
-webkit-print-color-adjust: exact;
}
.typora-export p {
font-size: var(--export-font-size) !important;
}
.typora-export li {
font-size: var(--export-font-size);
line-height: 2rem;
}
.typora-export #write {
font-size: var(--export-font-size) !important;
}
table,
pre {
page-break-inside: avoid;
}
pre {
word-wrap: break-word;
}
hr {
background-image: repeating-linear-gradient(-45deg, #ddd, #ddd 4px, transparent 4px, transparent 8px);
border: 0;
height: 3px;
margin: 40px 0
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kdjlyy/typora-themes.git
[email protected]:kdjlyy/typora-themes.git
kdjlyy
typora-themes
TyporaThemes
main

搜索帮助