BetterYTM.css 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862
  1. /* #region general */
  2. :root {
  3. --bytm-locale-color: #5ea2ec;
  4. --bytm-advanced-mode-color: #ceb663;
  5. --bytm-experimental-col: #cc83e5;
  6. --bytm-warning-col: #e07664;
  7. --bytm-reload-col: #77e064;
  8. }
  9. /* TODO: after cfg menu migration, leave only dialog styles here */
  10. #bytm-cfg-dialog-bg,
  11. #bytm-cfg-menu-bg
  12. {
  13. --bytm-dialog-width-max: 1150px;
  14. --bytm-menu-width-max: 1150px;
  15. --bytm-dialog-height-max: 800px;
  16. --bytm-menu-height-max: 800px;
  17. }
  18. /* Have to do it like this since various extensions use a pretty damn high z-index and since I haven't implemented top layer for dialogs yet (https://developer.mozilla.org/en-US/docs/Glossary/Top_layer) */
  19. .bytm-dom-yt .bytm-dialog-bg,
  20. .bytm-dom-yt .bytm-menu-bg {
  21. z-index: 10042;
  22. }
  23. .bytm-dom-yt .bytm-dialog,
  24. .bytm-dom-yt .bytm-menu {
  25. z-index: 10069;
  26. }
  27. .bytm-dialog-body p {
  28. overflow-wrap: break-word;
  29. }
  30. .bytm-dialog-body details summary {
  31. cursor: pointer;
  32. font-style: italic;
  33. }
  34. .bytm-secondary-label {
  35. padding-left: 12px;
  36. font-size: 1.3rem;
  37. }
  38. /* #region version notification */
  39. #bytm-version-notif-dialog-btns {
  40. display: flex;
  41. flex-direction: row;
  42. align-items: center;
  43. justify-content: space-between;
  44. margin-top: 20px;
  45. }
  46. #bytm-disable-update-check-wrapper {
  47. display: flex;
  48. align-items: center;
  49. font-size: 1.5rem;
  50. margin-top: 35px;
  51. }
  52. #bytm-disable-update-check-wrapper label {
  53. padding-left: 12px;
  54. }
  55. #bytm-version-notif-changelog-cont {
  56. max-height: calc(max(var(--calc-max-height) - 280px, 0px));
  57. overflow-y: auto;
  58. margin: 10px 0px;
  59. }
  60. #bytm-version-notif-changelog-details {
  61. margin-top: 15px;
  62. }
  63. .bytm-disable-update-check-toggle-label-wrapper {
  64. display: flex;
  65. flex-direction: column;
  66. justify-content: flex-start;
  67. }
  68. /* #region cfg menu */
  69. .bytm-ftconf-adv-copy-btn {
  70. margin: 0px 10px;
  71. }
  72. .bytm-adorn-icon {
  73. display: inline-flex;
  74. align-items: center;
  75. cursor: help;
  76. }
  77. /* #region cfg menu adornments */
  78. .bytm-ftitem-adornment svg path {
  79. fill: var(--bytm-locale-color, #fff) !important;
  80. }
  81. .bytm-advanced-mode-icon svg path {
  82. fill: var(--bytm-advanced-mode-color, #fff) !important;
  83. }
  84. .bytm-experimental-icon svg path {
  85. fill: var(--bytm-experimental-col, #fff) !important;
  86. }
  87. .bytm-warning-icon svg {
  88. width: 24px;
  89. height: 24px;
  90. }
  91. .bytm-warning-icon svg path {
  92. fill: var(--bytm-warning-col, #fff) !important;
  93. }
  94. .bytm-reload-icon svg path {
  95. fill: var(--bytm-reload-col, #fff) !important;
  96. }
  97. /* #region welcome dialog */
  98. #bytm-welcome-menu-title-wrapper {
  99. display: flex;
  100. flex-direction: row;
  101. align-items: center;
  102. }
  103. #bytm-welcome-menu-title-logo {
  104. width: 32px;
  105. height: 32px;
  106. margin-right: 20px;
  107. }
  108. #bytm-welcome-menu-content-wrapper {
  109. overflow-y: auto;
  110. }
  111. #bytm-welcome-menu-locale-cont {
  112. display: flex;
  113. flex-direction: column;
  114. align-items: center;
  115. justify-content: flex-start;
  116. }
  117. #bytm-welcome-menu-locale-img {
  118. width: 80px;
  119. height: 80px;
  120. margin-bottom: 10px;
  121. }
  122. #bytm-welcome-menu-text-cont {
  123. margin-top: 16px;
  124. }
  125. #bytm-welcome-menu-text {
  126. font-size: 1.6rem;
  127. line-height: 20px;
  128. }
  129. #bytm-welcome-menu-locale-select {
  130. font-size: 1.6rem;
  131. }
  132. #bytm-welcome-menu-footer-cont {
  133. display: flex;
  134. justify-content: space-between;
  135. border-radius: 0px 0px var(--bytm-menu-border-radius) var(--bytm-menu-border-radius);
  136. }
  137. #bytm-auto-like-channels-dialog-body {
  138. padding-left: 0;
  139. padding-right: 0;
  140. }
  141. .bytm-dialog-bg {
  142. --bytm-dialog-bg: #333333;
  143. --bytm-dialog-bg-highlight: #252525;
  144. --bytm-scroll-indicator-bg: rgba(10, 10, 10, 0.7);
  145. --bytm-dialog-separator-color: #797979;
  146. --bytm-dialog-border-radius: 10px;
  147. }
  148. .bytm-dialog-bg {
  149. display: block;
  150. position: fixed;
  151. width: 100%;
  152. height: 100%;
  153. top: 0;
  154. left: 0;
  155. z-index: 5;
  156. background-color: rgba(0, 0, 0, 0.6);
  157. }
  158. .bytm-dialog {
  159. --calc-max-height: calc(min(100vh - 40px, var(--bytm-dialog-height-max)));
  160. position: absolute;
  161. display: flex;
  162. flex-direction: column;
  163. width: calc(min(100% - 60px, var(--bytm-dialog-width-max)));
  164. border-radius: var(--bytm-dialog-border-radius);
  165. height: auto;
  166. max-height: var(--calc-max-height);
  167. left: 50%;
  168. top: 50%;
  169. transform: translate(-50%, -50%);
  170. z-index: 6;
  171. color: #fff;
  172. background-color: var(--bytm-dialog-bg);
  173. }
  174. .bytm-dialog-body {
  175. font-size: 1.5rem;
  176. padding: 20px;
  177. }
  178. .bytm-dialog-body.small {
  179. padding: 15px;
  180. }
  181. #bytm-dialog-opts {
  182. display: flex;
  183. flex-direction: column;
  184. position: relative;
  185. padding: 30px 0px;
  186. overflow-y: auto;
  187. }
  188. .bytm-dialog-header {
  189. display: flex;
  190. justify-content: space-between;
  191. align-items: center;
  192. margin-bottom: 6px;
  193. padding: 15px 20px 15px 20px;
  194. background-color: var(--bytm-dialog-bg);
  195. border: 2px solid var(--bytm-dialog-separator-color);
  196. border-style: none none solid none !important;
  197. border-radius: var(--bytm-dialog-border-radius) var(--bytm-dialog-border-radius) 0px 0px;
  198. }
  199. .bytm-dialog-header.small {
  200. padding: 10px 15px;
  201. border-style: none none solid none !important;
  202. }
  203. .bytm-dialog-header-pad {
  204. content: " ";
  205. min-height: 32px;
  206. }
  207. .bytm-dialog-header-pad.small {
  208. min-height: 24px;
  209. }
  210. .bytm-dialog-titlecont {
  211. display: flex;
  212. align-items: center;
  213. }
  214. .bytm-dialog-titlecont-no-title {
  215. display: flex;
  216. justify-content: flex-end;
  217. align-items: center;
  218. }
  219. .bytm-dialog-title {
  220. position: relative;
  221. display: inline-block;
  222. font-size: 22px;
  223. }
  224. #bytm-dialog-version {
  225. position: absolute;
  226. width: 100%;
  227. bottom: -10px;
  228. left: 0;
  229. font-size: 10px;
  230. font-weight: normal;
  231. z-index: 7;
  232. }
  233. #bytm-dialog-version .bytm-link {
  234. color: #c6d2db !important;
  235. text-decoration: none !important;
  236. cursor: pointer;
  237. }
  238. #bytm-dialog-version .bytm-link:hover {
  239. color: #c6d2db !important;
  240. text-decoration: underline !important;
  241. }
  242. #bytm-dialog-linkscont {
  243. display: flex;
  244. align-items: center;
  245. margin-left: 32px;
  246. }
  247. .bytm-dialog-link {
  248. display: inline-flex;
  249. align-items: center;
  250. cursor: pointer;
  251. }
  252. .bytm-dialog-link:not(:last-of-type) {
  253. margin-right: 10px;
  254. }
  255. .bytm-dialog-link .bytm-dialog-img {
  256. position: relative;
  257. border-radius: 50%;
  258. bottom: 0px;
  259. transition: bottom 0.15s ease-out;
  260. }
  261. .bytm-dialog-link:hover .bytm-dialog-img {
  262. bottom: 5px;
  263. }
  264. .bytm-dialog-close {
  265. cursor: pointer;
  266. }
  267. .bytm-dialog-header-img,
  268. .bytm-dialog-close
  269. {
  270. width: 32px;
  271. height: 32px;
  272. }
  273. .bytm-dialog-header-img.small,
  274. .bytm-dialog-close.small
  275. {
  276. width: 24px;
  277. height: 24px;
  278. }
  279. .bytm-dialog-footer {
  280. font-size: 17px;
  281. text-decoration: underline;
  282. }
  283. .bytm-dialog-footer.hidden {
  284. display: none;
  285. }
  286. .bytm-dialog-footer-cont {
  287. margin-top: 6px;
  288. padding: 15px 20px;
  289. background: var(--bytm-dialog-bg);
  290. background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--bytm-dialog-bg) 30%, var(--bytm-dialog-bg) 100%);
  291. border: 2px solid var(--bytm-dialog-separator-color);
  292. border-style: solid none none none !important;
  293. border-radius: 0px 0px var(--bytm-dialog-border-radius) var(--bytm-dialog-border-radius);
  294. }
  295. #bytm-dialog-footer-buttons-cont button:not(:last-of-type) {
  296. margin-right: 15px;
  297. }
  298. .bytm-dialog-footer-right {
  299. display: flex;
  300. flex-direction: row-reverse;
  301. align-items: center;
  302. margin-top: 15px;
  303. }
  304. #bytm-dialog-footer-left-buttons-cont button:not(:last-of-type) {
  305. margin-right: 15px;
  306. }
  307. #bytm-dialog-scroll-indicator {
  308. --bytm-scroll-indicator-padding: 5px;
  309. position: sticky;
  310. bottom: -15px;
  311. left: 50%;
  312. margin-top: calc(-32px - var(--bytm-scroll-indicator-padding) * 2);
  313. padding: var(--bytm-scroll-indicator-padding);
  314. transform: translateX(-50%);
  315. width: 32px;
  316. height: 32px;
  317. z-index: 7;
  318. background-color: var(--bytm-scroll-indicator-bg);
  319. border-radius: 50%;
  320. cursor: pointer;
  321. }
  322. .bytm-hidden {
  323. visibility: hidden !important;
  324. }
  325. .bytm-ftconf-category-header {
  326. font-size: 20px;
  327. margin-top: 32px;
  328. margin-bottom: 8px;
  329. padding: 0px 20px;
  330. }
  331. .bytm-ftconf-category-header:first-of-type {
  332. margin-top: 0;
  333. }
  334. .bytm-dialog .bytm-ftitem {
  335. display: flex;
  336. flex-direction: row;
  337. justify-content: space-between;
  338. align-items: center;
  339. font-size: 1.4em;
  340. padding: 8px 20px;
  341. transition: background-color 0.15s ease-out;
  342. }
  343. .bytm-dialog .bytm-ftitem:hover {
  344. background-color: var(--bytm-dialog-bg-highlight);
  345. }
  346. .bytm-ftitem-leftside {
  347. display: flex;
  348. align-items: center;
  349. min-height: 24px;
  350. }
  351. .bytm-ftconf-ctrl {
  352. display: inline-flex;
  353. align-items: center;
  354. white-space: nowrap;
  355. margin-left: 10px;
  356. }
  357. .bytm-ftconf-label {
  358. user-select: none;
  359. }
  360. .bytm-slider-label {
  361. margin-right: 10px;
  362. }
  363. .bytm-ftconf-input.bytm-hotkey-input {
  364. cursor: pointer;
  365. min-width: 80px;
  366. }
  367. .bytm-ftconf-input[type=number] {
  368. width: 75px;
  369. }
  370. .bytm-ftconf-input[type=range] {
  371. width: 200px;
  372. }
  373. .bytm-ftconf-input[type=text] {
  374. width: 200px;
  375. }
  376. .bytm-ftconf-input[type=checkbox] {
  377. margin-left: 5px;
  378. }
  379. select.bytm-ftconf-input {
  380. cursor: revert;
  381. }
  382. #bytm-export-dialog-text, #bytm-import-dialog-text {
  383. font-size: 1.6em;
  384. margin-bottom: 15px;
  385. }
  386. .bytm-dialog-footer-copied {
  387. font-size: 1.6em;
  388. margin-right: 15px;
  389. }
  390. #bytm-changelog-dialog-body {
  391. overflow-y: auto;
  392. }
  393. #bytm-export-dialog-textarea, #bytm-import-dialog-textarea {
  394. width: 100%;
  395. height: 150px;
  396. resize: none;
  397. }
  398. .bytm-markdown-container {
  399. display: flex;
  400. flex-direction: column;
  401. overflow-y: auto;
  402. font-size: 1.4rem;
  403. line-height: 20px;
  404. }
  405. /* Markdown stuff */
  406. .bytm-markdown-container kbd, .bytm-kbd {
  407. --bytm-easing: cubic-bezier(0.31, 0.58, 0.24, 1.15);
  408. display: inline-block;
  409. vertical-align: bottom;
  410. padding: 4px;
  411. padding-top: 2px;
  412. font-size: 0.95em;
  413. line-height: 11px;
  414. background-color: #222;
  415. border: 1px solid #777;
  416. border-radius: 5px;
  417. box-shadow: inset 0 -2px 0 #515559;
  418. transition: padding 0.1s var(--bytm-easing), margin-top 0.1s var(--bytm-easing), box-shadow 0.1s var(--bytm-easing);
  419. }
  420. .bytm-markdown-container kbd:active, .bytm-kbd:active {
  421. padding-bottom: 2px;
  422. margin-top: 2px;
  423. box-shadow: inset 0 0 0 initial;
  424. }
  425. .bytm-markdown-container kbd::selection, .bytm-kbd::selection {
  426. background: rgba(0, 0, 0, 0);
  427. }
  428. .bytm-markdown-container code {
  429. background-color: #222;
  430. border-radius: 3px;
  431. padding: 1px 5px;
  432. font-family: monospace;
  433. }
  434. .bytm-markdown-container h2 {
  435. margin-bottom: 5px;
  436. }
  437. .bytm-markdown-container h2:not(:first-of-type) {
  438. margin-top: 30px;
  439. }
  440. .bytm-markdown-container ul li::before {
  441. content: "• ";
  442. font-weight: bolder;
  443. }
  444. .bytm-markdown-container ul li > ul li::before {
  445. white-space: pre-wrap;
  446. content: " • ";
  447. font-weight: bolder;
  448. }
  449. #bytm-feat-help-dialog-desc, #bytm-feat-help-dialog-text {
  450. overflow-wrap: break-word;
  451. white-space: pre-wrap;
  452. font-size: 1.5em;
  453. }
  454. #bytm-feat-help-dialog-desc {
  455. font-size: 1.65em;
  456. padding-bottom: 5px;
  457. }
  458. .bytm-ftitem-help-btn {
  459. width: 24px !important;
  460. height: 24px !important;
  461. }
  462. .bytm-ftitem-help-btn svg {
  463. width: 18px !important;
  464. height: 18px !important;
  465. }
  466. .bytm-ftitem-help-btn svg > path {
  467. fill: #b3bec7 !important;
  468. }
  469. hr {
  470. display: block;
  471. margin: 8px 0px 12px 0px;
  472. border: revert;
  473. }
  474. .bytm-ftitem-adornment {
  475. display: inline-flex;
  476. justify-content: flex-start;
  477. align-items: center;
  478. margin-right: 6px;
  479. }
  480. .bytm-hotkey-wrapper {
  481. display: flex;
  482. flex-direction: row;
  483. align-items: center;
  484. justify-content: flex-end;
  485. }
  486. .bytm-hotkey-reset {
  487. font-size: 0.9em;
  488. margin-right: 10px;
  489. }
  490. .bytm-hotkey-info {
  491. font-size: 0.9em;
  492. white-space: nowrap;
  493. }
  494. :root html body .bytm-ripple {
  495. position: relative;
  496. width: var(--bytm-ripple-width, 100%);
  497. height: var(--bytm-ripple-height, 100%);
  498. overflow: hidden;
  499. white-space: nowrap;
  500. text-overflow: ellipsis;
  501. }
  502. .bytm-ripple-area {
  503. position: absolute;
  504. background: rgba(255, 255, 255, 0.7);
  505. transform: translate(-50%, -50%);
  506. pointer-events: none;
  507. border-radius: 50%;
  508. animation: bytm-scale-ripple 0.25s ease-in;
  509. }
  510. @keyframes bytm-scale-ripple {
  511. 0% {
  512. width: 0;
  513. height: 0;
  514. opacity: 0.5;
  515. }
  516. 100% {
  517. width: 400px;
  518. height: 400px;
  519. opacity: 0;
  520. }
  521. }
  522. :root {
  523. --bytm-toast-bg-color: #323232;
  524. --bytm-toast-text-color: #fff;
  525. --bytm-toast-offset-ver: 80px;
  526. --bytm-toast-offset-hor: 25px;
  527. --bytm-toast-transition-time: 0.5s;
  528. --bytm-toast-transform-distance: 175px;
  529. }
  530. #bytm-toast {
  531. position: fixed;
  532. z-index: 1042069;
  533. opacity: 0.000001;
  534. pointer-events: none;
  535. padding: 10px 16px;
  536. border-radius: 3px;
  537. font-size: 1.5rem;
  538. background-color: var(--bytm-toast-bg-color);
  539. color: var(--bytm-toast-text-color);
  540. transition: opacity var(--bytm-toast-transition-time) ease, transform var(--bytm-toast-transition-time) ease;
  541. }
  542. #bytm-toast.visible {
  543. pointer-events: auto;
  544. opacity: 1;
  545. }
  546. #bytm-toast.pos-tl {
  547. top: var(--bytm-toast-offset-ver);
  548. left: var(--bytm-toast-offset-hor);
  549. transform: translate(0, calc(var(--bytm-toast-transform-distance) * -1));
  550. }
  551. #bytm-toast.pos-tr {
  552. top: var(--bytm-toast-offset-ver);
  553. right: var(--bytm-toast-offset-hor);
  554. transform: translate(0, calc(var(--bytm-toast-transform-distance) * -1));
  555. }
  556. #bytm-toast.pos-br {
  557. bottom: var(--bytm-toast-offset-ver);
  558. right: var(--bytm-toast-offset-hor);
  559. transform: translate(0, var(--bytm-toast-transform-distance));
  560. }
  561. #bytm-toast.pos-bl {
  562. bottom: var(--bytm-toast-offset-ver);
  563. left: var(--bytm-toast-offset-hor);
  564. transform: translate(0, var(--bytm-toast-transform-distance));
  565. }
  566. #bytm-toast.visible.pos-tl,
  567. #bytm-toast.visible.pos-tr,
  568. #bytm-toast.visible.pos-br,
  569. #bytm-toast.visible.pos-bl
  570. {
  571. transform: translate(0, 0);
  572. }
  573. .bytm-toast-flex-wrapper {
  574. display: flex;
  575. flex-direction: row;
  576. align-items: center;
  577. gap: 10px;
  578. }
  579. .bytm-toast-icon.img {
  580. width: 24px;
  581. height: 24px;
  582. }
  583. .bytm-toggle-input-wrapper {
  584. --toggle-height: 20px;
  585. --toggle-width: 40px;
  586. --toggle-knob-offset: 4px;
  587. --toggle-color-on: #3683d4;
  588. --toggle-color-off: #666;
  589. --toggle-knob-color: #f5f5f5;
  590. display: flex;
  591. align-items: center;
  592. }
  593. .bytm-toggle-input-wrapper .bytm-toggle-input-label {
  594. cursor: pointer;
  595. font-size: 1.5rem;
  596. padding: 3px 12px;
  597. }
  598. /* sauce: https://danklammer.com/articles/simple-css-toggle-switch/ */
  599. .bytm-toggle-input {
  600. display: flex;
  601. align-items: center;
  602. }
  603. .bytm-toggle-input input {
  604. appearance: none;
  605. display: inline-block;
  606. width: var(--toggle-width);
  607. height: var(--toggle-height);
  608. position: relative;
  609. border-radius: 50px;
  610. overflow: hidden;
  611. outline: none;
  612. border: none;
  613. margin: 0;
  614. padding: var(--toggle-knob-offset);
  615. cursor: pointer;
  616. background-color: var(--toggle-color-off);
  617. transition: justify-content 0.2s ease, background-color 0.2s ease;
  618. }
  619. .bytm-toggle-input input[data-toggled="true"] {
  620. background-color: var(--toggle-color-on);
  621. }
  622. .bytm-toggle-input input .bytm-toggle-input-knob {
  623. --toggle-knob-calc-width: calc(var(--toggle-height) - (var(--toggle-knob-offset) * 2));
  624. --toggle-knob-calc-height: calc(var(--toggle-height) - (var(--toggle-knob-offset) * 2));
  625. width: var(--toggle-knob-calc-width);
  626. height: var(--toggle-knob-calc-height);
  627. background-color: var(--toggle-knob-color);
  628. border-radius: 50%;
  629. position: absolute;
  630. top: 50%;
  631. transform: translateY(-50%);
  632. left: var(--toggle-knob-offset);
  633. transition: left 0.2s ease;
  634. }
  635. .bytm-toggle-input input[data-toggled="true"] .bytm-toggle-input-knob {
  636. left: calc(var(--toggle-width) - var(--toggle-knob-offset) - var(--toggle-knob-calc-width));
  637. }
  638. :root {
  639. --bytm-menu-bg-highlight: #252525;
  640. }
  641. .bytm-menu-bg {
  642. --bytm-menu-bg: #333333;
  643. --bytm-scroll-indicator-bg: rgba(10, 10, 10, 0.7);
  644. --bytm-menu-separator-color: #797979;
  645. --bytm-menu-border-radius: 10px;
  646. }
  647. .bytm-menu-bg {
  648. display: block;
  649. position: fixed;
  650. width: 100%;
  651. height: 100%;
  652. top: 0;
  653. left: 0;
  654. z-index: 5;
  655. background-color: rgba(0, 0, 0, 0.6);
  656. }
  657. .bytm-menu {
  658. position: fixed;
  659. display: flex;
  660. flex-direction: column;
  661. width: calc(min(100% - 60px, var(--bytm-menu-width-max)));
  662. border-radius: var(--bytm-menu-border-radius);
  663. height: auto;
  664. max-height: calc(min(100% - 40px, var(--bytm-menu-height-max)));
  665. left: 50%;
  666. top: 50%;
  667. transform: translate(-50%, -50%);
  668. z-index: 6;
  669. color: #fff;
  670. background-color: var(--bytm-menu-bg);
  671. }
  672. .bytm-menu.top-aligned {
  673. top: 0;
  674. transform: translate(-50%, 40px);
  675. }
  676. .bytm-menu-body {
  677. padding: 20px;
  678. }
  679. #bytm-menu-opts {
  680. display: flex;
  681. flex-direction: column;
  682. position: relative;
  683. padding: 20px 0px;
  684. overflow-y: auto;
  685. }
  686. .bytm-menu-header {
  687. display: flex;
  688. justify-content: space-between;
  689. align-items: center;
  690. margin-bottom: 6px;
  691. padding: 15px 20px 15px 20px;
  692. background-color: var(--bytm-menu-bg);
  693. border: 2px solid var(--bytm-menu-separator-color);
  694. border-style: none none solid none !important;
  695. border-radius: var(--bytm-menu-border-radius) var(--bytm-menu-border-radius) 0px 0px;
  696. }
  697. .bytm-menu-header.small {
  698. padding: 10px 15px;
  699. border-style: none none solid none !important;
  700. }
  701. .bytm-menu-titlecont {
  702. position: relative;
  703. display: flex;
  704. align-items: center;
  705. }
  706. .bytm-menu-titlecont-no-title {
  707. display: flex;
  708. justify-content: flex-end;
  709. align-items: center;
  710. }
  711. .bytm-menu-title {
  712. position: relative;
  713. display: inline-block;
  714. font-size: 22px;
  715. }
  716. #bytm-cfg-menu-bg .bytm-menu-title {
  717. transform: translate(0px, -6px);
  718. }
  719. #bytm-cfg-menu {
  720. --bytm-menu-subtitle-color: #c6d2db;
  721. }
  722. #bytm-menu-subtitle-cont {
  723. width: 100%;
  724. display: flex;
  725. gap: 6px;
  726. flex-direction: row;
  727. justify-content: space-between;
  728. align-items: end;
  729. position: absolute;
  730. bottom: -12px;
  731. left: 0;
  732. font-size: 10px;
  733. font-weight: normal;
  734. z-index: 7;
  735. }
  736. #bytm-menu-subtitle-cont, #bytm-menu-version-anchor {
  737. color: var(--bytm-menu-subtitle-color) !important;
  738. }
  739. #bytm-menu-subtitle-cont, #bytm-menu-mode-display {
  740. overflow: hidden;
  741. text-overflow: ellipsis;
  742. white-space: nowrap;
  743. }
  744. #bytm-menu-version-anchor {
  745. overflow: hidden;
  746. text-wrap: nowrap;
  747. text-overflow: ellipsis;
  748. }
  749. #bytm-menu-linkscont {
  750. display: flex;
  751. align-items: center;
  752. margin-left: 32px;
  753. }
  754. .bytm-menu-link {
  755. position: relative;
  756. max-height: 32px;
  757. max-width: 32px;
  758. display: inline-flex;
  759. flex-direction: column;
  760. align-items: center;
  761. cursor: pointer;
  762. }
  763. .bytm-menu-link:not(:last-of-type) {
  764. margin-right: 10px;
  765. }
  766. .bytm-menu-link .bytm-menu-img {
  767. width: 32px;
  768. height: 32px;
  769. border-radius: 50%;
  770. padding: 0px;
  771. transform: translateY(0px);
  772. transition: transform 0.15s ease-out, padding 0.15s ease-out;
  773. }
  774. .bytm-menu-link:hover .bytm-menu-img {
  775. padding: 7px;
  776. transform: translateY(-14px);
  777. }
  778. .bytm-menu-link .extended-link {
  779. visibility: hidden;
  780. position: absolute;
  781. top: 14px;
  782. padding-top: 13px;
  783. padding-bottom: 2px;
  784. opacity: 0;
  785. text-decoration: none;
  786. color: var(--bytm-menu-subtitle-color) !important;
  787. white-space: pre;
  788. font-size: 1.1rem;
  789. transition: visibility 0.15s ease-out, opacity 0.15s ease-out;
  790. }
  791. .bytm-menu-link:hover .extended-link {
  792. visibility: visible;
  793. opacity: 1;
  794. }
  795. .bytm-menu-close {
  796. width: 32px;
  797. height: 32px;
  798. cursor: pointer;
  799. }
  800. .bytm-menu-close.small {
  801. width: 24px;
  802. height: 24px;
  803. }
  804. .bytm-menu-footer {
  805. font-size: 17px;
  806. text-decoration: underline;
  807. }
  808. .bytm-menu-footer.hidden {
  809. display: none;
  810. }
  811. .bytm-menu-footer-cont {
  812. display: flex;
  813. flex-direction: row;
  814. justify-content: space-between;
  815. margin-top: 6px;
  816. padding: 15px 20px;
  817. background: var(--bytm-menu-bg);
  818. background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--bytm-menu-bg) 30%, var(--bytm-menu-bg) 100%);
  819. border: 2px solid var(--bytm-menu-separator-color);
  820. border-style: solid none none none !important;
  821. border-radius: 0px 0px var(--bytm-menu-border-radius) var(--bytm-menu-border-radius);
  822. }
  823. #bytm-menu-footer-buttons-cont button:not(:last-of-type) {
  824. margin-right: 15px;
  825. }
  826. .bytm-menu-footer-right {
  827. display: flex;
  828. flex-direction: row-reverse;
  829. align-items: center;
  830. }
  831. #bytm-menu-footer-left-buttons-cont button:not(:last-of-type) {
  832. margin-right: 15px;
  833. }
  834. #bytm-menu-scroll-indicator {
  835. --bytm-scroll-indicator-padding: 5px;
  836. position: sticky;
  837. bottom: -15px;
  838. left: 50%;
  839. margin-top: calc(-32px - var(--bytm-scroll-indicator-padding) * 2);
  840. padding: var(--bytm-scroll-indicator-padding);
  841. transform: translateX(-50%);
  842. width: 32px;
  843. height: 32px;
  844. z-index: 7;
  845. background-color: var(--bytm-scroll-indicator-bg);
  846. border-radius: 50%;
  847. cursor: pointer;
  848. }
  849. .bytm-hidden {
  850. visibility: hidden !important;
  851. }
  852. .bytm-ftconf-category-header {
  853. font-size: 20px;
  854. margin-top: 32px;
  855. margin-bottom: 8px;
  856. padding: 0px 20px;
  857. }
  858. .bytm-ftconf-category-header:first-of-type {
  859. margin-top: 0;
  860. }
  861. .bytm-ftitem {
  862. display: flex;
  863. flex-direction: row;
  864. justify-content: space-between;
  865. align-items: center;
  866. font-size: 1.4rem;
  867. padding: 8px 20px;
  868. transition: background-color 0.15s ease-out;
  869. }
  870. .bytm-ftitem:hover {
  871. background-color: var(--bytm-menu-bg-highlight);
  872. }
  873. .bytm-ftitem-leftside {
  874. display: flex;
  875. align-items: center;
  876. min-height: 24px;
  877. }
  878. .bytm-ftconf-ctrl {
  879. display: inline-flex;
  880. align-items: center;
  881. white-space: nowrap;
  882. margin-left: 10px;
  883. }
  884. .bytm-ftconf-label {
  885. user-select: none;
  886. }
  887. .bytm-slider-label {
  888. margin-right: 10px;
  889. }
  890. .bytm-toggle-label {
  891. padding-left: 10px;
  892. padding-right: 5px;
  893. }
  894. .bytm-ftconf-input.bytm-hotkey-input {
  895. cursor: pointer;
  896. min-width: 50px;
  897. }
  898. .bytm-ftconf-input[type=number] {
  899. width: 75px;
  900. }
  901. .bytm-ftconf-input[type=checkbox] {
  902. margin-left: 5px;
  903. }
  904. #bytm-export-menu-text, #bytm-import-menu-text {
  905. white-space: pre-wrap;
  906. font-size: 1.6rem;
  907. margin-bottom: 15px;
  908. }
  909. .bytm-menu-footer-copied {
  910. font-size: 1.6rem;
  911. margin-right: 15px;
  912. }
  913. #bytm-changelog-menu-body {
  914. overflow-y: auto;
  915. }
  916. .bytm-changelog-version-details:not(:first-of-type) {
  917. margin-top: 15px;
  918. }
  919. .bytm-changelog-version-details summary h2 {
  920. display: inline-block;
  921. }
  922. .bytm-changelog-version-details summary {
  923. cursor: pointer;
  924. }
  925. .bytm-changelog-version-details summary::marker {
  926. font-size: 2rem;
  927. }
  928. #bytm-export-menu-textarea, #bytm-import-menu-textarea {
  929. width: 100%;
  930. height: 150px;
  931. resize: none;
  932. }
  933. .bytm-markdown-container {
  934. display: flex;
  935. flex-direction: column;
  936. overflow-y: auto;
  937. font-size: 1.5rem;
  938. line-height: 20px;
  939. }
  940. /* Markdown stuff */
  941. .bytm-markdown-container kbd {
  942. --bytm-easing: cubic-bezier(0.31, 0.58, 0.24, 1.15);
  943. display: inline-block;
  944. vertical-align: bottom;
  945. padding: 4px;
  946. padding-top: 2px;
  947. font-size: 0.95em;
  948. line-height: 11px;
  949. background-color: #222;
  950. border: 1px solid #777;
  951. border-radius: 5px;
  952. box-shadow: inset 0 -2px 0 #515559;
  953. transition: padding 0.1s var(--bytm-easing), box-shadow 0.1s var(--bytm-easing);
  954. }
  955. .bytm-markdown-container kbd:active {
  956. padding-bottom: 2px;
  957. box-shadow: inset 0 0 0 initial;
  958. }
  959. .bytm-markdown-container kbd::selection {
  960. background: rgba(0, 0, 0, 0);
  961. }
  962. .bytm-markdown-container code {
  963. background-color: #222;
  964. border-radius: 3px;
  965. padding: 1px 5px;
  966. }
  967. .bytm-markdown-container h2 {
  968. margin-bottom: 5px;
  969. }
  970. .bytm-markdown-container h2:not(:first-of-type) {
  971. margin-top: 30px;
  972. }
  973. .bytm-markdown-container ul li {
  974. padding-left: 0px;
  975. }
  976. .bytm-markdown-container ul li::marker {
  977. content: none;
  978. }
  979. .bytm-markdown-container ul li::before {
  980. content: "• ";
  981. font-weight: bolder;
  982. }
  983. .bytm-markdown-container ul li > ul li {
  984. padding-left: 16px;
  985. }
  986. .bytm-markdown-container ul li > ul li::marker {
  987. content: none;
  988. }
  989. .bytm-markdown-container ul li > ul li::before {
  990. white-space: pre-wrap;
  991. content: "• ";
  992. font-weight: bolder;
  993. }
  994. .bytm-markdown-container ul li > ul li > ul li {
  995. padding-left: 16px;
  996. }
  997. .bytm-markdown-container ul li > ul li > ul li::marker {
  998. content: none;
  999. }
  1000. .bytm-markdown-container ul li > ul li > ul li::before {
  1001. white-space: pre-wrap;
  1002. content: "• ";
  1003. font-weight: bolder;
  1004. }
  1005. .bytm-markdown-container .pr-link-cont {
  1006. padding-top: 10px;
  1007. }
  1008. #bytm-feat-help-dialog-desc, #bytm-feat-help-dialog-text {
  1009. overflow-wrap: break-word;
  1010. white-space: pre-wrap;
  1011. font-size: 1.5rem;
  1012. line-height: 1.25em;
  1013. }
  1014. #bytm-feat-help-dialog-desc {
  1015. font-size: 1.8rem;
  1016. padding-bottom: 10px;
  1017. }
  1018. .bytm-ftitem-help-btn {
  1019. width: 24px !important;
  1020. height: 24px !important;
  1021. }
  1022. .bytm-ftitem-help-btn svg {
  1023. width: 18px !important;
  1024. height: 18px !important;
  1025. }
  1026. .bytm-ftitem-help-btn svg > path {
  1027. fill: #b3bec7 !important;
  1028. }
  1029. hr {
  1030. display: block;
  1031. margin: 8px 0px 12px 0px;
  1032. border: revert;
  1033. }
  1034. /* #region misc */
  1035. .bytm-disable-scroll {
  1036. overflow: hidden !important;
  1037. }
  1038. .bytm-generic-btn {
  1039. --bytm-generic-btn-width: 36px;
  1040. --bytm-generic-btn-height: 36px;
  1041. display: inline-flex;
  1042. align-items: center;
  1043. justify-content: center;
  1044. position: relative;
  1045. vertical-align: middle;
  1046. cursor: pointer;
  1047. margin-left: 8px;
  1048. min-width: var(--bytm-generic-btn-width);
  1049. max-width: var(--bytm-generic-btn-width);
  1050. min-height: var(--bytm-generic-btn-height);
  1051. max-height: var(--bytm-generic-btn-height);
  1052. border: 1px solid transparent;
  1053. border-radius: calc(var(--bytm-generic-btn-height, 36px) / 2);
  1054. background-color: transparent;
  1055. transition: background-color 0.2s ease;
  1056. }
  1057. .bytm-generic-btn:not(.long):hover {
  1058. background-color: rgba(255, 255, 255, 0.2);
  1059. }
  1060. .bytm-generic-btn:active {
  1061. animation: flashBorder 0.4s ease 1;
  1062. }
  1063. .bytm-generic-btn:not(.bytm-toggle):active {
  1064. background-color: #5f5f5f;
  1065. }
  1066. .bytm-generic-btn.long {
  1067. --bytm-generic-btn-width: 136px;
  1068. padding: 0px;
  1069. line-height: 36px;
  1070. display: inline-flex;
  1071. align-items: center;
  1072. justify-content: center;
  1073. position: relative;
  1074. vertical-align: middle;
  1075. cursor: pointer;
  1076. margin-left: 0px;
  1077. }
  1078. .bytm-generic-btn.long .bytm-generic-btn-img.left {
  1079. margin-right: 8px;
  1080. }
  1081. .bytm-generic-btn.long .bytm-generic-btn-img.right {
  1082. margin-left: 8px;
  1083. }
  1084. .bytm-generic-long-btn-txt {
  1085. font-size: 14px;
  1086. }
  1087. .bytm-ftitem-help-btn.bytm-generic-btn {
  1088. --bytm-generic-btn-width: 24px;
  1089. --bytm-generic-btn-height: 24px;
  1090. }
  1091. @keyframes flashBorder {
  1092. 0% {
  1093. border: 1px solid initial;
  1094. }
  1095. 20% {
  1096. border: 1px solid #808080;
  1097. }
  1098. 100% {
  1099. border: 1px solid initial;
  1100. }
  1101. }
  1102. .bytm-generic-btn-img {
  1103. display: inline-block;
  1104. z-index: 1;
  1105. width: 24px;
  1106. height: 24px;
  1107. }
  1108. .bytm-spinner {
  1109. animation: rotate 1.2s linear infinite;
  1110. }
  1111. @keyframes rotate {
  1112. from {
  1113. transform: rotate(0deg);
  1114. }
  1115. to {
  1116. transform: rotate(360deg);
  1117. }
  1118. }
  1119. .bytm-anchor {
  1120. all: unset;
  1121. cursor: pointer;
  1122. }
  1123. /* ytmusic-logo a[bytm-animated="true"] .bytm-mod-logo-ellipse {
  1124. transform-origin: 12px 12px;
  1125. animation: rotate 1s ease-in-out infinite;
  1126. } */
  1127. ytmusic-logo a.bytm-logo-exchanged .bytm-mod-logo-path {
  1128. transform-origin: 12px 12px;
  1129. animation: rotate 1s ease-in-out;
  1130. }
  1131. ytmusic-logo a.bytm-logo-exchanged .bytm-mod-logo-img {
  1132. width: 24px;
  1133. height: 24px;
  1134. z-index: 1000;
  1135. position: absolute;
  1136. animation: rotate-fade-in 1s ease-in-out;
  1137. }
  1138. @keyframes rotate-fade-in {
  1139. 0% {
  1140. opacity: 0;
  1141. transform: rotate(0deg);
  1142. }
  1143. 30% {
  1144. opacity: 0;
  1145. }
  1146. 90% {
  1147. opacity: 1;
  1148. }
  1149. 100% {
  1150. transform: rotate(360deg);
  1151. }
  1152. }
  1153. .bytm-no-select {
  1154. user-select: none;
  1155. -ms-user-select: none;
  1156. -moz-user-select: none;
  1157. -webkit-user-select: none;
  1158. }
  1159. /* YTM does some weird styling that breaks everything, so this reverts all of BYTM's buttons to the browser default style */
  1160. button.bytm-btn {
  1161. padding: revert;
  1162. border: revert;
  1163. outline: revert;
  1164. font: revert;
  1165. text-transform: revert;
  1166. color: revert;
  1167. background: revert;
  1168. cursor: pointer;
  1169. line-height: 1.4em;
  1170. }
  1171. .bytm-link, .bytm-markdown-container a {
  1172. color: #369bff !important;
  1173. text-decoration: none !important;
  1174. cursor: pointer;
  1175. }
  1176. .bytm-link:hover, .bytm-markdown-container a:hover {
  1177. color: #369bff !important;
  1178. text-decoration: underline !important;
  1179. }
  1180. button[disabled] {
  1181. cursor: not-allowed;
  1182. }
  1183. button[disabled].bytm-busy {
  1184. cursor: progress;
  1185. }
  1186. /* #region random fixes */
  1187. .sponsorSkipNoticeContainer,
  1188. .sponsorSkipObject {
  1189. z-index: 4;
  1190. }
  1191. /* #region menu */
  1192. .bytm-cfg-menu-option {
  1193. display: block;
  1194. padding: 8px 0;
  1195. }
  1196. .bytm-cfg-menu-option-item {
  1197. display: flex;
  1198. flex-direction: row;
  1199. align-items: center;
  1200. font-size: 1.4rem;
  1201. font-weight: 400;
  1202. line-height: 24px;
  1203. padding: var(--yt-compact-link-paper-item-padding, 0px 36px 0 16px);
  1204. min-height: var(--paper-item-min-height, 40px);
  1205. white-space: nowrap;
  1206. cursor: pointer;
  1207. }
  1208. .bytm-cfg-menu-option-item:hover {
  1209. background-color: var(--yt-spec-badge-chip-background, #3e3e3e);
  1210. }
  1211. .bytm-cfg-menu-option-icon {
  1212. width: 24px;
  1213. height: 24px;
  1214. margin-right: 16px;
  1215. display: flex;
  1216. align-items: center;
  1217. flex-direction: row;
  1218. flex: none;
  1219. }
  1220. .bytm-cfg-menu-option-text {
  1221. font-size: 1.4rem;
  1222. line-height: 2rem;
  1223. }
  1224. yt-multi-page-menu-section-renderer.ytd-multi-page-menu-renderer {
  1225. border-bottom: 1px solid var(--yt-spec-10-percent-layer, #3e3e3e);
  1226. }
  1227. .bytm-yt-cfg-menu-option {
  1228. position: relative;
  1229. width: calc(100% - 12px);
  1230. }
  1231. .bytm-yt-cfg-menu-option-inner {
  1232. display: flex;
  1233. flex-direction: row;
  1234. justify-content: flex-start;
  1235. align-items: center;
  1236. min-height: var(--paper-item-min-height, 48px);
  1237. max-width: calc(100% - 12px);
  1238. padding: 0px 12px;
  1239. border-radius: var(--paper-item-focused-before-border-radius, 10px);
  1240. cursor: pointer;
  1241. background-color: transparent;
  1242. transition: background-color 0.2s ease;
  1243. }
  1244. .bytm-yt-cfg-menu-option-inner:hover {
  1245. background-color: var(--yt-spec-badge-chip-background, rgba(255, 255, 255, 0.1));
  1246. }
  1247. .bytm-yt-cfg-menu-option-icon {
  1248. display: flex;
  1249. align-items: center;
  1250. flex-direction: row;
  1251. width: 24px;
  1252. height: 24px;
  1253. margin-right: 24px;
  1254. }
  1255. .bytm-yt-cfg-menu-option-item {
  1256. width: 100%;
  1257. color: #fff;
  1258. font-size: 14px;
  1259. }
  1260. .bytm-yt-cfg-menu-option-item:hover {
  1261. /* Support for "Enhancer for YouTube" extension's custom themes */
  1262. color: var(--main-color, #fff) !important;
  1263. }
  1264. /* #region watermark */
  1265. #bytm-watermark {
  1266. font-size: 10px;
  1267. display: inline-block;
  1268. position: absolute;
  1269. left: 97px;
  1270. top: 45px;
  1271. z-index: 10;
  1272. color: #f1f1f1;
  1273. text-decoration: none;
  1274. cursor: pointer;
  1275. }
  1276. #bytm-watermark:hover {
  1277. text-decoration: underline;
  1278. }
  1279. /* #region above queue btns */
  1280. #bytm-above-queue-btn-cont {
  1281. display: flex;
  1282. flex-direction: row;
  1283. justify-content: center;
  1284. align-items: center;
  1285. flex-wrap: nowrap;
  1286. height: 100%;
  1287. }
  1288. #bytm-above-queue-btn-wrapper {
  1289. white-space: nowrap;
  1290. }
  1291. .bytm-above-queue-btn {
  1292. width: 32px;
  1293. height: 32px;
  1294. margin-left: 0;
  1295. margin-right: 8px;
  1296. }
  1297. /* #region scroll to active */
  1298. #bytm-scroll-to-active-btn-cont {
  1299. display: flex;
  1300. flex-direction: column;
  1301. justify-content: center;
  1302. align-items: center;
  1303. height: 100%;
  1304. }
  1305. #bytm-scroll-to-active-btn-cont.hidden {
  1306. display: none;
  1307. }
  1308. #bytm-scroll-to-active-btn {
  1309. display: inline-flex;
  1310. align-items: center;
  1311. justify-content: center;
  1312. border-radius: 50%;
  1313. cursor: pointer;
  1314. }
  1315. #bytm-scroll-to-active-btn {
  1316. width: revert;
  1317. height: revert;
  1318. }
  1319. #bytm-scroll-to-active-btn .bytm-generic-btn-img {
  1320. padding: 4px;
  1321. }
  1322. /* #region thumbnail */
  1323. #bytm-thumbnail-overlay {
  1324. position: absolute;
  1325. top: 0;
  1326. left: 0;
  1327. width: 100%;
  1328. height: 100%;
  1329. display: none;
  1330. background-color: #030303;
  1331. z-index: 0;
  1332. }
  1333. #bytm-thumbnail-overlay-img {
  1334. position: relative;
  1335. width: 100%;
  1336. height: 100%;
  1337. }
  1338. #bytm-thumbnail-overlay-indicator {
  1339. position: absolute;
  1340. bottom: 16px;
  1341. right: 16px;
  1342. width: calc(min(56px, 100% - 16px));
  1343. height: calc(min(56px, 100% - 16px));
  1344. z-index: 1;
  1345. cursor: help;
  1346. filter: drop-shadow(0 0 3px #000);
  1347. }
  1348. ytmusic-player#player #bezel {
  1349. z-index: 1;
  1350. }
  1351. :root {
  1352. --bytm-auto-like-btn-color: #bf87f0;
  1353. }
  1354. #bytm-auto-like-channels-list {
  1355. display: flex;
  1356. flex-direction: column;
  1357. overflow-x: hidden;
  1358. overflow-y: auto;
  1359. white-space: nowrap;
  1360. text-overflow: ellipsis;
  1361. /* idk how else to get the scroll bar to show up correctly */
  1362. max-height: calc(min(100vh - 40px, var(--bytm-dialog-height-max)) - 300px);
  1363. }
  1364. .bytm-auto-like-channel-row-left-cont {
  1365. display: flex;
  1366. align-items: center;
  1367. gap: 10px;
  1368. }
  1369. .bytm-auto-like-channel-row {
  1370. display: flex;
  1371. justify-content: space-between;
  1372. align-items: center;
  1373. padding: 8px 15px;
  1374. transition: background-color 0.15s ease-out;
  1375. }
  1376. .bytm-auto-like-channels-desc {
  1377. padding: 0px 15px;
  1378. white-space: pre-wrap;
  1379. font-size: 1.6rem;
  1380. margin-bottom: 15px;
  1381. }
  1382. #bytm-auto-like-channels-add-new-wrapper {
  1383. margin: 15px;
  1384. margin-top: 5px;
  1385. }
  1386. .bytm-auto-like-channel-row:hover {
  1387. background-color: var(--bytm-menu-bg-highlight);
  1388. }
  1389. .bytm-auto-like-channel-row .bytm-toggle-input-wrapper.bytm-auto-like-channel-toggle {
  1390. --toggle-height: 18px !important;
  1391. --toggle-width: 36px !important;
  1392. }
  1393. .bytm-auto-like-channel-row .bytm-generic-btn {
  1394. --bytm-generic-btn-width: 30px;
  1395. --bytm-generic-btn-height: 30px;
  1396. }
  1397. .bytm-auto-like-channel-name-label {
  1398. display: flex;
  1399. flex-direction: row;
  1400. align-items: center;
  1401. }
  1402. .bytm-auto-like-channel-id {
  1403. cursor: text;
  1404. font-size: 1.1rem;
  1405. color: #aaa;
  1406. margin-left: 10px;
  1407. }
  1408. .bytm-auto-like-toggle-btn {
  1409. margin-right: 8px;
  1410. border: 1px solid var(--bytm-auto-like-btn-color);
  1411. box-sizing: border-box;
  1412. background-color: transparent;
  1413. transition: border-color 0.2s ease;
  1414. animation: none;
  1415. }
  1416. .bytm-auto-like-toggle-btn.left-margin {
  1417. margin: 0;
  1418. margin-left: 8px;
  1419. }
  1420. .bytm-auto-like-toggle-btn:active {
  1421. background-color: rgba(255, 255, 255, 0.1);
  1422. }
  1423. .bytm-auto-like-toggle-btn:active,
  1424. .bytm-auto-like-toggle-btn.toggled {
  1425. border-color: rgba(255, 255, 255, 0.2);
  1426. }
  1427. .bytm-auto-like-toggle-btn svg path {
  1428. fill: var(--bytm-auto-like-btn-color);
  1429. transition: fill 0.2s ease;
  1430. }
  1431. .bytm-auto-like-toggle-btn:active svg path,
  1432. .bytm-auto-like-toggle-btn.toggled svg path {
  1433. fill: var(--ytmusic-subscribe-button-color, rgba(255, 255, 255, 0.7));
  1434. }
  1435. .bytm-auto-like-toggle-btn .bytm-generic-long-btn-txt {
  1436. font-weight: 500;
  1437. color: var(--bytm-auto-like-btn-color);
  1438. transition: color 0.2s ease;
  1439. }
  1440. .bytm-auto-like-toggle-btn:active .bytm-generic-long-btn-txt,
  1441. .bytm-auto-like-toggle-btn.toggled .bytm-generic-long-btn-txt
  1442. {
  1443. color: var(--ytmusic-subscribe-button-color, rgba(255, 255, 255, 0.7));
  1444. }
  1445. /* #region queue buttons */
  1446. #side-panel ytmusic-player-queue-item .song-info.ytmusic-player-queue-item {
  1447. position: relative;
  1448. }
  1449. #side-panel ytmusic-player-queue-item .bytm-queue-btn-container {
  1450. background: rgb(0, 0, 0);
  1451. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #030303 15%);
  1452. display: none;
  1453. position: absolute;
  1454. right: 0;
  1455. padding-left: 25px;
  1456. height: 100%;
  1457. }
  1458. #side-panel ytmusic-player-queue-item[selected] .bytm-queue-btn-container {
  1459. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #1D1D1D 15%);
  1460. }
  1461. .bytm-generic-list-queue-btn-container {
  1462. /* otherwise the queue buttons render over the currently playing song page */
  1463. z-index: 1;
  1464. }
  1465. #side-panel ytmusic-player-queue-item:hover .bytm-queue-btn-container,
  1466. ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer:hover .bytm-queue-btn-container,
  1467. ytmusic-shelf-renderer ytmusic-responsive-list-item-renderer:hover .bytm-queue-btn-container,
  1468. /* same thing but with :focus-within */
  1469. #side-panel ytmusic-player-queue-item:focus-within .bytm-queue-btn-container,
  1470. ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer:focus-within .bytm-queue-btn-container,
  1471. ytmusic-shelf-renderer ytmusic-responsive-list-item-renderer:focus-within .bytm-queue-btn-container
  1472. {
  1473. display: inline-flex;
  1474. align-items: center;
  1475. }
  1476. ytmusic-responsive-list-item-renderer .title-column {
  1477. align-items: center;
  1478. }
  1479. #side-panel ytmusic-player-queue-item[play-button-state="loading"] .bytm-queue-btn-container,
  1480. #side-panel ytmusic-player-queue-item[play-button-state="playing"] .bytm-queue-btn-container,
  1481. #side-panel ytmusic-player-queue-item[play-button-state="paused"] .bytm-queue-btn-container
  1482. {
  1483. /* using a var() with predefined value from YTM is not viable since the nesting changes the actual value of the variable */
  1484. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #030303 15%);
  1485. }
  1486. #side-panel ytmusic-player-queue-item[selected][play-button-state="loading"] .bytm-queue-btn-container,
  1487. #side-panel ytmusic-player-queue-item[selected][play-button-state="playing"] .bytm-queue-btn-container,
  1488. #side-panel ytmusic-player-queue-item[selected][play-button-state="paused"] .bytm-queue-btn-container
  1489. {
  1490. /* using a var() with predefined value from YTM is not viable since the nesting changes the actual value of the variable */
  1491. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #1D1D1D 15%);
  1492. }
  1493. ytmusic-app ytmusic-popup-container tp-yt-iron-dropdown[data-bytm-hidden=true] {
  1494. display: none !important;
  1495. }
  1496. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns .bytm-generic-list-queue-btn-container {
  1497. visibility: hidden;
  1498. }
  1499. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns .bytm-generic-list-queue-btn-container a.bytm-generic-btn {
  1500. visibility: hidden !important;
  1501. }
  1502. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:hover .bytm-generic-list-queue-btn-container,
  1503. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:focus-within .bytm-generic-list-queue-btn-container
  1504. {
  1505. visibility: visible;
  1506. }
  1507. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:hover .bytm-generic-list-queue-btn-container a.bytm-generic-btn,
  1508. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:focus-within .bytm-generic-list-queue-btn-container a.bytm-generic-btn
  1509. {
  1510. visibility: visible !important;
  1511. }
  1512. /* #region volume slider */
  1513. #bytm-vol-slider-cont {
  1514. position: relative;
  1515. }
  1516. #bytm-vol-slider-label {
  1517. opacity: 0.000001;
  1518. position: absolute;
  1519. display: flex;
  1520. flex-direction: row;
  1521. align-items: center;
  1522. gap: 5px;
  1523. font-size: 1.4rem;
  1524. top: 50%;
  1525. left: 0;
  1526. transform: translate(calc(-50% - 10px), -50%);
  1527. text-align: right;
  1528. transition: opacity 0.2s ease;
  1529. }
  1530. #bytm-vol-slider-label.has-icon {
  1531. transform: translate(calc(-50% - 25px), -50%);
  1532. }
  1533. #bytm-vol-slider-label svg {
  1534. padding: 4px;
  1535. }
  1536. #bytm-vol-slider-label svg path {
  1537. fill: #909090;
  1538. }
  1539. #bytm-vol-slider-label.bytm-visible {
  1540. opacity: 1;
  1541. }
  1542. #bytm-vol-slider-shared {
  1543. display: flex;
  1544. flex-direction: row;
  1545. align-items: center;
  1546. }
  1547. #bytm-vol-slider-shared svg {
  1548. width: 20px;
  1549. height: 20px;
  1550. }