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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user