Advertisement
Guest User

Untitled

a guest
Jan 29th, 2023
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.53 KB | None | 0 0
  1. /* Wikipedia new style */
  2.  
  3.  
  4. /* make only the content have white background */
  5. .mw-page-container {
  6.     background-color: #fafbfd;
  7. }
  8. .mw-content-container {
  9.     background-color: white;
  10. }
  11. .vector-toc {
  12.     background-color: unset;
  13. }
  14. /* make the page a bit tigher */
  15. .mw-page-container {
  16.     padding-right: 1em !important;
  17.     padding-left: 1em !important;
  18. }
  19. .mw-page-container-inner {
  20.     grid-template-rows: min-content min-content min-content 1fr min-content !important;
  21.     grid-template-columns: min-content minmax(0px, 1fr) !important;
  22. }
  23. .mw-content-container {
  24.     padding: 1em 2em;
  25.     padding-left: 1em;
  26.     box-sizing: border-box;
  27.    
  28. }
  29. .mw-page-container-inner {
  30.     column-gap: 0px !important;
  31. }
  32. #mw-panel-toc {
  33.     margin-left: 0px !important;
  34.     width: 240px !important;
  35. }
  36. /* why is a blank 'site notice' used for margins..? Maybe this will break later. */
  37. #siteNotice {
  38.     margin: 6px 0 !important;
  39. }
  40.  
  41. /* initial height of the toc is only 75%, 86% fits more. YMMV */
  42. .vector-toc {
  43.     max-height: 86vh;
  44.     padding-right: 8px !important;
  45.     width: unset !important;
  46. }
  47.  
  48. /* optionally: remove top padding. This makes it unaligned, but we get more content. */
  49. /*
  50. #vector-toc-pinned-container {
  51.     padding-top: 0px !important;
  52.     margin-top: 0px !important;
  53. }
  54. */
  55.  
  56. /* remove the white toc bottom fade. I think this is for non-windows users that have hidden scrollbars? */
  57. .vector-toc:after {
  58.     content: unset !important;
  59. }
  60.  
  61. /* add a small border + radius to main content */
  62. .mw-content-container {
  63.     border-radius: 3px;
  64.     border: 1.5px solid #cbcbcb;
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement