BetterYTM.css 42 KB

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