Advertisement
Guest User

Midnight Surfing - Global Dark Style (polished for Firefox)

a guest
Jul 5th, 2013
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.07 KB | None | 0 0
  1. @namespace html url(http://www.w3.org/1999/xhtml);
  2. @namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
  3.  
  4. /* browser background */
  5. browser[type="content-primary"] {background-color: #141414 !important;}
  6.  
  7. @-moz-document url-prefix(http://), url-prefix(https://), url-prefix(ftp://), url-prefix(file://) {
  8.  
  9.  
  10. /*no background images. try to exclude icons, other misc items. */
  11.  
  12. *:not(:empty):not([onclick*="open"]):not(span):not([class*="stars"]):not([id*="stars"]):not([id="rating"]):not([class="rating"]):not([class*="sprite"]):not([id*="sprite"]):not([id*="lbimage"])
  13.  
  14. { background-image: none !important }
  15.  
  16. /* basic bodies */
  17. html, body { background: none #141414 !important }
  18.  
  19. /* make descendents of the body element transparent. formerly "div + span" rules. */
  20. body * {background-color: transparent !important}
  21.  
  22. /* give id's bg hopefully */
  23. div[id] {background-color: inherit !important}
  24.  
  25. /* filter non-icons */
  26. span:not(:empty):not([class*="icon"]):not([id*="icon"]):not([class*="star"]):not([id*="star"]):not([id*="rating"]):not([class*="rating"]):not([class*="sprite"]):not([class*="sprite"]) {
  27.  
  28. background: none transparent !important;
  29. border-color: #000 !important}
  30.  
  31. /* try to contrast containers */
  32. html:root > body > * > * > * > *:not(input):not([onclick]) > div:not(:empty):not([id])
  33.  
  34. {background: none #1c1c1c !important}
  35.  
  36.  
  37. /* :::::::: text presentation :::::::: */
  38.  
  39. summary, details {background-color: inherit !important}
  40.  
  41. abbr, progress, time, label,
  42. .date {color: #cdefc2 !important}
  43.  
  44. mark,
  45. code, pre,
  46. blockquote,
  47. [class*="quote"],
  48. td[style*="inset"][class="alt2"] { background-color: #00090f !important }
  49.  
  50.  
  51. /* :::::::: headings + header :::::::: */
  52.  
  53. /* header gradient rules */
  54.  
  55. header, #header {background: -moz-linear-gradient(#333,#141414) transparent !important;}
  56. #header h1 {background-color: transparent !important;}
  57.  
  58. h1, h2 {
  59.  
  60. background: none #28313e !important;
  61. border-radius: 5px !important;
  62. -moz-border-radius: 5px !important;
  63. -webkit-border-radius: 5px !important;}
  64.  
  65.  
  66. h3, h4 {
  67.  
  68. background: none #2a3731 !important;
  69. border-radius: 5px !important;
  70. -moz-border-radius: 5px !important;
  71. -webkit-border-radius: 5px !important;}
  72.  
  73. h5, h6 {background: none #372a2a !important}
  74.  
  75.  
  76. /* :::::::: lists :::::::: */
  77.  
  78. dt {background-color: #2b3135 !important}
  79. dl, dd {background-color: #232323 !important}
  80. li, ul {background-color: inherit !important}
  81.  
  82. li a:not([class*="icon"]):not([id*="icon"]):not([onclick]),
  83. dt a:not([class*="icon"]):not([id*="icon"]):not([onclick])
  84.  
  85. {background-image: none !important; text-indent: 0 !important}
  86.  
  87. /* :::::::: list item highlight :::::::: */
  88.  
  89. li[class*="item"] a:hover,
  90. li[class*="item"]:hover,
  91.  
  92. [class*="menuitem"]:hover /* not list item, but still useful*/
  93.  
  94. {background-color: #2e2b2f !important}
  95.  
  96. /* :::::::: tables, cells :::::::: */
  97.  
  98. table {background-color: #232323 !important; border-color: #333 !important}
  99. table table {background: #191919 !important;}
  100.  
  101. th, caption {background-color: #353535 !important}
  102.  
  103. /* :::::::: input :::::::: */
  104.  
  105. /*basic*/
  106.  
  107. input *, textarea * {color: #ddd !important;} /* anonymous divs */
  108.  
  109. html body input:not([type="image"]), button,
  110. html body textarea {
  111.  
  112. background: none #353535 !important;
  113. -moz-appearance: none !important;
  114. -webkit-appearance: none !important;
  115. color: #ddd !important;
  116. border: solid 1px #777 !important;
  117. border-radius: 0 !important;
  118. -moz-border-radius: 0 !important;
  119. -webkit-border-radius: 0 !important;
  120. opacity: 1 !important;}
  121.  
  122. /* style reset. */
  123.  
  124. html body input[type="checkbox"] {-moz-appearance: checkbox !important; -webkit-appearance: checkbox !important;}
  125. html body input[type="radio"] {-moz-appearance: radio !important; -webkit-appearance: radio !important;}
  126.  
  127. /* :::::::: custom styling :::::::: */
  128.  
  129. html:root input[type="button"],
  130. html:root input[type="submit"],
  131. html:root input[type="reset"],
  132. html:root button {
  133.  
  134. color: #eee !important;
  135. background-color: #222437 !important;
  136.  
  137. -moz-box-shadow: inset 0 1px rgba(255,255,255,0.2), inset 0 10px rgba(255,255,255,0.1), inset 0 10px 20px rgba(255,255,255,0.15), inset 0 -15px 30px rgba(0,0,0,0.2) !important;
  138. -webkit-box-shadow: inset 0 1px rgba(255,255,255,0.2), inset 0 10px rgba(255,255,255,0.1), inset 0 10px 20px rgba(255,255,255,0.15), inset 0 -15px 30px rgba(0,0,0,0.2) !important;}
  139.  
  140. html:root input[type="button"]:hover,
  141. html:root input[type="submit"]:hover,
  142. html:root input[type="reset"]:hover,
  143. html:root button:hover {
  144.  
  145. color: #fff !important;
  146. background-color: #31344f !important;
  147. border-color: #5f687f !important;
  148.  
  149. -moz-box-shadow: inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3) !important;
  150. -webkit-box-shadow: inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3) !important;}
  151.  
  152. html:root input[type="image"] {opacity: .85 !important}
  153. html:root input[type="image"]:hover {opacity: .95 !important}
  154.  
  155. /* drop-down menu */
  156.  
  157. select, option, optgroup{
  158.  
  159. background: none #383838 !important;
  160. border-color:#555 !important;
  161. color:#f1f1f1 !important;
  162. -moz-appearance: none !important;}
  163.  
  164. /* :::::::: misc :::::::: */
  165.  
  166. address {background: none #333 !important}
  167. hr {background: none #444 !important}
  168. .current {color: #fff !important;} /*currently viewed page*/
  169.  
  170. /* remove rounded corners, borders, spacer, padding images */
  171.  
  172. img[src*="spacer"]:empty,
  173. [id*="round"]:empty,
  174. [id*="bottom"]:empty, [class*="bottom"]:empty, [class*="bottom"]:empty,
  175. [id*="top"]:empty, [class*="top"]:empty, [class*="top"]:empty,
  176. [class*="spacer"]:empty
  177.  
  178. {background-image: none !important;}
  179.  
  180. /* menus and navigation */
  181.  
  182. nav,
  183. menu,
  184.  
  185. /*common naming conventions - in case previous declarations fail to give solid bg*/
  186.  
  187. html body [class*="open"],
  188. html body [id*="dropdown"],
  189. html body [id*="dropdown"],
  190. html body [class*="dropdown"],
  191. html body [class*="dropdown"],
  192. html body [id*="menu"]:not(select),
  193. html body [class*="menu"]:not(select),
  194. html body [class*="tooltip"],
  195. html body [class*="popup"],
  196. html body [id*="popup"],
  197.  
  198. /* notes, details, etc. maybe useful */
  199.  
  200. html body [class*="note"],
  201. html body [class*="detail"],
  202. html body [class*="description"]
  203.  
  204. {background-color: #232323 !important}
  205.  
  206. /* also common */
  207. [class*="content"], [class*="container"] {background-color: #1c1c1c !important}
  208.  
  209. /* headers, logos */
  210.  
  211. [id*="masthead"] a,[id*="header"] a,
  212. [id*="logo"] a, [class*="logo"] a
  213.  
  214. {text-indent: 0 !important;}
  215.  
  216. /* instead of increasing specificity rating by using :not, set rules separately */
  217.  
  218. html:root body [class*="layer"],
  219. html:root body #lightbox-nav,
  220. html:root body #imagecontainer {background-color: transparent !important}
  221.  
  222. /*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
  223.  
  224. /* universal - sets color of text, border */
  225.  
  226. * {
  227. color: #ccc !important;
  228. border-color: #444 !important;
  229. outline-color: #444 !important;
  230. text-shadow: none !important;}
  231.  
  232. html *:after,
  233. html *:before
  234.  
  235. {color: #ccc !important;
  236. border-color: #666 !important;
  237. background: none transparent !important}
  238.  
  239.  
  240. /* link */
  241.  
  242. a:link,
  243. a:link *:not(img){
  244.  
  245. color: #b1cbf7 !important;
  246. background-color: transparent !important;
  247. border-color: #666 !important;}
  248.  
  249. a:visited,
  250. a:visited * {color: #cdb4e7 !important;}
  251.  
  252. a:hover,
  253. a:hover *:not(img){
  254.  
  255. color: #ffe900 !important;
  256. background-color: #363037 !important;
  257. border-color: #999 !important}
  258.  
  259. html [href*="#"]:hover {color: #ffe900 !important; background-color: transparent !important;}
  260.  
  261.  
  262. /* event handlers/attributes */
  263.  
  264. [onclick],
  265. [ondblclick],
  266. [onmousedown]
  267.  
  268. {color: #dfd5bc !important;
  269. text-indent: 0 !important}
  270.  
  271. [onclick]:hover,
  272. [ondblclick]:hover,
  273. [onmousedown]:hover
  274.  
  275. {color: #feff97 !important;}
  276.  
  277. /* make images transparent */
  278.  
  279. img { opacity: .75 !important;}
  280. img:hover { opacity: 1 !important; background-color: #888 !important; }
  281. svg {background: none #666 !important;}
  282.  
  283. /* highlight */
  284. ::-moz-selection {background-color: #626f61 !important; color: #f6f7b9 !important;}
  285.  
  286. /* :::::::: specific fixes :::::::: */
  287.  
  288. /* google search link fix */
  289. .g .r {background-color: transparent !important;}
  290.  
  291. /* google result hover highlight*/
  292. div.vsc:hover > .vspi, div.vso > .vspi {background: none transparent !important; border: none !important;}
  293.  
  294. }
  295.  
  296. /* :::::::: About... :::::::: */
  297.  
  298. @-moz-document url(about:newtab) {
  299.  
  300. window {background: #141414 !important;}
  301.  
  302. #newtab-scrollbox {
  303. background-color: transparent !important;
  304. background-image:
  305. url("chrome://browser/skin/newtab/noise.png"),
  306. -moz-linear-gradient(transparent,transparent) !important }
  307.  
  308. .newtab-title {background-color: rgba(0,0,0,.75) !important; color: #eee !important;}
  309.  
  310. }
  311.  
  312. @-moz-document url(about:blank) {
  313.  
  314. html, html * {
  315. background: none #141414 !important;
  316. color: #CCC !important;}
  317.  
  318. }
  319.  
  320. @-moz-document url-prefix("about:neterror") {
  321.  
  322. html, body {background-color: #353535 !important; color: #CCC !important}
  323. #errorPageContainer {background-color: #222 !important; border-color: #666 !important}
  324. #errorPageContainer button {opacity: .8 !important}
  325.  
  326. /*resurrect pages FF extension*/
  327. #resurrect {background-color: #333 !important; border-color: #000 !important}
  328.  
  329. }
  330.  
  331. @-moz-document url(about:privatebrowsing) {
  332.  
  333. html, body {background-color: #353535 !important; color: #CCC !important}
  334. #errorPageContainer {background-color: #222 !important; border-color: #666 !important}
  335.  
  336. }
  337.  
  338. @-moz-document url(about:about) {
  339.  
  340. html, body {background-color: #353535 !important; color: #CCC !important}
  341. #abouts {background-color: #222 !important; border-color: #666 !important}
  342.  
  343. }
  344.  
  345. @-moz-document url(about:home) {
  346.  
  347. html, body {background-color: #000000 !important; color: #000000 !important}
  348. #topSection {background-color: #353535 !important; border-color: #353535 !important}
  349. #launcher {background-color: #353535 !important; border-color: #353535 !important}
  350.  
  351. }
  352.  
  353. @-moz-document url(about:sync-tabs) {
  354.  
  355. #tabsList {background-color: #222 !important}
  356.  
  357. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement