BetterYTM.css 42 KB

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