[关闭]
@tangchao 2018-03-07T17:21:21.000000Z 字数 1492 阅读 439

定制我的 typora

工作经验


可读性

  1. 让菜单和文章的标题都编上号码
  2. 让标题表现出不同的颜色
  3. 让菜单栏更宽

file -> preference -> open customer folder

找到你选择的皮肤的 css 文件,加上以下代码即可使用

  1. .typora-node #outline-dropmenu {
  2. width: 400px !important;
  3. left: -400px;
  4. }
  5. #write {
  6. left: 400px !important;
  7. }
  8. .outline-h1>.outline-item {
  9. color: #ea8bd1;
  10. }
  11. .outline-h2>.outline-item {
  12. color: #968BEA;
  13. }
  14. .outline-h3>.outline-item {
  15. color: #8BEAB6;
  16. }
  17. .outline-h4>.outline-item {
  18. color: #9A8DBF;
  19. }
  20. .outline-h5>.outline-item {
  21. color: #8DB3BF;
  22. }
  23. .outline-item::before,
  24. .outline-item::after {
  25. display: none;
  26. }
  27. .outline-h2 {
  28. counter-increment: m2;
  29. }
  30. .outline-h2 .outline-label::before {
  31. content: counter(m2) !important;
  32. padding-right: 4px;
  33. }
  34. .outline-h3 {
  35. counter-increment: m3;
  36. }
  37. .outline-h3 .outline-label::before {
  38. content: counter(m3) !important;
  39. padding-right: 4px;
  40. }
  41. .outline-h4 {
  42. counter-increment: m4;
  43. }
  44. .outline-h4 .outline-label::before {
  45. content: counter(m4) !important;
  46. padding-right: 4px;
  47. }
  48. .outline-h5 {
  49. counter-increment: m5;
  50. }
  51. .outline-h5 .outline-label::before {
  52. content: counter(m5) !important;
  53. padding-right: 4px;
  54. }
  55. #write h1 {
  56. counter-increment: c1;
  57. counter-reset: c2;
  58. font-size: 40px;
  59. color: #ea8bd1;
  60. }
  61. #write h1::before {
  62. content: counter(c1);
  63. }
  64. #write h2 {
  65. counter-increment: c2;
  66. counter-reset: c3;
  67. font-size: 36px;
  68. color: #968BEA;
  69. }
  70. #write h2::before {
  71. content: counter(c2);
  72. }
  73. #write h3 {
  74. counter-increment: c3;
  75. counter-reset: c4;
  76. font-size: 30px;
  77. color: #8BEAB6;
  78. }
  79. #write h3::before {
  80. content: counter(c3);
  81. }
  82. #write h4, {
  83. counter-increment: c4;
  84. counter-reset: c5;
  85. font-size: 26px;
  86. color: #9A8DBF;
  87. }
  88. #write h4::before {
  89. content: counter(c4);
  90. }
  91. #write h5 {
  92. counter-increment: c5;
  93. font-size: 22px;
  94. color: #8DB3BF;
  95. }
  96. #write h5::before {
  97. content: counter(c5);
  98. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注