Dokka Style Improvements Discussion #4024
Labels
enhancement
An issue for a feature or an overall improvement
html: frontend
An issue/PR that only or primarily requires frontend work (html/css)
I believe that there are some improvements that could be made to the presentation of the documentation for dokka, so this is a master issue to discuss some of those changes that I would like to see.
If it is decided that any should be added, then I can make a PR with them.
I made a PR with some of these changes a while back, however I think it's probably best to discuss them further, as well as any other possible changes.
I currently have a dokka plugin which applies these changes, however I think these are all very good candidates to be merged into dokka directly.
Here are some of the changes I'd like to propose:
Highlight Entire Sidebar Row on Hover
Currently, when you hover over a row in the sidebar, then it will only highlight part of the row:
However, I believe that it looks better if the entire row is highlighted when hovered:
CSS Changes
Thin Scrollbar
Currently, I find the scrollbar a bit invasive. (and also, the css to modify the scrollbar currently does not work, as if
scrollbar-color
is set, then additional customization to the scrollbar does not seem to apply)Before:

After:

CSS Changes
Purple Sidebar Highlight
I think purple fits the "kotlin" theme a bit better than blue. But, even better than purple would be if it could be customized by the user.
Here's an example of what it would look like in purple:
If you do not wish to make this directly configureable in the gradle plugin, then it would be nice if it could at the very least be made easier to change using a named css variable for this colour as well as the hovered colour.
Currently, it does have a css variable, however it is named
--color-key-blue
, and it would be sub-par to override that as it is used in other places (the hover colour does not have a css variable).Something along the lines of
--highlight-color
and--highlight-color-hovered
would be great.Add
color-scheme
CSS PropertyCurrently, when set to dark mode, the
color-scheme: dark
css property is missing. This causes things like checkboxes to render weird.Very simple fix is to just add
Better Block Quotes
Currently, I find that block quotes don't look the best. They are hard to distinguish from the rest of the text, and the bar to the right is hard to see & doesn't look the best.
Here are 2 improvements (both can be used at the same time), which make it look slightly better:
Distinguished Block Quote Text
Makes block quote text easier to distinguish from the rest of the content.
Before:

After:

CSS Changes
Distinguished Block Quote Text
Makes block quote text easier to distinguish from the rest of the content.
Before:

After:

CSS Changes
Section Tab Border
Rounds off the corners on the section tab border.
Before:

After:

CSS Changes
More Compact Sidebar
I find the current sidebar to have way too much padding. I believe that a more compact sidebar would be much nicer.
Before:

After:

CSS Changes
Disable Codeblock Wrapping
Currently, codeblocks will wrap long lines, which I find to be unintuitive and not expected.
Before:

After:

Very simple change, which only requires the addition of the following:
The text was updated successfully, but these errors were encountered: