BetterYTM.css 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169
  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-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-subtitle-cont,
  891. #bytm-menu-mode-display {
  892. overflow: hidden;
  893. text-overflow: ellipsis;
  894. white-space: nowrap;
  895. }
  896. #bytm-menu-version-anchor {
  897. overflow: hidden;
  898. text-wrap: nowrap;
  899. text-overflow: ellipsis;
  900. }
  901. #bytm-menu-linkscont {
  902. display: flex;
  903. align-items: center;
  904. margin-left: 32px;
  905. }
  906. .bytm-menu-link {
  907. position: relative;
  908. max-height: 32px;
  909. max-width: 32px;
  910. display: inline-flex;
  911. flex-direction: column;
  912. align-items: center;
  913. cursor: pointer;
  914. }
  915. .bytm-menu-link:not(:last-of-type) {
  916. margin-right: 10px;
  917. }
  918. .bytm-menu-link .bytm-menu-img {
  919. width: 32px;
  920. height: 32px;
  921. border-radius: 50%;
  922. padding: 0px;
  923. transform: translateY(0px);
  924. transition:
  925. transform 0.15s ease-out,
  926. padding 0.15s ease-out;
  927. }
  928. .bytm-menu-link:hover .bytm-menu-img {
  929. padding: 7px;
  930. transform: translateY(-14px);
  931. }
  932. .bytm-menu-link .extended-link {
  933. visibility: hidden;
  934. position: absolute;
  935. top: 14px;
  936. padding-top: 13px;
  937. padding-bottom: 2px;
  938. opacity: 0;
  939. text-decoration: none;
  940. color: var(--bytm-menu-subtitle-color) !important;
  941. white-space: pre;
  942. font-size: 1.1rem;
  943. transition:
  944. visibility 0.15s ease-out,
  945. opacity 0.15s ease-out;
  946. }
  947. .bytm-menu-link:hover .extended-link {
  948. visibility: visible;
  949. opacity: 1;
  950. }
  951. .bytm-menu-close {
  952. width: 32px;
  953. height: 32px;
  954. cursor: pointer;
  955. }
  956. .bytm-menu-close.small {
  957. width: 24px;
  958. height: 24px;
  959. }
  960. .bytm-menu-footer {
  961. font-size: 17px;
  962. text-decoration: underline;
  963. }
  964. .bytm-menu-footer.hidden {
  965. display: none;
  966. }
  967. .bytm-menu-footer-cont {
  968. display: flex;
  969. flex-direction: row;
  970. justify-content: space-between;
  971. margin-top: 6px;
  972. padding: 15px;
  973. background: var(--bytm-menu-bg);
  974. background: linear-gradient(
  975. to bottom,
  976. rgba(0, 0, 0, 0) 0%,
  977. var(--bytm-menu-bg) 30%,
  978. var(--bytm-menu-bg) 100%
  979. );
  980. border: 2px solid var(--bytm-menu-separator-color);
  981. border-style: solid none none none !important;
  982. border-radius: 0px 0px var(--bytm-menu-border-radius)
  983. var(--bytm-menu-border-radius);
  984. }
  985. .bytm-menu-footer-buttons-cont button:not(:last-of-type) {
  986. margin-right: 15px;
  987. }
  988. .bytm-menu-footer-right {
  989. display: flex;
  990. flex-direction: row-reverse;
  991. align-items: center;
  992. }
  993. #bytm-menu-footer-left-buttons-cont button:not(:last-of-type) {
  994. margin-right: 15px;
  995. }
  996. #bytm-menu-scroll-indicator {
  997. --bytm-scroll-indicator-padding: 5px;
  998. position: sticky;
  999. bottom: -15px;
  1000. left: 50%;
  1001. margin-top: calc(-32px - var(--bytm-scroll-indicator-padding) * 2);
  1002. padding: var(--bytm-scroll-indicator-padding);
  1003. transform: translateX(-50%);
  1004. width: 32px;
  1005. height: 32px;
  1006. z-index: 7;
  1007. background-color: var(--bytm-scroll-indicator-bg);
  1008. border-radius: 50%;
  1009. cursor: pointer;
  1010. }
  1011. .bytm-hidden {
  1012. visibility: hidden !important;
  1013. }
  1014. .bytm-ftconf-category-header {
  1015. font-size: 20px;
  1016. margin-top: 32px;
  1017. margin-bottom: 8px;
  1018. padding: 0px 15px;
  1019. }
  1020. .bytm-ftconf-category-header:first-of-type {
  1021. margin-top: 0;
  1022. }
  1023. .bytm-ftitem {
  1024. display: flex;
  1025. flex-direction: row;
  1026. justify-content: space-between;
  1027. align-items: center;
  1028. font-size: 1.4rem;
  1029. padding: 8px 20px;
  1030. transition: background-color 0.15s ease-out;
  1031. }
  1032. .bytm-ftitem:hover {
  1033. background-color: var(--bytm-menu-bg-highlight);
  1034. }
  1035. .bytm-ftitem-leftside {
  1036. display: flex;
  1037. align-items: center;
  1038. min-height: 24px;
  1039. }
  1040. .bytm-ftconf-ctrl {
  1041. display: inline-flex;
  1042. align-items: center;
  1043. white-space: nowrap;
  1044. margin-left: 10px;
  1045. }
  1046. .bytm-ftconf-label {
  1047. user-select: none;
  1048. }
  1049. .bytm-slider-label {
  1050. margin-right: 10px;
  1051. }
  1052. .bytm-toggle-label {
  1053. padding-left: 10px;
  1054. padding-right: 5px;
  1055. }
  1056. .bytm-ftconf-input.bytm-hotkey-input {
  1057. cursor: pointer;
  1058. min-width: 50px;
  1059. }
  1060. .bytm-ftconf-input[type="number"] {
  1061. width: 75px;
  1062. }
  1063. .bytm-ftconf-input[type="checkbox"] {
  1064. margin-left: 5px;
  1065. }
  1066. #bytm-export-menu-text,
  1067. #bytm-import-menu-text {
  1068. white-space: pre-wrap;
  1069. font-size: 1.6rem;
  1070. margin-bottom: 15px;
  1071. }
  1072. .bytm-menu-footer-copied {
  1073. font-size: 1.6rem;
  1074. margin-right: 15px;
  1075. }
  1076. #bytm-changelog-menu-body {
  1077. overflow-y: auto;
  1078. }
  1079. .bytm-changelog-version-details:not(:first-of-type) {
  1080. margin-top: 15px;
  1081. }
  1082. .bytm-changelog-version-details summary h2 {
  1083. display: inline-block;
  1084. }
  1085. .bytm-changelog-version-details summary {
  1086. cursor: pointer;
  1087. }
  1088. .bytm-changelog-version-details summary::marker {
  1089. font-size: 2rem;
  1090. }
  1091. #bytm-export-menu-textarea,
  1092. #bytm-import-menu-textarea {
  1093. width: 100%;
  1094. height: 150px;
  1095. resize: none;
  1096. }
  1097. .bytm-markdown-container {
  1098. display: flex;
  1099. flex-direction: column;
  1100. overflow-y: auto;
  1101. font-size: 1.5rem;
  1102. line-height: 20px;
  1103. }
  1104. /* Markdown stuff */
  1105. .bytm-markdown-container kbd {
  1106. --bytm-easing: cubic-bezier(0.31, 0.58, 0.24, 1.15);
  1107. display: inline-block;
  1108. vertical-align: bottom;
  1109. padding: 4px;
  1110. padding-top: 2px;
  1111. font-size: 0.95em;
  1112. line-height: 11px;
  1113. background-color: #222;
  1114. border: 1px solid #777;
  1115. border-radius: 5px;
  1116. box-shadow: inset 0 -2px 0 #515559;
  1117. transition:
  1118. padding 0.1s var(--bytm-easing),
  1119. box-shadow 0.1s var(--bytm-easing);
  1120. }
  1121. .bytm-markdown-container kbd:active {
  1122. padding-bottom: 2px;
  1123. box-shadow: inset 0 0 0 initial;
  1124. }
  1125. .bytm-markdown-container kbd::selection {
  1126. background: rgba(0, 0, 0, 0);
  1127. }
  1128. .bytm-markdown-container code {
  1129. background-color: #222;
  1130. border-radius: 3px;
  1131. padding: 1px 5px;
  1132. }
  1133. .bytm-markdown-container h2 {
  1134. margin-bottom: 5px;
  1135. }
  1136. .bytm-markdown-container h2:not(:first-of-type) {
  1137. margin-top: 30px;
  1138. }
  1139. .bytm-markdown-container ul li {
  1140. padding-left: 0px;
  1141. }
  1142. .bytm-markdown-container ul li::marker {
  1143. content: none;
  1144. }
  1145. .bytm-markdown-container ul li::before {
  1146. content: "• ";
  1147. font-weight: bolder;
  1148. }
  1149. .bytm-markdown-container ul li > ul li {
  1150. padding-left: 16px;
  1151. }
  1152. .bytm-markdown-container ul li > ul li::marker {
  1153. content: none;
  1154. }
  1155. .bytm-markdown-container ul li > ul li::before {
  1156. white-space: pre-wrap;
  1157. content: "• ";
  1158. font-weight: bolder;
  1159. }
  1160. .bytm-markdown-container ul li > ul li > ul li {
  1161. padding-left: 16px;
  1162. }
  1163. .bytm-markdown-container ul li > ul li > ul li::marker {
  1164. content: none;
  1165. }
  1166. .bytm-markdown-container ul li > ul li > ul li::before {
  1167. white-space: pre-wrap;
  1168. content: "• ";
  1169. font-weight: bolder;
  1170. }
  1171. .bytm-markdown-container .pr-link-cont {
  1172. padding-top: 10px;
  1173. }
  1174. #bytm-feat-help-dialog-desc,
  1175. #bytm-feat-help-dialog-text {
  1176. overflow-wrap: break-word;
  1177. white-space: pre-wrap;
  1178. font-size: 1.5rem;
  1179. line-height: 1.25em;
  1180. }
  1181. #bytm-feat-help-dialog-desc {
  1182. font-size: 1.8rem;
  1183. padding-bottom: 10px;
  1184. }
  1185. .bytm-ftitem-help-btn {
  1186. width: 24px !important;
  1187. height: 24px !important;
  1188. }
  1189. .bytm-ftitem-help-btn svg {
  1190. width: 18px !important;
  1191. height: 18px !important;
  1192. }
  1193. .bytm-ftitem-help-btn svg > path {
  1194. fill: #b3bec7 !important;
  1195. }
  1196. hr {
  1197. display: block;
  1198. margin: 8px 0px 12px 0px;
  1199. border: revert;
  1200. }
  1201. /* #region misc */
  1202. .bytm-disable-scroll {
  1203. overflow: hidden !important;
  1204. }
  1205. /* #region generic (circular) button */
  1206. .bytm-generic-btn {
  1207. --bytm-generic-btn-width: 36px;
  1208. --bytm-generic-btn-height: 36px;
  1209. display: inline-flex;
  1210. align-items: center;
  1211. justify-content: center;
  1212. position: relative;
  1213. vertical-align: middle;
  1214. cursor: pointer;
  1215. margin-left: 8px;
  1216. white-space: nowrap;
  1217. text-overflow: ellipsis;
  1218. user-select: none;
  1219. min-width: var(--bytm-generic-btn-width);
  1220. max-width: var(--bytm-generic-btn-width);
  1221. min-height: var(--bytm-generic-btn-height);
  1222. max-height: var(--bytm-generic-btn-height);
  1223. border: 1px solid transparent;
  1224. border-radius: calc(var(--bytm-generic-btn-height, 36px) / 2);
  1225. background-color: transparent;
  1226. transition: background-color 0.2s ease;
  1227. }
  1228. .bytm-generic-btn:hover {
  1229. background-color: rgba(255, 255, 255, 0.2);
  1230. }
  1231. .bytm-generic-btn:active {
  1232. animation: bytm-flash-border 0.4s ease 1;
  1233. }
  1234. @keyframes bytm-flash-border {
  1235. 0% {
  1236. border: 1px solid initial;
  1237. }
  1238. 25% {
  1239. border: 1px solid rgba(255, 255, 255, 0.4);
  1240. }
  1241. 100% {
  1242. border: 1px solid initial;
  1243. }
  1244. }
  1245. .bytm-generic-btn:not(.bytm-toggle):active {
  1246. background-color: rgba(255, 255, 255, 0.3);
  1247. }
  1248. .bytm-generic-btn.long {
  1249. --bytm-generic-btn-width: calc(min(136px, fit-content));
  1250. padding: 0px 14px;
  1251. line-height: 36px;
  1252. display: inline-flex;
  1253. align-items: center;
  1254. justify-content: center;
  1255. position: relative;
  1256. vertical-align: middle;
  1257. cursor: pointer;
  1258. margin-left: 0px;
  1259. border: 1px solid #999;
  1260. }
  1261. .bytm-generic-btn.long:hover {
  1262. background-color: rgba(255, 255, 255, 0.2);
  1263. }
  1264. .bytm-generic-btn.long .bytm-generic-btn-img.left {
  1265. margin-right: 8px;
  1266. }
  1267. .bytm-generic-btn.long .bytm-generic-btn-img.right {
  1268. margin-left: 8px;
  1269. }
  1270. .bytm-generic-long-btn-txt {
  1271. font-size: 14px;
  1272. }
  1273. .bytm-ftitem-help-btn.bytm-generic-btn {
  1274. --bytm-generic-btn-width: 24px;
  1275. --bytm-generic-btn-height: 24px;
  1276. }
  1277. .bytm-generic-btn-img {
  1278. display: inline-block;
  1279. z-index: 1;
  1280. width: 24px;
  1281. height: 24px;
  1282. }
  1283. .bytm-spinner {
  1284. animation: rotate 1.2s linear infinite;
  1285. }
  1286. @keyframes rotate {
  1287. from {
  1288. transform: rotate(0deg);
  1289. }
  1290. to {
  1291. transform: rotate(360deg);
  1292. }
  1293. }
  1294. .bytm-anchor {
  1295. all: unset;
  1296. cursor: pointer;
  1297. }
  1298. /* ytmusic-logo a[bytm-animated="true"] .bytm-mod-logo-ellipse {
  1299. transform-origin: 12px 12px;
  1300. animation: rotate 1s ease-in-out infinite;
  1301. } */
  1302. ytmusic-logo a.bytm-logo-exchanged .bytm-mod-logo-path {
  1303. transform-origin: 12px 12px;
  1304. animation: rotate 1s ease-in-out;
  1305. }
  1306. ytmusic-logo a.bytm-logo-exchanged .bytm-mod-logo-img {
  1307. width: 24px;
  1308. height: 24px;
  1309. z-index: 1000;
  1310. position: absolute;
  1311. animation: rotate-fade-in 1s ease-in-out;
  1312. }
  1313. @keyframes rotate-fade-in {
  1314. 0% {
  1315. opacity: 0;
  1316. transform: rotate(0deg);
  1317. }
  1318. 30% {
  1319. opacity: 0;
  1320. }
  1321. 90% {
  1322. opacity: 1;
  1323. }
  1324. 100% {
  1325. transform: rotate(360deg);
  1326. }
  1327. }
  1328. .bytm-no-select {
  1329. user-select: none;
  1330. -ms-user-select: none;
  1331. -moz-user-select: none;
  1332. -webkit-user-select: none;
  1333. }
  1334. /* YTM does some weird styling that breaks everything, so this reverts all of BYTM's buttons to the browser default style */
  1335. button.bytm-btn {
  1336. padding: revert;
  1337. border: revert;
  1338. outline: revert;
  1339. font: revert;
  1340. text-transform: revert;
  1341. color: revert;
  1342. background: revert;
  1343. cursor: pointer;
  1344. line-height: 1.4em;
  1345. }
  1346. .bytm-link,
  1347. .bytm-markdown-container a {
  1348. color: #369bff !important;
  1349. text-decoration: none !important;
  1350. cursor: pointer;
  1351. }
  1352. .bytm-link:hover,
  1353. .bytm-markdown-container a:hover {
  1354. color: #369bff !important;
  1355. text-decoration: underline !important;
  1356. }
  1357. button[disabled] {
  1358. cursor: not-allowed;
  1359. }
  1360. button[disabled].bytm-busy {
  1361. cursor: progress;
  1362. }
  1363. /* #region menu */
  1364. .bytm-cfg-menu-option {
  1365. display: block;
  1366. padding: 8px 0;
  1367. }
  1368. .bytm-cfg-menu-option-item {
  1369. display: flex;
  1370. flex-direction: row;
  1371. align-items: center;
  1372. font-size: 1.4rem;
  1373. font-weight: 400;
  1374. line-height: 24px;
  1375. padding: var(--yt-compact-link-paper-item-padding, 0px 36px 0 16px);
  1376. min-height: var(--paper-item-min-height, 40px);
  1377. white-space: nowrap;
  1378. cursor: pointer;
  1379. }
  1380. .bytm-cfg-menu-option-item:hover {
  1381. background-color: var(--yt-spec-badge-chip-background, #3e3e3e);
  1382. }
  1383. .bytm-cfg-menu-option-icon {
  1384. width: 24px;
  1385. height: 24px;
  1386. margin-right: 16px;
  1387. display: flex;
  1388. align-items: center;
  1389. flex-direction: row;
  1390. flex: none;
  1391. }
  1392. .bytm-cfg-menu-option-text {
  1393. font-size: 1.4rem;
  1394. line-height: 2rem;
  1395. }
  1396. yt-multi-page-menu-section-renderer.ytd-multi-page-menu-renderer {
  1397. border-bottom: 1px solid var(--yt-spec-10-percent-layer, #3e3e3e);
  1398. }
  1399. .bytm-yt-cfg-menu-option {
  1400. position: relative;
  1401. width: calc(100% - 12px);
  1402. }
  1403. .bytm-yt-cfg-menu-option-inner {
  1404. display: flex;
  1405. flex-direction: row;
  1406. justify-content: flex-start;
  1407. align-items: center;
  1408. min-height: var(--paper-item-min-height, 48px);
  1409. max-width: calc(100% - 12px);
  1410. padding: 0px 12px;
  1411. border-radius: var(--paper-item-focused-before-border-radius, 10px);
  1412. cursor: pointer;
  1413. background-color: transparent;
  1414. transition: background-color 0.2s ease;
  1415. }
  1416. .bytm-yt-cfg-menu-option-inner:hover {
  1417. background-color: var(
  1418. --yt-spec-badge-chip-background,
  1419. rgba(255, 255, 255, 0.1)
  1420. );
  1421. }
  1422. .bytm-yt-cfg-menu-option-icon {
  1423. display: flex;
  1424. align-items: center;
  1425. flex-direction: row;
  1426. width: 24px;
  1427. height: 24px;
  1428. margin-right: 24px;
  1429. }
  1430. .bytm-yt-cfg-menu-option-item {
  1431. width: 100%;
  1432. color: #fff;
  1433. font-size: 14px;
  1434. }
  1435. .bytm-yt-cfg-menu-option-item:hover {
  1436. /* Support for "Enhancer for YouTube" extension's custom themes */
  1437. color: var(--main-color, #fff) !important;
  1438. }
  1439. /* #region watermark */
  1440. #bytm-watermark {
  1441. font-size: 10px;
  1442. display: inline-block;
  1443. position: absolute;
  1444. left: 97px;
  1445. top: 45px;
  1446. z-index: 10;
  1447. color: #f1f1f1;
  1448. text-decoration: none;
  1449. cursor: pointer;
  1450. }
  1451. #bytm-watermark:hover {
  1452. text-decoration: underline;
  1453. }
  1454. /* #region above queue btns */
  1455. #bytm-above-queue-btn-cont {
  1456. display: flex;
  1457. flex-direction: row;
  1458. justify-content: center;
  1459. align-items: center;
  1460. flex-wrap: nowrap;
  1461. height: 100%;
  1462. }
  1463. #bytm-above-queue-btn-wrapper {
  1464. white-space: nowrap;
  1465. }
  1466. .bytm-above-queue-btn {
  1467. width: 32px;
  1468. height: 32px;
  1469. margin-left: 0;
  1470. margin-right: 8px;
  1471. }
  1472. /* #region scroll to active */
  1473. #bytm-scroll-to-active-btn-cont {
  1474. display: flex;
  1475. flex-direction: column;
  1476. justify-content: center;
  1477. align-items: center;
  1478. height: 100%;
  1479. }
  1480. #bytm-scroll-to-active-btn-cont.hidden {
  1481. display: none;
  1482. }
  1483. #bytm-scroll-to-active-btn {
  1484. display: inline-flex;
  1485. align-items: center;
  1486. justify-content: center;
  1487. border-radius: 50%;
  1488. cursor: pointer;
  1489. }
  1490. #bytm-scroll-to-active-btn {
  1491. width: revert;
  1492. height: revert;
  1493. }
  1494. #bytm-scroll-to-active-btn .bytm-generic-btn-img {
  1495. padding: 4px;
  1496. }
  1497. /* #region thumbnail */
  1498. #bytm-thumbnail-overlay {
  1499. position: absolute;
  1500. top: 0;
  1501. left: 0;
  1502. width: 100%;
  1503. height: 100%;
  1504. display: none;
  1505. background-color: #030303;
  1506. z-index: 0;
  1507. border-radius: var(--ts-songimg-border-radius, initial);
  1508. }
  1509. #bytm-thumbnail-overlay-img {
  1510. position: relative;
  1511. width: 100%;
  1512. height: 100%;
  1513. border-radius: inherit;
  1514. box-shadow: var(--ts-songimg-box-shadow, initial);
  1515. }
  1516. #bytm-thumbnail-overlay-indicator {
  1517. position: absolute;
  1518. bottom: 16px;
  1519. right: 16px;
  1520. width: calc(min(56px, 100% - 16px));
  1521. height: calc(min(56px, 100% - 16px));
  1522. z-index: 1;
  1523. cursor: help;
  1524. filter: drop-shadow(0 0 3px #000);
  1525. }
  1526. ytmusic-player#player #bezel {
  1527. z-index: 1;
  1528. }
  1529. /* #region auto-like */
  1530. .bytm-vote-label {
  1531. cursor: pointer;
  1532. font-size: 1.25rem;
  1533. padding: 6px;
  1534. padding-left: 3px;
  1535. }
  1536. ytmusic-app-layout[player-ui-state="FULLSCREEN"] .bytm-vote-label {
  1537. color: white;
  1538. }
  1539. .bytm-vote-label:last-child {
  1540. padding-right: 0px;
  1541. }
  1542. /* #region fullscreen player bar */
  1543. /* Increase specificity to override YTM's default styles without having to use !important */
  1544. :root
  1545. body.bytm-dom-ytm
  1546. ytmusic-app-layout[player-ui-state="FULLSCREEN"]
  1547. ytmusic-player-bar[slot="player-bar"] {
  1548. width: 100%;
  1549. /* ...except in this case because of the ThemeSong extension: */
  1550. background: rgba(0, 0, 0, 0.35) !important;
  1551. backdrop-filter: blur(10px) brightness(90%);
  1552. }
  1553. :root
  1554. body.bytm-dom-ytm
  1555. ytmusic-app-layout[player-ui-state="FULLSCREEN"]
  1556. ytmusic-player-bar[slot="player-bar"]
  1557. .ytmusic-menu-renderer
  1558. svg
  1559. path,
  1560. :root
  1561. body.bytm-dom-ytm
  1562. ytmusic-app-layout[player-ui-state="FULLSCREEN"]
  1563. ytmusic-player-bar[slot="player-bar"]
  1564. tp-yt-paper-icon-button
  1565. svg
  1566. path {
  1567. fill: #fff;
  1568. }
  1569. :root
  1570. body.bytm-dom-ytm
  1571. ytmusic-app-layout[player-ui-state="FULLSCREEN"]
  1572. ytmusic-player-bar[slot="player-bar"]
  1573. .time-info {
  1574. color: #fff;
  1575. }
  1576. :root {
  1577. --bytm-auto-like-btn-color: #bf87f0;
  1578. }
  1579. #bytm-auto-like-channels-list {
  1580. display: flex;
  1581. flex-direction: column;
  1582. overflow-x: hidden;
  1583. overflow-y: auto;
  1584. white-space: nowrap;
  1585. text-overflow: ellipsis;
  1586. /* idk how else to get the scroll bar to show up correctly */
  1587. max-height: calc(min(100vh - 40px, var(--bytm-dialog-height-max)) - 300px);
  1588. }
  1589. .bytm-auto-like-channels-desc {
  1590. padding: 0px 15px;
  1591. white-space: pre-wrap;
  1592. font-size: 1.6rem;
  1593. margin-bottom: 10px;
  1594. }
  1595. .bytm-auto-like-channels-search-cont {
  1596. display: flex;
  1597. flex-direction: row;
  1598. align-items: center;
  1599. gap: 5px;
  1600. padding: 0px 15px;
  1601. margin-bottom: 10px;
  1602. }
  1603. .bytm-auto-like-channels-searchbar {
  1604. min-width: calc(min(250px, 50%));
  1605. }
  1606. .bytm-auto-like-channel-row-left-cont {
  1607. display: flex;
  1608. align-items: center;
  1609. gap: 10px;
  1610. }
  1611. .bytm-auto-like-channel-row {
  1612. display: flex;
  1613. justify-content: space-between;
  1614. align-items: center;
  1615. padding: 8px 15px;
  1616. transition: background-color 0.15s ease-out;
  1617. }
  1618. .bytm-auto-like-channel-row.hidden {
  1619. display: none;
  1620. }
  1621. .bytm-auto-like-channel-row:hover {
  1622. background-color: var(--bytm-menu-bg-highlight);
  1623. }
  1624. .bytm-auto-like-channel-row
  1625. .bytm-toggle-input-wrapper.bytm-auto-like-channel-toggle {
  1626. --toggle-height: 18px !important;
  1627. --toggle-width: 36px !important;
  1628. }
  1629. .bytm-auto-like-channel-row .bytm-generic-btn {
  1630. --bytm-generic-btn-width: 30px;
  1631. --bytm-generic-btn-height: 30px;
  1632. }
  1633. .bytm-auto-like-channel-name-label {
  1634. display: flex;
  1635. flex-direction: row;
  1636. align-items: center;
  1637. }
  1638. .bytm-auto-like-channel-id {
  1639. cursor: text;
  1640. font-size: 1.1rem;
  1641. color: #aaa;
  1642. margin-left: 10px;
  1643. }
  1644. /* add more specificity to override the default styles */
  1645. .bytm-generic-btn.long.bytm-auto-like-toggle-btn {
  1646. margin-right: 8px;
  1647. border: 1px solid var(--bytm-auto-like-btn-color);
  1648. box-sizing: border-box;
  1649. background-color: transparent;
  1650. transition: border-color 0.2s ease;
  1651. animation: none;
  1652. }
  1653. .bytm-generic-btn.long.bytm-auto-like-toggle-btn.left-margin {
  1654. margin: 0 0 0 8px;
  1655. }
  1656. .bytm-generic-btn.long.bytm-auto-like-toggle-btn.right-margin {
  1657. margin: 0 8px 0 0;
  1658. }
  1659. .bytm-generic-btn.long.bytm-auto-like-toggle-btn:hover {
  1660. background-color: rgba(255, 255, 255, 0.1);
  1661. }
  1662. body.bytm-dom-ytm
  1663. ytmusic-subscribe-button-renderer
  1664. #button-shape-subscribe:hover
  1665. > button {
  1666. background-color: rgba(255, 255, 255, 0.1) !important;
  1667. }
  1668. .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active {
  1669. background-color: rgba(255, 255, 255, 0.2);
  1670. }
  1671. .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active,
  1672. .bytm-generic-btn.long.bytm-auto-like-toggle-btn.toggled {
  1673. border-color: rgba(255, 255, 255, 0.2);
  1674. }
  1675. .bytm-generic-btn.long.bytm-auto-like-toggle-btn svg path {
  1676. fill: var(--bytm-auto-like-btn-color);
  1677. transition: fill 0.2s ease;
  1678. }
  1679. .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active svg path,
  1680. .bytm-generic-btn.long.bytm-auto-like-toggle-btn.toggled svg path {
  1681. fill: var(--ytmusic-subscribe-button-color, rgba(255, 255, 255, 0.7));
  1682. }
  1683. .bytm-generic-btn.long.bytm-auto-like-toggle-btn .bytm-generic-long-btn-txt {
  1684. font-weight: 500;
  1685. color: var(--bytm-auto-like-btn-color);
  1686. transition: color 0.2s ease;
  1687. }
  1688. .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active
  1689. .bytm-generic-long-btn-txt,
  1690. .bytm-generic-btn.long.bytm-auto-like-toggle-btn.toggled
  1691. .bytm-generic-long-btn-txt {
  1692. color: var(--ytmusic-subscribe-button-color, rgba(255, 255, 255, 0.7));
  1693. }
  1694. :root {
  1695. --bytm-themed-bg: var(--ts-playerpage-color, #030303);
  1696. }
  1697. #ts-visualizer-container #ThemeSong-Visualizer canvas {
  1698. /* Fix for the thumbnail overlay */
  1699. z-index: 1;
  1700. }
  1701. /* #region queue buttons */
  1702. #side-panel ytmusic-player-queue-item .song-info.ytmusic-player-queue-item {
  1703. position: relative;
  1704. }
  1705. #side-panel ytmusic-player-queue-item .bytm-queue-btn-container {
  1706. background: rgba(255, 255, 255, 0.1);
  1707. background: linear-gradient(
  1708. 90deg,
  1709. rgba(0, 0, 0, 0) 0%,
  1710. var(--bytm-themed-bg) 15%
  1711. );
  1712. display: none;
  1713. position: absolute;
  1714. right: 0;
  1715. padding-left: 25px;
  1716. height: 100%;
  1717. }
  1718. #side-panel ytmusic-player-queue-item[selected] .bytm-queue-btn-container {
  1719. background: linear-gradient(
  1720. 90deg,
  1721. rgba(0, 0, 0, 0) 0%,
  1722. var(--bytm-themesong-bg-accent-col, #1d1d1d) 15%
  1723. );
  1724. }
  1725. .bytm-generic-list-queue-btn-container {
  1726. /* otherwise the queue buttons render over the currently playing song page */
  1727. z-index: 1;
  1728. }
  1729. #side-panel ytmusic-player-queue-item:hover .bytm-queue-btn-container,
  1730. ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer:hover .bytm-queue-btn-container,
  1731. ytmusic-shelf-renderer ytmusic-responsive-list-item-renderer:hover .bytm-queue-btn-container,
  1732. /* same thing but with :focus-within */
  1733. #side-panel ytmusic-player-queue-item:focus-within .bytm-queue-btn-container,
  1734. ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer:focus-within .bytm-queue-btn-container,
  1735. ytmusic-shelf-renderer ytmusic-responsive-list-item-renderer:focus-within .bytm-queue-btn-container {
  1736. display: inline-flex;
  1737. align-items: center;
  1738. }
  1739. ytmusic-responsive-list-item-renderer .title-column {
  1740. align-items: center;
  1741. }
  1742. ytmusic-app
  1743. ytmusic-popup-container
  1744. tp-yt-iron-dropdown[data-bytm-hidden="true"] {
  1745. display: none !important;
  1746. }
  1747. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns
  1748. .bytm-generic-list-queue-btn-container {
  1749. visibility: hidden;
  1750. }
  1751. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns
  1752. .bytm-generic-list-queue-btn-container
  1753. a.bytm-generic-btn {
  1754. visibility: hidden !important;
  1755. }
  1756. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:hover
  1757. .bytm-generic-list-queue-btn-container,
  1758. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:focus-within
  1759. .bytm-generic-list-queue-btn-container {
  1760. visibility: visible;
  1761. }
  1762. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:hover
  1763. .bytm-generic-list-queue-btn-container
  1764. a.bytm-generic-btn,
  1765. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:focus-within
  1766. .bytm-generic-list-queue-btn-container
  1767. a.bytm-generic-btn {
  1768. visibility: visible !important;
  1769. }
  1770. /* #region volume slider */
  1771. #bytm-vol-slider-cont {
  1772. position: relative;
  1773. }
  1774. #bytm-vol-slider-label {
  1775. opacity: 0.000001;
  1776. position: absolute;
  1777. display: flex;
  1778. flex-direction: row;
  1779. align-items: center;
  1780. gap: 5px;
  1781. font-size: 1.4rem;
  1782. top: 50%;
  1783. left: 0;
  1784. transform: translate(calc(-50% - 10px), -50%);
  1785. text-align: right;
  1786. transition: opacity 0.2s ease;
  1787. }
  1788. #bytm-vol-slider-label.has-icon {
  1789. transform: translate(calc(-50% - 25px), -50%);
  1790. }
  1791. #bytm-vol-slider-label svg {
  1792. padding: 4px;
  1793. }
  1794. #bytm-vol-slider-label svg path {
  1795. fill: #909090;
  1796. }
  1797. #bytm-vol-slider-label.bytm-visible {
  1798. opacity: 1;
  1799. }
  1800. :root
  1801. body.bytm-dom-ytm
  1802. ytmusic-app-layout[player-ui-state="FULLSCREEN"]
  1803. #bytm-vol-slider-label {
  1804. color: #fff;
  1805. }
  1806. #bytm-vol-slider-shared {
  1807. display: flex;
  1808. flex-direction: row;
  1809. align-items: center;
  1810. }
  1811. #bytm-vol-slider-shared svg {
  1812. width: 20px;
  1813. height: 20px;
  1814. }