原神蒙德-Typora模板

news/2024/9/19 14:59:40/文章来源:https://www.cnblogs.com/little-red/p/18409198

基于Newsprint主题开发的一种Typora模板

新建模板

打开Typora - 文件 - 偏好设置 - 外观 - 打开主题文件夹

找到其中的 Newsprint (应该有一个文件夹+一个css,都要) ,拷贝副本,重命名(我命名的是“custom”),一定要这一步,不然后期更新的时候会覆盖

修改

打开其中的 custom.css ,用以下代码覆盖

/* meyer reset -- http://meyerweb.com/eric/tools/css/reset/ , v2.0 | 20110126 | License: none (public domain) */@include-when-export url(https://fonts.loli.net/css?family=PT+Serif:400,400italic,700,700italic&subset=latin,cyrillic-ext,cyrillic,latin-ext);/* =========== *//* pt-serif-regular - latin */
@font-face {font-family: 'PT Serif';font-style: normal;font-weight: normal;src: local('PT Serif'), local('PTSerif-Regular'), url('./newsprint/pt-serif-v11-latin-regular.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;
}
/* pt-serif-italic - latin */
@font-face {font-family: 'PT Serif';font-style: italic;font-weight: normal;src: local('PT Serif Italic'), local('PTSerif-Italic'), url('./newsprint/pt-serif-v11-latin-italic.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;
}
/* pt-serif-700 - latin */
@font-face {font-family: 'PT Serif';font-style: normal;font-weight: bold;src: local('PT Serif Bold'), local('PTSerif-Bold'), url('./newsprint/pt-serif-v11-latin-700.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;
}
/* pt-serif-700italic - latin */
@font-face {font-family: 'PT Serif';font-style: italic;font-weight: bold;src: local('PT Serif Bold Italic'), local('PTSerif-BoldItalic'), url('./newsprint/pt-serif-v11-latin-700italic.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;
}:root {--active-file-bg-color: #dadada;--active-file-bg-color: rgba(32, 43, 51, 0.63);--active-file-text-color: white;--bg-color: #f3f2ee;--text-color: #1f0909;--control-text-color: #444;--rawblock-edit-panel-bd: #e5e5e5;--select-text-bg-color: rgba(32, 43, 51, 0.63);--select-text-font-color: white;
}pre {--select-text-bg-color: #36284e;--select-text-font-color: #fff;
}html {font-size: 16px;-webkit-font-smoothing: antialiased;
}html, body {background-color: #f3f2ee;font-family: "PT Serif", 'Times New Roman', Times, serif;color: #1f0909;line-height: 1.5em;
}/*#write {overflow-x: auto;max-width: initial;padding-left: calc(50% - 17em);padding-right: calc(50% - 17em);
}@media (max-width: 36em) {#write {padding-left: 1em;padding-right: 1em;}
}*/content {background-image: url(./custom/bg.jpg);background-size: 100%;
}#write {margin-top: 12px;background-color: rgba(255, 255, 255, 0.9);margin-bottom: 12px;min-height: calc(100% - 24px);
}body {background-color: #00d5ff6a;
}#write {max-width: 48em;
}@media only screen and (min-width: 1400px) {#write {max-width: 914px;}
}ol li {list-style-type: decimal;list-style-position: outside;
}
ul li {list-style-type: disc;list-style-position: outside;
}ol,
ul {list-style: none;
}blockquote,
q {quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {content: '';content: none;
}
table {border-collapse: collapse;border-spacing: 0;
}
/* styles *//* ====== *//* headings */h1,
h2,
h3,
h4,
h5,
h6 {font-weight: bold;
}
h1 {text-align: center;font-size: 1.875em;/*30 / 16*/line-height: 1.6em;/* 48 / 30*/margin-top: 2em;
}
h2,
h3 {text-align: center;font-size: 1.3125em;/*21 / 16*/line-height: 1.15;/*24 / 21*/margin-top: 2.285714em;/*48 / 21*/margin-bottom: 1.15em;/*24 / 21*/
}
h3 {font-weight: normal;
}
h4 {color: #333;font-size: 1.125em;/*18 / 16*/margin-top: 2.67em;/*48 / 18*/
}
h5,
h6 {color: #555;font-size: 1em;/*16*/
}
h1 {border-bottom: 1px solid;margin-bottom: 1.875em;padding-bottom: 0.8125em;
}
/* links */a {text-decoration: none;color: #065588;
}
a:hover,
a:active {text-decoration: underline;
}
/* block spacing */p,
blockquote,
.md-fences {margin-bottom: 1.5em;
}
h1,
h2,
h3,
h4,
h5,
h6 {margin-bottom: 1.5em;
}
/* blockquote */blockquote {font-style: italic;border-left: 5px solid;margin-left: 2em;padding-left: 1em;
}
/* lists */ul,
ol {margin: 0 0 1.5em 1.5em;color: #444;
}
/* tables */
.md-meta,.md-before, .md-after {color:#999;
}table {color: #444;margin-bottom: 1.5em;/*24 / 16*/font-size: 1em;/* width: 100%; */
}
thead th,
tfoot th {padding: .25em .25em .25em .4em;text-transform: uppercase;
}
th {text-align: left;
}
td {vertical-align: top;padding: .25em .25em .25em .4em;
}code,
.md-fences {background-color: #dadada;
}code {padding-left: 2px;padding-right: 2px;
}.md-fences {margin-left: 2em;margin-bottom: 3em;padding-left: 1ch;padding-right: 1ch;
}pre,
code,
tt {font-size: .875em;line-height: 1.714285em;
}
/* some fixes */h1 {line-height: 1.3em;font-weight: normal;margin-bottom: 0.5em;
}p + ul,
p + ol{margin-top: .5em;
}h3 + ul,
h4 + ul,
h5 + ul,
h6 + ul,
h3 + ol,
h4 + ol,
h5 + ol,
h6 + ol {margin-top: .5em;
}li > ul,
li > ol {margin-top: inherit;margin-bottom: 0;
}li ol>li {list-style-type: lower-alpha;
}li li ol>li{list-style-type: lower-roman;
}h2,
h3 {margin-bottom: .75em;
}
hr {border-top: none;border-right: none;border-bottom: 1px solid;border-left: none;
}
h1 {border-color: #c5c5c5;
}
blockquote {border-color: #bababa;color: #656565;
}blockquote ul,
blockquote ol {margin-left:0;
}.ty-table-edit {background-color: transparent;
}
thead {background-color: #dadada;
}
tr:nth-child(even) {background: #e8e7e7;
}
hr {border-color: #c5c5c5;
}
.task-list{padding-left: 1rem;
}.md-task-list-item {padding-left: 1.5rem;list-style-type: none;
}.md-task-list-item > input:before {content: '\221A';display: inline-block;width: 1.25rem;height: 1.6rem;vertical-align: middle;text-align: center;color: #ddd;background-color: #F3F2EE;
}.md-task-list-item > input:checked:before,
.md-task-list-item > input[checked]:before{color: inherit;
}#write pre.md-meta-block {min-height: 1.875rem;color: #555;border: 0px;background: transparent;margin-top: -4px;margin-left: 1em;margin-top: 1em;
}.md-image>.md-meta {color: #9B5146;
}.md-image>.md-meta{font-family: Menlo, 'Ubuntu Mono', Consolas, 'Courier New', 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', serif;
}#write>h3.md-focus:before{left: -1.5rem;color:#999;border-color:#999;
}
#write>h4.md-focus:before{left: -1.5rem;top: .25rem;color:#999;border-color:#999;
}
#write>h5.md-focus:before{left: -1.5rem;top: .0.3125rem;color:#999;border-color:#999;
}
#write>h6.md-focus:before{left: -1.5rem;top: 0.3125rem;color:#999;border-color:#999;
}.md-toc:focus .md-toc-content{margin-top: 19px;
}.md-toc-content:empty:before{color: #065588;
}
.md-toc-item {color: #065588;
}
#write div.md-toc-tooltip {background-color: #f3f2ee;
}#typora-sidebar {background-color: #f3f2ee;-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.375);box-shadow: 0 6px 12px rgba(0, 0, 0, 0.375);
}.pin-outline #typora-sidebar {background: inherit;box-shadow: none;border-right: 1px dashed;
}.pin-outline #typora-sidebar:hover .outline-title-wrapper {border-left:1px dashed;
}.outline-item:hover {background-color: #dadada;border-left: 28px solid #dadada;border-right: 18px solid #dadada;
}.typora-node .outline-item:hover {border-right: 28px solid #dadada;
}.outline-expander:before {content: "\f0da";font-family: FontAwesome;font-size:14px;top: 1px;
}.outline-expander:hover:before,
.outline-item-open>.outline-item>.outline-expander:before {content: "\f0d7";
}.modal-content {background-color: #f3f2ee;
}.auto-suggest-container ul li {list-style-type: none;
}/** UI for electron */.megamenu-menu,
#top-titlebar, #top-titlebar *,
.megamenu-content {background: #f3f2ee;color: #1f0909;
}.megamenu-menu-header {border-bottom: 1px dashed #202B33;
}.megamenu-menu {box-shadow: none;border-right: 1px dashed;
}header, .context-menu, .megamenu-content, footer {font-family: "PT Serif", 'Times New Roman', Times, serif;color: #1f0909;
}#megamenu-back-btn {color: #1f0909;border-color: #1f0909;
}.megamenu-menu-header #megamenu-menu-header-title:before {color: #1f0909;
}.megamenu-menu-list li a:hover, .megamenu-menu-list li a.active {color: inherit;background-color: #e8e7df;
}.long-btn:hover {background-color: #e8e7df;
}#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 {background-color: #D2D1D1;
}.btn-default {background-color: transparent;
}.typora-sourceview-on #toggle-sourceview-btn,
.ty-show-word-count #footer-word-count {background: #c7c5c5;
}#typora-quick-open {background-color: inherit;
}.md-diagram-panel {margin-top: 8px;
}.file-list-item-file-name {font-weight: initial;
}.file-list-item-summary {opacity: 1;
}.file-list-item {color: #777;
}.file-list-item.active {background-color: inherit;color: black;
}.ty-side-sort-btn.active {background-color: inherit;
}.file-list-item.active .file-list-item-file-name  {font-weight: bold;
}.file-list-item{opacity:1 !important;
}.file-library-node.active>.file-node-background{background-color: rgba(32, 43, 51, 0.63);background-color: var(--active-file-bg-color);
}.file-tree-node.active>.file-node-content{color: white;color: var(--active-file-text-color);
}.md-task-list-item>input {margin-left: -1.7em;margin-top: calc(1rem - 12px);
}input {border: 1px solid #aaa;
}.megamenu-menu-header #megamenu-menu-header-title,
.megamenu-menu-header:hover, 
.megamenu-menu-header:focus {color: inherit;
}.dropdown-menu .divider {border-color: #e5e5e5;opacity: 1;
}/* https://github.com/typora/typora-issues/issues/2046 */
.os-windows-7 strong,
.os-windows-7 strong  {font-weight: 760;
}.ty-preferences .btn-default {background: transparent;
}.ty-preferences .window-header {border-bottom: 1px dashed #202B33;box-shadow: none;
}#sidebar-loading-template, #sidebar-loading-template.file-list-item {color: #777;
}.searchpanel-search-option-btn.active {background: #777;color: white;
}.export-detail, .light .export-detail, 
.light .export-item.active, 
.light .export-items-list-control {background: #e0e0e0;border-radius: 2px;font-weight: 700;color: inherit
}

背景

打开custom文件夹,将下面的图片命名为 bg.jpg

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/795710.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

学习日历-2024/9/11

LinkList集合 底层数据结构时双链表,查询慢,首尾操作的速度是极快的,所以多了很多的首尾操作在使用迭代器或者增强for循环遍历集合的过程中,不要使用集合的方法去添加或者删除元素即可 SQL DML-添加数据 1.给指定字段添加数据 INSERT INTO 表名(字段名1,字段名2,...) VALUES(值…

真实Redmi note11t pro澎湃刷机

解决:澎湃如何刷回miui13-14系统 澎湃bl解锁后结合视频进行刷机 刷机包下载地址 刷机工具1. 备份 首先先备份当前资料小米云备份使用小米手机助手备份资料2. 澎湃bl解锁 手机打开开发者 ​​ 连接电脑usb文件传输模式 ‍ 打开澎湃bl解锁 ,双击 点我开始解锁.bat 运行以后手机会…

[python][selenium] Web UI自动化切换iframe框架以及浏览器操作切换窗口和处理弹窗

分两部分:一、页面切换iframe框架     二、浏览器操作:切换窗口、处理弹窗一、页面切换iframe框架 3种iframe的切换方法: 1、切换iframe的方法:switch_to.frame  入参有4种:  1.1、id  1.2、name  1.3、index索引  1.4、iframe元素对象 2、返回主文档(最外…

js的常用类2

1.js的常用类DOM,将js,html中的各种文档,元素,标签等等封装成方法;和类

【openmediavault】更改端口后急救方案

首先,如果你手贱改了这个 导致你登陆不了的话,不要慌 找到你的控制台,我的是树莓派 将你的树莓派设置成root模式,如果服务器本身就是root就不用设置 树莓派设置root方法sudo su然后omv-firstaid 这个界面点ok即可,加载会有点慢是正常的现象#videoTogetherLoading { touch…

Git流程学习

初始化仓库特别要注意如果初始化仓库时勾选了图中第一个红框(即添加README仓库描述),它会给出下面红框的提示即将main作为默认分支,该部分的示例以此种方式初始化仓库。 注:2020年10月后GitHub宣布新建项目的默认分支将从master逐步改为main。以前一些教程给出的命令一般都…

.NET 9 RC1 正式发布

.NET 9 RC1 是 .NET 9 的第一个候选发布版本(Release Candidate),标志着该版本接近最终发布。根据Github 上相关的内容,我们可以总结出以下几点:新功能和改进:在 .NET 9 RC1 中,引入了许多新的功能和改进。例如,ASP.NET Core 在此版本中进行了多项更新,包括 SignalR 分…

监管动态| 网络空间协会首次发布合规常用APP清单,是否会有第二批?

9月10日中国网络空间安全协会官网发布公告,协会组织指导网上购物、地图导航、浏览器、新闻资讯、在线影音、电子图书、拍摄美化、云盘、短视频、演出票务共10类62款App运营方,对照《中华人民共和国网络安全法》《中华人民共和国个人信息保护法》《常见类型移动互联网应用程序…

时间embedding

左边的公式和 time_embedding(1) 的区别在于它们表示的维度不同。公式中的左边部分是一个概括性公式,用来说明如何为每个时间步 ( t ) 生成时间嵌入。而具体的 time_embedding(1) 展示的是当 ( t = 1 ) 时,如何生成一个更长维度的时间嵌入向量。 1. 左边公式的含义: 左边的公…

微信小程序开发系列8----页面配置--事件绑定

源码获取方式(免费):(1)登录-注册:http://resources.kittytiger.cn/(2)签到获取积分(3)搜索:6-wxmlevent事件绑定

LeetCode算法—滑动窗口

纵有疾风起;人生不言弃!一:滑动窗口 滑动窗口分为定长滑动窗口和非定长滑动窗口 定义:滑动窗口的题目一般都是非定长的;一般需要定义两个指针left,right;用来限制窗口的左边界和右边界;二:LeetCode 209 长度最小的数组 (1)题目:求连续最小的字串和大于目标值的最小长…