Greasy Fork 还支持 简体中文。

Rounded Square Label Badges for New Gmail

Display labels as 'badges' in the message list

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

/* ==UserStyle==
 * @name         Rounded Square Label Badges for New Gmail
 * @namespace    http://github.com/exterrestris
 * @description  Display labels as 'badges' in the message list
 * @version      0.4.0
 ==/UserStyle== */

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

@-moz-document domain("mail.google.com") {
  /****************
  * Message List *
  ****************/
  .ar.as {
    position: relative;
    box-sizing: border-box;
    background-color: transparent;
    margin-top: 0;
    padding-right: 0;
    margin-right: 5px;

    &:nth-of-type(6) ~ & {
      display: none;
    }

    .at {
      width: 2.9ex;
      overflow: hidden;
      height: 2.9ex;

      .av {
        width: 0;
        padding: 0;
      }

      &[title="Inbox"], &[title="Bin"] {
        width: auto;
        overflow: visible;

        .av {
          width: auto;
          padding: 0 8px;
        }
      }

      &[title="Inbox"] .av {
        font-weight: bold;
      }
      
      &[title="Bin"] .av {
        font-style: italic;
      }


    }

    .au {
      border-width: 0;
    }

    .au .av {
      overflow: hidden;
    }
  }

  .as {
    position: relative;
  }

  .Zs .yi {
    max-width: none;
  }

  .y6 {
    line-height: 1.5;
  }

  .xT {
    justify-content: right;
  }

  /*********************
  * Add Custom Colour *
  *********************/
  .Kj-JD-Jz .ar.as .at {
    width: auto;
    overflow: visible;
    position: relative;
    margin-left: 4.3ex;

    &:before {
      content: '';
      width: 2.9ex;
      height: 2.9ex;
      position: absolute;
      left: -4.3ex;
      top: 0;
      background-color: inherit;
      border-radius: 3em;
      border: 1px solid rgba(51,51,51,0.4) !important;
    }

    .av {
      width: auto;
      padding: 0 8px;
    }
  }

  /****************
  * Preview Pane *
  ****************/
  .hX {
    border-collapse: separate;
    border-spacing: 0;
    border: 0;

    .hM {
      border: 1px solid transparent;
    }

    .hU.hM {
      border-right: 0;
      padding-left: 0.5em;
      padding-right: 0.4em;
    }

    .hV.hM {
      border-left: 0;
      padding-right: 0.8em;
      padding-left: 0.3em;

      .hO {
        padding: 0;
        vertical-align: top;
        top: -1px;
        position: relative;
      }
    }

    .hS.hM {
      border-width: 0;
    }
  }

  .hU.hM {
    position: relative;
    box-sizing: border-box;

    .hN {
      overflow: hidden;
      height: 3ex;
    }
  }
}