dotfiles/webstyle.css

172 lines
3.2 KiB
CSS

/*
#############################
CSS rules for a more sane web
#############################
Usage:
# Safari
select as user style sheet in browser
or use defaults write... rules from dotfiles/osx
# Chrome
symlink to
Application Support/Google/Chrome/Default/User StyleSheets/Custom.css
*/
/* GOOGLE SEARCH
-----------------------------------------*/
/* Ads */
#tads,
#bottomads {
display: none !important;
}
/* GMAIL
-----------------------------------------*/
/* more space at top of mails */
div.AO div.aeF {
margin-top: 12px;
}
/* hide google footer */
.aeJ div.aeG,
td.Bu div.aeV,
td.Bu div.aeU,
td.Bu div.ae3 {
display: none !important;
}
/* fuck you too, social sidebar and share thingy */
td.Bu.y3,
#gbgs3,
.gb_7a.gb_ya.gb_g {
display: none !important;
}
/* center more stuff */
div.gB.xu table.cf.FVrZGe,
div.ip.adB,
.hx .h7 .Bk .G2 .adn {
max-width: 768px;
margin-left: auto !important;
margin-right: auto !important;
}
/* Ads */
body.aAU .mq {
display: none !important;
}
/* CHROME
-----------------------------------------*/
/* fuck you google for putting your ads
in my browser start page */
#prm-pt {
display: none !important;
}
/* GITHUB
-----------------------------------------*/
.file-code code,
.file-code pre,
.commits code,
.commits pre,
.markdown-body pre,
.markdown-body code,
.diff-line-code,
#files .file .meta .info,
.file-box .meta .info,
.diff-line-num,
.blob-line-nums,
.commit .sha-block,
.commit .sha,
.news .alert .branch-link,
.repository-with-sidebar .repository-sidebar input.clone,
.comment-body code,
.comment-body pre,
.commit-message code,
.commit-sha,
.commit-id,
.branch-name,
input.url-field {
font-family: "Source Code Pro", Consolas, "Liberation Mono", Courier,
monospace !important;
}
/* TWITTER
-----------------------------------------*/
/* Nice try, Twitter */
div.promoted-tweet {
display: none !important;
}
/* Discover menu, Who to follow, Similiar, Trends */
[data-testid="sidebarColumn"],
[aria-label="Timeline: Trending now"],
[aria-label="Who to follow"],
[data-testid="DMDrawer"] {
visibility: hidden !important;
}
[data-testid="sidebarColumn"] form {
visibility: visible !important;
}
main[role="main"] {
margin-left: 5% !important;
}
/* GOOGLE+
-----------------------------------------*/
/* I don't think that's Fun & Interesting */
div[guidedhelpid="celebritysuggestions"],
div.o6.jea,
a.gb_Db.gbp1.gb_N,
div.Qd.Gb.qd.pP.EX {
display: none !important;
}
/* FACEBOOK
-----------------------------------------*/
#facebook .ego_column,
#facebook #adsNav,
#facebook #appsNav,
#pagelet_friends_online,
#navItem_app_357937250942127,
#navItem_app_140472815972081,
#developerNav,
#groupsNav,
#navItem_app_2356318349 {
display: none !important;
}
/* STACK OVERFLOW ET AL.
-----------------------------------------*/
.ad-container,
#newsletter-ad,
#recent-badges,
.everyonelovesstackoverflow {
display: none !important;
}
/* MEDIUM
-----------------------------------------*/
.js-postShareWidget,
.u-zIndexMetabar.js-stickyFooter,
.metabar.metabar--spacer.js-metabarSpacer {
display: none !important;
}
.metabar.js-metabar {
position: relative !important;
}