Fossil SCM
Minor doc updates, removed some dead code.
Commit
3ec33f98f7cb23e9df8a69b59560cf92fd7e0bed110e73336d3f01390e41b6e2
Parent
72f8372a2c5b331…
2 files changed
+5
-2
+2
-3
+5
-2
| --- src/default.css | ||
| +++ src/default.css | ||
| @@ -1437,21 +1437,24 @@ | ||
| 1437 | 1437 | div.pikchr-wrapper.float-right.source.source-inline{ |
| 1438 | 1438 | float: right; |
| 1439 | 1439 | padding: 4em; |
| 1440 | 1440 | } |
| 1441 | 1441 | |
| 1442 | -/* For .source view, pre.pikchr-src and reveal svg.pikchr... */ | |
| 1442 | +/* For pikchr-wrapper.source mode, toggle pre.pikchr-src and | |
| 1443 | + svg.pikchr visibility... */ | |
| 1443 | 1444 | div.pikchr-wrapper.source > pre.pikchr-src { |
| 1444 | - /* Source code ^^^^^^^ is visible */ | |
| 1445 | + /* Source code ^^^^^^^ is visible, else it is hidden */ | |
| 1445 | 1446 | } |
| 1446 | 1447 | div.pikchr-wrapper:not(.source) > pre.pikchr-src { |
| 1448 | + /* Hide sources when image is being shown. */ | |
| 1447 | 1449 | position: absolute !important; |
| 1448 | 1450 | opacity: 0 !important; |
| 1449 | 1451 | pointer-events: none !important; |
| 1450 | 1452 | display: none !important; |
| 1451 | 1453 | } |
| 1452 | 1454 | div.pikchr-wrapper.source > div.pikchr-svg { |
| 1455 | + /* Hide image when sources are being shown. */ | |
| 1453 | 1456 | position: absolute !important; |
| 1454 | 1457 | opacity: 0 !important; |
| 1455 | 1458 | pointer-events: none !important; |
| 1456 | 1459 | display: none !important; |
| 1457 | 1460 | } |
| 1458 | 1461 |
| --- src/default.css | |
| +++ src/default.css | |
| @@ -1437,21 +1437,24 @@ | |
| 1437 | div.pikchr-wrapper.float-right.source.source-inline{ |
| 1438 | float: right; |
| 1439 | padding: 4em; |
| 1440 | } |
| 1441 | |
| 1442 | /* For .source view, pre.pikchr-src and reveal svg.pikchr... */ |
| 1443 | div.pikchr-wrapper.source > pre.pikchr-src { |
| 1444 | /* Source code ^^^^^^^ is visible */ |
| 1445 | } |
| 1446 | div.pikchr-wrapper:not(.source) > pre.pikchr-src { |
| 1447 | position: absolute !important; |
| 1448 | opacity: 0 !important; |
| 1449 | pointer-events: none !important; |
| 1450 | display: none !important; |
| 1451 | } |
| 1452 | div.pikchr-wrapper.source > div.pikchr-svg { |
| 1453 | position: absolute !important; |
| 1454 | opacity: 0 !important; |
| 1455 | pointer-events: none !important; |
| 1456 | display: none !important; |
| 1457 | } |
| 1458 |
| --- src/default.css | |
| +++ src/default.css | |
| @@ -1437,21 +1437,24 @@ | |
| 1437 | div.pikchr-wrapper.float-right.source.source-inline{ |
| 1438 | float: right; |
| 1439 | padding: 4em; |
| 1440 | } |
| 1441 | |
| 1442 | /* For pikchr-wrapper.source mode, toggle pre.pikchr-src and |
| 1443 | svg.pikchr visibility... */ |
| 1444 | div.pikchr-wrapper.source > pre.pikchr-src { |
| 1445 | /* Source code ^^^^^^^ is visible, else it is hidden */ |
| 1446 | } |
| 1447 | div.pikchr-wrapper:not(.source) > pre.pikchr-src { |
| 1448 | /* Hide sources when image is being shown. */ |
| 1449 | position: absolute !important; |
| 1450 | opacity: 0 !important; |
| 1451 | pointer-events: none !important; |
| 1452 | display: none !important; |
| 1453 | } |
| 1454 | div.pikchr-wrapper.source > div.pikchr-svg { |
| 1455 | /* Hide image when sources are being shown. */ |
| 1456 | position: absolute !important; |
| 1457 | opacity: 0 !important; |
| 1458 | pointer-events: none !important; |
| 1459 | display: none !important; |
| 1460 | } |
| 1461 |
+2
-3
| --- src/pikchrshow.c | ||
| +++ src/pikchrshow.c | ||
| @@ -89,12 +89,12 @@ | ||
| 89 | 89 | ** fossil.pikchr.js) that the pikchr should initially be rendered |
| 90 | 90 | ** in source code form mode (the default is to hide the source and |
| 91 | 91 | ** show the SVG). |
| 92 | 92 | ** |
| 93 | 93 | ** - PIKCHR_PROCESS_DIV_SOURCE_INLINE: adds the 'source-inline' CSS |
| 94 | -** class to the outer wrapper. If PIKCHR_PROCESS_DIV_SOURCE is | |
| 95 | -** specified, this modifier indicates that the source code view | |
| 94 | +** class to the outer wrapper. This modifier changes how the | |
| 95 | +** 'source' CSS class gets applied: with this flag, the source view | |
| 96 | 96 | ** should be rendered "inline" (same position as the graphic), else |
| 97 | 97 | ** it is to be left-aligned. |
| 98 | 98 | ** |
| 99 | 99 | ** - PIKCHR_PROCESS_NONCE: if set, the resulting SVG/DIV are wrapped |
| 100 | 100 | ** in "safe nonce" comments, which are a fossil-internal mechanism |
| @@ -166,11 +166,10 @@ | ||
| 166 | 166 | if(zNonce){ |
| 167 | 167 | blob_appendf(pOut, "%s\n", zNonce); |
| 168 | 168 | } |
| 169 | 169 | if(PIKCHR_PROCESS_DIV & pikFlags){ |
| 170 | 170 | if(PIKCHR_PROCESS_DIV_CENTER & pikFlags){ |
| 171 | - /*blob_append(&css, "display:block;margin:auto;", -1);*/ | |
| 172 | 171 | zWrapperClass = " center"; |
| 173 | 172 | }else if(PIKCHR_PROCESS_DIV_INDENT & pikFlags){ |
| 174 | 173 | zWrapperClass = " indent"; |
| 175 | 174 | }else if(PIKCHR_PROCESS_DIV_FLOAT_LEFT & pikFlags){ |
| 176 | 175 | zWrapperClass = " float-left"; |
| 177 | 176 |
| --- src/pikchrshow.c | |
| +++ src/pikchrshow.c | |
| @@ -89,12 +89,12 @@ | |
| 89 | ** fossil.pikchr.js) that the pikchr should initially be rendered |
| 90 | ** in source code form mode (the default is to hide the source and |
| 91 | ** show the SVG). |
| 92 | ** |
| 93 | ** - PIKCHR_PROCESS_DIV_SOURCE_INLINE: adds the 'source-inline' CSS |
| 94 | ** class to the outer wrapper. If PIKCHR_PROCESS_DIV_SOURCE is |
| 95 | ** specified, this modifier indicates that the source code view |
| 96 | ** should be rendered "inline" (same position as the graphic), else |
| 97 | ** it is to be left-aligned. |
| 98 | ** |
| 99 | ** - PIKCHR_PROCESS_NONCE: if set, the resulting SVG/DIV are wrapped |
| 100 | ** in "safe nonce" comments, which are a fossil-internal mechanism |
| @@ -166,11 +166,10 @@ | |
| 166 | if(zNonce){ |
| 167 | blob_appendf(pOut, "%s\n", zNonce); |
| 168 | } |
| 169 | if(PIKCHR_PROCESS_DIV & pikFlags){ |
| 170 | if(PIKCHR_PROCESS_DIV_CENTER & pikFlags){ |
| 171 | /*blob_append(&css, "display:block;margin:auto;", -1);*/ |
| 172 | zWrapperClass = " center"; |
| 173 | }else if(PIKCHR_PROCESS_DIV_INDENT & pikFlags){ |
| 174 | zWrapperClass = " indent"; |
| 175 | }else if(PIKCHR_PROCESS_DIV_FLOAT_LEFT & pikFlags){ |
| 176 | zWrapperClass = " float-left"; |
| 177 |
| --- src/pikchrshow.c | |
| +++ src/pikchrshow.c | |
| @@ -89,12 +89,12 @@ | |
| 89 | ** fossil.pikchr.js) that the pikchr should initially be rendered |
| 90 | ** in source code form mode (the default is to hide the source and |
| 91 | ** show the SVG). |
| 92 | ** |
| 93 | ** - PIKCHR_PROCESS_DIV_SOURCE_INLINE: adds the 'source-inline' CSS |
| 94 | ** class to the outer wrapper. This modifier changes how the |
| 95 | ** 'source' CSS class gets applied: with this flag, the source view |
| 96 | ** should be rendered "inline" (same position as the graphic), else |
| 97 | ** it is to be left-aligned. |
| 98 | ** |
| 99 | ** - PIKCHR_PROCESS_NONCE: if set, the resulting SVG/DIV are wrapped |
| 100 | ** in "safe nonce" comments, which are a fossil-internal mechanism |
| @@ -166,11 +166,10 @@ | |
| 166 | if(zNonce){ |
| 167 | blob_appendf(pOut, "%s\n", zNonce); |
| 168 | } |
| 169 | if(PIKCHR_PROCESS_DIV & pikFlags){ |
| 170 | if(PIKCHR_PROCESS_DIV_CENTER & pikFlags){ |
| 171 | zWrapperClass = " center"; |
| 172 | }else if(PIKCHR_PROCESS_DIV_INDENT & pikFlags){ |
| 173 | zWrapperClass = " indent"; |
| 174 | }else if(PIKCHR_PROCESS_DIV_FLOAT_LEFT & pikFlags){ |
| 175 | zWrapperClass = " float-left"; |
| 176 |