JonasDoebertin / kirby-visual-markdown

Visual Markdown Editor for Kirby CMS 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slightly alter fixed toolbar nehaviour to work with fixed top save button

shoesforindustry opened this issue · comments

It would be nice for the fixed toolbar to work with the fixed position save button

This can do that, it basically just drops the toolbar below the main black Kirby one...

.markdownfield-wrapper .visualmarkdown-toolbar-fixed {
...
    top: 3em;
...

Also I think I'd like my main text to stand out a little bit so I always change the font size to 1.45 or 1.5

.cm-s-visualmarkdown {
    font: 1.45em/1.45 monospace;
....

Actually may also be worth adding a bit of shadow when in fixed position, so you can see text 'going under'?

.markdownfield-wrapper .visualmarkdown-toolbar-fixed {
    box-shadow: 0 8px 6px -6px #aaaaaa;
...

screen shot 2015-08-29 at 10 07 27

screen shot 2015-08-29 at 10 10 49

As Bastian told us in the forums, the next version of the panel will include a redesigned/reworked save button. I'll make sure the sticky toolbar will works with the changes.

Right now, I guess you should just add the few lines of CSS your own, eg. via the custom panel stylesheet, to make it work with the save button modification.