吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 14460|回复: 111
上一主题 下一主题
收起左侧

[Windows] Typora 1.9.5 版主题适配

    [复制链接]
跳转到指定楼层
楼主
xyz349925756 发表于 2024-7-2 10:20 回帖奖励
本帖最后由 xyz349925756 于 2024-8-5 22:53 编辑

早期版本相关帖子已经失效!

修改后的样子:

大纲预览


插件部分



有需要原作者的直接去下载并配置。我禁用了很多插件项。

插件下载地址: https://github.com/obgnail/typora_plugin

上面主题基于:https://github.com/liangjingkanji/DrakeTyporaTheme

下载地址
百度链接: 链接: https://pan.baidu.com/s/1LCwkJEmmyboQ2Xm_XrlmPw?pwd=52pj 提取码: 52pj
备用蓝奏下载:https://wwo.lanzn.com/b0kn7cn5g 密码:52pj

GitHubhttps://github.com/xyz349925756/Typora-Mid   【主要更新地址】


如何使用?

  • 打开 typora 安装目录下的 resources  将  window.html  plugin 直接复制进去。(如果不会,在桌面点击 typora 图标 右键 --> 属性 --> 打开文件所在的位置   )
  • 打开style替换文件 放到  resources\style 下覆盖即可。(我升级了font-awesome-4.7.0)  window.css 文件注释了标题前面的三个斜杠颜色。
  • themes 文件是已经修改好的主题,覆盖路径 C:\Users\您的用户名\AppData\Roaming\Typora\themes  。(如果不喜欢标题样式打开主题文件前面的部分找到  h1..h6   h1 span{ ..} 这样的内容注释掉就可以了。)

字体已经包含在上面下载地址中。









免费评分

参与人数 12吾爱币 +12 热心值 +12 收起 理由
caoxuexin + 1 + 1 热心回复!
oprzhang + 1 + 1 我很赞同!
罗之一目 + 1 + 1 谢谢@Thanks!
guoruihotel + 1 + 1 谢谢@Thanks!
tsglz + 1 我很赞同!
cBetterLife + 1 + 1 谢谢@Thanks!
yangon + 1 + 1 热心回复!
tempUserName + 1 + 1 谢谢 @Thanks!
woyucheng + 1 + 1 谢谢@Thanks!
moonalong8 + 1 + 1 谢谢@Thanks!
superluck2023 + 1 + 1 谢谢@Thanks!
cyberim + 2 + 1 我很赞同!

查看全部评分

本帖被以下淘专辑推荐:

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

来自 #
 楼主| xyz349925756 发表于 2024-7-11 13:17 |楼主
其他主题可以修改下面的css 达到同样的效果
字体部分css  
[CSS] 纯文本查看 复制代码
1
2
3
4
5
6
7
8
    --monospace"FiraCode Nerd Font Mono","华康手札体W5P", Menlo, "Ubuntu Mono", Consolas, HYZhengYuan; /*代码字体*/
--text-font: "FiraCode Nerd Font Mono","华康手札体W5P"; /*正文字体*/
--title-font: "HYZhengYuan"; /*标题字体*/
--latex-font: "Fira Code Light"; /*LaTeX字体(不含英语)*/
--text-line-height: 1.6; /*正文行间距*/
--code-line-height: 1.6; /*代码块行间距*/
--p-spacing: 0.8rem; /*段间距*/
--text-size: 12px;


主题css
[CSS] 纯文本查看 复制代码
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
/* 自定义 */
span.file-node-title-name-part {
    color: #6495ed;
    font-size: 12px;
}
span.file-node-title-ext-part {
    color: #f21100;
    font-size: 12px;
}
 
/* 多元化引用 */
.md-alert-text-note .md-alert-text-container:after {
    content: "笔记";
  }
  .md-alert-text-tip .md-alert-text-container:after {
    content: "提示";
  }
  .md-alert-text-important .md-alert-text-container:after {
    content: "重要";
  }
  .md-alert-text-warning .md-alert-text-container:after {
    content: "警告";
  }
  .md-alert-text-caution .md-alert-text-container:after {
    content: "小心";
  }
 
/* 文件目录 */
.outline-item-open > .outline-item > .outline-expander:before {
    color: #2196F3;
    content: "\f261";
    font-size: 14px;
    padding-right: 4px;
}
 
span.outline-expander::before {
    content: "\f260";
    color: #F44336;
    font-size: 14px;
    padding-right: 4px;
}
.outline-expander:hover:before {
    content: "\f261";
    color: #ffc107;
    font-size: 14px;
    padding-right: 4px;
}
 
/* 标题样式 */
#top-titlebar, #top-titlebar * {
    background-color: inherit;
    /* color: inherit; */
}
span.ty-menu-btn-area-sub.ty-menu-btn-area-sub3 {
    color: green;
}
 
span.ty-menu-btn-area-sub.ty-menu-btn-area-sub2 {
    color: #4CAF50;
}
 
span.ty-menu-btn-area-sub.ty-menu-btn-area-sub1 {
    color: #E91E63;
}
 
/* 文件大纲 */
.active-tab-files #info-panel-tab-file .info-panel-tab-border, .active-tab-outline #info-panel-tab-outline .info-panel-tab-border {
    height: 1px;
    background-color: transparent;
    border-bottom: #e91e63 3px double;
}
 
 
/* 引用样式 */
.md-alert.md-alert-note {
    border-left-color: #0969da;
    background-image: linear-gradient(90deg, #0969da60, transparent);
    border-bottom: #0969da20 1px solid;
    padding: 4px 0px 0px 20px;
    border-radius: 5px 0px 0px 5px;
}
 
.md-alert.md-alert-important {
        border-left-color: #8250df;
    background-image: linear-gradient(90deg, #8250df60, transparent);
    border-bottom: #8250df20 1px solid;
    padding: 4px 0px 0px 20px;
    border-radius: 5px 0px 0px 5px;
}
.md-alert.md-alert-warning {
        border-left-color: #9a6700;
    background-image: linear-gradient(90deg, #9a670060, transparent);
    border-bottom: #9a670020 1px solid;
    padding: 4px 0px 0px 20px;
    border-radius: 5px 0px 0px 5px;
}
.md-alert.md-alert-tip {
        border-left-color: #1f883d;
    background-image: linear-gradient(90deg, #1f883d60, transparent);
    border-bottom: #1f883d20 1px solid;
    padding: 4px 0px 0px 20px;
    border-radius: 5px 0px 0px 5px;
}
.md-alert.md-alert-caution {
        border-left-color: #cf222e;
    background-image: linear-gradient(90deg, #cf222e60, transparent);
    border-bottom: #cf222e20 1px solid;
    padding: 4px 0px 0px 20px;
    border-radius: 5px 0px 0px 5px;
}
 
/* 水平线 */
hr {
    height: 1px;
    padding: 0;
    margin: 16px 0;
        background-image: linear-gradient(to left, #42a5f5,white);
    border: 0 none;
    overflow: hidden;
    box-sizing: content-box;
}
 
blockquote:before {
    display: block;
    position: absolute;
    content: '';
    width: 4px;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #2196F3;
    border-radius: 2px;
}
 
blockquote {
    /* color: #2196F3; */
    border-radius: 2px;
    padding: 10px 16px;
    background-image: linear-gradient(45deg, #03A9F460, transparent);
    position: relative;
    border-left: none;
    border-bottom: #03A9F420 1px solid;
}       
         
/* 标题         */
         
h1 {
      font-size: 2rem;
      text-align: center;
      padding: 0px;
      margin: 0px;
  }
   
  h1 span {
      border-radius: 0px 5px 0px 0px;
      padding: 0px 30px;
      border-left: 2px solid darkturquoise;
      border-top: 30px solid transparent;
      border-right: 100px solid darkorange;
      border-bottom: 1px solid darkorange;
          margin: 0px 20px;
  }
   
   
  h2 {
      border-bottom: solid 1px #f44336;
      /* border-right: solid 30px #f44336; */
      /* border-radius: 0px 30px 0px 0px; */
      padding: 0px;
      margin: 0px;
  }
   
  h2 span {
      background-image: linear-gradient(to right,#42a5f5,#f44336);
      border-radius: 0px 5px 0px 0px;
      padding: 2px 30px 2px;
      color: rgb(255, 255, 255);
      border-bottom: 1px orange;
      border-top: solid 1px white;
      }
   
   
  h3 span {
      background-image: linear-gradient(to right,#ffd800,#39f436);
      border-radius: 0px 6px 0px 0px;
      padding: 2px 30px 2px;
      color: white;
      border-top: solid 1px white;
  }       
   
  h3 {
      /* border-right: solid 30px #39f436; */
      border-bottom: dotted 1px #39f436;
      padding: 0px;
      margin: 0px;
      /* border-radius: 0px 0px 30px 0px; */
  }
   
  h4 span {
      background-image: linear-gradient(to right,#f44336,#ff9800);
      border-radius: 0px 5px 0px 0px;
      padding: 2px 30px 2px;
      color: white;
      border-top: solid 1px white;
  }
  h4 {
      border-bottom: dotted 1px #ff9800;
      padding: 0px;
      margin: 0px;
  }
   
  h5 span {
      background-image: linear-gradient(to right,#ff9800,#673AB7);
      border-radius: 0px 4px 0px 0px;
      padding: 2px 30px 2px;
      color: white;
      border-top: solid 1px white;
  }
  h5 {
      border-bottom: solid 1px #673AB7;
      border-right: dotted 20px #673AB7;
      padding: 0px;
      margin: 0px;
  }
   
  h6 span {
      background-image: linear-gradient(to right,#673AB7,#4CAF50);
      border-radius: 0px 4px 0px 0px;
      padding: 2px 30px 2px;
      color: white;
      border-top: solid 1px white;
  }
  h6 {
      border-bottom: solid 1px #4CAF50;
      border-right: dotted 18px #4CAF50;
      padding: 0px;
      margin: 0px;
  }       
 
/* 表格         */
table thead {
    background-image: linear-gradient(45deg, #428bca, transparent);
    text-align: center;
}
table tr:nth-child(1n) {
    background-image: linear-gradient(45deg, #428bca60, transparent);
}
table tr:nth-child(2n) {
    background-image: linear-gradient(45deg, #ffcc660d, transparent);
}
         
/* 自定义结束 */

免费评分

参与人数 1吾爱币 +3 热心值 +1 收起 理由
luxingyu329 + 3 + 1 热心回复!

查看全部评分

推荐
 楼主| xyz349925756 发表于 2024-7-4 23:04 |楼主
randomnany 发表于 2024-7-4 15:20
我一般是用 typora 记录,使用 docsify 浏览,很酷!

我使用了nginx ,docsify,typora 还做了一个本地搜索页导航页。
沙发
wyesheng 发表于 2024-7-2 10:27
看着好厉害,需要学习学习,感谢楼主大神啦。
3#
superluck2023 发表于 2024-7-2 10:44
这个是真漂亮,感谢分享!markdown神器!
4#
humuyun 发表于 2024-7-2 10:58
感谢分享!~~
5#
moonalong8 发表于 2024-7-2 11:13
非常好用的 谢谢
6#
lr957 发表于 2024-7-2 11:27
效果不错,感谢分享!
7#
tuablove 发表于 2024-7-2 11:33
这个要能写个js版的就好了
8#
sky8894 发表于 2024-7-2 11:37
挺酷的一个主题
9#
 楼主| xyz349925756 发表于 2024-7-2 12:07 |楼主
tuablove 发表于 2024-7-2 11:33
这个要能写个js版的就好了

不想改作者的js代码,看这个作者的代码头大。
10#
znyx 发表于 2024-7-2 12:39
感谢分享
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2025-5-17 21:39

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表