Skip to content

Conversation

@jimporter
Copy link
Contributor

This is a port of mkdocs/mkdocs#772 to the Bootswatch themes. I can provide screenshots for all the themes if you want.

The convention I used here is to use the code block's style for the light themes, and the sidebar's style for the dark themes. There are two reasons for this: 1) it looks nicer in my opinion, and 2) it works around an issue in Firefox where we need to have the link color for inline code be the same as the "normal" link color; otherwise the underline looks weird. It's a long story.

I also chose not to give a border around the inline code in the Cyborg theme because I think it looks nicer without the border.

…code

This is a port of mkdocs#772 to the Bootswatch themes.
@d0ugal
Copy link
Member

d0ugal commented Feb 28, 2016

This series of PR's looks great. I'll aim to review them in the next few days - thanks!

@jimporter
Copy link
Contributor Author

Cool! If there are any changes you want me to make, just let me know.

padding: 1px 3px;
background: #ecf0f1;
border: solid 1px #ccc;
color: #7b8a8b;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text colour here isn't great on that background. It doesn't stand out very much, I think the background should be lighter or the foreground darker.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was debating what to do here. However, that's the color the theme uses for code blocks. In practice, you only see that color when not using highlight.js though (e.g. by setting the language to be nohighlight).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's fair - it's probably okay, just a passing observation.

d0ugal added a commit that referenced this pull request Mar 2, 2016
Change the styling of inline code and allow links to colorize inline code
@d0ugal d0ugal merged commit 9cb97fd into mkdocs:master Mar 2, 2016
@d0ugal
Copy link
Member

d0ugal commented Mar 2, 2016

I went ahead and merged this anyway, but I think the Flatly theme could benefit from a tweak for the inline code. It still looks 100x better than it did before tho' 🌟

@jimporter jimporter deleted the inline-code-styling branch March 2, 2016 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants