Typora-Drake主题

news2024/10/5 18:32:46

关于Typora-Drake主题的小调整

下载安装

下载地址:Drake (typora.io)

image-20231010164654300

  1. 点击下载跳转GitHub,下载该主题

    image-20231010164715908

  2. 下载完成安装主题

    打开主题文件夹,把下载的zip全部加压丢进去重启Typora

    image-20231010164835313

Drake主题样式小调整

打开主题文件夹,找到Drake.css文件,记事本打开Drake.css文件

image-20231010165233321

针对字体调整

  1. 字体下载地址:https://www.hanyi.com.cn/productdetail?id=2915

image-20231010165442704

  1. 下载字体后再电脑设置中搜索"字体"安装下载字体即可

image-20231010165720808

  1. 替换原本的Dreak.css

    :root {
        --side-bar-bg-color: #fff;
        --control-text-color: #777;
        --active-file-border-color: var(--drake-accent);
        --drake-accent: #e95f59;
        --drake-highlight: #d63200;
    }
    
    html {
        font-size: 15px;
    }
    
    body {
        font-family: "JetBrains Mono", Menlo, "HYZhengYuan" !important;
        color: #333333;
        -webkit-font-smoothing: auto;
        line-height: 1.6rem;
        letter-spacing: 0;
        margin: 0;
        overflow-x: hidden;
    }
    
    img {
        border-radius: 2px;
    }
    
    #write {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 30px 100px;
    }
    
    #write p {
        line-height: 1.6rem;
        word-spacing: .05rem;
    }
    
    #write > ul:first-child,
    #write > ol:first-child {
        margin-top: 30px;
    }
    
    body > *:first-child {
        margin-top: 0 !important;
    }
    
    body > *:last-child {
        margin-bottom: 0 !important;
    }
    
    a {
        color: var(--drake-highlight);
        padding: 0 2px;
    }
    
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        position: relative;
        margin-top: 3rem;
        margin-bottom: 1rem;
        font-weight: bold;
        line-height: 1.4;
        cursor: text;
        color: #273849;
    }
    
    h1:hover a.anchor,
    h2:hover a.anchor,
    h3:hover a.anchor,
    h4:hover a.anchor,
    h5:hover a.anchor,
    h6:hover a.anchor {
        text-decoration: none;
    }
    
    
    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;
    }
    
    h2 a,
    h3 a {
        color: #34495e;
    }
    
    h1 {
        padding-bottom: .4rem;
        font-size: 2.2rem;
        text-align: left;
        margin-top: 0;
        line-height: 1.3;
        border-bottom: 1px solid #2f2f2f;/*H1增加下划线*/
        display:inline-block;/*固定下划线与字体一样长*/
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.225;
        padding-bottom: 10px;
        margin-bottom: 2rem;
        border-bottom: 1px solid #eaecef;
    
    }
    
    h3 {
        font-size: 1.4rem;
        line-height: 1.43;
    }
    
    h4 {
        font-size: 1.2rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    h6 {
        font-size: 1rem;
        color: #777;
    }
    
    p,
    blockquote,
    ul,
    ol,
    dl,
    table {
        margin: 0.8em 0;
    }
    
    li > ol,
    li > ul {
        margin: 0 0;
    }
    
    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 {
        color: #304455;
        border-radius: 2px;
        padding: 10px 16px;
        background-color: #fdefee;
        position: relative;
        border-left: none;
    }
    
    /*quote block*/
    blockquote:before {
        display: block;
        position: absolute;
        content: '';
        width: 4px;
        left: 0;
        top: 0;
        height: 100%;
        background-color:var(--drake-accent);
        border-radius: 2px;
    }
    
    #write strong {
        color: #000000;
        display: inline-block;
        font-weight: normal;
        font-size: 15px;
        padding: 0 7px;
        font-weight: bold;
        /*background-color: #909090;
        border-radius: 3em;*/
    }
    
    table {
        padding: 0;
        word-break: initial;
    }
    
    table tr {
        border-top: 1px solid #dfe2e5;
        margin: 0;
        padding: 0;
    }
    
    table tr:nth-child(2n),
    thead {
        background-color: #fafafa;
    }
    
    table tr th {
        font-weight: bold;
        border: 1px solid #dfe2e5;
        border-bottom: 0;
        text-align: left;
        margin: 0;
        padding: 6px 13px;
    }
    
    table tr td {
        border: 1px solid #dfe2e5;
        text-align: left;
        margin: 0;
        padding: 6px 13px;
    }
    
    table tr th:first-child,
    table tr td:first-child {
        margin-top: 0;
    }
    
    table tr th:last-child,
    table tr td:last-child {
        margin-bottom: 0;
    }
    
    #write em {
        padding: 0 5px 0 2px;
    }
    
    #write table thead th {
        background-color: #f2f2f2;
    }
    
    #write .CodeMirror-gutters {
        border-right: none;
    }
    
    /*code block*/
    #write .md-fences {
        font-size: 1rem;
        padding: 0.5rem !important;
        border-radius: 2px;
        font-family: inherit !important;
        word-wrap: normal;
        background-color: #2b2b2b;
        color: #A9B7C6;
        border: none;
        margin-left: 2px;
        margin-right: 2px;
    }
    
    /*code snippet*/
    #write code, tt {
        margin: 0 2px;
        border-radius: 2px;
        font-family: initial !important;
        color: var(--drake-highlight);
    }
    
    /* heighlight. */
    #write mark {
        background-color: #e7ecf3;
        color: inherit;
        border-radius: 2px;
        padding: 2px 2px;
        margin: 0 2px;
    }
    
    #write del {
        padding: 1px 2px;
    }
    
    .cm-s-inner .cm-link,
    .cm-s-inner.cm-link {
        color: #22a2c9;
    }
    
    .cm-s-inner .cm-string {
        color: #22a2c9;
    }
    
    .md-task-list-item > input {
        margin-left: -1.3em;
    }
    
    @media print {
        html {
            font-size: 12px;
        }
    
        table,
        pre {
            page-break-inside: avoid;
        }
    
        pre {
            word-wrap: break-word;
        }
    }
    
    #write pre.md-meta-block {
        padding: 1rem;
        font-size: 85%;
        line-height: 1.45;
        background-color: #f7f7f7;
        border: 0;
        border-radius: 2px;
        color: #777777;
        margin-top: 0 !important;
    }
    
    .mathjax-block > .code-tooltip {
        bottom: .375rem;
    }
    
    #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: 2px;
        font-family: initial;
        padding: 2px 0 0 4px;
        color: inherit;
    }
    
    .md-tag {
        color: inherit;
    }
    
    .md-toc {
        margin-top: 20px;
        padding-bottom: 20px;
    }
    
    .sidebar-tabs {
        border-bottom: none;
    }
    
    #typora-quick-open {
        border: 1px solid #ddd;
        background-color: #f8f8f8;
    }
    
    .typora-quick-open-item {
    	font-size: 1rem !important;
    	height: 48px; 
        padding-left: 8px;
        padding-top: 4px;
    }
    
    #md-notification:before {
        top: 10px;
    }
    
    /** focus mode */
    
    .on-focus-mode blockquote {
        border-left-color: rgba(85, 85, 85, 0.12);
    }
    
    header,
    .context-menu,
    .megamenu-content,
    footer {
        font-family: initial;
    }
    
    .file-node-content:hover .file-node-icon,
    .file-node-content:hover .file-node-open-state {
        visibility: visible;
    }
    
    .mac-seamless-mode #typora-sidebar {
        background-color: #fafafa;
        font-size: 1rem;
        background-color: var(--side-bar-bg-color);
    } 
    
    .md-lang {
        color: #b4654d;
    }
    
    .html-for-mac .context-menu {
        --item-hover-bg-color: #E6F0FE;
    }
    
    
    /*insert element*/
    
    span.cm-comment {
        color: #808080 !important;
    }
    
    .ty-quick-open-category.ty-has-prev .ty-quick-open-category-title {
        border-top:none;
    }
    
    .file-list-item-summary {
        font-family: initial;
    }
    
    #typora-quick-open-input {
    	margin: 8px;
    	box-shadow:none;
    	border-radius:2px;
    }
    
    #typora-quick-open-input input {
    	font-size: 1rem;
    	box-shadow:none;
    	padding-top: 2px;
    	padding-left: 10px;
    	padding-right: 10px;
    	line-height: 32px;
    	max-height: 32px;
    }
    
    .modal-dialog#typora-quick-open{
    	border-radius: 2px;
    }
    
    .ty-quick-open-category-title {
    	padding-left: 8px;
    	color: #BEBEBE;
    }
    
    .typora-quick-open-item-path {
        font-size: 10px;
        text-overflow:ellipsis;
        white-space:nowrap
    }
    
    .outline-item {
        font-size: 1rem;
    }
    
    .sidebar-tab {
        font-size: 1rem;
    }
    
    /*footnotes mark*/
    #write .md-footnote {
        background-color: inherit;
        color: var(--drake-highlight);
        font-size: 0.9rem;
        border-radius: 0.9rem;
        padding-left: 0;
    }
    
    #write .md-footnote:before {
        content: "[";
    }
    #write .md-footnote:after {
        content: "]";
    }
    
    /*footnotes content*/
    .md-hover-tip .code-tooltip-content {
        border-radius: 2px;
    }
    
    /*footnotes title*/
    span.md-def-name {
        padding-right: 3ch;
        padding-left: 0;
        position:relative;
        font-weight: normal;
    }
    
    /*footnotes desc*/
    .footnotes {
        font-size: 1rem;
        font-weight: normal;
        color: #304455;
        position:relative;
    }
    
    /*footnotes tooltip text*/
    .code-tooltip-content .md-plain {
        font-size: 0.9rem;
        font-family: inherit;
    }
    
    .code-tooltip-content code {
        padding: 0 2px;
        font-family: inherit;
        color: #FFD760;
        background-color: inherit;
    }
    
    .code-tooltip-content a {
        color: #FFD760;
    }
    
    div.code-tooltip-content {
        box-shadow: 0 0 8px rgba(0,0,0,0.5);
    }
    
    .footnotes {
        opacity:1;
    }
    
    .md-def-name:after {
        content: ". ^";
        color: #304455;
    }
    
    .md-def-footnote .md-def-name:before {
        content: "";
        color: #304455;
        position:absolute;
    }
    
    .md-def-name:before {
        content: "";
        color: #304455;
        position:absolute;
    }
    
    .CodeMirror-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .file-list-item-summary {
        font-size: 1em;
    }
    
    .pin-outline #outline-content .outline-active strong, .pin-outline .outline-active {
        font-weight: 500;
        color: var(--drake-highlight);
    }
    
    .file-list-item.active {
        border-left: 4px solid var(--drake-accent);
    }
    
    /**
        code render
        Name: IntelliJ IDEA darcula theme
        From IntelliJ IDEA by JetBrains
     */
    /*.cm-s-inner  {  }*/
    
    .cm-s-inner.CodeMirror { background: #2B2B2B; color: #A9B7C6; }
    .cm-s-inner span.cm-meta { color: #BBB529; }
    .cm-s-inner span.cm-number { color: #6897BB; }
    .cm-s-inner span.cm-keyword { color: #CC7832; }
    .cm-s-inner span.cm-def { color: #FFD760; }
    .cm-s-inner span.cm-variable { color: #A9B7C6; }
    .cm-s-inner span.cm-variable-2 { color: #A9B7C6; }
    .cm-s-inner span.cm-variable-3 { color: #9876AA; }
    .cm-s-inner span.cm-type { color: #AABBCC; }
    .cm-s-inner span.cm-property { color: #FFC66D; }
    .cm-s-inner span.cm-operator { color: #A9B7C6; }
    .cm-s-inner span.cm-string { color: #6A8759; }
    .cm-s-inner span.cm-string-2 { color: #6A8759; }
    .cm-s-inner span.cm-comment { color: #61A151; }
    .cm-s-inner span.cm-link { color: #CC7832; }
    .cm-s-inner span.cm-atom { color: #CC7832; }
    .cm-s-inner span.cm-error { color: #BC3F3C; }
    .cm-s-inner span.cm-tag { color: #E8BF6A; }
    .cm-s-inner span.cm-quote { color: #a6e22e; }
    .cm-s-inner span.cm-attribute { color: #9876AA; }
    .cm-s-inner span.cm-qualifier { color: #6A8759; }
    .cm-s-inner span.cm-bracket { color: #E8BF6A; }
    .cm-s-inner span.cm-builtin { color: #FF9E59; }
    .cm-s-inner span.cm-special { color: #FF9E59; }
    .cm-s-inner span.cm-matchhighlight { color: #FFFFFF; background-color: rgba(50, 89, 48, .7); font-weight: normal;}
    .cm-s-inner span.cm-searching { color: #FFFFFF; background-color: rgba(61, 115, 59, .7); font-weight: normal;}
    
    .cm-s-inner .CodeMirror-cursor { border-left: 1px solid #A9B7C6; }
    .cm-s-inner .CodeMirror-gutters { background: #313335; border-right: 1px solid #313335; }
    .cm-s-inner .CodeMirror-guttermarker { color: #FFEE80; }
    .cm-s-inner .CodeMirror-guttermarker-subtle { color: #D0D0D0; }
    .cm-s-inner .CodeMirrir-linenumber { color: #606366; }
    .cm-s-inner .CodeMirror-matchingbracket { background-color: #3B514D; color: #FFEF28 !important; }
    
    .cm-s-inner .CodeMirror-selected{ background: #214283 !important; }
    .cm-s-inner .CodeMirror-selectedtext { background: #214283 !important; }
    .cm-overlay.CodeMirror-selectedtext { background: #B5D6FC !important; }
    .cm-s-inner div.CodeMirror-cursor { border-left: 1px solid #ffffff; }
    

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

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Web(2) 信息收集

一.子域名收集各工具的使用: 子域名(或子域,英语:subdomain)是在域名系统等级中,属于更高一层域的域。比如mail.example.com和calendar.example.com是example.com的两个子域,而example.com是顶…

腾讯云秒杀活动入口及活动攻略整理分享

腾讯云是国内领先的云计算服务提供商之一,其提供的云服务器、云数据库、云存储等产品备受用户青睐。为了回馈广大用户,腾讯云经常推出各种优惠活动,其中最受关注的就是秒杀活动。本文将为大家整理分享腾讯云秒杀活动的入口及活动攻略&#xf…

基于YOLOv8的施工安全帽及安全背心检测

目标检测是一项基本的计算机视觉任务。 另一方面,YOLO(You Only Look Once)是一种流行的目标检测模型,以其速度和准确性而闻名。 涉及对象检测的用例非常多样化。 其中之一是建筑工地安全。 建筑工地经理、安全官员或监管机构可以…

变量提升的常见情况总结

什么叫变量提升? 把当前上下文中带有var(提升声明)/function(提升声明定义)进行提升的声明或者定义。变量提升是将变量声明提升到它所在作用域的最开始的部分。 全局上下文中:基于var/function声明的变量,也相当于给window设置了对应的属性。 实例 1 var t 1;…

基于若依ruoyi-nbcio支持flowable流程增加自定义业务表单(三)

之前自定义业务表单只能关联自定义业务的流程应用类型,所以需要根据这个进行选择与显示 1、ProcessQuery 参数增加appType public class ProcessQuery {/*** 流程标识*/private String processKey;/*** 流程名称*/private String processName;/*** 流程分类*/priv…

2023年司钻(钻井)证模拟考试题库及司钻(钻井)理论考试试题

题库来源:安全生产模拟考试一点通公众号小程序 2023年司钻(钻井)证模拟考试题库及司钻(钻井)理论考试试题是由安全生产模拟考试一点通提供,司钻(钻井)证模拟考试题库是根据司钻&…

ES知识点全面整理

● 我们从很多年前就知道 ES6, 也就是官方发布的 ES2015 ● 从 2015 年开始, 官方觉得大家命名太乱了, 所以决定以年份命名 ● 但是大家还是习惯了叫做 ES6, 不过这不重要 ● 重要的是, ES6 关注的人非常多, 大家也会主动去关注 ● 但是从 2016 年以后, 每年官方都会出现新…

Mac电脑交互式原型设计 Axure RP 8汉化最新 for mac

Axure RP 8是一款专业且快速的原型设计工具,主要用于定义需求、规格、设计功能和界面。这款工具主要适用于用户体验设计师、交互设计师、业务分析师、信息架构师、可用性专家和产品经理等职业。 Axure RP 8的主要特性包括能够快速设计出应用软件或Web网站的线框图、…

linux_三剑客(grep,sed,awk)

前言: Bash:是一个命令处理器,运行在文本窗口中,并能执行用户直接输入的命令。 Bash还能从文件中读取Linux命令,称之为脚本。 Bash支持通配符,管道,命令替换,条件判断等逻辑控制语句。 快捷…

使用gpio子系统实现按键驱动(二)

一,gpio_keys.c介绍 Linux内核下的drivers/input/keyboard/gpio_keys.c实现了一个体系无关的GPIO按键驱动,使用此按键驱动,只需要在设备树gpio-key节点添加需要的按键子节点即可,适合于实现独立式按键驱动。 gpio-keys是基于inp…

gma 2 教程(三)坐标参考系统:1.坐标系和坐标参考系统模块简介

安装 gma:pip install gma 坐标参考系统是地理空间数据表示和位置定位的基础,它是一种用于描述和测量地球表面位置的标准化框架。其定义了坐标系统、基准面和坐标单位等要素,以确保地球上不同地方的位置可以一致、准确地表示和比较。 本章以g…

开源协议介绍

文章目录 一、简介二、常见开源协议介绍2.1 BSD (Berkeley Software Distribution license)2.2 MIT(Massachusetts Institute of Technology)2.3 Apache Licence 2.02.4 GPL(General Public License)2.5 LG…

微电网单台并网逆变器PQ控制matlab仿真模型

微❤关注“电气仔推送”获得资料(专享优惠) 微电网运行在并网模式下且公共电网供应正常时,因为公共电网给定了电 压和频率的参考值,所有的逆变器可以使用PQ控制方式。 当系统频率为额定频率f0时,系统稳定在A点&#x…

【C语言进阶(13)】文件操作

文章目录 Ⅰ 什么是文件1. 文件分类2. 文件名 Ⅱ 文本文件和二进制文件Ⅲ 文件缓冲区Ⅳ 文件的打开和关闭1. 文件指针2. 文件的打开和关闭3. 文件打开方式 Ⅴ 文件的顺序读写1. fputc 写入一个字符2. fgetc 读取一个字符3. fputs 覆盖并写入一行数据4. fgets 读取指定长度的数据…

CTR特征建模:ContextNet MaskNet(Twitter在用的排序模型)

在之前的文章中 FiBiNet&FiBiNet模型,阐述了微博在CTR特征(Embedding)重要性建模方面的一些实践方向,今天再来学习下这个方面的两个相关研究:致力于特征和特征交互精炼(refine)的ContextNet和MaskNet,其中MaskNet也是Twitter(…

STM32 PA15/JTDI 用作普通IO,烧录口不能使用问题解决

我们一般用SW调试接口 所以DEBUG选择Serial Wire 这样PA15可以用作普通IO使用。 工程中默认加上: PA13(JTMS/SWDIO).ModeSerial_Wire PA13(JTMS/SWDIO).SignalDEBUG_JTMS-SWDIO PA14(JTCK/SWCLK).ModeSerial_Wire PA14(JTCK/SWCLK).SignalDEBUG_JTCK-SWCLK

Apple 推出全球开发者资源 —— 人人能编程

近日,Apple 宣布推出 Meet with Apple Experts 开发者资源,帮助全球 Apple 开发者社区发现并参与课程、研讨会、实验室、一对一咨询等体验。 Meet with Apple Experts 初期提供超过 50 个课程、研讨会和咨询项目,并将持续提供线上和线下活动&…

深入理解强化学习——强化学习的例子

分类目录:《深入理解强化学习》总目录 为什么我们关注强化学习,其中非常重要的一个原因就是强化学习得到的模型可以有超人类的表现。 有监督学习获取的监督数据,其实是人来标注的,比如ImageNet的图片的标签都是人类标注的。因此我…

JavaScript入门——(6)对象

1、什么是对象 对象(object):JavaScript里的一种数据类型 可以理解为是一种无序的数据集合,注意数组是有序的数据集合 用来详细的描述某个事物,例如描述一个人 人有姓名、年龄、性别等信息、还有 吃饭睡觉打代码等…

Tomcat项目启动报错

java.io.IOException: java.lang.ClassCastException: Cannot cast org.springframework.web.SpringServletContainerInitializer to javax.servlet.ServletContainerInitializer解决办法:可能Tomcat版本不对,使用7.0.90版本启动报错,使用8.0…