jbms / sphinx-immaterial

Adaptation of the popular mkdocs-material material design theme to the sphinx documentation system
https://jbms.github.io/sphinx-immaterial/
Other
196 stars 29 forks source link

back-links in viewcode should float right? #169

Closed 2bndy5 closed 1 year ago

2bndy5 commented 1 year ago

I've been noticing that the links in the literal blocks generated by the viewcode ext are oddly placed at the beginning of the line with the xref'd signature. For example: image leads to image

Most other themes float the [docs] link to the right in a non-obstructive way, so I've been using custom CSS do achieve this:

.viewcode-block .viewcode-back {
  float: right;
}

which results in image

I was wondering if the CSS I'm using should be added to this theme's CSS.

jbms commented 1 year ago

Yeah that sounds like a good idea.

2bndy5 commented 1 year ago

FYI, I also intend to do a merge from upstream soon (which should help resolve #61)

jbms commented 1 year ago

FYI, I also intend to do a merge from upstream soon (which should help resolve #61)

That would be great!