You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe we should just get rid of position: absolute, and instead make the link span take up space, and remove left margin.
When doing this, also make the entire height of the margin into a link to the current element. Maybe hightlight that instead of the element itself when currently selected #.
The text was updated successfully, but these errors were encountered:
There is one remaining problem: vertical margins don't collapse across
toplevel elements so e.g. if we have a list at the end of a paragraph,
then the next paragraph gets a lot of vertical separation from the previous
one. This would solve it but no one found out how:
https://stackoverflow.com/questions/12477272/select-recursive-last-child-possibleFix#13
cirosantilli
changed the title
Paragraph on hover ID buttons to left not showing up on live editor
Paragraph on hover ID buttons to left not showing up on live editor/absolute positioning generating a toplevel scrollbar on header hover
Aug 3, 2020
Almost fully working prototype at: https://github.com/cirosantilli/cirodown/tree/flex-hoverlinks
https://cirosantilli.com/cirodown/editor
cirodown cedbac7
Also image is too indented right.
Edit: if we remove the it starts showing (rendered output has to be direct child of
class=cirodown
element, but it shows to the left of the editor.position: absolute
fromcirodown.css
is not playing well with the parentflex
set in the editor output.Related:
Maybe we should just get rid of
position: absolute
, and instead make the link span take up space, and remove left margin.When doing this, also make the entire height of the margin into a link to the current element. Maybe hightlight that instead of the element itself when currently selected
#
.The text was updated successfully, but these errors were encountered: