BetterYTM.css 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800
  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. #bytm-toast {
  490. --bytm-toast-bg-color: #323232;
  491. --bytm-toast-text-color: #fff;
  492. --bytm-toast-offset: 25px;
  493. --bytm-toast-transform-distance: 100px;
  494. --bytm-toast-transition-time: 0.5s;
  495. position: fixed;
  496. z-index: 100;
  497. opacity: 0.000001;
  498. pointer-events: none;
  499. padding: 10px 20px;
  500. border-radius: 3px;
  501. font-size: 14px;
  502. background-color: var(--bytm-toast-bg-color);
  503. color: var(--bytm-toast-text-color);
  504. transition: opacity var(--bytm-toast-transition-time) ease, transform var(--bytm-toast-transition-time) ease;
  505. }
  506. #bytm-toast.visible {
  507. pointer-events: auto;
  508. opacity: 1;
  509. }
  510. #bytm-toast.pos-tl {
  511. top: var(--bytm-toast-offset);
  512. left: var(--bytm-toast-offset);
  513. transform: translate(0, calc(var(--bytm-toast-transform-distance) * -1));
  514. }
  515. #bytm-toast.pos-tr {
  516. top: var(--bytm-toast-offset);
  517. right: var(--bytm-toast-offset);
  518. transform: translate(0, calc(var(--bytm-toast-transform-distance) * -1));
  519. }
  520. #bytm-toast.pos-br {
  521. bottom: var(--bytm-toast-offset);
  522. right: var(--bytm-toast-offset);
  523. transform: translate(0, var(--bytm-toast-transform-distance));
  524. }
  525. #bytm-toast.pos-bl {
  526. bottom: var(--bytm-toast-offset);
  527. left: var(--bytm-toast-offset);
  528. transform: translate(0, var(--bytm-toast-transform-distance));
  529. }
  530. #bytm-toast.visible.pos-tl,
  531. #bytm-toast.visible.pos-tr,
  532. #bytm-toast.visible.pos-br,
  533. #bytm-toast.visible.pos-bl
  534. {
  535. transform: translate(0, 0);
  536. }
  537. .bytm-toast-flex-wrapper {
  538. display: flex;
  539. flex-direction: row;
  540. align-items: center;
  541. gap: 10px;
  542. }
  543. .bytm-toggle-input-wrapper {
  544. --toggle-height: 20px;
  545. --toggle-width: 40px;
  546. --toggle-knob-offset: 4px;
  547. --toggle-color-on: #3683d4;
  548. --toggle-color-off: #666;
  549. --toggle-knob-color: #f5f5f5;
  550. display: flex;
  551. align-items: center;
  552. }
  553. .bytm-toggle-input-wrapper .bytm-toggle-input-label {
  554. cursor: pointer;
  555. font-size: 1.5rem;
  556. padding: 3px 12px;
  557. }
  558. /* sauce: https://danklammer.com/articles/simple-css-toggle-switch/ */
  559. .bytm-toggle-input {
  560. display: flex;
  561. align-items: center;
  562. }
  563. .bytm-toggle-input input {
  564. appearance: none;
  565. display: inline-block;
  566. width: var(--toggle-width);
  567. height: var(--toggle-height);
  568. position: relative;
  569. border-radius: 50px;
  570. overflow: hidden;
  571. outline: none;
  572. border: none;
  573. margin: 0;
  574. padding: var(--toggle-knob-offset);
  575. cursor: pointer;
  576. background-color: var(--toggle-color-off);
  577. transition: justify-content 0.2s ease, background-color 0.2s ease;
  578. }
  579. .bytm-toggle-input input[data-toggled="true"] {
  580. background-color: var(--toggle-color-on);
  581. }
  582. .bytm-toggle-input input .bytm-toggle-input-knob {
  583. --toggle-knob-calc-width: calc(var(--toggle-height) - (var(--toggle-knob-offset) * 2));
  584. --toggle-knob-calc-height: calc(var(--toggle-height) - (var(--toggle-knob-offset) * 2));
  585. width: var(--toggle-knob-calc-width);
  586. height: var(--toggle-knob-calc-height);
  587. background-color: var(--toggle-knob-color);
  588. border-radius: 50%;
  589. position: absolute;
  590. top: 50%;
  591. transform: translateY(-50%);
  592. left: var(--toggle-knob-offset);
  593. transition: left 0.2s ease;
  594. }
  595. .bytm-toggle-input input[data-toggled="true"] .bytm-toggle-input-knob {
  596. left: calc(var(--toggle-width) - var(--toggle-knob-offset) - var(--toggle-knob-calc-width));
  597. }
  598. :root {
  599. --bytm-menu-bg-highlight: #252525;
  600. }
  601. .bytm-menu-bg {
  602. --bytm-menu-bg: #333333;
  603. --bytm-scroll-indicator-bg: rgba(10, 10, 10, 0.7);
  604. --bytm-menu-separator-color: #797979;
  605. --bytm-menu-border-radius: 10px;
  606. }
  607. .bytm-menu-bg {
  608. display: block;
  609. position: fixed;
  610. width: 100%;
  611. height: 100%;
  612. top: 0;
  613. left: 0;
  614. z-index: 5;
  615. background-color: rgba(0, 0, 0, 0.6);
  616. }
  617. .bytm-menu {
  618. position: fixed;
  619. display: flex;
  620. flex-direction: column;
  621. width: calc(min(100% - 60px, var(--bytm-menu-width-max)));
  622. border-radius: var(--bytm-menu-border-radius);
  623. height: auto;
  624. max-height: calc(min(100% - 40px, var(--bytm-menu-height-max)));
  625. left: 50%;
  626. top: 50%;
  627. transform: translate(-50%, -50%);
  628. z-index: 6;
  629. color: #fff;
  630. background-color: var(--bytm-menu-bg);
  631. }
  632. .bytm-menu.top-aligned {
  633. top: 0;
  634. transform: translate(-50%, 40px);
  635. }
  636. .bytm-menu-body {
  637. padding: 20px;
  638. }
  639. #bytm-menu-opts {
  640. display: flex;
  641. flex-direction: column;
  642. position: relative;
  643. padding: 20px 0px;
  644. overflow-y: auto;
  645. }
  646. .bytm-menu-header {
  647. display: flex;
  648. justify-content: space-between;
  649. align-items: center;
  650. margin-bottom: 6px;
  651. padding: 15px 20px 15px 20px;
  652. background-color: var(--bytm-menu-bg);
  653. border: 2px solid var(--bytm-menu-separator-color);
  654. border-style: none none solid none !important;
  655. border-radius: var(--bytm-menu-border-radius) var(--bytm-menu-border-radius) 0px 0px;
  656. }
  657. .bytm-menu-header.small {
  658. padding: 10px 15px;
  659. border-style: none none solid none !important;
  660. }
  661. .bytm-menu-titlecont {
  662. position: relative;
  663. display: flex;
  664. align-items: center;
  665. }
  666. .bytm-menu-titlecont-no-title {
  667. display: flex;
  668. justify-content: flex-end;
  669. align-items: center;
  670. }
  671. .bytm-menu-title {
  672. position: relative;
  673. display: inline-block;
  674. font-size: 22px;
  675. }
  676. #bytm-cfg-menu-bg .bytm-menu-title {
  677. transform: translate(0px, -6px);
  678. }
  679. #bytm-cfg-menu {
  680. --bytm-menu-subtitle-color: #c6d2db;
  681. }
  682. #bytm-menu-subtitle-cont {
  683. width: 100%;
  684. display: flex;
  685. gap: 6px;
  686. flex-direction: row;
  687. justify-content: space-between;
  688. align-items: end;
  689. position: absolute;
  690. bottom: -12px;
  691. left: 0;
  692. font-size: 10px;
  693. font-weight: normal;
  694. z-index: 7;
  695. }
  696. #bytm-menu-subtitle-cont, #bytm-menu-version-anchor {
  697. color: var(--bytm-menu-subtitle-color) !important;
  698. }
  699. #bytm-menu-subtitle-cont, #bytm-menu-mode-display {
  700. overflow: hidden;
  701. text-overflow: ellipsis;
  702. white-space: nowrap;
  703. }
  704. #bytm-menu-version-anchor {
  705. overflow: hidden;
  706. text-wrap: nowrap;
  707. text-overflow: ellipsis;
  708. }
  709. #bytm-menu-linkscont {
  710. display: flex;
  711. align-items: center;
  712. margin-left: 32px;
  713. }
  714. .bytm-menu-link {
  715. position: relative;
  716. max-height: 32px;
  717. max-width: 32px;
  718. display: inline-flex;
  719. flex-direction: column;
  720. align-items: center;
  721. cursor: pointer;
  722. }
  723. .bytm-menu-link:not(:last-of-type) {
  724. margin-right: 10px;
  725. }
  726. .bytm-menu-link .bytm-menu-img {
  727. width: 32px;
  728. height: 32px;
  729. border-radius: 50%;
  730. padding: 0px;
  731. transform: translateY(0px);
  732. transition: transform 0.15s ease-out, padding 0.15s ease-out;
  733. }
  734. .bytm-menu-link:hover .bytm-menu-img {
  735. padding: 7px;
  736. transform: translateY(-14px);
  737. }
  738. .bytm-menu-link .extended-link {
  739. visibility: hidden;
  740. position: absolute;
  741. top: 14px;
  742. padding-top: 13px;
  743. padding-bottom: 2px;
  744. opacity: 0;
  745. text-decoration: none;
  746. color: var(--bytm-menu-subtitle-color) !important;
  747. white-space: pre;
  748. font-size: 1.1rem;
  749. transition: visibility 0.15s ease-out, opacity 0.15s ease-out;
  750. }
  751. .bytm-menu-link:hover .extended-link {
  752. visibility: visible;
  753. opacity: 1;
  754. }
  755. .bytm-menu-close {
  756. width: 32px;
  757. height: 32px;
  758. cursor: pointer;
  759. }
  760. .bytm-menu-close.small {
  761. width: 24px;
  762. height: 24px;
  763. }
  764. .bytm-menu-footer {
  765. font-size: 17px;
  766. text-decoration: underline;
  767. }
  768. .bytm-menu-footer.hidden {
  769. display: none;
  770. }
  771. .bytm-menu-footer-cont {
  772. display: flex;
  773. flex-direction: row;
  774. justify-content: space-between;
  775. margin-top: 6px;
  776. padding: 15px 20px;
  777. background: var(--bytm-menu-bg);
  778. background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--bytm-menu-bg) 30%, var(--bytm-menu-bg) 100%);
  779. border: 2px solid var(--bytm-menu-separator-color);
  780. border-style: solid none none none !important;
  781. border-radius: 0px 0px var(--bytm-menu-border-radius) var(--bytm-menu-border-radius);
  782. }
  783. #bytm-menu-footer-buttons-cont button:not(:last-of-type) {
  784. margin-right: 15px;
  785. }
  786. .bytm-menu-footer-right {
  787. display: flex;
  788. flex-direction: row-reverse;
  789. align-items: center;
  790. }
  791. #bytm-menu-footer-left-buttons-cont button:not(:last-of-type) {
  792. margin-right: 15px;
  793. }
  794. #bytm-menu-scroll-indicator {
  795. --bytm-scroll-indicator-padding: 5px;
  796. position: sticky;
  797. bottom: -15px;
  798. left: 50%;
  799. margin-top: calc(-32px - var(--bytm-scroll-indicator-padding) * 2);
  800. padding: var(--bytm-scroll-indicator-padding);
  801. transform: translateX(-50%);
  802. width: 32px;
  803. height: 32px;
  804. z-index: 7;
  805. background-color: var(--bytm-scroll-indicator-bg);
  806. border-radius: 50%;
  807. cursor: pointer;
  808. }
  809. .bytm-hidden {
  810. visibility: hidden !important;
  811. }
  812. .bytm-ftconf-category-header {
  813. font-size: 20px;
  814. margin-top: 32px;
  815. margin-bottom: 8px;
  816. padding: 0px 20px;
  817. }
  818. .bytm-ftconf-category-header:first-of-type {
  819. margin-top: 0;
  820. }
  821. .bytm-ftitem {
  822. display: flex;
  823. flex-direction: row;
  824. justify-content: space-between;
  825. align-items: center;
  826. font-size: 1.4rem;
  827. padding: 8px 20px;
  828. transition: background-color 0.15s ease-out;
  829. }
  830. .bytm-ftitem:hover {
  831. background-color: var(--bytm-menu-bg-highlight);
  832. }
  833. .bytm-ftitem-leftside {
  834. display: flex;
  835. align-items: center;
  836. min-height: 24px;
  837. }
  838. .bytm-ftconf-ctrl {
  839. display: inline-flex;
  840. align-items: center;
  841. white-space: nowrap;
  842. margin-left: 10px;
  843. }
  844. .bytm-ftconf-label {
  845. user-select: none;
  846. }
  847. .bytm-slider-label {
  848. margin-right: 10px;
  849. }
  850. .bytm-toggle-label {
  851. padding-left: 10px;
  852. padding-right: 5px;
  853. }
  854. .bytm-ftconf-input.bytm-hotkey-input {
  855. cursor: pointer;
  856. min-width: 50px;
  857. }
  858. .bytm-ftconf-input[type=number] {
  859. width: 75px;
  860. }
  861. .bytm-ftconf-input[type=checkbox] {
  862. margin-left: 5px;
  863. }
  864. #bytm-export-menu-text, #bytm-import-menu-text {
  865. white-space: pre-wrap;
  866. font-size: 1.6rem;
  867. margin-bottom: 15px;
  868. }
  869. .bytm-menu-footer-copied {
  870. font-size: 1.6rem;
  871. margin-right: 15px;
  872. }
  873. #bytm-changelog-menu-body {
  874. overflow-y: auto;
  875. }
  876. .bytm-changelog-version-details:not(:first-of-type) {
  877. margin-top: 15px;
  878. }
  879. .bytm-changelog-version-details summary h2 {
  880. display: inline-block;
  881. }
  882. .bytm-changelog-version-details summary {
  883. cursor: pointer;
  884. }
  885. .bytm-changelog-version-details summary::marker {
  886. font-size: 2rem;
  887. }
  888. #bytm-export-menu-textarea, #bytm-import-menu-textarea {
  889. width: 100%;
  890. height: 150px;
  891. resize: none;
  892. }
  893. .bytm-markdown-container {
  894. display: flex;
  895. flex-direction: column;
  896. overflow-y: auto;
  897. font-size: 1.5rem;
  898. line-height: 20px;
  899. }
  900. /* Markdown stuff */
  901. .bytm-markdown-container kbd {
  902. --bytm-easing: cubic-bezier(0.31, 0.58, 0.24, 1.15);
  903. display: inline-block;
  904. vertical-align: bottom;
  905. padding: 4px;
  906. padding-top: 2px;
  907. font-size: 0.95em;
  908. line-height: 11px;
  909. background-color: #222;
  910. border: 1px solid #777;
  911. border-radius: 5px;
  912. box-shadow: inset 0 -2px 0 #515559;
  913. transition: padding 0.1s var(--bytm-easing), box-shadow 0.1s var(--bytm-easing);
  914. }
  915. .bytm-markdown-container kbd:active {
  916. padding-bottom: 2px;
  917. box-shadow: inset 0 0 0 initial;
  918. }
  919. .bytm-markdown-container kbd::selection {
  920. background: rgba(0, 0, 0, 0);
  921. }
  922. .bytm-markdown-container code {
  923. background-color: #222;
  924. border-radius: 3px;
  925. padding: 1px 5px;
  926. }
  927. .bytm-markdown-container h2 {
  928. margin-bottom: 5px;
  929. }
  930. .bytm-markdown-container h2:not(:first-of-type) {
  931. margin-top: 30px;
  932. }
  933. .bytm-markdown-container ul li {
  934. padding-left: 0px;
  935. }
  936. .bytm-markdown-container ul li::marker {
  937. content: none;
  938. }
  939. .bytm-markdown-container ul li::before {
  940. content: "• ";
  941. font-weight: bolder;
  942. }
  943. .bytm-markdown-container ul li > ul li {
  944. padding-left: 16px;
  945. }
  946. .bytm-markdown-container ul li > ul li::marker {
  947. content: none;
  948. }
  949. .bytm-markdown-container ul li > ul li::before {
  950. white-space: pre-wrap;
  951. content: "• ";
  952. font-weight: bolder;
  953. }
  954. .bytm-markdown-container ul li > ul li > ul li {
  955. padding-left: 16px;
  956. }
  957. .bytm-markdown-container ul li > ul li > ul li::marker {
  958. content: none;
  959. }
  960. .bytm-markdown-container ul li > ul li > ul li::before {
  961. white-space: pre-wrap;
  962. content: "• ";
  963. font-weight: bolder;
  964. }
  965. .bytm-markdown-container .pr-link-cont {
  966. padding-top: 10px;
  967. }
  968. #bytm-feat-help-dialog-desc, #bytm-feat-help-dialog-text {
  969. overflow-wrap: break-word;
  970. white-space: pre-wrap;
  971. font-size: 1.5rem;
  972. line-height: 1.25em;
  973. }
  974. #bytm-feat-help-dialog-desc {
  975. font-size: 1.8rem;
  976. padding-bottom: 10px;
  977. }
  978. .bytm-ftitem-help-btn {
  979. width: 24px !important;
  980. height: 24px !important;
  981. }
  982. .bytm-ftitem-help-btn svg {
  983. width: 18px !important;
  984. height: 18px !important;
  985. }
  986. .bytm-ftitem-help-btn svg > path {
  987. fill: #b3bec7 !important;
  988. }
  989. hr {
  990. display: block;
  991. margin: 8px 0px 12px 0px;
  992. border: revert;
  993. }
  994. /* #region misc */
  995. .bytm-disable-scroll {
  996. overflow: hidden !important;
  997. }
  998. .bytm-generic-btn {
  999. --bytm-generic-btn-width: 36px;
  1000. --bytm-generic-btn-height: 36px;
  1001. display: inline-flex;
  1002. align-items: center;
  1003. justify-content: center;
  1004. position: relative;
  1005. vertical-align: middle;
  1006. cursor: pointer;
  1007. margin-left: 8px;
  1008. min-width: var(--bytm-generic-btn-width);
  1009. max-width: var(--bytm-generic-btn-width);
  1010. min-height: var(--bytm-generic-btn-height);
  1011. max-height: var(--bytm-generic-btn-height);
  1012. border: 1px solid transparent;
  1013. border-radius: calc(var(--bytm-generic-btn-height, 36px) / 2);
  1014. background-color: transparent;
  1015. transition: background-color 0.2s ease;
  1016. }
  1017. .bytm-generic-btn:not(.long):hover {
  1018. background-color: rgba(255, 255, 255, 0.2);
  1019. }
  1020. .bytm-generic-btn:active {
  1021. animation: flashBorder 0.4s ease 1;
  1022. }
  1023. .bytm-generic-btn:not(.bytm-toggle):active {
  1024. background-color: #5f5f5f;
  1025. }
  1026. .bytm-generic-btn.long {
  1027. --bytm-generic-btn-width: 136px;
  1028. padding: 0px;
  1029. line-height: 36px;
  1030. display: inline-flex;
  1031. align-items: center;
  1032. justify-content: center;
  1033. position: relative;
  1034. vertical-align: middle;
  1035. cursor: pointer;
  1036. margin-left: 0px;
  1037. }
  1038. .bytm-generic-btn.long .bytm-generic-btn-img.left {
  1039. margin-right: 8px;
  1040. }
  1041. .bytm-generic-btn.long .bytm-generic-btn-img.right {
  1042. margin-left: 8px;
  1043. }
  1044. .bytm-generic-long-btn-txt {
  1045. font-size: 14px;
  1046. }
  1047. .bytm-ftitem-help-btn.bytm-generic-btn {
  1048. --bytm-generic-btn-width: 24px;
  1049. --bytm-generic-btn-height: 24px;
  1050. }
  1051. @keyframes flashBorder {
  1052. 0% {
  1053. border: 1px solid initial;
  1054. }
  1055. 20% {
  1056. border: 1px solid #808080;
  1057. }
  1058. 100% {
  1059. border: 1px solid initial;
  1060. }
  1061. }
  1062. .bytm-generic-btn-img {
  1063. display: inline-block;
  1064. z-index: 1;
  1065. width: 24px;
  1066. height: 24px;
  1067. }
  1068. .bytm-spinner {
  1069. animation: rotate 1.2s linear infinite;
  1070. }
  1071. @keyframes rotate {
  1072. from {
  1073. transform: rotate(0deg);
  1074. }
  1075. to {
  1076. transform: rotate(360deg);
  1077. }
  1078. }
  1079. .bytm-anchor {
  1080. all: unset;
  1081. cursor: pointer;
  1082. }
  1083. /* ytmusic-logo a[bytm-animated="true"] .bytm-mod-logo-ellipse {
  1084. transform-origin: 12px 12px;
  1085. animation: rotate 1s ease-in-out infinite;
  1086. } */
  1087. ytmusic-logo a.bytm-logo-exchanged .bytm-mod-logo-path {
  1088. transform-origin: 12px 12px;
  1089. animation: rotate 1s ease-in-out;
  1090. }
  1091. ytmusic-logo a.bytm-logo-exchanged .bytm-mod-logo-img {
  1092. width: 24px;
  1093. height: 24px;
  1094. z-index: 1000;
  1095. position: absolute;
  1096. animation: rotate-fade-in 1s ease-in-out;
  1097. }
  1098. @keyframes rotate-fade-in {
  1099. 0% {
  1100. opacity: 0;
  1101. transform: rotate(0deg);
  1102. }
  1103. 30% {
  1104. opacity: 0;
  1105. }
  1106. 90% {
  1107. opacity: 1;
  1108. }
  1109. 100% {
  1110. transform: rotate(360deg);
  1111. }
  1112. }
  1113. .bytm-no-select {
  1114. user-select: none;
  1115. -ms-user-select: none;
  1116. -moz-user-select: none;
  1117. -webkit-user-select: none;
  1118. }
  1119. /* YTM does some weird styling that breaks everything, so this reverts all of BYTM's buttons to the browser default style */
  1120. button.bytm-btn {
  1121. padding: revert;
  1122. border: revert;
  1123. outline: revert;
  1124. font: revert;
  1125. text-transform: revert;
  1126. color: revert;
  1127. background: revert;
  1128. cursor: pointer;
  1129. line-height: 1.4em;
  1130. }
  1131. .bytm-link, .bytm-markdown-container a {
  1132. color: #369bff !important;
  1133. text-decoration: none !important;
  1134. cursor: pointer;
  1135. }
  1136. .bytm-link:hover, .bytm-markdown-container a:hover {
  1137. color: #369bff !important;
  1138. text-decoration: underline !important;
  1139. }
  1140. button[disabled] {
  1141. cursor: not-allowed;
  1142. }
  1143. button[disabled].bytm-busy {
  1144. cursor: progress;
  1145. }
  1146. /* #region random fixes */
  1147. .sponsorSkipNoticeContainer,
  1148. .sponsorSkipObject {
  1149. z-index: 4;
  1150. }
  1151. /* #region menu */
  1152. .bytm-cfg-menu-option {
  1153. display: block;
  1154. padding: 8px 0;
  1155. }
  1156. .bytm-cfg-menu-option-item {
  1157. display: flex;
  1158. flex-direction: row;
  1159. align-items: center;
  1160. font-size: 1.4rem;
  1161. font-weight: 400;
  1162. line-height: 24px;
  1163. padding: var(--yt-compact-link-paper-item-padding, 0px 36px 0 16px);
  1164. min-height: var(--paper-item-min-height, 40px);
  1165. white-space: nowrap;
  1166. cursor: pointer;
  1167. }
  1168. .bytm-cfg-menu-option-item:hover {
  1169. background-color: var(--yt-spec-badge-chip-background, #3e3e3e);
  1170. }
  1171. .bytm-cfg-menu-option-icon {
  1172. width: 24px;
  1173. height: 24px;
  1174. margin-right: 16px;
  1175. display: flex;
  1176. align-items: center;
  1177. flex-direction: row;
  1178. flex: none;
  1179. }
  1180. .bytm-cfg-menu-option-text {
  1181. font-size: 1.4rem;
  1182. line-height: 2rem;
  1183. }
  1184. yt-multi-page-menu-section-renderer.ytd-multi-page-menu-renderer {
  1185. border-bottom: 1px solid var(--yt-spec-10-percent-layer, #3e3e3e);
  1186. }
  1187. .bytm-yt-cfg-menu-option {
  1188. position: relative;
  1189. width: calc(100% - 12px);
  1190. }
  1191. .bytm-yt-cfg-menu-option-inner {
  1192. display: flex;
  1193. flex-direction: row;
  1194. justify-content: flex-start;
  1195. align-items: center;
  1196. min-height: var(--paper-item-min-height, 48px);
  1197. max-width: calc(100% - 12px);
  1198. padding: 0px 12px;
  1199. border-radius: var(--paper-item-focused-before-border-radius, 10px);
  1200. cursor: pointer;
  1201. background-color: transparent;
  1202. transition: background-color 0.2s ease;
  1203. }
  1204. .bytm-yt-cfg-menu-option-inner:hover {
  1205. background-color: var(--yt-spec-badge-chip-background, rgba(255, 255, 255, 0.1));
  1206. }
  1207. .bytm-yt-cfg-menu-option-icon {
  1208. display: flex;
  1209. align-items: center;
  1210. flex-direction: row;
  1211. width: 24px;
  1212. height: 24px;
  1213. margin-right: 24px;
  1214. }
  1215. .bytm-yt-cfg-menu-option-item {
  1216. width: 100%;
  1217. color: #fff;
  1218. font-size: 14px;
  1219. }
  1220. .bytm-yt-cfg-menu-option-item:hover {
  1221. /* Support for "Enhancer for YouTube" extension's custom themes */
  1222. color: var(--main-color, #fff) !important;
  1223. }
  1224. /* #region watermark */
  1225. #bytm-watermark {
  1226. font-size: 10px;
  1227. display: inline-block;
  1228. position: absolute;
  1229. left: 97px;
  1230. top: 45px;
  1231. z-index: 10;
  1232. color: #f1f1f1;
  1233. text-decoration: none;
  1234. cursor: pointer;
  1235. }
  1236. #bytm-watermark:hover {
  1237. text-decoration: underline;
  1238. }
  1239. /* #region above queue btns */
  1240. #bytm-above-queue-btn-cont {
  1241. display: flex;
  1242. flex-direction: row;
  1243. justify-content: center;
  1244. align-items: center;
  1245. flex-wrap: nowrap;
  1246. height: 100%;
  1247. }
  1248. #bytm-above-queue-btn-wrapper {
  1249. white-space: nowrap;
  1250. }
  1251. .bytm-above-queue-btn {
  1252. width: 32px;
  1253. height: 32px;
  1254. margin-left: 0;
  1255. margin-right: 8px;
  1256. }
  1257. /* #region scroll to active */
  1258. #bytm-scroll-to-active-btn-cont {
  1259. display: flex;
  1260. flex-direction: column;
  1261. justify-content: center;
  1262. align-items: center;
  1263. height: 100%;
  1264. }
  1265. #bytm-scroll-to-active-btn-cont.hidden {
  1266. display: none;
  1267. }
  1268. #bytm-scroll-to-active-btn {
  1269. display: inline-flex;
  1270. align-items: center;
  1271. justify-content: center;
  1272. border-radius: 50%;
  1273. cursor: pointer;
  1274. }
  1275. #bytm-scroll-to-active-btn {
  1276. width: revert;
  1277. height: revert;
  1278. }
  1279. #bytm-scroll-to-active-btn .bytm-generic-btn-img {
  1280. padding: 4px;
  1281. }
  1282. /* #region thumbnail */
  1283. #bytm-thumbnail-overlay {
  1284. position: absolute;
  1285. top: 0;
  1286. left: 0;
  1287. width: 100%;
  1288. height: 100%;
  1289. display: none;
  1290. background-color: #030303;
  1291. z-index: 0;
  1292. }
  1293. #bytm-thumbnail-overlay-img {
  1294. position: relative;
  1295. width: 100%;
  1296. height: 100%;
  1297. }
  1298. #bytm-thumbnail-overlay-indicator {
  1299. position: absolute;
  1300. bottom: 16px;
  1301. right: 16px;
  1302. width: calc(min(56px, 100% - 16px));
  1303. height: calc(min(56px, 100% - 16px));
  1304. z-index: 1;
  1305. cursor: help;
  1306. filter: drop-shadow(0 0 3px #000);
  1307. }
  1308. ytmusic-player#player #bezel {
  1309. z-index: 1;
  1310. }
  1311. :root {
  1312. --bytm-auto-like-btn-color: #bf87f0;
  1313. }
  1314. .bytm-auto-like-channel-row-left-cont {
  1315. display: flex;
  1316. align-items: center;
  1317. gap: 10px;
  1318. }
  1319. .bytm-auto-like-channel-row {
  1320. display: flex;
  1321. justify-content: space-between;
  1322. align-items: center;
  1323. padding: 8px 15px;
  1324. transition: background-color 0.15s ease-out;
  1325. }
  1326. .bytm-auto-like-channels-desc {
  1327. padding: 0px 15px;
  1328. white-space: pre-wrap;
  1329. font-size: 1.6rem;
  1330. margin-bottom: 15px;
  1331. }
  1332. #bytm-auto-like-channels-add-new {
  1333. padding: 4px 15px;
  1334. margin-top: 20px;
  1335. margin-bottom: 10px;
  1336. }
  1337. .bytm-auto-like-channel-row:hover {
  1338. background-color: var(--bytm-menu-bg-highlight);
  1339. }
  1340. .bytm-auto-like-channel-row .bytm-toggle-input-wrapper.bytm-auto-like-channel-toggle {
  1341. --toggle-height: 18px !important;
  1342. --toggle-width: 36px !important;
  1343. }
  1344. .bytm-auto-like-channel-row .bytm-generic-btn {
  1345. --bytm-generic-btn-width: 30px;
  1346. --bytm-generic-btn-height: 30px;
  1347. }
  1348. .bytm-auto-like-channel-name-label {
  1349. display: flex;
  1350. flex-direction: row;
  1351. align-items: center;
  1352. }
  1353. .bytm-auto-like-channel-id {
  1354. cursor: text;
  1355. font-size: 1.1rem;
  1356. color: #aaa;
  1357. margin-left: 10px;
  1358. }
  1359. .bytm-auto-like-toggle-btn {
  1360. margin-right: 8px;
  1361. border: 1px solid var(--bytm-auto-like-btn-color);
  1362. box-sizing: border-box;
  1363. background-color: transparent;
  1364. transition: border-color 0.2s ease;
  1365. animation: none;
  1366. }
  1367. .bytm-auto-like-toggle-btn:active {
  1368. background-color: rgba(255, 255, 255, 0.1);
  1369. }
  1370. .bytm-auto-like-toggle-btn:active,
  1371. .bytm-auto-like-toggle-btn.toggled {
  1372. border-color: rgba(255, 255, 255, 0.2);
  1373. }
  1374. .bytm-auto-like-toggle-btn svg path {
  1375. fill: var(--bytm-auto-like-btn-color);
  1376. transition: fill 0.2s ease;
  1377. }
  1378. .bytm-auto-like-toggle-btn:active svg path,
  1379. .bytm-auto-like-toggle-btn.toggled svg path {
  1380. fill: var(--ytmusic-subscribe-button-color, rgba(255, 255, 255, 0.7));
  1381. }
  1382. .bytm-auto-like-toggle-btn .bytm-generic-long-btn-txt {
  1383. font-weight: 500;
  1384. color: var(--bytm-auto-like-btn-color);
  1385. transition: color 0.2s ease;
  1386. }
  1387. .bytm-auto-like-toggle-btn:active .bytm-generic-long-btn-txt,
  1388. .bytm-auto-like-toggle-btn.toggled .bytm-generic-long-btn-txt
  1389. {
  1390. color: var(--ytmusic-subscribe-button-color, rgba(255, 255, 255, 0.7));
  1391. }
  1392. /* #region queue buttons */
  1393. #side-panel ytmusic-player-queue-item .song-info.ytmusic-player-queue-item {
  1394. position: relative;
  1395. }
  1396. #side-panel ytmusic-player-queue-item .bytm-queue-btn-container {
  1397. background: rgb(0, 0, 0);
  1398. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #030303 15%);
  1399. display: none;
  1400. position: absolute;
  1401. right: 0;
  1402. padding-left: 25px;
  1403. height: 100%;
  1404. }
  1405. #side-panel ytmusic-player-queue-item[selected] .bytm-queue-btn-container {
  1406. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #1D1D1D 15%);
  1407. }
  1408. .bytm-generic-list-queue-btn-container {
  1409. /* otherwise the queue buttons render over the currently playing song page */
  1410. z-index: 1;
  1411. }
  1412. #side-panel ytmusic-player-queue-item:hover .bytm-queue-btn-container,
  1413. ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer:hover .bytm-queue-btn-container,
  1414. ytmusic-shelf-renderer ytmusic-responsive-list-item-renderer:hover .bytm-queue-btn-container,
  1415. /* same thing but with :focus-within */
  1416. #side-panel ytmusic-player-queue-item:focus-within .bytm-queue-btn-container,
  1417. ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer:focus-within .bytm-queue-btn-container,
  1418. ytmusic-shelf-renderer ytmusic-responsive-list-item-renderer:focus-within .bytm-queue-btn-container
  1419. {
  1420. display: inline-flex;
  1421. align-items: center;
  1422. }
  1423. ytmusic-responsive-list-item-renderer .title-column {
  1424. align-items: center;
  1425. }
  1426. #side-panel ytmusic-player-queue-item[play-button-state="loading"] .bytm-queue-btn-container,
  1427. #side-panel ytmusic-player-queue-item[play-button-state="playing"] .bytm-queue-btn-container,
  1428. #side-panel ytmusic-player-queue-item[play-button-state="paused"] .bytm-queue-btn-container
  1429. {
  1430. /* using a var() with predefined value from YTM is not viable since the nesting changes the actual value of the variable */
  1431. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #030303 15%);
  1432. }
  1433. #side-panel ytmusic-player-queue-item[selected][play-button-state="loading"] .bytm-queue-btn-container,
  1434. #side-panel ytmusic-player-queue-item[selected][play-button-state="playing"] .bytm-queue-btn-container,
  1435. #side-panel ytmusic-player-queue-item[selected][play-button-state="paused"] .bytm-queue-btn-container
  1436. {
  1437. /* using a var() with predefined value from YTM is not viable since the nesting changes the actual value of the variable */
  1438. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #1D1D1D 15%);
  1439. }
  1440. ytmusic-app ytmusic-popup-container tp-yt-iron-dropdown[data-bytm-hidden=true] {
  1441. display: none !important;
  1442. }
  1443. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns .bytm-generic-list-queue-btn-container {
  1444. visibility: hidden;
  1445. }
  1446. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns .bytm-generic-list-queue-btn-container a.bytm-generic-btn {
  1447. visibility: hidden !important;
  1448. }
  1449. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:hover .bytm-generic-list-queue-btn-container,
  1450. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:focus-within .bytm-generic-list-queue-btn-container
  1451. {
  1452. visibility: visible;
  1453. }
  1454. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:hover .bytm-generic-list-queue-btn-container a.bytm-generic-btn,
  1455. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:focus-within .bytm-generic-list-queue-btn-container a.bytm-generic-btn
  1456. {
  1457. visibility: visible !important;
  1458. }
  1459. /* #region volume slider */
  1460. #bytm-vol-slider-cont {
  1461. position: relative;
  1462. }
  1463. #bytm-vol-slider-label {
  1464. opacity: 0.000001;
  1465. position: absolute;
  1466. display: flex;
  1467. flex-direction: row;
  1468. align-items: center;
  1469. gap: 5px;
  1470. font-size: 1.4rem;
  1471. top: 50%;
  1472. left: 0;
  1473. transform: translate(calc(-50% - 10px), -50%);
  1474. text-align: right;
  1475. transition: opacity 0.2s ease;
  1476. }
  1477. #bytm-vol-slider-label.has-icon {
  1478. transform: translate(calc(-50% - 25px), -50%);
  1479. }
  1480. #bytm-vol-slider-label svg {
  1481. padding: 4px;
  1482. }
  1483. #bytm-vol-slider-label svg path {
  1484. fill: #909090;
  1485. }
  1486. #bytm-vol-slider-label.bytm-visible {
  1487. opacity: 1;
  1488. }
  1489. #bytm-vol-slider-shared {
  1490. display: flex;
  1491. flex-direction: row;
  1492. align-items: center;
  1493. }
  1494. #bytm-vol-slider-shared svg {
  1495. width: 20px;
  1496. height: 20px;
  1497. }