BetterYTM.css 42 KB

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