Various editor fixes (#160)

* Tab should move to body from heading

* Focus editor on mount, closes #156

* Closes #154 - Just went for the simple approach here, considered something more complex but this is clear

* Added body placeholder
This commit is contained in:
Tom Moor
2017-07-17 09:03:29 -07:00
committed by GitHub
parent e0d5d1bbbe
commit b6616cd05a
7 changed files with 88 additions and 11 deletions

View File

@@ -30,6 +30,18 @@
}
}
h1:first-of-type {
.placeholder {
visibility: visible;
}
}
p:first-of-type {
.placeholder {
visibility: visible;
}
}
ul,
ol {
margin: 1em .1em;
@@ -41,6 +53,10 @@
}
}
p {
position: relative;
}
li p {
display: inline;
margin: 0;
@@ -113,8 +129,10 @@
.placeholder {
position: absolute;
top: 0;
visibility: hidden;
pointer-events: none;
color: #ddd;
user-select: none;
color: #B1BECC;
}
@media all and (max-width: 2000px) and (min-width: 960px) {