Advertisement
Guest User

Untitled

a guest
Aug 17th, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.23 KB | None | 0 0
  1. @namespace url(http://www.w3.org/1999/xhtml);
  2.  
  3. @-moz-document domain("youtube.com") {
  4.  
  5. /* since you removed the "white overlay" on a watched video, this will add it back */
  6.   .watched .video-thumb::after {
  7.     background: rgba(255, 255, 255, 0.5) none repeat scroll 0 0 !important;
  8.     content: "";
  9.     position: absolute;
  10.     left: 0;
  11.     top: 0;
  12.     display: block;
  13.     height: 100%;
  14.     width: 100%;
  15.   }
  16.   .watched .video-time, .watched-badge, div.watched .gridtube_meta_def_container {
  17.     z-index: 10000;
  18.     opacity: 0.9 !important;
  19.   }
  20.  
  21. /* reposition to top left */
  22.   .watched-badge {
  23.   /* first move "WATCHED" label */
  24.     top: 2px;
  25.     left: 2px;
  26.   }
  27.   div.watched .gridtube_meta_def_container {
  28.   /* if video is watched put resolution label lower */
  29.     top: 20px;
  30.     left: 2px;
  31.   }
  32.   :not(.watched) .gridtube_meta_def_container {
  33.   /* res label to top left by default */
  34.     top: 2px;
  35.     left: 2px;
  36.   }
  37. /* bigger font&element for better visibility */
  38.   .gridtube_meta_def_container, .gridtube_meta_def_container > * {
  39.     font-size: 11px;
  40.     height: 14px;
  41.     line-height: 15px;
  42.     opacity: 1;
  43.     border-radius: 0;
  44.   }
  45. /* colored def */
  46.   .gridtube_meta_def_container[title*="2160"],
  47.   .gridtube_meta_def_container[title*="2160"] .gridtube_meta_def_format,
  48.   .gridtube_meta_def_container[title*="2160"] .gridtube_meta_def_hd {
  49.     background: #000070; /* darker navy blue */
  50.     color: white;
  51.   }
  52.   .gridtube_meta_def_container[title*="1440"],
  53.   .gridtube_meta_def_container[title*="1440"] .gridtube_meta_def_format,
  54.   .gridtube_meta_def_container[title*="1440"] .gridtube_meta_def_hd {
  55.     background: #0000FF; /* blue */
  56.     color: white;
  57.   }
  58.   .gridtube_meta_def_container[title*="1080"],
  59.   .gridtube_meta_def_container[title*="1080"] .gridtube_meta_def_format,
  60.   .gridtube_meta_def_container[title*="1080"] .gridtube_meta_def_hd {
  61.     background: #E70000; /* darker red */
  62.     color: white;
  63.   }
  64.   .gridtube_meta_def_container[title*="720"],
  65.   .gridtube_meta_def_container[title*="720"] .gridtube_meta_def_format,
  66.   .gridtube_meta_def_container[title*="720"] .gridtube_meta_def_hd {
  67.     background: #008000; /* green */
  68.     color: white;
  69.   }
  70.   .gridtube_meta_def_container[title*="480"],
  71.   .gridtube_meta_def_container[title*="480"] .gridtube_meta_def_format {
  72.     background: #FF8C00; /* darkorange */
  73.     color: white;
  74.   }
  75.  
  76.   .gridtube_meta_def_container[title*="360"],
  77.   .gridtube_meta_def_container[title*="360"] .gridtube_meta_def_format {
  78.     background: #008080; /* teal */
  79.     color: white;
  80.   }
  81.   .gridtube_meta_def_container[title*="240"],
  82.   .gridtube_meta_def_container[title*="240"] .gridtube_meta_def_format {
  83.     background: #808080; /* grey */
  84.     color: white;
  85.   }
  86.  
  87. /* if not any of the above, but it is HD */
  88.   .gridtube_meta_def_container[title*="high"],
  89.   .gridtube_meta_def_container[title*="high"] .gridtube_meta_def_format,
  90.   .gridtube_meta_def_container[title*="high"] .gridtube_meta_def_hd {
  91.     background: #F30000; /* red */
  92.     color: white;
  93.   }
  94.  
  95. /* if non of the above are applicable */
  96.   .gridtube_meta_def_container,
  97.   .gridtube_meta_def_container .gridtube_meta_def_format {
  98.     background: #555555; /* dark dark grey */
  99.     color: white;
  100.   }
  101.  
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement