Fossil SCM

Minor doc updates, removed some dead code.

stephan 2020-09-18 21:11 trunk
Commit 3ec33f98f7cb23e9df8a69b59560cf92fd7e0bed110e73336d3f01390e41b6e2
2 files changed +5 -2 +2 -3
+5 -2
--- src/default.css
+++ src/default.css
@@ -1437,21 +1437,24 @@
14371437
div.pikchr-wrapper.float-right.source.source-inline{
14381438
float: right;
14391439
padding: 4em;
14401440
}
14411441
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... */
14431444
div.pikchr-wrapper.source > pre.pikchr-src {
1444
- /* Source code ^^^^^^^ is visible */
1445
+ /* Source code ^^^^^^^ is visible, else it is hidden */
14451446
}
14461447
div.pikchr-wrapper:not(.source) > pre.pikchr-src {
1448
+ /* Hide sources when image is being shown. */
14471449
position: absolute !important;
14481450
opacity: 0 !important;
14491451
pointer-events: none !important;
14501452
display: none !important;
14511453
}
14521454
div.pikchr-wrapper.source > div.pikchr-svg {
1455
+ /* Hide image when sources are being shown. */
14531456
position: absolute !important;
14541457
opacity: 0 !important;
14551458
pointer-events: none !important;
14561459
display: none !important;
14571460
}
14581461
--- 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
--- src/pikchrshow.c
+++ src/pikchrshow.c
@@ -89,12 +89,12 @@
8989
** fossil.pikchr.js) that the pikchr should initially be rendered
9090
** in source code form mode (the default is to hide the source and
9191
** show the SVG).
9292
**
9393
** - 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
9696
** should be rendered "inline" (same position as the graphic), else
9797
** it is to be left-aligned.
9898
**
9999
** - PIKCHR_PROCESS_NONCE: if set, the resulting SVG/DIV are wrapped
100100
** in "safe nonce" comments, which are a fossil-internal mechanism
@@ -166,11 +166,10 @@
166166
if(zNonce){
167167
blob_appendf(pOut, "%s\n", zNonce);
168168
}
169169
if(PIKCHR_PROCESS_DIV & pikFlags){
170170
if(PIKCHR_PROCESS_DIV_CENTER & pikFlags){
171
- /*blob_append(&css, "display:block;margin:auto;", -1);*/
172171
zWrapperClass = " center";
173172
}else if(PIKCHR_PROCESS_DIV_INDENT & pikFlags){
174173
zWrapperClass = " indent";
175174
}else if(PIKCHR_PROCESS_DIV_FLOAT_LEFT & pikFlags){
176175
zWrapperClass = " float-left";
177176
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button