自制typora主题
起因是本菜鸡在网上搜到的主题基本上多公式块没怎么处理,而我又是个学数学的,对于公式块用的最多,于是就自己写了一款,其中广泛借鉴了网上其他大佬制作的主题,希望诸位大佬提供建议或者拿去制作更好的主题。
(由于导出的时候阴影显得怪怪的,于是我自己就写了一个配套的样式一起放在文件夹里)
地址:
https://github.com/c-function/fk-for-typora.git
:root {
--side-bar-bg-color: #87CEFA;
--control-text-color: #777;
--mid-1: #ffffff;
--mid-2: #fafafa;
--mid-3: #f5f5f5;
--mid-4: #f0f0f0;
--mid-5: #d9d9d9;
--mid-6: #bfbfbf;
--mid-7: #8c8c8c;
--mid-8: #595959;
--mid-9: #434343;
--mid-10: #262626;
--mid-11: #1f1f1f;
--mid-12: #141414;
--mid-13: #000000;
--main-1: #fff3f0;
--main-2: #ffd4cc;
--main-3: #ffafa3;
--main-4: #ff887a;
--main-5: #ff5d52;
--main-6: #f22f27;
--main-7: #cc1616;
--main-8: #a60a0f;
--main-9: #80010a;
--main-10: #590009;
}
@include-when-export url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: normal;
src: local('Open Sans Regular'),url('./github/400.woff') format('woff')
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: normal;
src: local('Open Sans Italic'),url('./github/400i.woff') format('woff')
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: bold;
src: local('Open Sans Bold'),url('./github/700.woff') format('woff')
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: bold;
src: local('Open Sans Bold Italic'),url('./github/700i.woff') format('woff')
}
html {
font-size: 16px;
}
content {
background-image: url(./fk/01.jpg);
background-repeat: no-repeat,repeat;
background-position: -52px;
}
#write {
margin-top: 24px;
background-color: rgba(255, 255, 255, 0.68);
margin-bottom: 24px;
min-height: calc(100% - 48px);
}
body {
background-color:rgba(240,240,240,0.1);
}
#write{
max-width: 860px;
margin-top: 30px; /*top*/
margin-bottom: 30px;
padding: 100px 60px; /*t