Skip to content

Commit

Permalink
lots of fixes + started major refactoring...
Browse files Browse the repository at this point in the history
Signed-off-by: Alex A. Naanou <[email protected]>
  • Loading branch information
flynx committed Oct 13, 2023
1 parent 53ad572 commit 4690bc0
Show file tree
Hide file tree
Showing 3 changed files with 289 additions and 112 deletions.
22 changes: 18 additions & 4 deletions experiments/outline-editor/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,23 @@
display: block;
position: relative;

/* XXX do a better calculation... */
width: calc(100% - var(--button-size) - var(--outline-padding) * 2);

padding-left: var(--outline-padding);
padding-right: var(--outline-padding);
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 {
position: relative;
outline: none;
Expand Down Expand Up @@ -110,6 +120,7 @@
pointer-events: none;
}
/* block hover... */
.editor .outline:empty:hover:after,
.editor .outline .block:hover>.view {
background: linear-gradient(
90deg,
Expand All @@ -127,6 +138,7 @@
}
/* clickable things in view */
.editor .outline .block>.view a,
.editor .outline .block>.view pre,
.editor .outline .block>.view input {
pointer-events: auto;
}
Expand All @@ -138,7 +150,7 @@ editor .outline .block:focus {
outline: none;
}
.editor .outline .block:focus>.text {
background: rgba(0,0,0,0.1);
background: rgba(0,0,0,0.07);
}
.editor .outline .block.focused:not(:focus)>.text {
background: rgba(0,0,0,0.01);
Expand Down Expand Up @@ -464,11 +476,13 @@ editor .outline .block:focus {
font-family: monospace;
background: rgba(0,0,0,0.07);
border-radius: 0.2em;
outline: none;
}
.editor .outline .block>.view pre>code {
display: block;
padding: 0.6em 0.6em;
padding-bottom: 0.8em;
outline: none;
}


Expand Down
Loading

0 comments on commit 4690bc0

Please sign in to comment.