Gmail Quick Links Extension Mods for new Gmail

Adjusts the quick links extension to fit within Gmail's visual look

  1. /* ==UserStyle==
  2. * @name Gmail Quick Links Extension Mods for new Gmail
  3. * @namespace http://github.com/exterrestris
  4. * @description Adjusts the quick links extension to fit within Gmail's visual look
  5. * @version 0.4.0
  6. ==/UserStyle== */
  7.  
  8. @namespace url(http://www.w3.org/1999/xhtml);
  9.  
  10. @-moz-document domain("mail.google.com") {
  11. #gmailQuickLinksContainer {
  12. display: block !important;
  13. }
  14.  
  15. #gmailQuickLinks {
  16. width: 240px;
  17. }
  18.  
  19. #gmailQuickLinks .r {
  20. font-size: 80%;
  21. }
  22.  
  23. #gmailQuickLinks .r :first-child {
  24. opacity: 0;
  25. }
  26.  
  27. #gmailQuickLinks .pU {
  28. white-space: nowrap;
  29. margin-left: 70px;
  30. }
  31.  
  32. #gmailQuickLinks #listContainer > div, #gmailQuickLinks #listContainer {
  33. padding-left: 0 !important;
  34. }
  35.  
  36. #gmailQuickLinks #listContainer > div > div {
  37. position: relative;
  38. padding-left: 58px;
  39. padding-right: 9px;
  40. height: 32px;
  41. display: flex;
  42. align-items: center;
  43. }
  44.  
  45. #gmailQuickLinks #listContainer > div > div::before, #gmailQuickLinks #listContainer > div > div::after {
  46. content: '';
  47. position: absolute;
  48. display: block;
  49. pointer-events: none;
  50. }
  51.  
  52. #gmailQuickLinks #listContainer > div > div::before {
  53. left: 27px;
  54. top: -2px;
  55. width: 18px;
  56. height: 18px;
  57. transform: translateY(50%);
  58. background: #ccc url('https://ssl.gstatic.com/ui/v1/icons/mail/pimages/2/search_white.png');
  59. z-index: 2;
  60. border-radius: 4px;
  61. }
  62.  
  63. #gmailQuickLinks #listContainer > div > div::after {
  64. border-radius: 16px;
  65. transition: border-radius .15s cubic-bezier(0.4,0.0,0.2,1),margin .15s cubic-bezier(0.4,0.0,0.2,1),width .15s cubic-bezier(0.4,0.0,0.2,1);
  66. }
  67.  
  68. #gmailQuickLinks #listContainer > div > div:hover::after {
  69. background-color: #f1f3f4;
  70. height: 32px;
  71. width: 32px;
  72. top: 0;
  73. left: 20px;
  74. }
  75.  
  76. .bhZ.bym #gmailQuickLinks #listContainer > div > div::after {
  77. margin: 0 -36px;
  78. width: 256px;
  79. }
  80.  
  81. #gmailQuickLinks #listContainer .n0 {
  82. text-decoration: none !important;
  83. font-size: 14px;
  84. color: inherit !important;
  85. flex: 1 1 0;
  86. display: inline-block;
  87. margin-left: -60px;
  88. height: 32px;
  89. line-height: 32px;
  90. padding-left: 66px;
  91. z-index: 3;
  92. }
  93.  
  94. .bhZ:not(.bym) #gmailQuickLinks .po, .bhZ:not(.bym) #gmailQuickLinks .r, .bhZ:not(.bym) #gmailQuickLinks #listContainer > div > div > * {
  95. opacity: 0;
  96. }
  97.  
  98. #gmailQuickLinks #listContainer > div > div > span {
  99. float: none;
  100. flex: none;
  101. z-index: 3;
  102. margin-left: 3px;
  103. display: none;
  104. }
  105.  
  106. #gmailQuickLinks #listContainer > div > div:hover > span {
  107. display: block;
  108. }
  109.  
  110. #gmailQuickLinks #listContainer > div > div > .clear {
  111. display: none;
  112. }
  113.  
  114. #gmailQuickLinks #listContainer > div {
  115. white-space: nowrap;
  116. overflow: hidden;
  117. }
  118. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址