BetterYTM.css 40 KB

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