Guest User

Some Youtube CSS edits

a guest
Jul 27th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.46 KB | None | 0 0
  1. /*
  2.     YT design changer CSS
  3.  
  4.     Works with YT's dark theme
  5. */
  6.  
  7.  
  8. /*
  9.     Adds soft background to channel videos and makes them smaller on channel page
  10. */
  11. ytd-item-section-renderer{
  12.     margin-top: 2em;
  13.     padding: 2em;
  14.     background: var(--yt-spec-general-background-a);
  15. }
  16.  
  17. /*
  18.     Adds soft background to featured channels on channel page
  19. */
  20. ytd-browse-secondary-contents-renderer{
  21.     margin: 2em;
  22.     background: var(--yt-spec-general-background-a);
  23. }
  24.  
  25. /*
  26.     Makes sidebar smaller and adds background to all of youtube
  27. */
  28. ytd-app{
  29.    --app-drawer-width: 250px;
  30.     background: var(--yt-spec-general-background-b);
  31. }
  32.  
  33. /*
  34.     Makes content in sidebar smaller
  35. */
  36. ytd-guide-renderer.ytd-app {
  37.     width: 240px;
  38. }
  39.  
  40. /*
  41.     Changes all size of all text
  42. */
  43. html{
  44.     font-size: 9px!important;
  45. }
  46.  
  47. /*
  48.     Adjusts space reserved for upper sidebar (everything above the subscribed channels list)
  49. */
  50. ytd-app[guide-persistent-and-visible] ytd-page-manager.ytd-app {
  51.     margin-left: 280px;
  52. }
  53.  
  54. /*
  55.     Searchbar stays on top on channel page
  56. */
  57. div #masthead-container.ytd-app {
  58.     z-index: 3000 !important;
  59. }
  60.  
  61. /*
  62.     Adds background around upload / playlist sorter buttons on channel page
  63. */
  64. ytd-channel-sub-menu-renderer{
  65.     padding: 1em;
  66.     background: var(--yt-spec-general-background-a);
  67. }
  68.  
  69. /*
  70.     Adds space around videos on channel uploads page
  71. */
  72. ytd-grid-video-renderer{
  73.     margin: 2em;
  74. }
  75.  
  76. /*
  77.     Adds space around playlists on channel playlist page
  78. */
  79. ytd-grid-playlist-renderer{
  80.     margin: 2em;
  81. }
  82.  
  83. /*
  84.     Adds soft background to recommended section on homepage
  85. */
  86. ytd-rich-grid-renderer{
  87.     background: var(--yt-spec-general-background-a);
  88. }
  89.  
  90. /*
  91.     Makes homepage thumbnails smaller
  92. */
  93. ytd-rich-grid-video-renderer{
  94.    padding: 0.5em;
  95. }
  96.  
  97. /*
  98.     Adds soft background to other homepage sections
  99. */
  100. ytd-rich-section-renderer{
  101.     padding: 2em;
  102.     background: var(--yt-spec-general-background-a);
  103. }
  104.  
  105. /*  
  106.     Controls position of Picture in Picture Button
  107. */
  108. videocontrols{
  109.     width: 100%;
  110. }
  111.  
  112. /*  
  113.     Controls width of text and description next to thumbnail on channel main page
  114. */
  115. #grid-container.ytd-expanded-shelf-contents-renderer > .ytd-expanded-shelf-contents-renderer{
  116.     width: 50%;
  117. }
  118.  
  119.  
  120. /*  
  121.     The height of theater mode videos
  122.     Change the 30 to anything in between 16 and 30
  123.     YT default: 16
  124. */
  125. ytd-watch-flexy[theater]:not([fullscreen]) #player-theater-container{
  126.     height: calc((9/30) * 100vw) !important;
  127. }
  128.  
  129. /*
  130.     The width of theater mode videos to get black bars on the left and right side
  131.     Change width to anything between 0% and 100%
  132.     Low % may make video too small to view
  133.     Above 50% makes controls bigger than the video (video controls go into black space on both sides)
  134.     YT default: 100%
  135. */
  136. ytd-watch-flexy[theater]:not([fullscreen]) #player-theater-container #player-container{
  137.     width: 60% !important;
  138.     margin:auto !important;
  139. }
  140.  
  141. /*
  142.     Adds soft background to video title & likes + shares etc. section
  143. */
  144. #info-contents{
  145.     padding: 1em;
  146.     background: var(--yt-spec-general-background-a);
  147. }
  148.  
  149. /*
  150.     Adds soft background to video description section
  151. */
  152. #meta-contents{
  153.     padding: 1em;
  154.     background: var(--yt-spec-general-background-a);
  155. }
  156.  
  157. /*
  158.     Adds soft background to the "next videos" section
  159. */
  160. .ytd-watch-next-secondary-results-renderer{
  161.     padding: 1em;
  162.     background: var(--yt-spec-general-background-a);
  163. }
Advertisement
Add Comment
Please, Sign In to add comment