Skip to content

Default mono formatting misaligns against other font types. #57

@gnp-x

Description

@gnp-x

I noticed when posting with the default mono font, it doesn't follow the alignment of posts that you see written through the web interface, or the other font options of the wf cli. Using mono in the web interface aligns correctly, however. The only offender is when using the default mono option in the cli.

It kinda looks like this...

     all-other-posts

cli-mono-post

     all-other-posts

My hacky fix was to edit the write.css file with the following to the end.

body#collection article.h-entry.mono {
  max-width: 40em !important;
  margin: 0 auto;
}

/* Post and subpage views use 40rem */
body#post article.h-entry.mono,
body#subpage article.h-entry.mono {
  max-width: 40rem !important;
  margin: 0 auto;
}

This forces the cli-written mono post to align just like all the posts.

But this inconsistency would be better handled in the pre-compiled code, which is why I am putting this issue here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions