当前位置:网站首页>Joplin实现样式更改
Joplin实现样式更改
2022-06-30 11:55:00 【小小工程员】
1. 首先,参考了一些教程和优秀网址
2. 效果展示
3. 使用方法:
Joplin的配置路径:
userstyle.css内则是可以自己编写的样式表(可以将下面代码拷贝到里面),自行添加的newsprint文件夹则是本次自行放置的字体。
4. 自行更改了一部分颜色,使其在暗主题下能够显示清晰,同时结合了侧边目录。
/*本代码会在我使用过程中不断更新,尽量拷贝使用这个代码到userstyle.css中,且颜色位置我已注释,可自行更改为自己喜欢的颜色*/
/*@time: 2022年6月23日,修改单行注释背景色,使其在暗主题下更明显*/
@font-face {
font-family: 'PT Serif';
font-style: normal;
font-weight: normal;
src: local('PT Serif'), local('PTSerif-Regular'), url('./newsprint/pt-serif-v9-latin-regular.woff') format('woff');
}
@font-face {
font-family: 'PT Serif';
font-style: italic;
font-weight: normal;
src: local('PT Serif'), local('PTSerif-Italic'), url('./newsprint/pt-serif-v9-latin-italic.woff') format('woff');
}
@font-face {
font-family: 'PT Serif';
font-style: normal;
font-weight: bold;
src: local('PT Serif'), local('PTSerif-Bold'), url('./newsprint/pt-serif-v9-latin-700.woff') format('woff');
}
@font-face {
font-family: 'PT Serif';
font-style: italic;
font-weight: bold;
src: local('PT Serif'), local('PTSerif-BoldItalic'), url('./newsprint/pt-serif-v9-latin-700italic.woff') format('woff');
}
html {
font-size: 16px;
color: #1f0909;
}
body {
font-family: "PT Serif", 'Times New Roman', Times, serif;
/*-webkit-font-smoothing: antialiased;*/
line-height: 1.6rem;
/*font-size: 0.5rem*/
letter-spacing: 0;
margin: 0;
overflow-x: hidden;
color: #F4F5F0; /*body,文本颜色*/
}
p{
font-size: 1.0rem
}
ol,ul{
/*ol:有序列表, ol:无序列表 */
font-size: 1.0rem
}
body > *:first-child {
margin-top: 0 !important;
}
body > *:last-child {
margin-bottom: 0 !important;
}
a {
/*a :链接属性*/
color: #FF6900;
font-weight: 600;
padding: 0 2px;
text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
/*标题*/
position: relative;
margin-top: 1rem;
margin-bottom: 1rem;
font-weight: bold;
line-height: 1.4;
cursor: text;
color: #72D1DF; /*标题颜色。蓝绿色*/
}
h1 tt, h1 code {
font-size: inherit !important;
}
h2 tt, h2 code {
font-size: inherit !important;
}
h3 tt, h3 code {
font-size: inherit !important;
}
h4 tt, h4 code {
font-size: inherit !important;
}
h5 tt, h5 code {
font-size: inherit !important;
}
h6 tt, h6 code {
font-size: inherit !important;
}
/*下面是标题链接的颜色*/
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a{
/*color: #42b983;*/
color: #9AFF1C;
}
h1 {
padding-bottom: .4rem;
font-size: 1.8rem;
line-height: 1.3;
font-style: normal;
border-bottom: none;
}
h2 {
font-size: 1.6rem;
line-height: 1.225;
margin: 35px 0 15px;
padding-bottom: 0.5em;
border-bottom: 1px solid #ddd;
font-style: normal;
}
h3 {
font-size: 1.4rem;
/*line-height: 1.43;*/
margin: 20px 0 7px;
font-style: normal;
}
h4 {
font-size: 1.3rem;
font-style: normal;
}
h5 {
font-size: 1.2rem;
font-style: normal;
}
h6 {
font-size: 1.1rem;
/*color: #777;*/
font-style: normal;
}
p, blockquote, ul, ol, dl, table {
/*table:表格*/
margin: 0.8em 0;
}
li > ol, li > ul {
margin: 0 0;
}
p pre {
border: none;
}
hr {
height: 2px;
padding: 0;
margin: 16px 0;
/* background-color: #e7e7e7; */
border: 0 none;
overflow: hidden;
box-sizing: content-box;
}
body > h2:first-child {
margin-top: 0;
padding-top: 0;
}
body > h1:first-child {
margin-top: 0;
padding-top: 0;
}
body > h1:first-child + h2 {
margin-top: 0;
padding-top: 0;
}
body > h3:first-child, body > h4:first-child, body > h5:first-child, body > h6:first-child {
margin-top: 0;
padding-top: 0;
}
a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
margin-top: 0;
padding-top: 0;
}
h1 p, h2 p, h3 p, h4 p, h5 p, h6 p {
margin-top: 0;
}
li p.first {
display: inline-block;
}
ul, ol {
padding-left: 30px;
}
ul:first-child, ol:first-child {
margin-top: 0;
}
ul:last-child, ol:last-child {
margin-bottom: 0;
}
blockquote {
border-left: 4px solid #42b983;
/*padding: 10px 10px;*/
color: #2B3F52;
background-color: #0033A0; /*块引用*/
border-left-color: #ECF0F3;
}
p code{
border: none !important;
color: #ff6666;
background-color: #0033A0 !important; /*单行,代码块背景色*/
/*border: none;*/
}
strong {
color:#FF9933; /*加粗字体颜色*/
size: 100px;
margin: 0em;
font-size: inherit;
/*font-style: italic;*/
}
@media print {
html {
font-size: 13px;
}
table, pre {
page-break-inside: avoid;
}
pre {
word-wrap: break-word;
}
h1,h2,h3,h4,h5,h6 {
color: #336699;
page-break-inside: avoid;
page-break-after: avoid;
}
img {
page-break-inside:avoid;
page-break-after:avoid;
}
table,pre {
page-break-inside:avoid}
ul,ol,dl{
page-break-before:avoid}
a{
page-break-inside:avoid}
blockquote {
page-break-inside: avoid;}
}
/* 侧边栏效果 */
nav.table-of-contents>ul {
top: 0;
right: 0;
position: fixed;
z-index: var(--z-toc);
background: var(--dark-grey);
padding: var(--base-size-8);
border-radius: var(--base-size-4);
max-width: 30%;
font-size: var(--base-size-10);
max-height: var(--base-size-272);
overflow: scroll;
opacity: 0.6;
}
nav.table-of-contents ul {
list-style-type: none;
margin-left: var(--base-size-4);
}
nav.table-of-contents li {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 0;
}
nav.table-of-contents li a {
padding: 0;
}
@media all and (min-width: 920px) {
nav.table-of-contents>ul {
height: 100%;
max-height: 100%;
}
#rendered-md {
width: 75%;
}
}
5. 打包地址:
可以自行下载放入上面所述的joplin路径文件入口:
(yunpan链接:https://pan.baidu.com/s/1kWxH3k0YinPrLvZEB3bshA?pwd=3tg9
提取码:3tg9
–来自百度网盘超级会员V8的分享)
(
cadn:https://download.csdn.net/download/qq_20467929/85748956
)
边栏推荐
- R language ggplot2 visualization: gganimate package is based on Transition_ Time function to create dynamic scatter animation (GIF)
- 论文解读(AGC)《Attributed Graph Clustering via Adaptive Graph Convolution》
- Redis6学习笔记-第二章-Redis6的基本操作
- R语言ggplot2可视化:使用ggplot2可视化散点图、在geom_point参数中设置show_legend参数为FALSE配置不显示图例信息
- 使用深度学习进行生物网络分析
- 麒麟软件韩乃平:数字中国建设需要自己的开源根社区
- Yolov5 export the pit encountered by onnx
- 对象映射 - Mapping.Mapster
- VScode选中多个单词
- Redis - ziplist compressed list
猜你喜欢
Map集合
Limited time appointment | Apache pulsar Chinese developer and user group meeting in June
c# 怎样能写个sql的解析器
聊聊怎么做硬件兼容性检测,快速迁移到openEuler?
「运维有小邓」用户个人资料管理
wallys/3 × 3 MIMO 802.11ac Mini PCIe Wi-Fi Module, QCA9880, 2,4GHz / 5GHzDesigned for Enterprise
Conference Preview - Huawei 2012 lab global software technology summit - European session
Swagger2自动生成APi文档
Use of redis in projects
Talk about how to do hardware compatibility testing and quickly migrate to openeuler?
随机推荐
DMA controller 8237a
[cf] 803 div2 A. XOR Mixup
Typescript readonlyarray (read only array type) details
In depth analysis of Apache bookkeeper series: Part 4 - back pressure
VScode选中多个单词
智慧法院新征程,无纸化办公,护航智慧法院绿色庭审
The sci-fi ideas in these movies have been realized by AI
【模式识别大作业】
[cf] 803 div2 B. Rising Sand
构造函数、类成员、析构函数调用顺序
并行接口8255A
beego开发博客系统学习(二)
R语言ggplot2可视化:使用ggplot2可视化散点图、在geom_point参数中设置show_legend参数为FALSE配置不显示图例信息
会议预告 | 华为 2012 实验室全球软件技术峰会-欧洲分会场
R language ggplot2 visualization: use ggplot2 to visualize the scatter diagram and use scale_ x_ The log10 function configures the value range of the X axis to be logarithmic coordinates
爱可可AI前沿推介(6.30)
Flutter 从零开始 006 单选开关和复选框
TypeScript ReadonlyArray(只读数组类型) 详细介绍
nvm安装node后,在使用npm指令时候显示不是内部或外部指令
3D视觉检测在生产流水的应用有哪些