Typora主题,设置代码块Mac风格三个小圆点

打造Typora主题

Typora 编辑器让人们能更简单地用Markdown语言书写文字,解决了使用传统的Markdown编辑器写文的痛点,并且界面简洁优美,实现了实时预览等功能。

1 typoa样式修改步骤

1.1 第一步打开偏好设置

在这里插入图片描述

1.2 第二步打开主题文件夹

在这里插入图片描述

2 标题添加颜色

可通过色卡app自行搭配一套笔记搭的颜色

在这里插入图片描述

在这里插入图片描述

h1 {
   
color: #0077bb; /* 将标题改为蓝色 */
}
h2{
   
color:#6A5ACD
}
h3{
   
color: rgb(26, 143, 55)
}
h4{
   
color: #87CEFA
}
h5{
   
color:#87CEFA
}
strong {
   
color:#40E0D0
}

3 表格优化

表格各行变色,宽度设置为100%(个人喜欢,可以根据个人喜好留白),表头不换行,默认样式表头很长会自动换行很丑,普通行文字自动换行,这里设置了每行不一样的颜色,如果不喜欢花里胡哨,可以简单设置几个颜色即可。

在这里插入图片描述

tbody tr:nth-child(even){
   background-color:#effaff;}
tbody tr:nth-child(odd){
   background-color:#fff1f6;}
tbody tr:nth-child(1){
   background-color:#8AE1FC;}
tbody tr:nth-child(2){
   background-color:#EFA7A7;}
tbody tr:nth-child(3){
   background-color:#FFD972;}
tbody tr:nth-child(4){
   background-color:#FCF5FC;}
tbody tr:nth-child(5){
   background-color:#F3F1EC;}
tbody tr:nth-child(6){
   background-color:#CCECD6;}
tbody tr:nth-child(7){
   background-color:#C2DDA6;}
tbody tr:nth-child(8){
   background-color:#c9af98;}
tbody tr:nth-child(9){
   background-color:#F5E5FC;}
tbody tr:nth-child(10){
   background-color:#ed8a63;}
table thead{
   
white-space:nowrap;
}
table {
   
width:100%;
table-layout:fixed !important;
word-break:break-word !important;
}

4 代码块Mac风格三个圆点

在这里插入图片描述

/* 代码块主题 */
/* 顶部 */
.md-fences {
   
    color: #c5c8c6;
    background-color: #21252b;
    border-radius: 5px;
    box-shadow: 0 10px 30px 0 rgb(0 0 0 / 40%);
    padding-top: 30px;
    font-family: monospace, 'PingFang SC', 'Microsoft YaHei';
}

.md-fences::before {
   
    background: #fc625d;
    border-radius: 50%;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
    content: ' ';
    height: 12px;
    left: 12px;
    margin-top: -20px;
    position: absolute;
    width: 12px;
}

5 主题总代码如下:

:root {
   
    --side-bar-bg-color: #fafafa;
    --control-text-color: #777;
}

@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);

/* open-sans-regular - latin-ext_latin */
@font-face {
   
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: normal;
    src: local('Open Sans Regular'), local('OpenSans-Regular'), url('./github/open-sans-v17-latin-ext_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, U+0100-024F, U+0259, U+1E00-1EFF
  • 10
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

尘缘..

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值