GitHub Repo View Tweaks

Makes the GitHub repo redesign look less bad by reducing padding. Also adds back separators to the file list.

2020-06-24 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

  1. /* ==UserStyle==
  2. @name GitHub Repo View Tweaks
  3. @version 1.0.2
  4. @description Makes the GitHub repo redesign look less bad by reducing padding. Also adds back separators to the file list.
  5. @author udf (https://github.com/udf)
  6. @namespace https://udf.github.io
  7. @match https://github.com
  8. ==/UserStyle== */
  9.  
  10. /* Header bottom padding */
  11. .pagehead {
  12. margin-bottom: 16px !important;
  13. }
  14.  
  15. /* Navigation tabs */
  16. .UnderlineNav-item {
  17. padding: 4px 16px;
  18. }
  19.  
  20. /* File list heading */
  21. .Box-header {
  22. padding: 8px 16px;
  23. }
  24.  
  25. /* Make links to files in list blue */
  26. .Box-row .link-gray-dark {
  27. color: #0366d6 !important;
  28. }
  29.  
  30. /* Add back file list separators */
  31. .Box-row + .Box-row {
  32. border-top: 1px solid #eaecef !important;
  33. }
  34.  
  35. /* Fix list icon right padding */
  36. .Box-row>div:first-child {
  37. margin-right: 6px !important;
  38. }