BetterYTM.css 38 KB

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