BetterYTM.css 42 KB

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