/* RECENT NEWS: The current update Google's implementing is real tough to compensate for. I'm coding as quickly as I can to solve the bugs. While I may solve some, I can't catch all. BE SURE TO LET ME KNOW IF YOU FIND ANY!!!

For all of you out there who still have both of your parents, be sure to give them a hug, a kiss, and tell them you love 'em! Each new day is not guaranteed for us! -Davey, Proverbs 3:5-6 */

/* TITLE: NO GOOGLE ADS OR SPONSORED LINKS */

/* AUTHOR: Davey Jacobson - http://userstyles.org/users/17031 */

/* Before sending positing about a bug in the forum, disable all other userstyles and see if any of the styles are conflicting. If so, tell which style and where it's happening and I'll create a custom fix for you. */



/**********************************************
 ************** GLOBAL OVERRIDES **************
 **********************************************/

@-moz-document domain("google.com"), domain("google.co.uk"), domain("google.com.au") {


/***** BYE BYE GOOGLE ADS *****/

#taw, #mbEnd, #rhsline.std, #pa1, #tads, #tads.c, .tas, #ImgCont > TABLE[style*='background: rgb(255, 248, 221)'], #mclip, .ads.noprint, #rv_panel, .serp TD.right-nav, .serp TD#table-spacer-cell, #ads-rhs, .pY, .u5, .u8, #lhid_search_ad_unit, #rhsa, #rhswrapper > TABLE#rhssection TR, BODY[onunload='google.Quote.stopQuotes();'] DIV[class='sfe-break-bottom-16'], DIV.sfe-break-top.sfe-break-bottom-16, BODY[marginheight="2"][bgcolor="#ffffff"][topmargin="2"] > TABLE[cellspacing="0"][cellpadding="0"][border="0"][width="25%"][bgcolor="#ffffff"][align="right"], .ads.topads, #rhsads, [src*='ads.pheedo.com'], [src*='www.techcrunch.com/wp-content/themes/techcrunchmu/ads/'], [src*='ads.gigaom.com'], .item-body div p[align='right'], [href*='d.ads.readwriteweb.com'], #ads-top, #ads-bot, [href*='.doubleclick.net'], [src*='.doubleclick.'], [href*='.feedads.'], #np_content_ads_module, #main-wrapper #main-table table.left > tbody > tr > td[colspan='2'], .top-ads, .sponsored-links, .top-ad, .g-c #ad, [HREF*='http://ads.pheedo.com'], #adbox, #bottomads, #flp, #res > table.ts[style='margin: 0pt 0pt 12px; height: 92px;'], #topstuff > div[style="margin:0 0 11px;text-align:center"], #wmxmsg, [style='background: none repeat scroll 0% 0% rgb(235, 239, 249); padding: 2px 7px; margin: -4px -10px 12px -7px;'], .nH.MC, #cnt > #nr_container > #center_col > #res.med[role='main'] > #topstuff > table.ts, body#gsr.tbo #cnt #nr_container #res #topstuff > div[style='margin: 0pt 0pt 11px; text-align: center;'], #bottomads, body#gsr div#main > div > div#cnt > div#center_col > div[id='res'][class='med'][role='main'] > div[id='topstuff'][style=''], #gsr div#main div #cnt #rcnt #center_col div#res #topstuff > table.ts[style='margin:0 0 12px;height:92px;width:100%'], #lhid_searchad, .clear .rf .overflow-hide .mrgl1 .padb10.padr10 div + table + div
{
  visibility:hidden!important;
  position:absolute!important;
  top:-100000px!important;
  z-index:-1000000!important;
  display:none!important;
  width:0!important;
  max-width:0!important;
  height:0!important;
  max-height:0!important;
  border:0!important;
}


/***** PAGE IMPROVEMENTS *****/

/* DISABLE HOME PAGE FADE */
#fctr, #ghead, #pmocntr, #sbl, #tba, #tbe, .fade {opacity:1!important;}
a:focus, input:focus, a:active, input:active {outline:0!important;}
.gbts, #gbztms1, #showHideBlacklist, li.gbt, .gbtb {font-weight:400!important; padding:0 3.5px!important;}
#gbzw {margin-left:0!important;}

/* NEW BUTTON STYLE FOR ALL BUTTONS */
INPUT[type='submit']:not(.lsb), INPUT[type='button']:not(.lsb) {
-moz-appearance:none!important;
-webkit-appearance:none!important;
border-radius:3px;
-webkit-border-radius:3px;
background:-moz-linear-gradient(center top, #F9F9F9, #E3E3E3) repeat scroll 0 0 transparent!important; 
background:-webkit-gradient(linear, left top, left bottom, from(#F9F9F9), to(#E3E3E3))!important;
color:#000!important; padding:2px!important; text-align:center; border:1px solid #bbb;
}
INPUT[type='submit']:hover:not(.lsb), INPUT[type='button']:hover:not(.lsb) {
border-color:#939393;
}
INPUT[type='submit']:focus:active:not(.lsb), INPUT[type='button']:focus:active:not(.lsb) {
background:-moz-linear-gradient(center top, #d9d9d9, #e9e9e9) repeat scroll 0 0 transparent!important;
background:-webkit-gradient(linear, left top, left bottom, from(#d9d9d9), to(#e9e9e9))!important;
border:1px solid #939393!important;
padding:2px!important;
}

body #gbar, body #guser {padding:3px 10px!important;}
body[id=''][class='ll_page_body'] > div[style='margin-top: 3px;'] {padding: 0 5px!important;}

/***** END GLOBAL FIXES *****/

}




/*********************************************
 ************* SEARCH PAGE FIXES *************
 *********************************************/

@-moz-document url-prefix("http://www.google.com/"), url-prefix("http://www.google.com/search?"), url-prefix("http://www.google.co.uk/search"), url-prefix("http://www.google.com.au/search"), url-prefix("http://www.google.com/webhp?hl=en"), url-prefix("http://www.google.com/#hl=en"), url-prefix("https://www.google.com/"), url-prefix("https://www.google.com/search?"), url-prefix("https://www.google.co.uk/search"), url-prefix("https://www.google.com.au/search"), url-prefix("https://www.google.com/webhp?hl=en"), url-prefix("https://www.google.com/#hl=en") {

body#gsr div#main div#cnt #rcnt #center_col {min-width:985px!important; margin-right:0!important;}
body#gsr div#main div#cnt #rcnt #center_col #res.med,
body#gsr div#main div#cnt #rcnt #center_col #res.med #search #ires #rso .g .rc .s,
body[class=""] div#main div#cnt #rcnt #center_col #res.med #search #ires #rso .g .rc .s, 
body[style=""] div#main div#cnt #rcnt #center_col #res.med #search #ires #rso .g .rc .s,
body#gsr div#main div#cnt #rcnt #center_col #res.med #search #ires #rso .g .rc .s .st,
body[class=""] div#main div#cnt #rcnt #center_col #res.med #search #ires #rso .g .rc .s .st, 
body[style=""] div#main div#cnt #rcnt #center_col #res.med #search #ires #rso .g .rc .s .st {max-width:100%!important;}

/* Courtesy of djakrse */
.mw{max-width:none!important;padding-right:50px!important;}
#rhs {float:right!important;}
}

/**********************************************
 ***************** MAPS FIXES *****************
 **********************************************/

@-moz-document domain("maps.google.com"), domain("maps.google.co.uk"), domain("maps.google.com.au") {

#header #search .q_d_container {width:auto!important;}
table.cntrltable > tbody > tr > td + td + td + td + td {padding-left:5px!important;}
table.cntrltable #solink {margin-left:-16px!important;}
#loadmessagehtml #loadmessage {position:relative; top:4.5px!important;}

/***** END MAPS FIXES *****/

}



/**********************************************
 ***************** NEWS FIXES *****************
 **********************************************/

@-moz-document url-prefix("http://news.google.com/"), url-prefix("http://news.google.co.uk/"), url-prefix("http://news.google.com.au/") {

.clusterGroup center {padding-bottom:9px!important;}

/***** END NEWS FIXES *****/

}


/**********************************************
 *************** CALENDAR FIXES ***************
 **********************************************/

@-moz-document url-prefix("https://www.google.com/calendar/"), url-prefix("https://www.google.co.uk/calendar/"), url-prefix("https://www.google.com.au/calendar/") {

/* ADD GADGET BY URL BOX (if enabled) */
#gadgetcell INPUT#gadgetaddbox {width:100px!important;}

/***** END CALENDAR FIXES *****/

}


/*********************************************
 **************** GMAIL FIXES ****************
 *********************************************/

@-moz-document domain("mail.google.com") {

.Ci {width: 34px !important;}
INPUT.oZ-jc[type='checkbox'] {margin-left:11px!important;}
TABLE[class='Bs nH iY'], .Bu {max-width:100%!important;}
.nH.pp.ps {margin:-2px 2px 2px -2px !important;}
.b8 {margin-bottom:-2px!important;}
.editable.LW-yrriRe {width:99%!important;}
.nH .b8.UC {margin:-5.5px 0 5px!important; padding:0!important;}
table.Bs.nH .Bu:first-child > .nH > .nH > .nH.pp.ps.TZ:last-child {display:none;}
.nH.qp {width:100%!important;}
.nH.qp #gb #gbz {margin-left:5px!important;}
.nH.qp #gb #gbg {margin-right:10px!important;}
[class='l2 ov'] {margin-bottom:10px!important;}

/***** INBOX *****/

/*** NEW MESSAGES ***/
.zA.zE {background:#bfe3fe!important;}
.zA.zE:hover {background:#D2FEDC!important;}
.zA.zE.x7 {background:#9FCCFF!important;}
.zA.zE.x7:hover {background:#7ABEFE!important;}

/*** READ MESSAGES ***/
.zA.yO:hover, .MT:hover {background:#d2e3fe!important;}
.zA.yO.x7 {background:#ddd!important;}
.zA.yO.x7:hover {background:#D2F5FE!important;}

/*** MOVE 'NEW WINDOW', 'EXPAND ALL', 'COLLAPSE ALL', ETC. BUTTONS TO TOP PANEL ***/
.hj {

}

[class='h7 ie nH oy8Mbf'] {margin-top:15px!important;}
.nH .ha {margin-bottom:25px!important;}

/*** ADJUST 'New Window', 'Expand All' etc. BUTTONS TO DISPLAY INLINE & IN TOP BUTTON PANEL ***/
.hj .hk  {margin-right:15px!important;}
.hk {float:left!important; margin-top:-1px!important;}
.hk SPAN IMG  {margin-top:-2px!important;}

/*** EXTENDING MESSAGE BODY TO FIT SCREEN ***/
.diLZtc .g TABLE:not(.cf) {width:100%!important;}
.iY .Bu:last-child > .nH {height:0!important; overflow:hidden!important; width:0!important;}
.iY .Bu:first-child + .Bu {display:none;}
.iY {width:100%!important;}

/*** EXTEND MESSAGE TEXT BOX ***/
.gA.gt {margin-right:0px!important;}
.ip.iq .ir {width:99.4%!important;}

/*** REMOVE BOTTOM AD UNDER MESSAGE ***/
.z0DeRc {display:none;}
.nH.MC {display:none!important; position:absolute!important;}
.nH.if, .nH.if .nH.hx {padding-bottom:0!important; margin-bottom:-1px!important;}

/*** TOP BUTTON PANEL ***/
.iI.D.E {padding: 15px 0 !important;}
.iI.D.E .AO {padding: 2.5px 5px !important;}
.iI.D.E .iH {position:relative; top:-11px; left:4px;}
.iI.D.E .h0 {position:relative; top:-11px;}
.iI.D.E .h0 .e, .A1.D.E .Di .e {position:relative; top:0px;}

.AD0rpf {position:relative; left:65px!important;}

/*** BOTTOM BUTTON PANEL ***/
.AY.D.E .Cq {position: relative; top: 3px !important;}
.AY.D.E [act='20'] {padding: 4px 7px 3px !important; top:-1px;}
.AY.D.E .AZ {top:-1px;}
.iE.D.E .AO {padding: 3px 6px !important; margin-right: 10px !important;}
.iE.D.E .h0 {position:relative; top:2px;}
.iE.D.E .h0 .e {position:relative; top:-0.0em;}

/***** END GMAIL FIXES *****/

}



/**********************************************
 *********** GOOGLE ACCOUNTS MANAGE ***********
 **********************************************/

@-moz-document url-prefix("https://www.google.com/accounts/") {
div.header {padding-top:10px!important; top:15px!important;}
}
