BetterYTM.css 37 KB

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