BetterYTM.css 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108
  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. background-color: var(--bytm-toast-bg-color);
  610. color: var(--bytm-toast-text-color);
  611. transition:
  612. opacity var(--bytm-toast-transition-time) ease,
  613. transform var(--bytm-toast-transition-time) ease;
  614. }
  615. #bytm-toast.clickable {
  616. cursor: pointer;
  617. }
  618. #bytm-toast.visible {
  619. pointer-events: auto;
  620. opacity: 1;
  621. }
  622. #bytm-toast.pos-tl {
  623. top: var(--bytm-toast-offset-ver);
  624. left: var(--bytm-toast-offset-hor);
  625. transform: translate(0, calc(var(--bytm-toast-transform-distance) * -1));
  626. }
  627. #bytm-toast.pos-tr {
  628. top: var(--bytm-toast-offset-ver);
  629. right: var(--bytm-toast-offset-hor);
  630. transform: translate(0, calc(var(--bytm-toast-transform-distance) * -1));
  631. }
  632. #bytm-toast.pos-br {
  633. bottom: var(--bytm-toast-offset-ver);
  634. right: var(--bytm-toast-offset-hor);
  635. transform: translate(0, var(--bytm-toast-transform-distance));
  636. }
  637. #bytm-toast.pos-bl {
  638. bottom: var(--bytm-toast-offset-ver);
  639. left: var(--bytm-toast-offset-hor);
  640. transform: translate(0, var(--bytm-toast-transform-distance));
  641. }
  642. #bytm-toast.visible.pos-tl,
  643. #bytm-toast.visible.pos-tr,
  644. #bytm-toast.visible.pos-br,
  645. #bytm-toast.visible.pos-bl {
  646. transform: translate(0, 0);
  647. }
  648. .bytm-toast-flex-wrapper {
  649. display: flex;
  650. flex-direction: row;
  651. align-items: center;
  652. gap: 10px;
  653. }
  654. .bytm-toast-icon.img,
  655. .bytm-toast-icon svg {
  656. width: 24px;
  657. height: 24px;
  658. }
  659. .bytm-toast-icon path {
  660. fill: var(--toast-icon-fill, #fff);
  661. }
  662. .bytm-toggle-input-wrapper {
  663. --toggle-height: 20px;
  664. --toggle-width: 40px;
  665. --toggle-knob-offset: 4px;
  666. --toggle-color-on: #3683d4;
  667. --toggle-color-off: #666;
  668. --toggle-knob-color: #f5f5f5;
  669. display: flex;
  670. align-items: center;
  671. }
  672. .bytm-toggle-input-wrapper .bytm-toggle-input-label {
  673. cursor: pointer;
  674. font-size: 1.5rem;
  675. padding: 3px 12px;
  676. }
  677. /* sauce: https://danklammer.com/articles/simple-css-toggle-switch/ */
  678. .bytm-toggle-input {
  679. display: flex;
  680. align-items: center;
  681. }
  682. .bytm-toggle-input input {
  683. appearance: none;
  684. display: inline-block;
  685. width: var(--toggle-width);
  686. height: var(--toggle-height);
  687. position: relative;
  688. border-radius: 50px;
  689. overflow: hidden;
  690. outline: none;
  691. border: none;
  692. margin: 0;
  693. padding: var(--toggle-knob-offset);
  694. cursor: pointer;
  695. background-color: var(--toggle-color-off);
  696. transition:
  697. justify-content 0.2s ease,
  698. background-color 0.2s ease;
  699. }
  700. .bytm-toggle-input input[data-toggled="true"] {
  701. background-color: var(--toggle-color-on);
  702. }
  703. .bytm-toggle-input input .bytm-toggle-input-knob {
  704. --toggle-knob-calc-width: calc(
  705. var(--toggle-height) - (var(--toggle-knob-offset) * 2)
  706. );
  707. --toggle-knob-calc-height: calc(
  708. var(--toggle-height) - (var(--toggle-knob-offset) * 2)
  709. );
  710. width: var(--toggle-knob-calc-width);
  711. height: var(--toggle-knob-calc-height);
  712. background-color: var(--toggle-knob-color);
  713. border-radius: 50%;
  714. position: absolute;
  715. top: 50%;
  716. transform: translateY(-50%);
  717. left: var(--toggle-knob-offset);
  718. transition: left 0.2s ease;
  719. }
  720. .bytm-toggle-input input[data-toggled="true"] .bytm-toggle-input-knob {
  721. left: calc(
  722. var(--toggle-width) - var(--toggle-knob-offset) -
  723. var(--toggle-knob-calc-width)
  724. );
  725. }
  726. .bytm-auto-like-channels-footer-wrapper {
  727. display: flex;
  728. justify-content: space-between;
  729. }
  730. :root {
  731. --bytm-menu-bg-highlight: #252525;
  732. }
  733. .bytm-menu-bg {
  734. --bytm-menu-bg: #333333;
  735. --bytm-scroll-indicator-bg: rgba(10, 10, 10, 0.7);
  736. --bytm-menu-separator-color: #797979;
  737. --bytm-menu-border-radius: 10px;
  738. }
  739. .bytm-menu-bg {
  740. display: block;
  741. position: fixed;
  742. width: 100%;
  743. height: 100%;
  744. top: 0;
  745. left: 0;
  746. z-index: 5;
  747. background-color: rgba(0, 0, 0, 0.6);
  748. }
  749. .bytm-menu {
  750. position: fixed;
  751. display: flex;
  752. flex-direction: column;
  753. width: calc(min(100% - 60px, var(--bytm-menu-width-max)));
  754. border-radius: var(--bytm-menu-border-radius);
  755. height: auto;
  756. max-height: calc(min(100% - 40px, var(--bytm-menu-height-max)));
  757. left: 50%;
  758. top: 50%;
  759. transform: translate(-50%, -50%);
  760. z-index: 6;
  761. color: #fff;
  762. background-color: var(--bytm-menu-bg);
  763. }
  764. .bytm-menu.top-aligned {
  765. top: 0;
  766. transform: translate(-50%, 40px);
  767. }
  768. .bytm-menu-body {
  769. padding: 15px;
  770. }
  771. #bytm-menu-opts {
  772. display: flex;
  773. flex-direction: column;
  774. position: relative;
  775. padding: 15px 0px;
  776. overflow-y: auto;
  777. }
  778. .bytm-menu-header {
  779. display: flex;
  780. justify-content: space-between;
  781. align-items: center;
  782. margin-bottom: 6px;
  783. padding: 15px;
  784. background-color: var(--bytm-menu-bg);
  785. border: 2px solid var(--bytm-menu-separator-color);
  786. border-style: none none solid none !important;
  787. border-radius: var(--bytm-menu-border-radius) var(--bytm-menu-border-radius)
  788. 0px 0px;
  789. }
  790. .bytm-menu-header.small {
  791. padding: 10px;
  792. border-style: none none solid none !important;
  793. }
  794. .bytm-menu-title-logo-header-cont {
  795. display: flex;
  796. }
  797. .bytm-cfg-menu-logo {
  798. width: 32px;
  799. height: 32px;
  800. margin-right: 10px;
  801. }
  802. .bytm-menu-titlecont {
  803. position: relative;
  804. display: flex;
  805. align-items: center;
  806. }
  807. .bytm-menu-titlecont-no-title {
  808. display: flex;
  809. justify-content: flex-end;
  810. align-items: center;
  811. }
  812. .bytm-menu-title {
  813. position: relative;
  814. display: inline-block;
  815. font-size: 22px;
  816. }
  817. #bytm-cfg-menu-bg .bytm-menu-title {
  818. transform: translate(0px, -6px);
  819. }
  820. #bytm-cfg-menu {
  821. --bytm-menu-subtitle-color: #c6d2db;
  822. }
  823. #bytm-menu-subtitle-cont {
  824. width: 100%;
  825. display: flex;
  826. gap: 6px;
  827. flex-direction: row;
  828. justify-content: space-between;
  829. align-items: end;
  830. position: absolute;
  831. bottom: -12px;
  832. left: 0;
  833. font-size: 10px;
  834. font-weight: normal;
  835. z-index: 7;
  836. }
  837. #bytm-menu-subtitle-cont,
  838. #bytm-menu-version-anchor {
  839. color: var(--bytm-menu-subtitle-color) !important;
  840. }
  841. #bytm-menu-subtitle-cont,
  842. #bytm-menu-mode-display {
  843. overflow: hidden;
  844. text-overflow: ellipsis;
  845. white-space: nowrap;
  846. }
  847. #bytm-menu-version-anchor {
  848. overflow: hidden;
  849. text-wrap: nowrap;
  850. text-overflow: ellipsis;
  851. }
  852. #bytm-menu-linkscont {
  853. display: flex;
  854. align-items: center;
  855. margin-left: 32px;
  856. }
  857. .bytm-menu-link {
  858. position: relative;
  859. max-height: 32px;
  860. max-width: 32px;
  861. display: inline-flex;
  862. flex-direction: column;
  863. align-items: center;
  864. cursor: pointer;
  865. }
  866. .bytm-menu-link:not(:last-of-type) {
  867. margin-right: 10px;
  868. }
  869. .bytm-menu-link .bytm-menu-img {
  870. width: 32px;
  871. height: 32px;
  872. border-radius: 50%;
  873. padding: 0px;
  874. transform: translateY(0px);
  875. transition:
  876. transform 0.15s ease-out,
  877. padding 0.15s ease-out;
  878. }
  879. .bytm-menu-link:hover .bytm-menu-img {
  880. padding: 7px;
  881. transform: translateY(-14px);
  882. }
  883. .bytm-menu-link .extended-link {
  884. visibility: hidden;
  885. position: absolute;
  886. top: 14px;
  887. padding-top: 13px;
  888. padding-bottom: 2px;
  889. opacity: 0;
  890. text-decoration: none;
  891. color: var(--bytm-menu-subtitle-color) !important;
  892. white-space: pre;
  893. font-size: 1.1rem;
  894. transition:
  895. visibility 0.15s ease-out,
  896. opacity 0.15s ease-out;
  897. }
  898. .bytm-menu-link:hover .extended-link {
  899. visibility: visible;
  900. opacity: 1;
  901. }
  902. .bytm-menu-close {
  903. width: 32px;
  904. height: 32px;
  905. cursor: pointer;
  906. }
  907. .bytm-menu-close.small {
  908. width: 24px;
  909. height: 24px;
  910. }
  911. .bytm-menu-footer {
  912. font-size: 17px;
  913. text-decoration: underline;
  914. }
  915. .bytm-menu-footer.hidden {
  916. display: none;
  917. }
  918. .bytm-menu-footer-cont {
  919. display: flex;
  920. flex-direction: row;
  921. justify-content: space-between;
  922. margin-top: 6px;
  923. padding: 15px;
  924. background: var(--bytm-menu-bg);
  925. background: linear-gradient(
  926. to bottom,
  927. rgba(0, 0, 0, 0) 0%,
  928. var(--bytm-menu-bg) 30%,
  929. var(--bytm-menu-bg) 100%
  930. );
  931. border: 2px solid var(--bytm-menu-separator-color);
  932. border-style: solid none none none !important;
  933. border-radius: 0px 0px var(--bytm-menu-border-radius)
  934. var(--bytm-menu-border-radius);
  935. }
  936. .bytm-menu-footer-buttons-cont button:not(:last-of-type) {
  937. margin-right: 15px;
  938. }
  939. .bytm-menu-footer-right {
  940. display: flex;
  941. flex-direction: row-reverse;
  942. align-items: center;
  943. }
  944. #bytm-menu-footer-left-buttons-cont button:not(:last-of-type) {
  945. margin-right: 15px;
  946. }
  947. #bytm-menu-scroll-indicator {
  948. --bytm-scroll-indicator-padding: 5px;
  949. position: sticky;
  950. bottom: -15px;
  951. left: 50%;
  952. margin-top: calc(-32px - var(--bytm-scroll-indicator-padding) * 2);
  953. padding: var(--bytm-scroll-indicator-padding);
  954. transform: translateX(-50%);
  955. width: 32px;
  956. height: 32px;
  957. z-index: 7;
  958. background-color: var(--bytm-scroll-indicator-bg);
  959. border-radius: 50%;
  960. cursor: pointer;
  961. }
  962. .bytm-hidden {
  963. visibility: hidden !important;
  964. }
  965. .bytm-ftconf-category-header {
  966. font-size: 20px;
  967. margin-top: 32px;
  968. margin-bottom: 8px;
  969. padding: 0px 15px;
  970. }
  971. .bytm-ftconf-category-header:first-of-type {
  972. margin-top: 0;
  973. }
  974. .bytm-ftitem {
  975. display: flex;
  976. flex-direction: row;
  977. justify-content: space-between;
  978. align-items: center;
  979. font-size: 1.4rem;
  980. padding: 8px 20px;
  981. transition: background-color 0.15s ease-out;
  982. }
  983. .bytm-ftitem:hover {
  984. background-color: var(--bytm-menu-bg-highlight);
  985. }
  986. .bytm-ftitem-leftside {
  987. display: flex;
  988. align-items: center;
  989. min-height: 24px;
  990. }
  991. .bytm-ftconf-ctrl {
  992. display: inline-flex;
  993. align-items: center;
  994. white-space: nowrap;
  995. margin-left: 10px;
  996. }
  997. .bytm-ftconf-label {
  998. user-select: none;
  999. }
  1000. .bytm-slider-label {
  1001. margin-right: 10px;
  1002. }
  1003. .bytm-toggle-label {
  1004. padding-left: 10px;
  1005. padding-right: 5px;
  1006. }
  1007. .bytm-ftconf-input.bytm-hotkey-input {
  1008. cursor: pointer;
  1009. min-width: 50px;
  1010. }
  1011. .bytm-ftconf-input[type="number"] {
  1012. width: 75px;
  1013. }
  1014. .bytm-ftconf-input[type="checkbox"] {
  1015. margin-left: 5px;
  1016. }
  1017. #bytm-export-menu-text,
  1018. #bytm-import-menu-text {
  1019. white-space: pre-wrap;
  1020. font-size: 1.6rem;
  1021. margin-bottom: 15px;
  1022. }
  1023. .bytm-menu-footer-copied {
  1024. font-size: 1.6rem;
  1025. margin-right: 15px;
  1026. }
  1027. #bytm-changelog-menu-body {
  1028. overflow-y: auto;
  1029. }
  1030. .bytm-changelog-version-details:not(:first-of-type) {
  1031. margin-top: 15px;
  1032. }
  1033. .bytm-changelog-version-details summary h2 {
  1034. display: inline-block;
  1035. }
  1036. .bytm-changelog-version-details summary {
  1037. cursor: pointer;
  1038. }
  1039. .bytm-changelog-version-details summary::marker {
  1040. font-size: 2rem;
  1041. }
  1042. #bytm-export-menu-textarea,
  1043. #bytm-import-menu-textarea {
  1044. width: 100%;
  1045. height: 150px;
  1046. resize: none;
  1047. }
  1048. .bytm-markdown-container {
  1049. display: flex;
  1050. flex-direction: column;
  1051. overflow-y: auto;
  1052. font-size: 1.5rem;
  1053. line-height: 20px;
  1054. }
  1055. /* Markdown stuff */
  1056. .bytm-markdown-container kbd {
  1057. --bytm-easing: cubic-bezier(0.31, 0.58, 0.24, 1.15);
  1058. display: inline-block;
  1059. vertical-align: bottom;
  1060. padding: 4px;
  1061. padding-top: 2px;
  1062. font-size: 0.95em;
  1063. line-height: 11px;
  1064. background-color: #222;
  1065. border: 1px solid #777;
  1066. border-radius: 5px;
  1067. box-shadow: inset 0 -2px 0 #515559;
  1068. transition:
  1069. padding 0.1s var(--bytm-easing),
  1070. box-shadow 0.1s var(--bytm-easing);
  1071. }
  1072. .bytm-markdown-container kbd:active {
  1073. padding-bottom: 2px;
  1074. box-shadow: inset 0 0 0 initial;
  1075. }
  1076. .bytm-markdown-container kbd::selection {
  1077. background: rgba(0, 0, 0, 0);
  1078. }
  1079. .bytm-markdown-container code {
  1080. background-color: #222;
  1081. border-radius: 3px;
  1082. padding: 1px 5px;
  1083. }
  1084. .bytm-markdown-container h2 {
  1085. margin-bottom: 5px;
  1086. }
  1087. .bytm-markdown-container h2:not(:first-of-type) {
  1088. margin-top: 30px;
  1089. }
  1090. .bytm-markdown-container ul li {
  1091. padding-left: 0px;
  1092. }
  1093. .bytm-markdown-container ul li::marker {
  1094. content: none;
  1095. }
  1096. .bytm-markdown-container ul li::before {
  1097. content: "• ";
  1098. font-weight: bolder;
  1099. }
  1100. .bytm-markdown-container ul li > ul li {
  1101. padding-left: 16px;
  1102. }
  1103. .bytm-markdown-container ul li > ul li::marker {
  1104. content: none;
  1105. }
  1106. .bytm-markdown-container ul li > ul li::before {
  1107. white-space: pre-wrap;
  1108. content: "• ";
  1109. font-weight: bolder;
  1110. }
  1111. .bytm-markdown-container ul li > ul li > ul li {
  1112. padding-left: 16px;
  1113. }
  1114. .bytm-markdown-container ul li > ul li > ul li::marker {
  1115. content: none;
  1116. }
  1117. .bytm-markdown-container ul li > ul li > ul li::before {
  1118. white-space: pre-wrap;
  1119. content: "• ";
  1120. font-weight: bolder;
  1121. }
  1122. .bytm-markdown-container .pr-link-cont {
  1123. padding-top: 10px;
  1124. }
  1125. #bytm-feat-help-dialog-desc,
  1126. #bytm-feat-help-dialog-text {
  1127. overflow-wrap: break-word;
  1128. white-space: pre-wrap;
  1129. font-size: 1.5rem;
  1130. line-height: 1.25em;
  1131. }
  1132. #bytm-feat-help-dialog-desc {
  1133. font-size: 1.8rem;
  1134. padding-bottom: 10px;
  1135. }
  1136. .bytm-ftitem-help-btn {
  1137. width: 24px !important;
  1138. height: 24px !important;
  1139. }
  1140. .bytm-ftitem-help-btn svg {
  1141. width: 18px !important;
  1142. height: 18px !important;
  1143. }
  1144. .bytm-ftitem-help-btn svg > path {
  1145. fill: #b3bec7 !important;
  1146. }
  1147. hr {
  1148. display: block;
  1149. margin: 8px 0px 12px 0px;
  1150. border: revert;
  1151. }
  1152. /* #region misc */
  1153. .bytm-disable-scroll {
  1154. overflow: hidden !important;
  1155. }
  1156. /* #region generic (circular) button */
  1157. .bytm-generic-btn {
  1158. --bytm-generic-btn-width: 36px;
  1159. --bytm-generic-btn-height: 36px;
  1160. display: inline-flex;
  1161. align-items: center;
  1162. justify-content: center;
  1163. position: relative;
  1164. vertical-align: middle;
  1165. cursor: pointer;
  1166. margin-left: 8px;
  1167. white-space: nowrap;
  1168. text-overflow: ellipsis;
  1169. user-select: none;
  1170. min-width: var(--bytm-generic-btn-width);
  1171. max-width: var(--bytm-generic-btn-width);
  1172. min-height: var(--bytm-generic-btn-height);
  1173. max-height: var(--bytm-generic-btn-height);
  1174. border: 1px solid transparent;
  1175. border-radius: calc(var(--bytm-generic-btn-height, 36px) / 2);
  1176. background-color: transparent;
  1177. transition: background-color 0.2s ease;
  1178. }
  1179. .bytm-generic-btn:hover {
  1180. background-color: rgba(255, 255, 255, 0.2);
  1181. }
  1182. .bytm-generic-btn:active {
  1183. animation: bytm-flash-border 0.4s ease 1;
  1184. }
  1185. @keyframes bytm-flash-border {
  1186. 0% {
  1187. border: 1px solid initial;
  1188. }
  1189. 25% {
  1190. border: 1px solid rgba(255, 255, 255, 0.4);
  1191. }
  1192. 100% {
  1193. border: 1px solid initial;
  1194. }
  1195. }
  1196. .bytm-generic-btn:not(.bytm-toggle):active {
  1197. background-color: rgba(255, 255, 255, 0.3);
  1198. }
  1199. .bytm-generic-btn.long {
  1200. --bytm-generic-btn-width: calc(min(136px, fit-content));
  1201. padding: 0px 14px;
  1202. line-height: 36px;
  1203. display: inline-flex;
  1204. align-items: center;
  1205. justify-content: center;
  1206. position: relative;
  1207. vertical-align: middle;
  1208. cursor: pointer;
  1209. margin-left: 0px;
  1210. border: 1px solid #999;
  1211. }
  1212. .bytm-generic-btn.long:hover {
  1213. background-color: rgba(255, 255, 255, 0.2);
  1214. }
  1215. .bytm-generic-btn.long .bytm-generic-btn-img.left {
  1216. margin-right: 8px;
  1217. }
  1218. .bytm-generic-btn.long .bytm-generic-btn-img.right {
  1219. margin-left: 8px;
  1220. }
  1221. .bytm-generic-long-btn-txt {
  1222. font-size: 14px;
  1223. }
  1224. .bytm-ftitem-help-btn.bytm-generic-btn {
  1225. --bytm-generic-btn-width: 24px;
  1226. --bytm-generic-btn-height: 24px;
  1227. }
  1228. .bytm-generic-btn-img {
  1229. display: inline-block;
  1230. z-index: 1;
  1231. width: 24px;
  1232. height: 24px;
  1233. }
  1234. .bytm-spinner {
  1235. animation: rotate 1.2s linear infinite;
  1236. }
  1237. @keyframes rotate {
  1238. from {
  1239. transform: rotate(0deg);
  1240. }
  1241. to {
  1242. transform: rotate(360deg);
  1243. }
  1244. }
  1245. .bytm-anchor {
  1246. all: unset;
  1247. cursor: pointer;
  1248. }
  1249. /* ytmusic-logo a[bytm-animated="true"] .bytm-mod-logo-ellipse {
  1250. transform-origin: 12px 12px;
  1251. animation: rotate 1s ease-in-out infinite;
  1252. } */
  1253. ytmusic-logo a.bytm-logo-exchanged .bytm-mod-logo-path {
  1254. transform-origin: 12px 12px;
  1255. animation: rotate 1s ease-in-out;
  1256. }
  1257. ytmusic-logo a.bytm-logo-exchanged .bytm-mod-logo-img {
  1258. width: 24px;
  1259. height: 24px;
  1260. z-index: 1000;
  1261. position: absolute;
  1262. animation: rotate-fade-in 1s ease-in-out;
  1263. }
  1264. @keyframes rotate-fade-in {
  1265. 0% {
  1266. opacity: 0;
  1267. transform: rotate(0deg);
  1268. }
  1269. 30% {
  1270. opacity: 0;
  1271. }
  1272. 90% {
  1273. opacity: 1;
  1274. }
  1275. 100% {
  1276. transform: rotate(360deg);
  1277. }
  1278. }
  1279. .bytm-no-select {
  1280. user-select: none;
  1281. -ms-user-select: none;
  1282. -moz-user-select: none;
  1283. -webkit-user-select: none;
  1284. }
  1285. /* YTM does some weird styling that breaks everything, so this reverts all of BYTM's buttons to the browser default style */
  1286. button.bytm-btn {
  1287. padding: revert;
  1288. border: revert;
  1289. outline: revert;
  1290. font: revert;
  1291. text-transform: revert;
  1292. color: revert;
  1293. background: revert;
  1294. cursor: pointer;
  1295. line-height: 1.4em;
  1296. }
  1297. .bytm-link,
  1298. .bytm-markdown-container a {
  1299. color: #369bff !important;
  1300. text-decoration: none !important;
  1301. cursor: pointer;
  1302. }
  1303. .bytm-link:hover,
  1304. .bytm-markdown-container a:hover {
  1305. color: #369bff !important;
  1306. text-decoration: underline !important;
  1307. }
  1308. button[disabled] {
  1309. cursor: not-allowed;
  1310. }
  1311. button[disabled].bytm-busy {
  1312. cursor: progress;
  1313. }
  1314. /* #region menu */
  1315. .bytm-cfg-menu-option {
  1316. display: block;
  1317. padding: 8px 0;
  1318. }
  1319. .bytm-cfg-menu-option-item {
  1320. display: flex;
  1321. flex-direction: row;
  1322. align-items: center;
  1323. font-size: 1.4rem;
  1324. font-weight: 400;
  1325. line-height: 24px;
  1326. padding: var(--yt-compact-link-paper-item-padding, 0px 36px 0 16px);
  1327. min-height: var(--paper-item-min-height, 40px);
  1328. white-space: nowrap;
  1329. cursor: pointer;
  1330. }
  1331. .bytm-cfg-menu-option-item:hover {
  1332. background-color: var(--yt-spec-badge-chip-background, #3e3e3e);
  1333. }
  1334. .bytm-cfg-menu-option-icon {
  1335. width: 24px;
  1336. height: 24px;
  1337. margin-right: 16px;
  1338. display: flex;
  1339. align-items: center;
  1340. flex-direction: row;
  1341. flex: none;
  1342. }
  1343. .bytm-cfg-menu-option-text {
  1344. font-size: 1.4rem;
  1345. line-height: 2rem;
  1346. }
  1347. yt-multi-page-menu-section-renderer.ytd-multi-page-menu-renderer {
  1348. border-bottom: 1px solid var(--yt-spec-10-percent-layer, #3e3e3e);
  1349. }
  1350. .bytm-yt-cfg-menu-option {
  1351. position: relative;
  1352. width: calc(100% - 12px);
  1353. }
  1354. .bytm-yt-cfg-menu-option-inner {
  1355. display: flex;
  1356. flex-direction: row;
  1357. justify-content: flex-start;
  1358. align-items: center;
  1359. min-height: var(--paper-item-min-height, 48px);
  1360. max-width: calc(100% - 12px);
  1361. padding: 0px 12px;
  1362. border-radius: var(--paper-item-focused-before-border-radius, 10px);
  1363. cursor: pointer;
  1364. background-color: transparent;
  1365. transition: background-color 0.2s ease;
  1366. }
  1367. .bytm-yt-cfg-menu-option-inner:hover {
  1368. background-color: var(
  1369. --yt-spec-badge-chip-background,
  1370. rgba(255, 255, 255, 0.1)
  1371. );
  1372. }
  1373. .bytm-yt-cfg-menu-option-icon {
  1374. display: flex;
  1375. align-items: center;
  1376. flex-direction: row;
  1377. width: 24px;
  1378. height: 24px;
  1379. margin-right: 24px;
  1380. }
  1381. .bytm-yt-cfg-menu-option-item {
  1382. width: 100%;
  1383. color: #fff;
  1384. font-size: 14px;
  1385. }
  1386. .bytm-yt-cfg-menu-option-item:hover {
  1387. /* Support for "Enhancer for YouTube" extension's custom themes */
  1388. color: var(--main-color, #fff) !important;
  1389. }
  1390. /* #region watermark */
  1391. #bytm-watermark {
  1392. font-size: 10px;
  1393. display: inline-block;
  1394. position: absolute;
  1395. left: 97px;
  1396. top: 45px;
  1397. z-index: 10;
  1398. color: #f1f1f1;
  1399. text-decoration: none;
  1400. cursor: pointer;
  1401. }
  1402. #bytm-watermark:hover {
  1403. text-decoration: underline;
  1404. }
  1405. /* #region above queue btns */
  1406. #bytm-above-queue-btn-cont {
  1407. display: flex;
  1408. flex-direction: row;
  1409. justify-content: center;
  1410. align-items: center;
  1411. flex-wrap: nowrap;
  1412. height: 100%;
  1413. }
  1414. #bytm-above-queue-btn-wrapper {
  1415. white-space: nowrap;
  1416. }
  1417. .bytm-above-queue-btn {
  1418. width: 32px;
  1419. height: 32px;
  1420. margin-left: 0;
  1421. margin-right: 8px;
  1422. }
  1423. /* #region scroll to active */
  1424. #bytm-scroll-to-active-btn-cont {
  1425. display: flex;
  1426. flex-direction: column;
  1427. justify-content: center;
  1428. align-items: center;
  1429. height: 100%;
  1430. }
  1431. #bytm-scroll-to-active-btn-cont.hidden {
  1432. display: none;
  1433. }
  1434. #bytm-scroll-to-active-btn {
  1435. display: inline-flex;
  1436. align-items: center;
  1437. justify-content: center;
  1438. border-radius: 50%;
  1439. cursor: pointer;
  1440. }
  1441. #bytm-scroll-to-active-btn {
  1442. width: revert;
  1443. height: revert;
  1444. }
  1445. #bytm-scroll-to-active-btn .bytm-generic-btn-img {
  1446. padding: 4px;
  1447. }
  1448. /* #region thumbnail */
  1449. #bytm-thumbnail-overlay {
  1450. position: absolute;
  1451. top: 0;
  1452. left: 0;
  1453. width: 100%;
  1454. height: 100%;
  1455. display: none;
  1456. background-color: #030303;
  1457. z-index: 0;
  1458. border-radius: var(--ts-songimg-border-radius, initial);
  1459. }
  1460. #bytm-thumbnail-overlay-img {
  1461. position: relative;
  1462. width: 100%;
  1463. height: 100%;
  1464. border-radius: inherit;
  1465. box-shadow: var(--ts-songimg-box-shadow, initial);
  1466. }
  1467. #bytm-thumbnail-overlay-indicator {
  1468. position: absolute;
  1469. bottom: 16px;
  1470. right: 16px;
  1471. width: calc(min(56px, 100% - 16px));
  1472. height: calc(min(56px, 100% - 16px));
  1473. z-index: 1;
  1474. cursor: help;
  1475. filter: drop-shadow(0 0 3px #000);
  1476. }
  1477. ytmusic-player#player #bezel {
  1478. z-index: 1;
  1479. }
  1480. /* #region auto-like */
  1481. .bytm-vote-label {
  1482. cursor: pointer;
  1483. font-size: 1.25rem;
  1484. padding: 6px;
  1485. padding-left: 3px;
  1486. }
  1487. ytmusic-app-layout[player-ui-state="FULLSCREEN"] .bytm-vote-label {
  1488. color: white;
  1489. }
  1490. .bytm-vote-label:last-child {
  1491. padding-right: 0px;
  1492. }
  1493. /* #region fullscreen player bar */
  1494. /* Increase specificity to override YTM's default styles without having to use !important */
  1495. :root
  1496. body.bytm-dom-ytm
  1497. ytmusic-app-layout[player-ui-state="FULLSCREEN"]
  1498. ytmusic-player-bar[slot="player-bar"] {
  1499. width: 100%;
  1500. background: rgba(0, 0, 0, 0.35);
  1501. backdrop-filter: blur(10px) brightness(90%);
  1502. }
  1503. :root
  1504. body.bytm-dom-ytm
  1505. ytmusic-app-layout[player-ui-state="FULLSCREEN"]
  1506. ytmusic-player-bar[slot="player-bar"]
  1507. .ytmusic-menu-renderer
  1508. svg
  1509. path,
  1510. :root
  1511. body.bytm-dom-ytm
  1512. ytmusic-app-layout[player-ui-state="FULLSCREEN"]
  1513. ytmusic-player-bar[slot="player-bar"]
  1514. tp-yt-paper-icon-button
  1515. svg
  1516. path {
  1517. fill: #fff;
  1518. }
  1519. :root
  1520. body.bytm-dom-ytm
  1521. ytmusic-app-layout[player-ui-state="FULLSCREEN"]
  1522. ytmusic-player-bar[slot="player-bar"]
  1523. .time-info {
  1524. color: #fff;
  1525. }
  1526. :root {
  1527. --bytm-auto-like-btn-color: #bf87f0;
  1528. }
  1529. #bytm-auto-like-channels-list {
  1530. display: flex;
  1531. flex-direction: column;
  1532. overflow-x: hidden;
  1533. overflow-y: auto;
  1534. white-space: nowrap;
  1535. text-overflow: ellipsis;
  1536. /* idk how else to get the scroll bar to show up correctly */
  1537. max-height: calc(min(100vh - 40px, var(--bytm-dialog-height-max)) - 300px);
  1538. }
  1539. .bytm-auto-like-channels-desc {
  1540. padding: 0px 15px;
  1541. white-space: pre-wrap;
  1542. font-size: 1.6rem;
  1543. margin-bottom: 10px;
  1544. }
  1545. .bytm-auto-like-channels-search-cont {
  1546. display: flex;
  1547. flex-direction: row;
  1548. align-items: center;
  1549. gap: 5px;
  1550. padding: 0px 15px;
  1551. margin-bottom: 10px;
  1552. }
  1553. .bytm-auto-like-channels-searchbar {
  1554. min-width: calc(min(250px, 50%));
  1555. }
  1556. .bytm-auto-like-channel-row-left-cont {
  1557. display: flex;
  1558. align-items: center;
  1559. gap: 10px;
  1560. }
  1561. .bytm-auto-like-channel-row {
  1562. display: flex;
  1563. justify-content: space-between;
  1564. align-items: center;
  1565. padding: 8px 15px;
  1566. transition: background-color 0.15s ease-out;
  1567. }
  1568. .bytm-auto-like-channel-row.hidden {
  1569. display: none;
  1570. }
  1571. .bytm-auto-like-channel-row:hover {
  1572. background-color: var(--bytm-menu-bg-highlight);
  1573. }
  1574. .bytm-auto-like-channel-row
  1575. .bytm-toggle-input-wrapper.bytm-auto-like-channel-toggle {
  1576. --toggle-height: 18px !important;
  1577. --toggle-width: 36px !important;
  1578. }
  1579. .bytm-auto-like-channel-row .bytm-generic-btn {
  1580. --bytm-generic-btn-width: 30px;
  1581. --bytm-generic-btn-height: 30px;
  1582. }
  1583. .bytm-auto-like-channel-name-label {
  1584. display: flex;
  1585. flex-direction: row;
  1586. align-items: center;
  1587. }
  1588. .bytm-auto-like-channel-id {
  1589. cursor: text;
  1590. font-size: 1.1rem;
  1591. color: #aaa;
  1592. margin-left: 10px;
  1593. }
  1594. /* add more specificity to override the default styles */
  1595. .bytm-generic-btn.long.bytm-auto-like-toggle-btn {
  1596. margin-right: 8px;
  1597. border: 1px solid var(--bytm-auto-like-btn-color);
  1598. box-sizing: border-box;
  1599. background-color: transparent;
  1600. transition: border-color 0.2s ease;
  1601. animation: none;
  1602. }
  1603. .bytm-generic-btn.long.bytm-auto-like-toggle-btn.left-margin {
  1604. margin: 0 0 0 8px;
  1605. }
  1606. .bytm-generic-btn.long.bytm-auto-like-toggle-btn.right-margin {
  1607. margin: 0 8px 0 0;
  1608. }
  1609. .bytm-generic-btn.long.bytm-auto-like-toggle-btn:hover {
  1610. background-color: rgba(255, 255, 255, 0.1);
  1611. }
  1612. body.bytm-dom-ytm
  1613. ytmusic-subscribe-button-renderer
  1614. #button-shape-subscribe:hover
  1615. > button {
  1616. background-color: rgba(255, 255, 255, 0.1) !important;
  1617. }
  1618. .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active {
  1619. background-color: rgba(255, 255, 255, 0.2);
  1620. }
  1621. .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active,
  1622. .bytm-generic-btn.long.bytm-auto-like-toggle-btn.toggled {
  1623. border-color: rgba(255, 255, 255, 0.2);
  1624. }
  1625. .bytm-generic-btn.long.bytm-auto-like-toggle-btn svg path {
  1626. fill: var(--bytm-auto-like-btn-color);
  1627. transition: fill 0.2s ease;
  1628. }
  1629. .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active svg path,
  1630. .bytm-generic-btn.long.bytm-auto-like-toggle-btn.toggled svg path {
  1631. fill: var(--ytmusic-subscribe-button-color, rgba(255, 255, 255, 0.7));
  1632. }
  1633. .bytm-generic-btn.long.bytm-auto-like-toggle-btn .bytm-generic-long-btn-txt {
  1634. font-weight: 500;
  1635. color: var(--bytm-auto-like-btn-color);
  1636. transition: color 0.2s ease;
  1637. }
  1638. .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active
  1639. .bytm-generic-long-btn-txt,
  1640. .bytm-generic-btn.long.bytm-auto-like-toggle-btn.toggled
  1641. .bytm-generic-long-btn-txt {
  1642. color: var(--ytmusic-subscribe-button-color, rgba(255, 255, 255, 0.7));
  1643. }
  1644. :root {
  1645. --bytm-themed-bg: var(--ts-playerpage-color, #030303);
  1646. }
  1647. #ts-visualizer-container #ThemeSong-Visualizer canvas {
  1648. /* Fix for the thumbnail overlay */
  1649. z-index: 1;
  1650. }
  1651. /* #region queue buttons */
  1652. #side-panel ytmusic-player-queue-item .song-info.ytmusic-player-queue-item {
  1653. position: relative;
  1654. }
  1655. #side-panel ytmusic-player-queue-item .bytm-queue-btn-container {
  1656. background: rgba(255, 255, 255, 0.1);
  1657. background: linear-gradient(
  1658. 90deg,
  1659. rgba(0, 0, 0, 0) 0%,
  1660. var(--bytm-themed-bg) 15%
  1661. );
  1662. display: none;
  1663. position: absolute;
  1664. right: 0;
  1665. padding-left: 25px;
  1666. height: 100%;
  1667. }
  1668. #side-panel ytmusic-player-queue-item[selected] .bytm-queue-btn-container {
  1669. background: linear-gradient(
  1670. 90deg,
  1671. rgba(0, 0, 0, 0) 0%,
  1672. var(--bytm-themesong-bg-accent-col, #1d1d1d) 15%
  1673. );
  1674. }
  1675. .bytm-generic-list-queue-btn-container {
  1676. /* otherwise the queue buttons render over the currently playing song page */
  1677. z-index: 1;
  1678. }
  1679. #side-panel ytmusic-player-queue-item:hover .bytm-queue-btn-container,
  1680. ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer:hover .bytm-queue-btn-container,
  1681. ytmusic-shelf-renderer ytmusic-responsive-list-item-renderer:hover .bytm-queue-btn-container,
  1682. /* same thing but with :focus-within */
  1683. #side-panel ytmusic-player-queue-item:focus-within .bytm-queue-btn-container,
  1684. ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer:focus-within .bytm-queue-btn-container,
  1685. ytmusic-shelf-renderer ytmusic-responsive-list-item-renderer:focus-within .bytm-queue-btn-container {
  1686. display: inline-flex;
  1687. align-items: center;
  1688. }
  1689. ytmusic-responsive-list-item-renderer .title-column {
  1690. align-items: center;
  1691. }
  1692. ytmusic-app
  1693. ytmusic-popup-container
  1694. tp-yt-iron-dropdown[data-bytm-hidden="true"] {
  1695. display: none !important;
  1696. }
  1697. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns
  1698. .bytm-generic-list-queue-btn-container {
  1699. visibility: hidden;
  1700. }
  1701. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns
  1702. .bytm-generic-list-queue-btn-container
  1703. a.bytm-generic-btn {
  1704. visibility: hidden !important;
  1705. }
  1706. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:hover
  1707. .bytm-generic-list-queue-btn-container,
  1708. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:focus-within
  1709. .bytm-generic-list-queue-btn-container {
  1710. visibility: visible;
  1711. }
  1712. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:hover
  1713. .bytm-generic-list-queue-btn-container
  1714. a.bytm-generic-btn,
  1715. ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:focus-within
  1716. .bytm-generic-list-queue-btn-container
  1717. a.bytm-generic-btn {
  1718. visibility: visible !important;
  1719. }
  1720. /* #region volume slider */
  1721. #bytm-vol-slider-cont {
  1722. position: relative;
  1723. }
  1724. #bytm-vol-slider-label {
  1725. opacity: 0.000001;
  1726. position: absolute;
  1727. display: flex;
  1728. flex-direction: row;
  1729. align-items: center;
  1730. gap: 5px;
  1731. font-size: 1.4rem;
  1732. top: 50%;
  1733. left: 0;
  1734. transform: translate(calc(-50% - 10px), -50%);
  1735. text-align: right;
  1736. transition: opacity 0.2s ease;
  1737. }
  1738. #bytm-vol-slider-label.has-icon {
  1739. transform: translate(calc(-50% - 25px), -50%);
  1740. }
  1741. #bytm-vol-slider-label svg {
  1742. padding: 4px;
  1743. }
  1744. #bytm-vol-slider-label svg path {
  1745. fill: #909090;
  1746. }
  1747. #bytm-vol-slider-label.bytm-visible {
  1748. opacity: 1;
  1749. }
  1750. :root
  1751. body.bytm-dom-ytm
  1752. ytmusic-app-layout[player-ui-state="FULLSCREEN"]
  1753. #bytm-vol-slider-label {
  1754. color: #fff;
  1755. }
  1756. #bytm-vol-slider-shared {
  1757. display: flex;
  1758. flex-direction: row;
  1759. align-items: center;
  1760. }
  1761. #bytm-vol-slider-shared svg {
  1762. width: 20px;
  1763. height: 20px;
  1764. }