You've probably seen the new styling of MetaCPAN by now. One anonymous monk is less than enthralled. It's not all bad, IMHO and will hopefully improve over time. Meanwhile here is the little snippet of userContent.css which I've put together today to restore a little sanity.
Update 6th Oct 2022 with a fix for the search results and similar one-pane pages:
@-moz-document url-prefix(https://metacpan.org/) { div.page-content { grid-template-columns: 200px calc(100vw - 200px +) !important; } .no-sidebar div.page-content { grid-template-columns: 1fr !importa +nt; } ul.nav-list { padding: 10px !important; width: 200px !important } ul.nav-list>li a, ul.dependencies>li>a { color: #337ab7 !important + } div.content { padding: 20px !important } #index-container { margin-left: 20px !important } }
Original attempt was:
@-moz-document url-prefix(https://metacpan.org/) { div.page-content { grid-template-columns: 200px calc(100vw - 200px +) !important; } ul.nav-list { padding: 10px !important; width: 200px !important } ul.nav-list>li a, ul.dependencies>li>a { color: #337ab7 !important + } div.content { padding: 20px !important } #index-container { margin-left: 20px !important } }
This will:
We'll see how much this needs tweaking over the next little while but at least if you are interested in this it saves us all reverse-engineering it independently.
The new layout proposal and discussion is in the issues here.
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CSS mods for the new metacpan layout
by Anonymous Monk on Oct 05, 2022 at 10:34 UTC |