mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-18 17:11:38 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
08f879f212
commit
7576d48867
74
wiki.js
74
wiki.js
@ -676,19 +676,31 @@ var data = {
|
|||||||
+' display: block;\n'
|
+' display: block;\n'
|
||||||
+'}\n'
|
+'}\n'
|
||||||
+'\n'
|
+'\n'
|
||||||
+'input[type="checkbox"][checked]~*,'
|
+'input[type="checkbox"][checked]~*,\n'
|
||||||
+'.checked {\n'
|
+'.checked {\n'
|
||||||
+' text-decoration: line-through;\n'
|
+' text-decoration: line-through;\n'
|
||||||
+'}\n'
|
+'}\n'
|
||||||
+'\n'
|
+'\n'
|
||||||
+'.button {\n'
|
+'.button {\n'
|
||||||
+' text-decoration: none;\n'
|
+' text-decoration: none;\n'
|
||||||
+' margin: 5px;\n'
|
+'}\n'
|
||||||
|
+'.button:last-child {\n'
|
||||||
|
+' margin-right: 5px;\n'
|
||||||
+'}\n'
|
+'}\n'
|
||||||
+'\n'
|
+'\n'
|
||||||
+'.separator~* {\n'
|
+'.separator~* {\n'
|
||||||
+' float: right;\n'
|
+' float: right;\n'
|
||||||
+'}\n'
|
+'}\n'
|
||||||
|
+'\n'
|
||||||
|
+'.item:hover {\n'
|
||||||
|
+' background-color: rgba(0, 0, 0, 0.05);\n'
|
||||||
|
+'}\n'
|
||||||
|
+'.item .button {\n'
|
||||||
|
+' display: none;\n'
|
||||||
|
+'}\n'
|
||||||
|
+'.item:hover .button {\n'
|
||||||
|
+' display: inline-block;\n'
|
||||||
|
+'}\n'
|
||||||
+'',
|
+'',
|
||||||
},
|
},
|
||||||
'System/settings': {
|
'System/settings': {
|
||||||
@ -725,10 +737,26 @@ var data = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'Templates/pages': {
|
'Templates/pages': {
|
||||||
text: '<macro src="../*"> [@source(./path)]<br> </macro>\n'
|
//text: '<macro src="../*"> [@source(./path)]<br> </macro>\n'
|
||||||
|
text: ''
|
||||||
|
+'<macro src="../*">'
|
||||||
|
+'<div class="item">'
|
||||||
|
+'[@source(./path)]'
|
||||||
|
+'<span class="separator"/>\n'
|
||||||
|
+'<a class="button" href="#@source(./path)/delete">×</a>'
|
||||||
|
+'</div>'
|
||||||
|
+'</macro>\n'
|
||||||
},
|
},
|
||||||
'Templates/tree': {
|
'Templates/tree': {
|
||||||
text: '<macro src="../**"> [@source(./path)]<br> </macro>\n'
|
//text: '<macro src="../**"> [@source(./path)]<br> </macro>\n'
|
||||||
|
text: ''
|
||||||
|
+'<macro src="../**">'
|
||||||
|
+'<div class="item">'
|
||||||
|
+'[@source(./path)]'
|
||||||
|
+'<span class="separator"/>\n'
|
||||||
|
+'<a class="button" href="#@source(./path)/delete">×</a>'
|
||||||
|
+'</div>'
|
||||||
|
+'</macro>\n'
|
||||||
},
|
},
|
||||||
'Templates/_raw': {
|
'Templates/_raw': {
|
||||||
text: '@source(..)',
|
text: '@source(..)',
|
||||||
@ -804,26 +832,34 @@ var data = {
|
|||||||
'Templates/todo': {
|
'Templates/todo': {
|
||||||
text: ''
|
text: ''
|
||||||
+'<div>'
|
+'<div>'
|
||||||
+'<input type="checkbox" disabled/>'
|
//+'<input type="checkbox" disabled/>'
|
||||||
// XXX select all on focus...
|
// XXX select all on focus...
|
||||||
+'<span class="raw" contenteditable tabindex="0" '
|
+'<span class="raw" contenteditable tabindex="0" '
|
||||||
+'saveto="@source(../path)/@now()" style="display:inline-block">'
|
+'saveto="@source(../path)/@now()" style="display:inline-block">'
|
||||||
+'...'
|
+'+'
|
||||||
+'</span>'
|
+'</span>'
|
||||||
+'</div>'
|
+'</div>'
|
||||||
+'<br>'
|
+'<br>'
|
||||||
+'<macro src="../*">'
|
+'<macro src="../*">'
|
||||||
+'<div class="todo-item">'
|
+'<div class="item">'
|
||||||
+'<input type="checkbox"/>'
|
+'<div>'
|
||||||
+'<include '
|
+'<input type="checkbox"/>'
|
||||||
+'class="raw" '
|
+'<include '
|
||||||
+'contenteditable tabindex="0" '
|
+'class="raw" '
|
||||||
+'style="display:inline-block" '
|
+'contenteditable tabindex="0" '
|
||||||
+'saveto="@source(./path)" '
|
+'style="display:inline-block" '
|
||||||
+'src="."'
|
+'saveto="@source(./path)" '
|
||||||
+'/>'
|
+'src="."'
|
||||||
//+'<span class="separator"/>\n'
|
+'/>'
|
||||||
+'<a class="button" href="#@source(./path)/delete">×</a>'
|
+'<span class="separator"/>\n'
|
||||||
|
+'<a class="button" href="#@source(./path)/delete">×</a>'
|
||||||
|
+'</div>'
|
||||||
|
+'<div style="padding-left: 30px">'
|
||||||
|
+'<include '
|
||||||
|
+'style="display:block" '
|
||||||
|
+'src="@source(./path)/todo" '
|
||||||
|
+'/>'
|
||||||
|
+'</div>'
|
||||||
+'</div>'
|
+'</div>'
|
||||||
+'</macro>'
|
+'</macro>'
|
||||||
+'\n',
|
+'\n',
|
||||||
@ -858,7 +894,7 @@ var data = {
|
|||||||
//+'<br>'
|
//+'<br>'
|
||||||
//*/
|
//*/
|
||||||
+'<macro src="../*">'
|
+'<macro src="../*">'
|
||||||
+'<div class="todo-item">'
|
+'<div class="item">'
|
||||||
+'<div>'
|
+'<div>'
|
||||||
+'<include '
|
+'<include '
|
||||||
+'class="raw" '
|
+'class="raw" '
|
||||||
@ -872,7 +908,7 @@ var data = {
|
|||||||
+'</div>'
|
+'</div>'
|
||||||
+'<div style="padding-left: 30px">'
|
+'<div style="padding-left: 30px">'
|
||||||
+'<include '
|
+'<include '
|
||||||
+'style="display:inline-block" '
|
+'style="display:block" '
|
||||||
+'src="@source(./path)/outline" '
|
+'src="@source(./path)/outline" '
|
||||||
+'/>'
|
+'/>'
|
||||||
+'</div>'
|
+'</div>'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user