0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 place no-content placeholder in the correct position in firefox. (#660)

closes TryGhost/Ghost#8322
- Previously in firefox the no-content psuedo element was placed below the actual on first load (but not subsequent reloads), this update positions it in the correct place in both scenarios.
This commit is contained in:
Ryan McCarvill 2017-04-20 22:04:04 +12:00 committed by Kevin Ansfield
parent 53cbfcf9ca
commit 33b2e20927
2 changed files with 3 additions and 2 deletions

View file

@ -17,6 +17,7 @@
font-weight: bold;
font-size: 3.2rem;
line-height: 1.3em;
min-height: 1.3em;
z-index: 1;
}
@ -25,7 +26,7 @@
content: attr(data-placeholder);
color: color(var(--midgrey) l(+35%));
cursor: text;
position: absolute;
position: relative;
top: 0;
font-size: 3.2rem;
font-weight: bold;

View file

@ -1 +1 @@
<div contenteditable="true" data-placeholder="Your Post Title" class="gh-editor-title needsclick" tabindex={{tabindex}}></div>
<div contenteditable="true" data-placeholder="Your Post Title" class="gh-editor-title" tabindex={{tabindex}}></div>