Gmail Quick Links Extension Mods for new Gmail

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

目前为 2020-10-31 提交的版本。查看 最新版本

/* ==UserStyle==
 * @name         Gmail Quick Links Extension Mods for new Gmail
 * @namespace    http://github.com/exterrestris
 * @version      0.3.0
 * @match        https://mail.google.com/*
@description Adjusts the quick links extension to fit within Gmail's visual look
 ==/UserStyle== */

@namespace url(http://www.w3.org/1999/xhtml);

#gmailQuickLinksContainer {
  display: block !important;
}

#gmailQuickLinks {
  width: 240px;
}

#gmailQuickLinks .r {
  font-size: 80%;
}

#gmailQuickLinks .r :first-child {
  opacity: 0;
}

#gmailQuickLinks .pU {
  white-space: nowrap;
  margin-left: 70px;
}

#gmailQuickLinks #listContainer > div, #gmailQuickLinks #listContainer {
  padding-left: 0 !important;
}

#gmailQuickLinks #listContainer > div > div {
  position: relative;
  padding-left: 58px;
  padding-right: 10px;
  height: 32px;
  display: flex;
  align-items: center;
}

#gmailQuickLinks #listContainer > div > div::before,  #gmailQuickLinks #listContainer > div > div::after {
  content: '';
  position: absolute;
  display: block;
  pointer-events: none;
}

#gmailQuickLinks #listContainer > div > div::before {
  left: 27px;
  top: -2px;
  width: 18px;
  height: 18px;
  transform: translateY(50%);
  background: #ccc url('https://ssl.gstatic.com/ui/v1/icons/mail/pimages/2/search_white.png');
  z-index: 2;
  border-radius: 4px;
}

#gmailQuickLinks #listContainer > div > div::after {
  border-radius: 16px;
  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);
}

#gmailQuickLinks #listContainer > div > div:hover::after {
  background-color: #f1f3f4;
  height: 32px;
  width: 32px;
  top: 0;
  left: 20px;
}

.bhZ.bym #gmailQuickLinks #listContainer > div > div::after {
  margin: 0 -36px;
  width: 256px;
}

#gmailQuickLinks #listContainer .n0 {
  text-decoration: none !important;
  font-size: 14px;
  color: inherit !important;
  flex: 1 1 0;
  display: inline-block;
  margin-left: -60px;
  height: 32px;
  line-height: 32px;
  padding-left: 66px;
  z-index: 3;
}

.bhZ:not(.bym) #gmailQuickLinks .po, .bhZ:not(.bym) #gmailQuickLinks .r, .bhZ:not(.bym) #gmailQuickLinks #listContainer > div > div > * {
  opacity: 0;
}

#gmailQuickLinks #listContainer > div > div > span {
  float: none;
  flex: none;
  z-index: 3;
}

#gmailQuickLinks #listContainer > div > div > .clear {
  display: none;
}

#gmailQuickLinks #listContainer > div {
  white-space: nowrap;
  overflow: hidden;
}

QingJ © 2025

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