1
0

BetterYTM.css 37 KB

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