BetterYTM.css 43 KB

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