BetterYTM.css 41 KB

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