12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315 |
- /* #region general */
- :root {
- --bytm-locale-color: #5ea2ec;
- --bytm-advanced-mode-color: #ceb663;
- --bytm-experimental-col: #cc83e5;
- --bytm-warning-col: #e5a63b;
- --bytm-error-col: #fa5b5b;
- --bytm-reload-col: #77e064;
- }
- /* TODO: after cfg menu migration, leave only dialog styles here */
- #bytm-cfg-dialog-bg,
- #bytm-cfg-menu-bg {
- --bytm-dialog-width-max: 1150px;
- --bytm-menu-width-max: 1150px;
- --bytm-dialog-height-max: 800px;
- --bytm-menu-height-max: 800px;
- }
- /* 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) */
- .bytm-dom-yt .bytm-dialog-bg,
- .bytm-dom-yt .bytm-menu-bg {
- z-index: 10042;
- }
- .bytm-dom-yt .bytm-dialog,
- .bytm-dom-yt .bytm-menu {
- z-index: 10069;
- }
- .bytm-dialog-body p {
- overflow-wrap: break-word;
- }
- .bytm-dialog-body details summary {
- cursor: pointer;
- font-style: italic;
- }
- .bytm-secondary-label {
- padding-left: 12px;
- font-size: 1.3rem;
- }
- /* #region version notification */
- #bytm-version-notif-dialog-btns {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- margin-top: 20px;
- }
- #bytm-disable-update-check-wrapper {
- display: flex;
- align-items: center;
- font-size: 1.5rem;
- margin-top: 35px;
- }
- #bytm-disable-update-check-wrapper label {
- padding-left: 12px;
- }
- #bytm-version-notif-changelog-cont {
- max-height: calc(max(var(--calc-max-height) - 280px, 0px));
- overflow-y: auto;
- margin: 10px 0px;
- }
- #bytm-version-notif-changelog-details {
- margin-top: 15px;
- }
- .bytm-disable-update-check-toggle-label-wrapper {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- }
- /* #region cfg menu */
- .bytm-ftconf-adv-copy-btn {
- margin: 0px 10px;
- }
- .bytm-adorn-icon {
- display: inline-flex;
- align-items: center;
- cursor: help;
- }
- /* #region cfg menu adornments */
- .bytm-ftitem-adornment svg path {
- fill: var(--bytm-locale-color, #fff);
- }
- .bytm-advanced-mode-icon svg path {
- fill: var(--bytm-advanced-mode-color, #fff);
- }
- .bytm-experimental-icon svg path {
- fill: var(--bytm-experimental-col, #fff);
- }
- .bytm-warning-icon svg {
- width: 24px;
- height: 24px;
- }
- .bytm-warning-icon svg path {
- fill: var(--bytm-warning-col, #fff);
- }
- .bytm-reload-icon svg path {
- fill: var(--bytm-reload-col, #fff);
- }
- /* #region welcome dialog */
- #bytm-welcome-menu-title-wrapper {
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- #bytm-welcome-menu-title-logo {
- width: 32px;
- height: 32px;
- margin-right: 20px;
- }
- #bytm-welcome-menu-content-wrapper {
- overflow-y: auto;
- }
- #bytm-welcome-menu-locale-cont {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: flex-start;
- }
- #bytm-welcome-menu-locale-img {
- width: 80px;
- height: 80px;
- margin-bottom: 10px;
- }
- #bytm-welcome-menu-text-cont {
- margin-top: 16px;
- }
- #bytm-welcome-menu-text {
- font-size: 1.6rem;
- line-height: 20px;
- }
- #bytm-welcome-menu-locale-select {
- font-size: 1.6rem;
- }
- #bytm-welcome-menu-footer-cont {
- display: flex;
- justify-content: space-between;
- border-radius: 0px 0px var(--bytm-menu-border-radius)
- var(--bytm-menu-border-radius);
- }
- #bytm-auto-like-channels-dialog-body {
- padding-left: 0;
- padding-right: 0;
- }
- .bytm-dialog-bg {
- --bytm-dialog-bg: #333333;
- --bytm-dialog-bg-highlight: #252525;
- --bytm-scroll-indicator-bg: rgba(10, 10, 10, 0.7);
- --bytm-dialog-separator-color: #797979;
- --bytm-dialog-border-radius: 10px;
- }
- .bytm-dialog-bg {
- display: block;
- position: fixed;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- z-index: 5;
- background-color: rgba(0, 0, 0, 0.6);
- }
- .bytm-dialog {
- --calc-max-height: calc(min(100vh - 40px, var(--bytm-dialog-height-max)));
- position: absolute;
- display: flex;
- flex-direction: column;
- width: calc(min(100% - 60px, var(--bytm-dialog-width-max)));
- border-radius: var(--bytm-dialog-border-radius);
- height: auto;
- max-height: var(--calc-max-height);
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- z-index: 6;
- color: #fff;
- background-color: var(--bytm-dialog-bg);
- }
- .bytm-dialog.align-top {
- top: 0;
- transform: translate(-50%, 40px);
- }
- .bytm-dialog.align-bottom {
- top: 100%;
- transform: translate(-50%, -100%);
- }
- .bytm-dialog-body {
- font-size: 1.5rem;
- padding: 20px;
- }
- .bytm-dialog-body.small {
- padding: 15px;
- }
- #bytm-dialog-opts {
- display: flex;
- flex-direction: column;
- position: relative;
- padding: 30px 0px;
- overflow-y: auto;
- }
- .bytm-dialog-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 6px;
- padding: 15px 20px 15px 20px;
- background-color: var(--bytm-dialog-bg);
- border: 2px solid var(--bytm-dialog-separator-color);
- border-style: none none solid none !important;
- border-radius: var(--bytm-dialog-border-radius)
- var(--bytm-dialog-border-radius) 0px 0px;
- }
- .bytm-dialog-header.small {
- padding: 10px 15px;
- border-style: none none solid none !important;
- }
- .bytm-dialog-header-pad {
- content: " ";
- min-height: 32px;
- }
- .bytm-dialog-header-pad.small {
- min-height: 24px;
- }
- .bytm-dialog-titlecont {
- display: flex;
- align-items: center;
- }
- .bytm-dialog-titlecont-no-title {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- }
- .bytm-dialog-title {
- position: relative;
- display: inline-block;
- font-size: 22px;
- }
- #bytm-dialog-version {
- position: absolute;
- width: 100%;
- bottom: -10px;
- left: 0;
- font-size: 10px;
- font-weight: normal;
- z-index: 7;
- }
- #bytm-dialog-version .bytm-link {
- color: #c6d2db !important;
- text-decoration: none !important;
- cursor: pointer;
- }
- #bytm-dialog-version .bytm-link:hover {
- color: #c6d2db !important;
- text-decoration: underline !important;
- }
- #bytm-dialog-linkscont {
- display: flex;
- align-items: center;
- margin-left: 32px;
- }
- .bytm-dialog-link {
- display: inline-flex;
- align-items: center;
- cursor: pointer;
- }
- .bytm-dialog-link:not(:last-of-type) {
- margin-right: 10px;
- }
- .bytm-dialog-link .bytm-dialog-img {
- position: relative;
- border-radius: 50%;
- bottom: 0px;
- transition: bottom 0.15s ease-out;
- }
- .bytm-dialog-link:hover .bytm-dialog-img {
- bottom: 5px;
- }
- .bytm-dialog-close {
- cursor: pointer;
- }
- .bytm-dialog-header-img,
- .bytm-dialog-close {
- width: 32px;
- height: 32px;
- }
- .bytm-dialog-header-img.small,
- .bytm-dialog-close.small {
- width: 24px;
- height: 24px;
- }
- .bytm-dialog-footer {
- font-size: 17px;
- text-decoration: underline;
- }
- .bytm-dialog-footer.hidden {
- display: none;
- }
- .bytm-dialog-footer-cont {
- margin-top: 6px;
- padding: 15px 20px;
- background: var(--bytm-dialog-bg);
- background: linear-gradient(
- to bottom,
- rgba(0, 0, 0, 0) 0%,
- var(--bytm-dialog-bg) 30%,
- var(--bytm-dialog-bg) 100%
- );
- border: 2px solid var(--bytm-dialog-separator-color);
- border-style: solid none none none !important;
- border-radius: 0px 0px var(--bytm-dialog-border-radius)
- var(--bytm-dialog-border-radius);
- }
- .bytm-dialog-footer-cont.small {
- padding: 15px;
- }
- .bytm-dialog-footer-buttons-cont button:not(:last-of-type) {
- margin-right: 15px;
- }
- .bytm-dialog-footer-right {
- display: flex;
- flex-direction: row-reverse;
- align-items: center;
- margin-top: 15px;
- }
- #bytm-dialog-footer-left-buttons-cont button:not(:last-of-type) {
- margin-right: 15px;
- }
- #bytm-dialog-scroll-indicator {
- --bytm-scroll-indicator-padding: 5px;
- position: sticky;
- bottom: -15px;
- left: 50%;
- margin-top: calc(-32px - var(--bytm-scroll-indicator-padding) * 2);
- padding: var(--bytm-scroll-indicator-padding);
- transform: translateX(-50%);
- width: 32px;
- height: 32px;
- z-index: 7;
- background-color: var(--bytm-scroll-indicator-bg);
- border-radius: 50%;
- cursor: pointer;
- }
- .bytm-hidden {
- visibility: hidden !important;
- }
- .bytm-ftconf-category-header {
- font-size: 20px;
- margin-top: 32px;
- margin-bottom: 8px;
- padding: 0px 20px;
- }
- .bytm-ftconf-category-header:first-of-type {
- margin-top: 0;
- }
- .bytm-dialog .bytm-ftitem {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- font-size: 1.4em;
- padding: 8px 20px;
- transition: background-color 0.15s ease-out;
- }
- .bytm-dialog .bytm-ftitem:hover {
- background-color: var(--bytm-dialog-bg-highlight);
- }
- .bytm-ftitem-leftside {
- display: flex;
- align-items: center;
- min-height: 24px;
- }
- .bytm-ftconf-ctrl {
- display: inline-flex;
- align-items: center;
- white-space: nowrap;
- margin-left: 10px;
- }
- .bytm-ftconf-label {
- user-select: none;
- }
- .bytm-slider-label {
- margin-right: 10px;
- }
- .bytm-ftconf-input.bytm-hotkey-input {
- cursor: pointer;
- min-width: 80px;
- }
- .bytm-ftconf-input[type="number"] {
- width: 75px;
- }
- .bytm-ftconf-input[type="range"] {
- width: 200px;
- }
- .bytm-ftconf-input[type="text"] {
- width: 200px;
- }
- .bytm-ftconf-input[type="checkbox"] {
- margin-left: 5px;
- }
- select.bytm-ftconf-input {
- min-width: 180px;
- cursor: revert;
- }
- #bytm-export-dialog-text,
- #bytm-import-dialog-text {
- font-size: 1.6em;
- margin-bottom: 15px;
- }
- .bytm-dialog-footer-copied {
- font-size: 1.6em;
- margin-right: 15px;
- }
- #bytm-changelog-dialog-body {
- overflow-y: auto;
- }
- #bytm-export-dialog-textarea,
- #bytm-import-dialog-textarea {
- width: 100%;
- height: 150px;
- resize: none;
- }
- .bytm-markdown-container {
- display: flex;
- flex-direction: column;
- overflow-y: auto;
- font-size: 1.4rem;
- line-height: 20px;
- }
- /* Markdown stuff */
- .bytm-markdown-container kbd,
- .bytm-kbd {
- --bytm-kbd-easing: cubic-bezier(0.31, 0.58, 0.24, 1.15);
- display: inline-block;
- vertical-align: bottom;
- padding: 4px;
- padding-top: 2px;
- font-size: 0.95em;
- line-height: 11px;
- background-color: #222;
- border: 1px solid #777;
- border-radius: 5px;
- box-shadow: inset 0 -2px 0 #515559;
- transition:
- padding 0.1s var(--bytm-kbd-easing),
- margin-top 0.1s var(--bytm-kbd-easing),
- box-shadow 0.1s var(--bytm-kbd-easing);
- }
- .bytm-markdown-container kbd:active,
- .bytm-kbd:active {
- padding-bottom: 2px;
- margin-top: 2px;
- box-shadow: inset 0 0 0 initial;
- }
- .bytm-markdown-container kbd::selection,
- .bytm-kbd::selection {
- background: rgba(0, 0, 0, 0);
- }
- .bytm-markdown-container code {
- background-color: #222;
- border-radius: 3px;
- padding: 1px 5px;
- font-family: var(--bytm-font-monospace);
- }
- .bytm-markdown-container h2 {
- margin-bottom: 5px;
- }
- .bytm-markdown-container h2:not(:first-of-type) {
- margin-top: 30px;
- }
- .bytm-markdown-container ul li::before {
- content: "• ";
- font-weight: bolder;
- }
- .bytm-markdown-container ul li > ul li::before {
- white-space: pre-wrap;
- content: " • ";
- font-weight: bolder;
- }
- #bytm-feat-help-dialog-desc,
- #bytm-feat-help-dialog-text {
- overflow-wrap: break-word;
- white-space: pre-wrap;
- font-size: 1.5em;
- }
- #bytm-feat-help-dialog-desc {
- font-size: 1.65em;
- padding-bottom: 5px;
- }
- .bytm-ftitem-help-btn {
- width: 24px !important;
- height: 24px !important;
- }
- .bytm-ftitem-help-btn svg {
- width: 18px !important;
- height: 18px !important;
- }
- .bytm-ftitem-help-btn svg > path {
- fill: #b3bec7 !important;
- }
- hr {
- display: block;
- margin: 8px 0px 12px 0px;
- border: revert;
- }
- .bytm-ftitem-adornment {
- display: inline-flex;
- justify-content: flex-start;
- align-items: center;
- margin-right: 6px;
- }
- /* some variables are not defined on purpose to allow plugin authors to more easily provide overrides */
- /* use `body` prefix for more specificity: */
- body .bytm-ripple {
- position: relative;
- overflow: hidden;
- width: var(--bytm-ripple-width, auto);
- height: var(--bytm-ripple-height, auto);
- }
- body .bytm-ripple.faster {
- --bytm-ripple-anim-duration: 0.15s;
- }
- body .bytm-ripple.fast {
- --bytm-ripple-anim-duration: 0.35s;
- }
- body .bytm-ripple.slow {
- --bytm-ripple-anim-duration: 0.75s;
- }
- body .bytm-ripple.slower {
- --bytm-ripple-anim-duration: 1s;
- }
- .bytm-ripple-area {
- --bytm-ripple-min-size: 100px;
- position: absolute;
- background: var(--bytm-ripple-color, rgba(255, 255, 255, 0.175));
- transform: translate(-50%, -50%);
- pointer-events: none;
- border-radius: 50%;
- animation: bytm-scale-ripple var(--bytm-ripple-anim-duration, 0.55s)
- cubic-bezier(0.375, 0.33, 0.225, 0.93);
- }
- @keyframes bytm-scale-ripple {
- 0% {
- width: 0;
- height: 0;
- opacity: 1;
- }
- 100% {
- /* 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 */
- width: calc(
- max(
- var(--bytm-ripple-cont-width, var(--bytm-ripple-min-size)) * 2,
- var(--bytm-ripple-min-size)
- )
- );
- height: calc(
- max(
- var(--bytm-ripple-cont-width, var(--bytm-ripple-min-size)) * 2,
- var(--bytm-ripple-min-size)
- )
- );
- opacity: 0;
- }
- }
- .bytm-exim-dialog-panes-cont {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- flex-wrap: nowrap;
- height: 100%;
- overflow: hidden;
- }
- .bytm-exim-dialog-pane {
- display: flex;
- flex-direction: column;
- gap: 12px;
- width: 48%;
- }
- .bytm-exim-dialog-center-btn-cont {
- display: flex;
- justify-content: center;
- }
- .bytm-exim-dialog-pane textarea {
- height: 120px;
- resize: none;
- }
- .bytm-hotkey-wrapper {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-end;
- }
- .bytm-hotkey-reset {
- font-size: 0.9em;
- margin-right: 10px;
- }
- .bytm-hotkey-info {
- font-size: 0.9em;
- white-space: nowrap;
- }
- :root {
- --bytm-toast-bg-color: #323232;
- --bytm-toast-text-color: #fff;
- --bytm-toast-offset-ver: 80px;
- --bytm-toast-offset-hor: 25px;
- --bytm-toast-transition-time: 0.5s;
- --bytm-toast-transform-distance: 175px;
- }
- #bytm-toast {
- position: fixed;
- z-index: 1042069;
- opacity: 0.000001;
- pointer-events: none;
- padding: 10px 16px;
- border-radius: 3px;
- font-size: 1.5rem;
- cursor: default;
- background-color: var(--bytm-toast-bg-color);
- color: var(--bytm-toast-text-color);
- box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
- transition:
- opacity var(--bytm-toast-transition-time) ease,
- transform var(--bytm-toast-transition-time) ease;
- }
- #bytm-toast.clickable {
- cursor: pointer;
- }
- #bytm-toast.visible {
- pointer-events: auto;
- opacity: 1;
- }
- #bytm-toast.pos-tl {
- top: var(--bytm-toast-offset-ver);
- left: var(--bytm-toast-offset-hor);
- transform: translate(0, calc(var(--bytm-toast-transform-distance) * -1));
- }
- #bytm-toast.pos-tr {
- top: var(--bytm-toast-offset-ver);
- right: var(--bytm-toast-offset-hor);
- transform: translate(0, calc(var(--bytm-toast-transform-distance) * -1));
- }
- #bytm-toast.pos-br {
- bottom: var(--bytm-toast-offset-ver);
- right: var(--bytm-toast-offset-hor);
- transform: translate(0, var(--bytm-toast-transform-distance));
- }
- #bytm-toast.pos-bl {
- bottom: var(--bytm-toast-offset-ver);
- left: var(--bytm-toast-offset-hor);
- transform: translate(0, var(--bytm-toast-transform-distance));
- }
- #bytm-toast.visible.pos-tl,
- #bytm-toast.visible.pos-tr,
- #bytm-toast.visible.pos-br,
- #bytm-toast.visible.pos-bl {
- transform: translate(0, 0);
- }
- .bytm-toast-flex-wrapper {
- display: flex;
- flex-direction: row;
- align-items: center;
- gap: 10px;
- }
- .bytm-toast-icon.img,
- .bytm-toast-icon svg {
- width: 24px;
- height: 24px;
- }
- .bytm-toast-icon path {
- fill: var(--toast-icon-fill, #fff);
- }
- .bytm-toast-subtitle {
- color: #ccc;
- font-size: 1.2rem;
- font-weight: 400;
- }
- .bytm-toggle-input-wrapper {
- --toggle-height: 20px;
- --toggle-width: 40px;
- --toggle-knob-offset: 4px;
- --toggle-color-on: #3683d4;
- --toggle-color-off: #666;
- --toggle-knob-color: #f5f5f5;
- display: flex;
- align-items: center;
- }
- .bytm-toggle-input-wrapper .bytm-toggle-input-label {
- cursor: pointer;
- font-size: 1.5rem;
- padding: 3px 12px;
- }
- /* sauce: https://danklammer.com/articles/simple-css-toggle-switch/ */
- .bytm-toggle-input {
- display: flex;
- align-items: center;
- }
- .bytm-toggle-input input {
- appearance: none;
- display: inline-block;
- width: var(--toggle-width);
- height: var(--toggle-height);
- position: relative;
- border-radius: 50px;
- overflow: hidden;
- outline: none;
- border: none;
- margin: 0;
- padding: var(--toggle-knob-offset);
- cursor: pointer;
- background-color: var(--toggle-color-off);
- transition:
- justify-content 0.2s ease,
- background-color 0.2s ease;
- }
- .bytm-toggle-input input[data-toggled="true"] {
- background-color: var(--toggle-color-on);
- }
- .bytm-toggle-input input .bytm-toggle-input-knob {
- --toggle-knob-calc-width: calc(
- var(--toggle-height) - (var(--toggle-knob-offset) * 2)
- );
- --toggle-knob-calc-height: calc(
- var(--toggle-height) - (var(--toggle-knob-offset) * 2)
- );
- width: var(--toggle-knob-calc-width);
- height: var(--toggle-knob-calc-height);
- background-color: var(--toggle-knob-color);
- border-radius: 50%;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- left: var(--toggle-knob-offset);
- transition: left 0.2s ease;
- }
- .bytm-toggle-input input[data-toggled="true"] .bytm-toggle-input-knob {
- left: calc(
- var(--toggle-width) - var(--toggle-knob-offset) -
- var(--toggle-knob-calc-width)
- );
- }
- .bytm-auto-like-channels-footer-wrapper {
- display: flex;
- justify-content: space-between;
- }
- #bytm-prompt-dialog-header {
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- #bytm-prompt-dialog-header svg {
- width: 24px;
- height: 24px;
- }
- #bytm-prompt-dialog-upper-cont,
- #bytm-prompt-dialog-message {
- font-size: 1.6rem;
- white-space: pre-wrap;
- }
- .bytm-prompt-type-prompt #bytm-prompt-dialog-message {
- margin-bottom: 15px;
- }
- #bytm-prompt-dialog-input {
- font-size: 1.6rem;
- width: 100%;
- }
- #bytm-prompt-dialog-button-wrapper {
- display: flex;
- flex-direction: row;
- justify-content: flex-end;
- align-items: end;
- }
- #bytm-prompt-dialog-buttons-cont {
- display: flex;
- flex-direction: row;
- gap: 15px;
- }
- #bytm-prompt-dialog-buttons-cont button {
- cursor: pointer;
- }
- .bytm-prompt-dialog-button {
- padding: 2px 6px;
- font-size: 1.45rem;
- }
- #bytm-plugin-list-dialog-bg {
- --bytm-plugin-list-secondary-col: #c8c8c8;
- --bytm-plugin-list-row-padding-ver: 12px;
- --bytm-plugin-list-row-max-height: 130px;
- }
- #bytm-plugin-list-dialog-body {
- overflow-y: auto;
- max-height: 100%;
- }
- .bytm-plugin-list-no-plugins {
- font-size: 1.7rem;
- text-align: center;
- padding: var(--bytm-plugin-list-row-padding-ver) 0px;
- white-space: pre-wrap;
- }
- .bytm-plugin-list-row {
- display: flex;
- flex-direction: row;
- align-items: flex-start;
- justify-content: space-between;
- border-bottom: 1px solid var(--bytm-dialog-separator-color, #ccc);
- padding: var(--bytm-plugin-list-row-padding-ver) 0px;
- gap: 20px;
- }
- .bytm-plugin-list-row:first-child {
- padding-top: 0;
- }
- .bytm-plugin-list-row:last-child {
- border-bottom: none;
- padding-bottom: 0;
- }
- .bytm-plugin-list-row-header-wrapper {
- display: flex;
- flex-direction: row;
- align-items: flex-start;
- gap: 8px;
- margin-bottom: 5px;
- }
- .bytm-plugin-list-row-icon {
- width: 32px;
- height: 32px;
- overflow: hidden;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .bytm-plugin-list-row-left,
- .bytm-plugin-list-row-right {
- display: flex;
- flex-direction: column;
- }
- .bytm-plugin-list-row-title {
- display: inline-flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: flex-end;
- font-size: 1.6rem;
- font-weight: bold;
- margin-bottom: 1px;
- }
- .bytm-plugin-list-row-version {
- font-size: 1.25rem;
- font-weight: normal;
- color: var(--bytm-plugin-list-secondary-col);
- margin-left: 10px;
- }
- .bytm-plugin-list-row-namespace {
- font-size: 1.1rem;
- font-weight: 400;
- color: var(--bytm-plugin-list-secondary-col);
- }
- .bytm-plugin-list-row-desc {
- overflow-wrap: break-word;
- text-overflow: ellipsis;
- white-space: pre-wrap;
- overflow-x: hidden;
- max-height: calc(var(--bytm-plugin-list-row-max-height) - 30px);
- overflow-y: auto;
- }
- .bytm-plugin-list-row-links-list {
- font-size: 1.4rem;
- margin-top: 4px;
- }
- .bytm-plugin-list-row-links-list-bullet {
- margin: 0 5px;
- }
- .bytm-plugin-list-row-right {
- overflow-x: hidden;
- overflow-y: auto;
- text-overflow: ellipsis;
- white-space: nowrap;
- min-width: 25%;
- max-height: var(--bytm-plugin-list-row-max-height);
- }
- .bytm-plugin-list-row-permissions-header {
- position: sticky;
- top: 0;
- background-color: var(--bytm-dialog-bg);
- font-size: 1.4rem;
- font-weight: bold;
- padding-bottom: 5px;
- }
- .bytm-plugin-list-row-intent-item::before {
- content: "•";
- margin-right: 3px;
- }
- .bytm-plugin-list-row-intent-item {
- cursor: help;
- }
- :root {
- --bytm-menu-bg-highlight: #252525;
- }
- .bytm-menu-bg {
- --bytm-menu-bg: #333333;
- --bytm-scroll-indicator-bg: rgba(10, 10, 10, 0.7);
- --bytm-menu-separator-color: #797979;
- --bytm-menu-border-radius: 10px;
- }
- .bytm-menu-bg {
- display: block;
- position: fixed;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- z-index: 5;
- background-color: rgba(0, 0, 0, 0.6);
- }
- .bytm-menu {
- position: fixed;
- display: flex;
- flex-direction: column;
- width: calc(min(100% - 60px, var(--bytm-menu-width-max)));
- border-radius: var(--bytm-menu-border-radius);
- height: auto;
- max-height: calc(min(100% - 40px, var(--bytm-menu-height-max)));
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- z-index: 6;
- color: #fff;
- background-color: var(--bytm-menu-bg);
- }
- .bytm-menu.top-aligned {
- top: 0;
- transform: translate(-50%, 40px);
- }
- .bytm-menu-body {
- padding: 15px;
- }
- #bytm-menu-opts {
- display: flex;
- flex-direction: column;
- position: relative;
- padding: 15px 0px;
- overflow-y: auto;
- }
- .bytm-menu-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 6px;
- padding: 15px;
- background-color: var(--bytm-menu-bg);
- border: 2px solid var(--bytm-menu-separator-color);
- border-style: none none solid none !important;
- border-radius: var(--bytm-menu-border-radius) var(--bytm-menu-border-radius)
- 0px 0px;
- }
- .bytm-menu-header.small {
- padding: 10px;
- border-style: none none solid none !important;
- }
- .bytm-menu-title-logo-header-cont {
- display: flex;
- }
- .bytm-cfg-menu-logo {
- width: 32px;
- height: 32px;
- margin-right: 10px;
- }
- .bytm-menu-titlecont {
- position: relative;
- display: flex;
- align-items: center;
- }
- .bytm-menu-titlecont-no-title {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- }
- .bytm-menu-title {
- position: relative;
- display: inline-block;
- font-size: 22px;
- }
- #bytm-cfg-menu-bg .bytm-menu-title {
- transform: translate(0px, -6px);
- }
- #bytm-cfg-menu {
- --bytm-menu-subtitle-color: #c6d2db;
- }
- #bytm-menu-subtitle-cont {
- width: 100%;
- display: flex;
- gap: 6px;
- flex-direction: row;
- justify-content: space-between;
- align-items: end;
- position: absolute;
- bottom: -12px;
- left: 0;
- font-size: 10px;
- font-weight: normal;
- z-index: 7;
- }
- #bytm-menu-subtitle-cont,
- #bytm-menu-version-anchor {
- color: var(--bytm-menu-subtitle-color) !important;
- }
- #bytm-menu-linkscont {
- display: flex;
- align-items: center;
- margin-left: 32px;
- }
- .bytm-menu-link {
- position: relative;
- max-height: 32px;
- max-width: 32px;
- display: inline-flex;
- flex-direction: column;
- align-items: center;
- cursor: pointer;
- }
- .bytm-menu-link:not(:last-of-type) {
- margin-right: 10px;
- }
- .bytm-menu-link .bytm-menu-img {
- width: 32px;
- height: 32px;
- border-radius: 50%;
- padding: 0px;
- transform: translateY(0px);
- transition:
- transform 0.15s ease-out,
- padding 0.15s ease-out;
- }
- .bytm-menu-link:hover .bytm-menu-img {
- padding: 7px;
- transform: translateY(-14px);
- }
- .bytm-menu-link .extended-link {
- visibility: hidden;
- position: absolute;
- top: 14px;
- padding-top: 13px;
- padding-bottom: 2px;
- opacity: 0;
- text-decoration: none;
- color: var(--bytm-menu-subtitle-color) !important;
- white-space: pre;
- font-size: 1.1rem;
- transition:
- visibility 0.15s ease-out,
- opacity 0.15s ease-out;
- }
- .bytm-menu-link:hover .extended-link {
- visibility: visible;
- opacity: 1;
- }
- .bytm-menu-close {
- width: 32px;
- height: 32px;
- cursor: pointer;
- }
- .bytm-menu-close.small {
- width: 24px;
- height: 24px;
- }
- .bytm-menu-footer {
- font-size: 17px;
- text-decoration: underline;
- }
- .bytm-menu-footer.hidden {
- display: none;
- }
- .bytm-menu-footer-cont {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- margin-top: 6px;
- padding: 15px;
- background: var(--bytm-menu-bg);
- background: linear-gradient(
- to bottom,
- rgba(0, 0, 0, 0) 0%,
- var(--bytm-menu-bg) 30%,
- var(--bytm-menu-bg) 100%
- );
- border: 2px solid var(--bytm-menu-separator-color);
- border-style: solid none none none !important;
- border-radius: 0px 0px var(--bytm-menu-border-radius)
- var(--bytm-menu-border-radius);
- }
- .bytm-menu-footer-buttons-cont button:not(:last-of-type) {
- margin-right: 15px;
- }
- .bytm-menu-footer-right {
- display: flex;
- flex-direction: row-reverse;
- align-items: center;
- }
- #bytm-menu-footer-left-buttons-cont button:not(:last-of-type) {
- margin-right: 15px;
- }
- #bytm-menu-scroll-indicator {
- --bytm-scroll-indicator-padding: 5px;
- position: sticky;
- bottom: -15px;
- left: 50%;
- margin-top: calc(-32px - var(--bytm-scroll-indicator-padding) * 2);
- padding: var(--bytm-scroll-indicator-padding);
- transform: translateX(-50%);
- width: 32px;
- height: 32px;
- z-index: 7;
- background-color: var(--bytm-scroll-indicator-bg);
- border-radius: 50%;
- cursor: pointer;
- }
- .bytm-hidden {
- visibility: hidden !important;
- }
- .bytm-ftconf-category-header {
- font-size: 20px;
- margin-top: 32px;
- margin-bottom: 8px;
- padding: 0px 15px;
- }
- .bytm-ftconf-category-header:first-of-type {
- margin-top: 0;
- }
- .bytm-ftitem {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- font-size: 1.4rem;
- padding: 8px 20px;
- transition: background-color 0.15s ease-out;
- }
- .bytm-ftitem:hover {
- background-color: var(--bytm-menu-bg-highlight);
- }
- .bytm-ftitem-leftside {
- display: flex;
- align-items: center;
- min-height: 24px;
- }
- .bytm-ftconf-ctrl {
- display: inline-flex;
- align-items: center;
- white-space: nowrap;
- margin-left: 10px;
- }
- .bytm-ftconf-label {
- user-select: none;
- }
- .bytm-slider-label {
- margin-right: 10px;
- }
- .bytm-toggle-label {
- padding-left: 10px;
- padding-right: 5px;
- }
- .bytm-ftconf-input.bytm-hotkey-input {
- cursor: pointer;
- min-width: 50px;
- }
- .bytm-ftconf-input[type="number"] {
- width: 75px;
- }
- .bytm-ftconf-input[type="checkbox"] {
- margin-left: 5px;
- }
- #bytm-export-menu-text,
- #bytm-import-menu-text {
- white-space: pre-wrap;
- font-size: 1.6rem;
- margin-bottom: 15px;
- }
- .bytm-menu-footer-copied {
- font-size: 1.6rem;
- margin-right: 15px;
- }
- #bytm-changelog-menu-body {
- overflow-y: auto;
- }
- .bytm-changelog-version-details:not(:first-of-type) {
- margin-top: 15px;
- }
- .bytm-changelog-version-details summary h2 {
- display: inline-block;
- }
- .bytm-changelog-version-details summary {
- cursor: pointer;
- }
- .bytm-changelog-version-details summary::marker {
- font-size: 2rem;
- }
- #bytm-export-menu-textarea,
- #bytm-import-menu-textarea {
- width: 100%;
- height: 150px;
- resize: none;
- }
- .bytm-markdown-container {
- display: flex;
- flex-direction: column;
- overflow-y: auto;
- font-size: 1.5rem;
- line-height: 20px;
- }
- /* Markdown stuff */
- .bytm-markdown-container kbd {
- --bytm-easing: cubic-bezier(0.31, 0.58, 0.24, 1.15);
- display: inline-block;
- vertical-align: bottom;
- padding: 4px;
- padding-top: 2px;
- font-size: 0.95em;
- line-height: 11px;
- background-color: #222;
- border: 1px solid #777;
- border-radius: 5px;
- box-shadow: inset 0 -2px 0 #515559;
- transition:
- padding 0.1s var(--bytm-easing),
- box-shadow 0.1s var(--bytm-easing);
- }
- .bytm-markdown-container kbd:active {
- padding-bottom: 2px;
- box-shadow: inset 0 0 0 initial;
- }
- .bytm-markdown-container kbd::selection {
- background: rgba(0, 0, 0, 0);
- }
- .bytm-markdown-container code {
- background-color: #222;
- border-radius: 3px;
- padding: 1px 5px;
- }
- .bytm-markdown-container h2 {
- margin-bottom: 5px;
- }
- .bytm-markdown-container h2:not(:first-of-type) {
- margin-top: 30px;
- }
- .bytm-markdown-container ul li {
- padding-left: 0px;
- }
- .bytm-markdown-container ul li::marker {
- content: none;
- }
- .bytm-markdown-container ul li::before {
- content: "• ";
- font-weight: bolder;
- }
- .bytm-markdown-container ul li > ul li {
- padding-left: 16px;
- }
- .bytm-markdown-container ul li > ul li::marker {
- content: none;
- }
- .bytm-markdown-container ul li > ul li::before {
- white-space: pre-wrap;
- content: "• ";
- font-weight: bolder;
- }
- .bytm-markdown-container ul li > ul li > ul li {
- padding-left: 16px;
- }
- .bytm-markdown-container ul li > ul li > ul li::marker {
- content: none;
- }
- .bytm-markdown-container ul li > ul li > ul li::before {
- white-space: pre-wrap;
- content: "• ";
- font-weight: bolder;
- }
- .bytm-markdown-container .pr-link-cont {
- padding-top: 10px;
- }
- #bytm-feat-help-dialog-desc,
- #bytm-feat-help-dialog-text {
- overflow-wrap: break-word;
- white-space: pre-wrap;
- font-size: 1.5rem;
- line-height: 1.25em;
- }
- #bytm-feat-help-dialog-desc {
- font-size: 1.8rem;
- padding-bottom: 10px;
- }
- .bytm-ftitem-help-btn {
- width: 24px !important;
- height: 24px !important;
- }
- .bytm-ftitem-help-btn svg {
- width: 18px !important;
- height: 18px !important;
- }
- .bytm-ftitem-help-btn svg > path {
- fill: #b3bec7 !important;
- }
- hr {
- display: block;
- margin: 8px 0px 12px 0px;
- border: revert;
- }
- /* #region misc */
- :root {
- --bytm-font-monospace: "Cascadia Code", "Consolas", monospace;
- }
- .bytm-disable-scroll {
- overflow: hidden !important;
- }
- .bytm-ellipsis {
- text-overflow: ellipsis;
- text-wrap: nowrap;
- white-space: nowrap;
- overflow: hidden;
- }
- .bytm-ellipsis-wrap {
- text-overflow: ellipsis;
- overflow: hidden;
- text-wrap: auto;
- white-space: normal;
- }
- /* #region generic (circular) button */
- .bytm-generic-btn {
- --bytm-generic-btn-width: 36px;
- --bytm-generic-btn-height: 36px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- position: relative;
- vertical-align: middle;
- cursor: pointer;
- margin-left: 8px;
- white-space: nowrap;
- text-overflow: ellipsis;
- user-select: none;
- min-width: var(--bytm-generic-btn-width);
- max-width: var(--bytm-generic-btn-width);
- min-height: var(--bytm-generic-btn-height);
- max-height: var(--bytm-generic-btn-height);
- border: 1px solid transparent;
- border-radius: calc(var(--bytm-generic-btn-height, 36px) / 2);
- background-color: transparent;
- transition: background-color 0.2s ease;
- }
- .bytm-generic-btn:hover {
- background-color: rgba(255, 255, 255, 0.2);
- }
- .bytm-generic-btn:active {
- animation: bytm-flash-border 0.4s ease 1;
- }
- @keyframes bytm-flash-border {
- 0% {
- border: 1px solid initial;
- }
- 25% {
- border: 1px solid rgba(255, 255, 255, 0.4);
- }
- 100% {
- border: 1px solid initial;
- }
- }
- .bytm-generic-btn:not(.bytm-toggle):active {
- background-color: rgba(255, 255, 255, 0.3);
- }
- .bytm-generic-btn.long {
- --bytm-generic-btn-width: calc(min(136px, fit-content));
- padding: 0px 14px;
- line-height: 36px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- position: relative;
- vertical-align: middle;
- cursor: pointer;
- margin-left: 0px;
- border: 1px solid #999;
- }
- .bytm-generic-btn.long:hover {
- background-color: rgba(255, 255, 255, 0.2);
- }
- .bytm-generic-btn.long .bytm-generic-btn-img.left {
- margin-right: 8px;
- }
- .bytm-generic-btn.long .bytm-generic-btn-img.right {
- margin-left: 8px;
- }
- .bytm-generic-long-btn-txt {
- font-size: 14px;
- }
- .bytm-ftitem-help-btn.bytm-generic-btn {
- --bytm-generic-btn-width: 24px;
- --bytm-generic-btn-height: 24px;
- }
- .bytm-generic-btn-img {
- display: inline-block;
- z-index: 1;
- width: 24px;
- height: 24px;
- }
- .bytm-spinner {
- animation: rotate 1.2s linear infinite;
- }
- @keyframes rotate {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
- }
- .bytm-anchor {
- all: unset;
- cursor: pointer;
- }
- /* ytmusic-logo a[bytm-animated="true"] .bytm-mod-logo-ellipse {
- transform-origin: 12px 12px;
- animation: rotate 1s ease-in-out infinite;
- } */
- ytmusic-logo a.bytm-logo-exchanged .bytm-mod-logo-path {
- transform-origin: 12px 12px;
- animation: rotate 1s ease-in-out;
- }
- ytmusic-logo a.bytm-logo-exchanged .bytm-mod-logo-img {
- width: 24px;
- height: 24px;
- z-index: 1000;
- position: absolute;
- animation: rotate-fade-in 1s ease-in-out;
- }
- @keyframes rotate-fade-in {
- 0% {
- opacity: 0;
- transform: rotate(0deg);
- }
- 30% {
- opacity: 0;
- }
- 90% {
- opacity: 1;
- }
- 100% {
- transform: rotate(360deg);
- }
- }
- .bytm-no-select {
- user-select: none;
- -ms-user-select: none;
- -moz-user-select: none;
- -webkit-user-select: none;
- }
- /* YTM does some weird styling that breaks everything, so this reverts all of BYTM's buttons to the browser default style */
- button.bytm-btn {
- padding: revert;
- border: revert;
- outline: revert;
- font: revert;
- text-transform: revert;
- color: revert;
- background: revert;
- cursor: pointer;
- line-height: 1.4em;
- }
- .bytm-link,
- .bytm-markdown-container a {
- color: #369bff !important;
- text-decoration: none !important;
- cursor: pointer;
- }
- .bytm-link:hover,
- .bytm-markdown-container a:hover {
- color: #369bff !important;
- text-decoration: underline !important;
- }
- button[disabled] {
- cursor: not-allowed;
- }
- button[disabled].bytm-busy {
- cursor: progress;
- }
- /* #region menu */
- .bytm-cfg-menu-option {
- display: block;
- padding: 8px 0;
- }
- .bytm-cfg-menu-option-item {
- display: flex;
- flex-direction: row;
- align-items: center;
- font-size: 1.4rem;
- font-weight: 400;
- line-height: 24px;
- padding: var(--yt-compact-link-paper-item-padding, 0px 36px 0 16px);
- min-height: var(--paper-item-min-height, 40px);
- white-space: nowrap;
- cursor: pointer;
- }
- .bytm-cfg-menu-option-item:hover {
- background-color: var(--yt-spec-badge-chip-background, #3e3e3e);
- }
- .bytm-cfg-menu-option-icon {
- width: 24px;
- height: 24px;
- margin-right: 16px;
- display: flex;
- align-items: center;
- flex-direction: row;
- flex: none;
- }
- .bytm-cfg-menu-option-text {
- font-size: 1.4rem;
- line-height: 2rem;
- }
- yt-multi-page-menu-section-renderer.ytd-multi-page-menu-renderer {
- border-bottom: 1px solid var(--yt-spec-10-percent-layer, #3e3e3e);
- }
- .bytm-yt-cfg-menu-option {
- position: relative;
- width: calc(100% - 12px);
- }
- .bytm-yt-cfg-menu-option-inner {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- min-height: var(--paper-item-min-height, 48px);
- max-width: calc(100% - 12px);
- padding: 0px 12px;
- border-radius: var(--paper-item-focused-before-border-radius, 10px);
- cursor: pointer;
- background-color: transparent;
- transition: background-color 0.2s ease;
- }
- .bytm-yt-cfg-menu-option-inner:hover {
- background-color: var(
- --yt-spec-badge-chip-background,
- rgba(255, 255, 255, 0.1)
- );
- }
- .bytm-yt-cfg-menu-option-icon {
- display: flex;
- align-items: center;
- flex-direction: row;
- width: 24px;
- height: 24px;
- margin-right: 24px;
- }
- .bytm-yt-cfg-menu-option-item {
- width: 100%;
- color: #fff;
- font-size: 14px;
- }
- .bytm-yt-cfg-menu-option-item:hover {
- /* Support for "Enhancer for YouTube" extension's custom themes */
- color: var(--main-color, #fff) !important;
- }
- /* #region watermark */
- #bytm-watermark {
- font-size: 10px;
- display: inline-block;
- position: absolute;
- left: 97px;
- top: 45px;
- z-index: 10;
- color: #f1f1f1;
- text-decoration: none;
- cursor: pointer;
- }
- #bytm-watermark:hover {
- text-decoration: underline;
- }
- /* #region above queue btns */
- #bytm-above-queue-btn-cont {
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- flex-wrap: nowrap;
- height: 100%;
- }
- #bytm-above-queue-btn-wrapper {
- white-space: nowrap;
- }
- .bytm-above-queue-btn {
- width: 32px;
- height: 32px;
- margin-left: 0;
- margin-right: 8px;
- }
- /* #region scroll to active */
- #bytm-scroll-to-active-btn-cont {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- height: 100%;
- }
- #bytm-scroll-to-active-btn-cont.hidden {
- display: none;
- }
- #bytm-scroll-to-active-btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border-radius: 50%;
- cursor: pointer;
- }
- #bytm-scroll-to-active-btn {
- width: revert;
- height: revert;
- }
- #bytm-scroll-to-active-btn .bytm-generic-btn-img {
- padding: 4px;
- }
- /* #region thumbnail */
- #bytm-thumbnail-overlay {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- display: none;
- background-color: #030303;
- z-index: 0;
- border-radius: var(--ts-songimg-border-radius, initial);
- }
- #bytm-thumbnail-overlay-img {
- position: relative;
- width: 100%;
- height: 100%;
- border-radius: inherit;
- box-shadow: var(--ts-songimg-box-shadow, initial);
- }
- #bytm-thumbnail-overlay-indicator {
- position: absolute;
- bottom: 16px;
- right: 16px;
- width: calc(min(56px, 100% - 16px));
- height: calc(min(56px, 100% - 16px));
- z-index: 1;
- cursor: help;
- filter: drop-shadow(0 0 3px #000);
- }
- ytmusic-player#player #bezel {
- z-index: 1;
- }
- /* #region auto-like */
- .bytm-vote-label {
- cursor: pointer;
- font-size: 1.25rem;
- padding: 6px;
- padding-left: 3px;
- }
- ytmusic-app-layout[player-ui-state="FULLSCREEN"] .bytm-vote-label {
- color: white;
- }
- .bytm-vote-label:last-child {
- padding-right: 0px;
- }
- /* #region fullscreen player bar */
- /* Increase specificity to override YTM's default styles without having to use !important */
- :root
- body.bytm-dom-ytm
- ytmusic-app-layout[player-ui-state="FULLSCREEN"]
- ytmusic-player-bar[slot="player-bar"] {
- width: 100%;
- /* ...except in this case because of the ThemeSong extension: */
- background: rgba(0, 0, 0, 0.35) !important;
- backdrop-filter: blur(10px) brightness(90%);
- }
- :root
- body.bytm-dom-ytm
- ytmusic-app-layout[player-ui-state="FULLSCREEN"]
- ytmusic-player-bar[slot="player-bar"]
- .ytmusic-menu-renderer
- svg
- path,
- :root
- body.bytm-dom-ytm
- ytmusic-app-layout[player-ui-state="FULLSCREEN"]
- ytmusic-player-bar[slot="player-bar"]
- tp-yt-paper-icon-button
- svg
- path {
- fill: #fff;
- }
- :root
- body.bytm-dom-ytm
- ytmusic-app-layout[player-ui-state="FULLSCREEN"]
- ytmusic-player-bar[slot="player-bar"]
- .time-info {
- color: #fff;
- }
- :root {
- --bytm-auto-like-btn-color: #bf87f0;
- }
- #bytm-auto-like-channels-list {
- display: flex;
- flex-direction: column;
- overflow-x: hidden;
- overflow-y: auto;
- white-space: nowrap;
- text-overflow: ellipsis;
- /* idk how else to get the scroll bar to show up correctly */
- max-height: calc(min(100vh - 40px, var(--bytm-dialog-height-max)) - 300px);
- }
- .bytm-auto-like-channels-desc {
- padding: 0px 15px;
- white-space: pre-wrap;
- font-size: 1.6rem;
- margin-bottom: 10px;
- }
- .bytm-auto-like-channels-search-cont {
- display: flex;
- flex-direction: row;
- align-items: center;
- gap: 5px;
- padding: 0px 15px;
- margin-bottom: 10px;
- }
- .bytm-auto-like-channels-searchbar {
- min-width: calc(min(250px, 50%));
- }
- .bytm-auto-like-channel-row-left-cont {
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .bytm-auto-like-channel-row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 8px 15px;
- transition: background-color 0.15s ease-out;
- }
- .bytm-auto-like-channel-row.hidden {
- display: none;
- }
- .bytm-auto-like-channel-row:hover {
- background-color: var(--bytm-menu-bg-highlight);
- }
- .bytm-auto-like-channel-row
- .bytm-toggle-input-wrapper.bytm-auto-like-channel-toggle {
- --toggle-height: 18px !important;
- --toggle-width: 36px !important;
- }
- .bytm-auto-like-channel-row .bytm-generic-btn {
- --bytm-generic-btn-width: 30px;
- --bytm-generic-btn-height: 30px;
- }
- .bytm-auto-like-channel-name-label {
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- .bytm-auto-like-channel-id {
- cursor: text;
- font-family: var(--bytm-font-monospace);
- font-size: 1.25rem;
- color: #aaa;
- margin-left: 10px;
- }
- /* add more specificity to override the default styles */
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn {
- margin-right: 8px;
- border: 1px solid var(--bytm-auto-like-btn-color);
- box-sizing: border-box;
- background-color: transparent;
- transition: border-color 0.2s ease;
- animation: none;
- }
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn.left-margin {
- margin: 0 0 0 8px;
- }
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn.right-margin {
- margin: 0 8px 0 0;
- }
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn:hover {
- background-color: rgba(255, 255, 255, 0.1);
- }
- body.bytm-dom-ytm
- ytmusic-subscribe-button-renderer
- #button-shape-subscribe:hover
- > button {
- background-color: rgba(255, 255, 255, 0.1) !important;
- }
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active {
- background-color: rgba(255, 255, 255, 0.2);
- }
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active,
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn.toggled {
- border-color: rgba(255, 255, 255, 0.2);
- }
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn svg path {
- fill: var(--bytm-auto-like-btn-color);
- transition: fill 0.2s ease;
- }
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active svg path,
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn.toggled svg path {
- fill: var(--ytmusic-subscribe-button-color, rgba(255, 255, 255, 0.7));
- }
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn .bytm-generic-long-btn-txt {
- font-weight: 500;
- color: var(--bytm-auto-like-btn-color);
- transition: color 0.2s ease;
- }
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn:active
- .bytm-generic-long-btn-txt,
- .bytm-generic-btn.long.bytm-auto-like-toggle-btn.toggled
- .bytm-generic-long-btn-txt {
- color: var(--ytmusic-subscribe-button-color, rgba(255, 255, 255, 0.7));
- }
- :root {
- --bytm-themed-bg: var(--ts-playerpage-color, #030303);
- }
- #ts-visualizer-container #ThemeSong-Visualizer canvas {
- /* Fix for the thumbnail overlay */
- z-index: 1;
- }
- /* #region queue buttons */
- #side-panel ytmusic-player-queue-item .song-info.ytmusic-player-queue-item {
- position: relative;
- }
- #side-panel ytmusic-player-queue-item .bytm-queue-btn-container {
- background: rgba(255, 255, 255, 0.1);
- background: linear-gradient(
- 90deg,
- rgba(0, 0, 0, 0) 0%,
- var(--bytm-themed-bg) 15%
- );
- display: none;
- position: absolute;
- right: 0;
- padding-left: 25px;
- height: 100%;
- }
- #side-panel ytmusic-player-queue-item[selected] .bytm-queue-btn-container {
- background: linear-gradient(
- 90deg,
- rgba(0, 0, 0, 0) 0%,
- var(--bytm-themesong-bg-accent-col, #1d1d1d) 15%
- );
- }
- .bytm-generic-list-queue-btn-container {
- /* otherwise the queue buttons render over the currently playing song page */
- z-index: 1;
- }
- #side-panel ytmusic-player-queue-item:hover .bytm-queue-btn-container,
- ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer:hover .bytm-queue-btn-container,
- ytmusic-shelf-renderer ytmusic-responsive-list-item-renderer:hover .bytm-queue-btn-container,
- /* same thing but with :focus-within */
- #side-panel ytmusic-player-queue-item:focus-within .bytm-queue-btn-container,
- ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer:focus-within .bytm-queue-btn-container,
- ytmusic-shelf-renderer ytmusic-responsive-list-item-renderer:focus-within .bytm-queue-btn-container {
- display: inline-flex;
- align-items: center;
- }
- ytmusic-responsive-list-item-renderer .title-column {
- align-items: center;
- }
- ytmusic-app
- ytmusic-popup-container
- tp-yt-iron-dropdown[data-bytm-hidden="true"] {
- display: none !important;
- }
- ytmusic-responsive-list-item-renderer.bytm-has-queue-btns
- .bytm-generic-list-queue-btn-container {
- visibility: hidden;
- }
- ytmusic-responsive-list-item-renderer.bytm-has-queue-btns
- .bytm-generic-list-queue-btn-container
- a.bytm-generic-btn {
- visibility: hidden !important;
- }
- ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:hover
- .bytm-generic-list-queue-btn-container,
- ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:focus-within
- .bytm-generic-list-queue-btn-container {
- visibility: visible;
- }
- ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:hover
- .bytm-generic-list-queue-btn-container
- a.bytm-generic-btn,
- ytmusic-responsive-list-item-renderer.bytm-has-queue-btns:focus-within
- .bytm-generic-list-queue-btn-container
- a.bytm-generic-btn {
- visibility: visible !important;
- }
- /* #region volume slider */
- .bytm-vol-slider-cont {
- position: relative;
- }
- .bytm-vol-slider-label {
- --bytm-slider-label-bg-col: var(
- --ytmusic-player-bar-background,
- var(--bytm-themed-bg)
- );
- position: absolute;
- top: 50%;
- left: 0;
- transform: translate(calc(-50% - 11px), -50%);
- display: flex;
- flex-direction: row;
- align-items: center;
- gap: 5px;
- background-color: var(--bytm-slider-label-bg-col);
- background: linear-gradient(
- 90deg,
- rgba(0, 0, 0, 0) 0%,
- var(--bytm-slider-label-bg-col) 20%
- );
- font-size: 1.4rem;
- text-align: right;
- padding: 15px;
- padding-right: 5px;
- opacity: 0.000001;
- transition: opacity 0.2s ease;
- }
- .bytm-vol-slider-label.has-icon {
- transform: translate(calc(-50% - 25px), -50%);
- }
- .bytm-vol-slider-label svg {
- padding: 4px;
- }
- .bytm-vol-slider-label svg path {
- fill: #909090;
- }
- .bytm-vol-slider-label.bytm-visible {
- opacity: 1;
- }
- :root
- body.bytm-dom-ytm
- ytmusic-app-layout[player-ui-state="FULLSCREEN"]
- .bytm-vol-slider-label {
- color: #fff;
- }
- .bytm-vol-slider-shared {
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- .bytm-vol-slider-shared svg {
- width: 20px;
- height: 20px;
- }
|