mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 00:21:40 +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'
|
||||
+'}\n'
|
||||
+'\n'
|
||||
+'input[type="checkbox"][checked]~*,'
|
||||
+'input[type="checkbox"][checked]~*,\n'
|
||||
+'.checked {\n'
|
||||
+' text-decoration: line-through;\n'
|
||||
+'}\n'
|
||||
+'\n'
|
||||
+'.button {\n'
|
||||
+' text-decoration: none;\n'
|
||||
+' margin: 5px;\n'
|
||||
+'}\n'
|
||||
+'.button:last-child {\n'
|
||||
+' margin-right: 5px;\n'
|
||||
+'}\n'
|
||||
+'\n'
|
||||
+'.separator~* {\n'
|
||||
+' float: right;\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': {
|
||||
@ -725,10 +737,26 @@ var data = {
|
||||
},
|
||||
|
||||
'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': {
|
||||
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': {
|
||||
text: '@source(..)',
|
||||
@ -804,26 +832,34 @@ var data = {
|
||||
'Templates/todo': {
|
||||
text: ''
|
||||
+'<div>'
|
||||
+'<input type="checkbox" disabled/>'
|
||||
//+'<input type="checkbox" disabled/>'
|
||||
// XXX select all on focus...
|
||||
+'<span class="raw" contenteditable tabindex="0" '
|
||||
+'saveto="@source(../path)/@now()" style="display:inline-block">'
|
||||
+'...'
|
||||
+'+'
|
||||
+'</span>'
|
||||
+'</div>'
|
||||
+'<br>'
|
||||
+'<macro src="../*">'
|
||||
+'<div class="todo-item">'
|
||||
+'<input type="checkbox"/>'
|
||||
+'<include '
|
||||
+'class="raw" '
|
||||
+'contenteditable tabindex="0" '
|
||||
+'style="display:inline-block" '
|
||||
+'saveto="@source(./path)" '
|
||||
+'src="."'
|
||||
+'/>'
|
||||
//+'<span class="separator"/>\n'
|
||||
+'<a class="button" href="#@source(./path)/delete">×</a>'
|
||||
+'<div class="item">'
|
||||
+'<div>'
|
||||
+'<input type="checkbox"/>'
|
||||
+'<include '
|
||||
+'class="raw" '
|
||||
+'contenteditable tabindex="0" '
|
||||
+'style="display:inline-block" '
|
||||
+'saveto="@source(./path)" '
|
||||
+'src="."'
|
||||
+'/>'
|
||||
+'<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>'
|
||||
+'</macro>'
|
||||
+'\n',
|
||||
@ -858,7 +894,7 @@ var data = {
|
||||
//+'<br>'
|
||||
//*/
|
||||
+'<macro src="../*">'
|
||||
+'<div class="todo-item">'
|
||||
+'<div class="item">'
|
||||
+'<div>'
|
||||
+'<include '
|
||||
+'class="raw" '
|
||||
@ -872,7 +908,7 @@ var data = {
|
||||
+'</div>'
|
||||
+'<div style="padding-left: 30px">'
|
||||
+'<include '
|
||||
+'style="display:inline-block" '
|
||||
+'style="display:block" '
|
||||
+'src="@source(./path)/outline" '
|
||||
+'/>'
|
||||
+'</div>'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user