GitHub - single column with important info on the top

Right sidebar at repository page with description and other becomes top row, quite like it used to be before 2020 redesign

当前为 2020-07-08 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name GitHub - single column with important info on the top
  3. @namespace myfonj
  4. @version 1.0.1
  5. @description Right sidebar at repository page with description and other becomes top row, quite like it used to be before 2020 redesign
  6. @author myf
  7. ==/UserStyle== */
  8. @-moz-document regexp("https?://github.com/[^?#/]+?/[^?#/]+?(?!/)") {
  9. /*
  10. GitHub - single column with important info on the top
  11. if this style
  12. */
  13. .repository-content > div {
  14. flex-direction: column-reverse !important;
  15. }
  16.  
  17. .repository-content > div > div {
  18. width: auto;
  19. }
  20.  
  21. /*
  22. for god's sake, this div should be MAIN and should be near H1 or something
  23. not suffocated at the end of the document in sidebar
  24. */
  25. .repository-content > div > div:last-child > div {
  26. display: flex;
  27. flex-direction: row;
  28. }
  29.  
  30. .repository-content > div > div:last-child > div > div > div {
  31. border: none;
  32. padding-top: 0;
  33. padding-right: 2rem;
  34. padding-bottom: 3rem;
  35. }
  36.  
  37. /* old-school */
  38. .repository-content > div > div:last-child > div > div:last-child > div {
  39. padding-right: 0;
  40. }
  41.  
  42. /* "About" heading is superfluous now */
  43. .repository-content > div > div:last-child > div > div:first-child > div > h2 {
  44. display: none;
  45. }
  46.  
  47. .repository-content > div > div:last-child > div > div:first-child > div > h2 + p {
  48. margin-top: 0 !important;
  49. }
  50.  
  51. /* shrink contributors list a bit, to give other columns more space */
  52. .repository-content > div > div:last-child > div > div > div > ul.list-style-none.d-flex {
  53. max-width: 10.1rem
  54. }
  55.  
  56. }