Advertisement
Guest User

Global fauux theme

a guest
Mar 6th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.70 KB | None | 0 0
  1. /*
  2. Author: Twily 2014 - 2016
  3. Website: http://twily.info/
  4.  
  5. This style is based on https://userstyles.org/styles/31267/global-dark-style-changes-everything-to-dark
  6.  
  7.  
  8. Tip: Darken stylish editor and inspector dialog:
  9. Open Inspector (Ctrl+Shift+C) > Open Settings (Top right) > Select Dark Theme
  10. */
  11.  
  12. /* AGENT_SHEET */
  13. @namespace html url(http://www.w3.org/1999/xhtml);
  14. @namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
  15.  
  16. :root {
  17. /* VARIABLES */
  18. --color-1: #000; /* background/dark */
  19. --color-2: #c1b492; /* border/grey */
  20. --color-3: #c1b492; /* text/light */
  21. --color-4: #c1b444; /* text/dim */
  22. --color-5: #d2738a; /* link/blue */
  23. --color-6: #c1b444; /* link/magenta */
  24. --color-7: #d54a56; /* error/red */
  25. --color-8: #111111; /* text/black */
  26. --color-9: #d2738a; /* background/magenta */
  27. }
  28.  
  29. /*----- Excluded Sites -----*/
  30. @-moz-document regexp("https?://(?!.*(localhost|dnb.no|yourworldoftext.com|youtube.com|neocities.org)).*"),
  31. url-prefix(ftp://), url-prefix(about), url-prefix(javascript) {
  32. /* global background and colors */
  33. html { background: var(--color-1) !important; }
  34.  
  35. hr { visibility: hidden !important; height: 12px !important; }
  36.  
  37. * {
  38. color: var(--color-3) !important; text-shadow: none !important;
  39. background-color: transparent !important; box-shadow: none !important;
  40. border-color: var(--color-2) !important;
  41. border-top-color: var(--color-2) !important; border-bottom-color: var(--color-2) !important;
  42. border-left-color: var(--color-2) !important; border-right-color: var(--color-2) !important;
  43. }
  44. *:before, *:after { background-color: transparent !important; border-color: var(--color-2) !important; }
  45.  
  46. /* links */
  47. a, a *, a:link, a:link *, a:visited, a:visited * { color: var(--color-5) !important; text-decoration: none !important; }
  48. a:hover, a:hover *, a:active, a:active * { color: var(--color-6) !important; text-decoration: underline !important; }
  49.  
  50. /* input */
  51. input[type="text"] *, input[type="password"] *, textarea * {
  52. -moz-appearance: none !important;
  53. background: var(--color-1) !important; color: var(--color-3) !important;
  54. border: 0 !important;
  55. }
  56. input[type="button"], input[type="submit"],
  57. input[type="button"] *, input[type="submit"] *,
  58. button, button * {
  59. -moz-appearance: none !important;
  60. background-color: var(--color-1) !important; color: var(--color-3) !important;
  61. border: 0 !important;
  62. }
  63.  
  64. select, select * {
  65. -moz-appearance: none !important; border: 0 !important;
  66. background: var(--color-1) !important; color: var(--color-3) !important;
  67. }
  68.  
  69. /* headlines */
  70. h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, strong, [id*="headline"], [class*="headline"], [id*="header"], [class*="header"] td {
  71. color: var(--color-3) !important;
  72. }
  73. a h1, a h2, a h3, a h4, a h5, a h6, h1 a, h2 a, h3 a, a strong, a[id*="headline"], a[class*="headline"], a[id*="header"], a[class*="header"] {
  74. text-decoration: underline !important;
  75. }
  76.  
  77. [class*="error"], [class*="alert"], code, span[onclick], div[onclick] { color: var(--color-7) !important; }
  78.  
  79. ::-moz-selection { background: var(--color-4) !important; color: var(--color-8) !important; }
  80. :focus { outline: none !important; }
  81.  
  82. div[style="display: block;"] { background: rgba(0,0,0,.2) !important; }
  83.  
  84. table { background: var(--color-1) !important; }
  85. table > tbody > tr:nth-child(even), table > tbody > tr > td:nth-child(even) { background-color: rgba(0,0,0,.2) !important; }
  86.  
  87. /* menu etc */
  88. iframe, embed, header, nav, footer, label [onclick], nav ul, div[style*="position:"][style*="left:"][style*="visible"],
  89. div[style*="z-index:"][style*="left:"][style*="visible"], div[style*="-moz-user-select"], div[role="menu"], div[role="dialog"],
  90. span[class*="script"] div, [id*="menu"], [class*="dropdown"], [class*="popup"], [class*="title"],
  91. ul[style*="display:"], ul[style*="visibility:"] ul, [id*="nav"] ul, [class*="menu"], a[onclick][style*="display"], a[id*="ghosteryfirefox"],
  92. #ghostery-purple-bubble, #translator-popup, .menu, .tooltip, .hovercard, .vbmenu_popup {
  93. background: rgba(0,0,0,.2) !important;
  94. }
  95.  
  96. /* images */
  97. /**/
  98. img { opacity: 0.7 !important; transition: .2s !important; }
  99. img:hover, a:hover img { opacity: 1 !important; }
  100. /**/
  101.  
  102. img.decoded { background: none !important; }
  103.  
  104. body, *:not(:empty):not(html):not(span):not(a):not(b):not(option):not(img):not([style="display: block;"]):not([onclick*="open"]):not([onclick*="s_objectID"])
  105. :not([class*="stars"]):not([id="rating"]):not([class="rating"]):not([class*="SPRITE"]):not([id*="SPRITE"]):not([class*="item"]):not([id*="item"])
  106. :not([class*="thumb"]):not([class*="icon"]):not(.text):not([id*="lbImage"]):not([class*="cc-in"]):not([class*="gr-body"]):not([id*="watch"]):not(#globalsearch):not(.sp),
  107. .r3_hm, .gmbutton2 b, .gtab-i, .ph, .bstab-iLft, .csb, #pagination div, [style*="sprite2.png"], #mw-head-base, #mw-page-base {
  108. background-image: none !important;
  109. }
  110. }
  111.  
  112. /* ----- ABOUT PAGES BACKGROUND ----- */
  113. @-moz-document url-prefix(about) {
  114. * { background: none var(--color-1) !important; }
  115. body > * { background-color: var(--color-1) !important; }
  116. #list-view, #list-view * { background-color: var(--color-1) !important; }
  117. #detail-view, #detail-view * { background: var(--color-1) !important; }
  118. #addons-page > * > *, #addons-page > * > * > * > * { border-color: transparent !important; }
  119. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement