simov před 1 rokem
rodič
revize
527e8c1b78
4 změnil soubory, kde provedl 11 přidání a 2 odebrání
  1. 2 1
      README.md
  2. 7 1
      content/themes.css
  3. 1 0
      manifest.chrome.json
  4. 1 0
      manifest.firefox.json

+ 2 - 1
README.md

@@ -80,7 +80,7 @@ The `auto` option on the `github` and `github-dark` themes has a fixed width wit
 
 > Your custom theme will be minified automatically on upload and it can be up to 8KB in size.
 
-> You can add `<link rel="stylesheet" type="text/css" href="file:///home/me/custom-theme.css">` to your markdown document to speed up development while working on your theme.
+> You can add `<link rel="stylesheet" type="text/css" href="file:///home/me/custom-theme.css">` to your markdown document to speed up development while working on your theme. Custom theme [example][custom-theme].
 
 ---
 
@@ -389,6 +389,7 @@ SOFTWARE.
   [mv2]: https://github.com/simov/markdown-viewer/tree/mv2
   [compilers-mv2]: https://github.com/simov/markdown-viewer/tree/compilers-mv2
   [firefox-docs]: https://github.com/simov/markdown-viewer/blob/main/firefox.md
+  [custom-theme]: https://gist.github.com/simov/2a074a1c0123e6ba4bc2bfa6a67d3203
 
   [syntax-github]: https://github.com/simov/markdown-syntax
   [syntax-gitlab]: https://gitlab.com/simovelichkov/markdown-syntax

+ 7 - 1
content/themes.css

@@ -171,7 +171,13 @@
 ._theme-semantic a:active { color: #ff0000; }
 
 /*---------------------------------------------------------------------------*/
-/*mermaid pan/zoom*/
+/*mermaid*/
+._theme-mini code { line-height: normal; }
+._theme-tacit * { max-width: none; }
+._theme-kacit * { max-width: none; }
+
+/*---------------------------------------------------------------------------*/
+/*panzoom*/
 
 ._theme-mini pre > code.mermaid { padding: 0; }
 ._theme-superstylin pre > code.mermaid { background: none; padding: 0; margin: 0; border-radius: 0; }

+ 1 - 0
manifest.chrome.json

@@ -38,6 +38,7 @@
         "<all_urls>"
       ],
       "resources": [
+        "/content/anchor.svg",
         "/icons/default/16x16.png",
         "/icons/dark/16x16.png",
         "/icons/light/16x16.png",

+ 1 - 0
manifest.firefox.json

@@ -60,6 +60,7 @@
         "<all_urls>"
       ],
       "resources": [
+        "/content/anchor.svg",
         "/icons/default/16x16.png",
         "/icons/dark/16x16.png",
         "/icons/light/16x16.png",