BetterYTM.css 41 KB

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