BetterYTM.css 43 KB

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