mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 18:10:09 +00:00
notes + fix + cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e2092e808d
commit
bf8ac4e089
@ -47,30 +47,13 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor .children {
|
|
||||||
}
|
|
||||||
|
|
||||||
.editor .header,
|
|
||||||
.editor .outline {
|
|
||||||
display: block;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
padding: 1em var(--outline-padding);
|
|
||||||
padding-bottom: 1.2em
|
|
||||||
}
|
|
||||||
|
|
||||||
/* virtual empty block... */
|
|
||||||
.editor .outline:empty:after {
|
|
||||||
content: "Empty";
|
|
||||||
display: block;
|
|
||||||
font-style: italic;
|
|
||||||
color: rgba(0,0,0,0.2);
|
|
||||||
}
|
|
||||||
.editor .outline:empty:hover:after {
|
|
||||||
}
|
|
||||||
|
|
||||||
/* header */
|
/* header */
|
||||||
.editor .header {
|
.editor .header {
|
||||||
|
margin: 1em var(--outline-padding);
|
||||||
|
padding-bottom: 1.2em;
|
||||||
|
|
||||||
|
border-bottom: solid 1px rgba(0,0,0,0.15);
|
||||||
}
|
}
|
||||||
.editor .header:empty {
|
.editor .header:empty {
|
||||||
display: none;
|
display: none;
|
||||||
@ -91,6 +74,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.editor .outline {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
padding: 1em var(--outline-padding);
|
||||||
|
padding-bottom: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* virtual empty block... */
|
||||||
|
.editor .outline:empty:after {
|
||||||
|
content: "Empty";
|
||||||
|
display: block;
|
||||||
|
font-style: italic;
|
||||||
|
color: rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
.editor .outline:empty:hover:after {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.editor .outline .block {
|
.editor .outline .block {
|
||||||
position: relative;
|
position: relative;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|||||||
@ -1329,7 +1329,7 @@ var Outline = {
|
|||||||
// ...putting the same pattern in a normal group and
|
// ...putting the same pattern in a normal group and
|
||||||
// returning it works fine...
|
// returning it works fine...
|
||||||
//.replace(/(?<=[\n\h]*)(?:(?:\n|^)\s*\w*\s*::\s*[^\n]*\s*)*$/,
|
//.replace(/(?<=[\n\h]*)(?:(?:\n|^)\s*\w*\s*::\s*[^\n]*\s*)*$/,
|
||||||
.replace(/([\n\t ]*)(?:(?:\n|^)[\t ]*\w*[\t ]*::[\t ]*[^\n]*[\t ]*)+$/,
|
.replace(/([\n\t ]*)(?:(?:\n|^)[\t ]*\w+[\t ]*::[\t ]*[^\n]+[\t ]*)+$/,
|
||||||
function(match, ws){
|
function(match, ws){
|
||||||
var attrs = match
|
var attrs = match
|
||||||
.trim()
|
.trim()
|
||||||
|
|||||||
@ -51,7 +51,6 @@ var setup = function(){
|
|||||||
- BUG: mobile browsers behave quite chaotically ignoring parts of the styling...
|
- BUG: mobile browsers behave quite chaotically ignoring parts of the styling...
|
||||||
-
|
-
|
||||||
- ## ToDo:
|
- ## ToDo:
|
||||||
- crop: make path clickable
|
|
||||||
- undo
|
- undo
|
||||||
collapsed:: true
|
collapsed:: true
|
||||||
- edit stack (position, action, ...)
|
- edit stack (position, action, ...)
|
||||||
@ -112,6 +111,7 @@ var setup = function(){
|
|||||||
- empty item height is a bit off...
|
- empty item height is a bit off...
|
||||||
- search?
|
- search?
|
||||||
- _...not sure if search should be internal or external yet..._
|
- _...not sure if search should be internal or external yet..._
|
||||||
|
- DONE crop: make path clickable
|
||||||
- DONE Q: crop: should we control crop via "crop-in"/"crop-out" instead of crop/uncrop??
|
- DONE Q: crop: should we control crop via "crop-in"/"crop-out" instead of crop/uncrop??
|
||||||
- _crop-in/crop-out seems more natural..._
|
- _crop-in/crop-out seems more natural..._
|
||||||
- DONE crop: show crop path (and depth)
|
- DONE crop: show crop path (and depth)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user