Advertisement
dhniceday

Text colors

Jan 22nd, 2024
1,131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.40 KB | None | 0 0
  1. /* Gruvbox */
  2. :root {
  3.   --theme-dark-italic: #FABD2F;
  4.   --theme-dark-italic-font-color: #FBF1C7;
  5.   --theme-dark-bold: #cc241d;
  6.   --theme-dark-highlight-bg: #fabd2f;
  7.   --theme-dark-highlight-font: #282828;
  8.  
  9.   --theme-light-italic: #5c6166;
  10.   --theme-light-italic-font: #5C6166;
  11.   --theme-light-bold: #E65050;
  12.   --theme-light-highlight-bg: #FFD700;
  13.   --theme-light-highlight-font: #333333;
  14. }
  15.  
  16. /*
  17. Remove formatting from markdown editor
  18. */
  19.  
  20. .theme-dark,
  21. .theme-light {
  22.   --text-highlight-bg: transparent;
  23. }
  24.  
  25. span.cm-highlight {
  26.   text-decoration: none !important;
  27. }
  28.  
  29. .cm-hmd-internal-link,
  30. .cm-link,
  31. .cm-string.cm-url,
  32. .cm-hashtag {
  33.   color:var(--text-normal) !important;
  34.   border: 0px;
  35. }
  36.  
  37. .cm-hashtag {
  38.   background-color: var(--background-secondary);
  39.   border: 0px;
  40. }
  41.  
  42. .cm-em {
  43.   text-decoration: none !important;
  44. }
  45.  
  46. /*
  47. a.internal-link,
  48. a.external-link {
  49.   text-decoration: none !important;
  50.   } */
  51.  
  52. .cm-active {
  53.   background-color: var(--background-secondary);
  54. }
  55.  
  56. /* =======================================
  57.    Dark Theme
  58.    ======================================= */
  59.  
  60. /* Bold */
  61. .theme-dark .markdown-preview-section strong,
  62. .theme-dark .markdown-preview-section strong > a,
  63. .theme-dark .markdown-preview-section strong > a:hover {
  64.   text-decoration: underline;
  65.   text-decoration-style: solid;
  66.   text-underline-offset: 4px;
  67.   text-decoration-thickness: 2px;
  68.   text-decoration-color: var(--theme-dark-bold);
  69.   padding-bottom: 0px;
  70.   font-style: italic !important;
  71.   font-weight: bold !important;
  72. }
  73.  
  74. /* Italic */
  75. .theme-dark .markdown-preview-section em {
  76.   text-decoration: underline;
  77.   text-decoration-style: solid;
  78.   text-underline-offset: 4px;
  79.   text-decoration-thickness: 1px;
  80.   text-decoration-color: var(--theme-dark-italic);
  81.   padding-bottom: 0px;
  82.   font-style: italic !important;
  83.   font-weight: normal !important;
  84. }
  85.  
  86.  
  87. /* Highlight */
  88. .theme-dark .markdown-preview-view mark {
  89.   text-decoration: none;
  90.   color: var(--theme-dark-highlight-font);
  91.   font-weight: normal;
  92.   background-color: var(--theme-dark-highlight-bg);  
  93.   border-radius: 4px;
  94.   padding: 0px 2px 0px 2px;
  95.   opacity: 1;
  96. }
  97.  
  98. /* =======================================
  99.    Light Theme
  100.    ======================================= */
  101. /* Bold */
  102. .theme-light .markdown-preview-section strong,
  103. .theme-light .markdown-preview-section strong > a,
  104. .theme-light .markdown-preview-section strong > a:hover {
  105.   text-decoration: underline;
  106.   text-decoration-style: solid;
  107.   text-underline-offset: 3px;
  108.   text-decoration-thickness: 2px;
  109.   text-decoration-color: var(--theme-light-bold);
  110.   padding-bottom: 0px;
  111.   font-style: normal !important;
  112.   font-weight: 500 !important;
  113. }
  114.  
  115. /* Italic */
  116. .theme-light .markdown-preview-section em {
  117.   text-decoration: underline;
  118.   text-decoration-style: solid;
  119.   text-underline-offset: 4px;
  120.   text-decoration-thickness: 1px;
  121.   text-decoration-color: var(--theme-light-italic);
  122.   padding-bottom: 0px;
  123.   font-style: italic !important;
  124.   font-weight: normal !important;
  125. }*
  126. /*
  127. .theme-light .markdown-preview-section em {
  128.   text-decoration: underline;
  129.   text-decoration-style: solid;
  130.   text-underline-offset: 3px;
  131.   text-decoration-thickness: 2px;
  132.   text-decoration-color: var(--theme-light-italic);
  133.   padding-bottom: 0px;
  134.   font-style: italic !important;
  135.   font-weight: normal !important;
  136. }*/
  137.  
  138. /* Highlight */
  139. .theme-light .markdown-preview-view mark {
  140.   text-decoration: none;
  141.   color: var(--theme-light-highlight-font);
  142.   font-weight: normal;
  143.   background-color: var(--theme-light-highlight-bg);  
  144.   border-radius: 4px;
  145.   padding: 0px 2px 0px 2px;
  146.   opacity: 1;
  147. }
  148.  
  149. /* =======================================
  150.    Outliner Plugin
  151.    ======================================= */  
  152.  
  153. [data-type="outline"] {
  154.   /* h1 */
  155.   .tree-item > .tree-item-self {
  156.     color: var(--h1-color);
  157.   }
  158.  
  159.   /* h2 */
  160.   .tree-item .tree-item > .tree-item-self {
  161.     color: var(--h2-color);
  162.   }
  163.  
  164.   /* h3 */
  165.   .tree-item .tree-item .tree-item > .tree-item-self {
  166.     color: var(--h3-color);
  167.   }
  168.  
  169.   /* h4 */
  170.   .tree-item .tree-item .tree-item .tree-item > .tree-item-self {
  171.     color: var(--h4-color);
  172.   }
  173.  
  174.   /* h5 */
  175.   .tree-item .tree-item .tree-item .tree-item .tree-item > .tree-item-self {
  176.     color: var(--h5-color);
  177.   }
  178.  
  179.   /* h6 */
  180.   .tree-item .tree-item .tree-item .tree-item .tree-item .tree-item > .tree-item-self {
  181.     color: var(--h6-color);
  182.   }
  183. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement