Skip to content

Instantly share code, notes, and snippets.

@mfilej
Created January 29, 2009 11:26
Show Gist options
  • Save mfilej/54507 to your computer and use it in GitHub Desktop.
Save mfilej/54507 to your computer and use it in GitHub Desktop.
GMail userstyles
/* hide the google bar */
body {
margin-top: -25px !important;
margin-bottom: 20px;
height: 100%;
}
/* but leave the settings link */
a[href="https://mail.google.com/mail/#settings"] {
position: absolute !important;
top: 28px !important;
right: 4px !important;
font-size: 11px !important;
}
/* but don't affect the message box */
body[g_editable="true"] {
margin-top: 8px !important;
}
/* reduce and even out whitespace around the searchbox */
body > div > div.nH > div.nH > div.aC > div.nH > div.nH > div.no {
margin-bottom: -16px;
padding-top: 7px;
}
/* Hide the refresh links */
div[class="nH Cq"] > div > div > div[class="J-J5-Ji"] {
display: none !important;
}
/* move notifications to the top right corner of the window */
div[class="b8 UC"] {
position: absolute !important;
top: 23px !important;
right: 9px !important;
}
div[class="b8 UC"] > div[class="J-J5-Ji"] {
margin-top: 20px !important;
}
/* hide invite X to gmail link in notificatons*/
div[class="J-J5-Ji"] #link_invite {
display: none !important;
}
/* hide the compose link */
body > div > div.nH > div.nH > div.nH > div.no > div+div.nH.nn > div.nH > div.pz > div.nH > div.nH > div.l.m > div {
visibility: hidden !important;
}
/* some whitespace on top of the chat box */
div[class="nH pp"]+div[class="nH pp ps"] {
padding-top: 18px;
}
/* hide tasks link */
div[class="pz pA pp pX"] + .nH.pp + .nH.pp > .nH > .nH > .nH > .nH.pX {
display: none !important;
}
/* hide footer tips */
.nH.l2.ov .nH .mn {
display:none !important;
}
/*
let's get rid of the ads
*/
/* hide everything on the right side of the message… */
table.iY td.Bu:last-child > .nH > .nH > .nH {
display: none !important;
}
/* …except for the print/collapse/etc links */
table.iY td.Bu:last-child > .nH > .nH > .nH:first-child {
display: block !important;
font-size: 12px !important;
}
/* the messages could use the blank space that the ads kindly donated */
table.iY td.Bu:last-child > .nH {
position: absolute;
top: 40px;
right: -120px;
}
/* leave just a tiny column for the links */
table.iY td.Bu:first-child + .Bu {
width: 110px;
}
/* no horizontal scrollbar, please */
html {
overflow-x: hidden !important;
}
/* background fix for multiple inboxes lab feature */
.k > .diLZtc > .nH > .nH > .nH > .nH > .nH > .no {
background-color: #E0ECFF !important;
}
.k > .diLZtc > .nH > .nH > .nH > .nH > .nH > .no > .nH.nn:last-child {
border-left: 3px solid #E0ECFF !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment