/*
 _______________________________________________________________________
|                  |                                                    |
|          Title:  |  UserScripts.Org Compact                           |
|    Description:  |  Make the design of UserScripts.Org pages compacter|
|         Author:  |  Izzy                                              |
|   Date Created:  |  May 08, 2009                                      |
|   Last Updated:  |  Nov 15, 2009                                      |
|        Version:  |  1.1.7                                             |
|__________________|____________________________________________________|

*/

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain(userscripts.org) {
  #header .container { height:0px !important; }
  #site-logo a img {
    position:absolute !important;
    top:0 !important;
    left:-270px !important;
  }
  #header,th,#footer,H3,.userjs,.details {background-color:rgb(255,136,0) !important;}
  h4 { outline: 2px solid #ff8800; font-size:13px !important; margin-bottom:6px !important; font-weight:bold !important; }
  #about-summary h4 { outline:inherit; }
  #header + div { margin-top: -20px !important; }
  #right { margin-top: 20px !important; }

  /* Fixes for the site re-design at 2009-05-22 */
  #nav {
    position: relative !important;
    left: -400px !important;
    width: 100% !important;
  }
  #mainmenu li { margin-top: -2px !important; }
  #script_search {
    position: absolute !important;
    left: 900px !important;
  }
  #userbox {
    position: absolute!important;
    right: 0px !important;
    top: -12px !important;
    color: #fff !important;
    z-index: 999 !important;
  }
  #user { color: #fff !important; }
  #userbox span a, #userbox span + a { color: #ffffff !important; }
  #userbox span a:hover, #userbox span + a:hover { background-color: #ee6600 !important; }
  a.mail:hover { color: #333333 !important; }
/*  a.utility { position:relative !important; top:14px !important; } */
  #homeMenu {
    background-color: rgb(255,136,0) !important;
    margin-top: -4px !important;
  }
  /* fix end */
  /* fix PM display */
  #content p.subtitle + pre {
    font-family: Helvetica Neue, Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    /*border: none !important;*/
    white-space: normal !important;
  }
  /* PM fix end */
  /* =====================[ fixing width of elements ]=== */
  /* this is kind of "main content vs. right" */
  body { padding-right: 10px !important; }
  #navbox { margin-right: -10px !important; }
  #header #navbox, .container { margin-left: 15px !important; }
  .container { width: auto !important; }
  body#guides-show #right, body#scripts-show #right,
    body#forums-index #right, body#users-index #right,
    body#articles-show #right, body#articles-index #right,
    body#groups-index #right, body#groups-show #right,
    body#groups-scripts #right, body#groups-topics #right { width: 200px !important; }
  body#guides-show #content, body#scripts-show #content,
    body#forums-index #content, body#users-index #content,
    body#articles-show #content, body#articles-index #content,
    body#groups-index #content, body#groups-show #content,
    body#groups-scripts #content, body#groups-topics #content {
    min-width: 630px !important;
    width: 75% !important;
  }
  body#guides-show .script-info { margin-bottom: 10px !important; }
  .comment .avatar { margin-bottom: 10px !important; }
  .comment .info { margin-left: 0px !important; }
  body.home #main { /* adjust for small screens */
    width: 75% !important;
    padding-left: 20px !important;
  }
  /* end element width fixes */

  #footer { display:none !important; }
  h1 { font-size: 18px !important; }
  h3 { font-size: 13px !important; }
  table.wide th {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    font-size: 11px !important;
    background-color: #aaa !important;
  }
  table.wide th a, table.wide th {
    color: #000 !important;
  }
  table.wide td {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    font-size: 10px !important;
    border:1px solid rgb(221,221,221) !important; /* override BIYUS */
  }
  table.wide tr {
    border:1px solid rgb(221,221,221) !important; /* override BIYUS */
  }
  td ul {
    margin-bottom: 0 !important;
  }
  #content li a, #content li.current {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-size: 11px !important;
  }
  #site-logo img {
    height: 40px !important;
  }
  #mainmenu li, dd, dt {
    font-size: 11px !important;
  }
  form input:not([type=submit]), form label {
    font-size: 11px !important;
    height: 15px !important;
  }
  form input[type=button] { height: auto !important; }
  input[type=submit] { font-size: 11px !important; }
  #navbox {
    height: 25px !important;
  }
  #nav form { padding-top: 0px !important; }
  #nav #account { margin-top: 3px !important; }
  #nav #mainmenu li a {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
  }
  #IzEmoticons { margin-top: 5px !important; }
  /* Script details */
  #content .current {
    height: 12px !important;
  }
  table.noborder, ul, ol, p, a {
    font-size: 11px !important;
  }
  #topics h4, #activity h4 { font-size: 12px !important; }
  /* Settings */
  #options li > a, #options li.current {
    padding-bottom: 2px !important;
    padding-top: 2px !important;
  }
  h3 a { color:#ffff00 !important; }
  h3 a:hover { font-weight:bold !important; }
  tr.spacer > td > a { visibility:hidden; font-size:1px !important; } /* spacer between forum posts */
  tr.spacer > td { height: 5px; }
  /* Adjustments for BIYUS script (http://userscripts.org/scripts/show/14648) */
  #menuContainer, #optall { /* #optall is from old version */
    position: absolute !important;
    top: 50px !important;
    left: auto !important;
    right: 10px;
  }
  #configForm {
    top: 75px !important;
    left: auto !important;
    right: 10px;
  }
  td.script-meat div { display:none !important; }
  td.script-meat:hover div { display:block !important; }
}
/* ===[ Adjust display on "Your Pages" to make better use of available space ]=== */
@-moz-document url("http://userscripts.org/home/scripts"), url("http://userscripts.org/home/comments"),
url("http://userscripts.org/home/favorites"), url("http://userscripts.org/home/posts") {
  body.home #main {
    width:auto !important;
    margin-left:160px !important;
    margin-top:0px !important;
    position:absolute !important; right:5px;
  }
}
/* Make space for BIYUS options */
@-moz-document url("http://userscripts.org/home/favorites") {
  table.forums { margin-top:23px !important; }
}
/* Adjust the "new guide" link */
@-moz-document url("http://userscripts.org/guides") {
  div#content > p { margin-right: 130px !important; margin-top: 2px !important; }
}