BetterYTM.css 40 KB

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