BetterYTM.css 42 KB

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