BetterYTM.css 41 KB

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