From 50d50ad27b764b3a21f40b0dc066fb7213270aa0 Mon Sep 17 00:00:00 2001 From: KraXen72 Date: Tue, 2 Apr 2024 19:45:14 +0200 Subject: [PATCH] discord: use calc --- discord/dist/main.css.map | 2 +- discord/modules/_userPopout.scss | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/discord/dist/main.css.map b/discord/dist/main.css.map index a939212..3a01e04 100644 --- a/discord/dist/main.css.map +++ b/discord/dist/main.css.map @@ -1 +1 @@ -{"version":3,"sources":["../base/_fonts.scss","../base/_reset.scss","../components/_codeblocks.scss","../components/_scrollbars.scss","../components/_buttons.scss","../layout/_serverList.scss","../base/_variables.scss","../layout/_channelList.scss","../layout/_userAreaMsgInput.scss","../layout/_floating.scss","../layout/_layout.scss","../modules/_homeScreen.scss","../modules/_quickSwitcher.scss","../modules/_serverBanner.scss","../_utils.scss","../modules/_emojiPickers.scss","../modules/_jumpBars.scss","../modules/_accentColor.scss","../modules/_userPopout.scss","../modules/_settings.scss","../_tweaks.scss","../main.scss"],"names":[],"mappings":"AAAQ,iFAAA,CAER,WACI,2BAAA,CACA,mKAAA,CAEA,kBAAA,CACA,iBAAA,CCNJ,oKAKC,uBAAA,CCLD,yDAGI,6BAAA,CCJJ,oBACC,oBAAA,CACA,qBAAA,CAGD,0BACC,sBAAA,CAID,0DAEC,mCAAA,CACA,sBAAA,CCZD,wCACI,mCAAA,CACA,qBAAA,CACH,kFAAA,mCAAA,CAEA,wEACC,mCAAA,CACA,oFAAA,mCAAA,CAED,4EACC,mCAAA,CACA,wFAAA,mCAAA,CAIF,sCAEC,mCAAA,CACA,8EACC,+DAAA,CAMD,qEACC,yCAAA,CACA,iFAAA,gDAAA,CAIF,yCAEC,qBAAA,CCjCD,qBACI,8BCcW,CDZf,gBACC,eCCmB,CDQpB,qBAAA,SAAA,CACA,wBACI,iBAAA,CACA,2BAAA,CACA,iBAAA,CACA,OAAA,CACA,cAAA,CACA,kBAAA,CACA,gCAAA,CACA,WAAA,CACA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CAAA,CAED,oBACC,wBbMS,CaHV,wCACC,uDAAA,CAED,4BACC,2BAAA,CACA,iDACC,uBAAA,CAAA,kBAAA,CCVF,sBAAA,wBAAA,CAEA,oCACC,sBAAA,CACA,wBAAA,CAID,gHAEE,gBAAA,CCkBF,0EAGI,6BAAA,CACA,+BAAA,CACH,8CAAA,CACA,8BAAA,CACA,sCAAA,CACA,kCAAA,CACA,2BAAA,CACA,8BAAA,CACA,sBAAA,CACA,sBAAA,CACA,uBAAA,CACA,qCAAA,CAGA,yBAAA,CACG,2BAAA,CAOH,oBAAA,CACA,sBAAA,CAIA,6BAAA,CACA,6CAAA,CAEA,+CAAA,CACA,sDAAA,CACA,+CAAA,CAGA,oBAAA,CACG,2BAAA,CACH,+BAAA,CACA,+BAAA,CACA,+BAAA,CACA,+BAAA,CAEA,gDAAA,CACG,0DAAA,CACH,+CAAA,CACA,gDAAA,CAEA,kEAAA,CACG,4DAAA,CACH,8CAAA,CAKD,iBAAA,+CAAA,CAAA,YAAA,+CAAA","file":"main.css"} \ No newline at end of file +{"version":3,"sources":["../base/_fonts.scss","../base/_reset.scss","../components/_codeblocks.scss","../components/_scrollbars.scss","../components/_buttons.scss","../layout/_serverList.scss","../base/_variables.scss","../layout/_channelList.scss","../layout/_userAreaMsgInput.scss","../layout/_floating.scss","../layout/_layout.scss","../modules/_homeScreen.scss","../modules/_quickSwitcher.scss","../modules/_serverBanner.scss","../_utils.scss","../modules/_emojiPickers.scss","../modules/_jumpBars.scss","../modules/_accentColor.scss","../modules/_userPopout.scss","../modules/_settings.scss","../_tweaks.scss","../main.scss"],"names":[],"mappings":"AAAQ,iFAAA,CAER,WACI,2BAAA,CACA,mKAAA,CAEA,kBAAA,CACA,iBAAA,CCNJ,oKAKC,uBAAA,CCLD,yDAGI,6BAAA,CCJJ,oBACC,oBAAA,CACA,qBAAA,CAGD,0BACC,sBAAA,CAID,0DAEC,mCAAA,CACA,sBAAA,CCZD,wCACI,mCAAA,CACA,qBAAA,CACH,kF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aZjHiB,CYmHjB,8CACC,wBZ9HgB,CY+HhB,iBAlGY,CAmGZ,OAAA,CACA,eAAA,CACA,qBAAA,CAGD,qCAGC,kDAAA,CACA,iBAAA,CACA,gBAAA,CAJA,gEAAA,aZ7HQ,CY6HR,yGAAA,aZ7HQ,CY8HR,oDAAA,yCAAA,CAKD,sDAAA,8CApHiB,CAwHhB,wFAAA,iBArHY,CAsHZ,8EAAA,SArHW,CAsHX,4FACC,uBAAA,CACA,WAAA,CAYA,mGACC,spBAAA,CAAA,8oBAAA,CCtKJ,aACC,8CAAA,CAED,oBACC,wBbMS,CaHV,wCACC,uDAAA,CAED,4BACC,2BAAA,CACA,iDACC,uBAAA,CAAA,kBAAA,CCVF,sBAAA,wBAAA,CAEA,oCACC,sBAAA,CACA,wBAAA,CAID,gHAEE,gBAAA,CCkBF,0EAGI,6BAAA,CACA,+BAAA,CACH,8CAAA,CACA,8BAAA,CACA,sCAAA,CACA,kCAAA,CACA,2BAAA,CACA,8BAAA,CACA,sBAAA,CACA,sBAAA,CACA,uBAAA,CACA,qCAAA,CAGA,yBAAA,CACG,2BAAA,CAOH,oBAAA,CACA,sBAAA,CAIA,6BAAA,CACA,6CAAA,CAEA,+CAAA,CACA,sDAAA,CACA,+CAAA,CAGA,oBAAA,CACG,2BAAA,CACH,+BAAA,CACA,+BAAA,CACA,+BAAA,CACA,+BAAA,CAEA,gDAAA,CACG,0DAAA,CACH,+CAAA,CACA,gDAAA,CAEA,kEAAA,CACG,4DAAA,CACH,8CAAA,CAKD,iBAAA,+CAAA,CAAA,YAAA,+CAAA","file":"main.css"} \ No newline at end of file diff --git a/discord/modules/_userPopout.scss b/discord/modules/_userPopout.scss index 969b9d0..7b56871 100644 --- a/discord/modules/_userPopout.scss +++ b/discord/modules/_userPopout.scss @@ -29,7 +29,7 @@ $banner-original-height: 120px; $up-border-color: var(--background-modifier-accent); //$rb-bg-accent; $up-desired-width: 300px; // don't change. you'd have to redraw the svg (see bottom) -$up-image-banner-height: 100px; +$up-image-banner-height: calc((#{$up-desired-width} * 120) / 360); $up-br-outer: 8px; $up-spacing: 4px; // themed popoutOuter's padding will still be 4px regardless of this. $up-br-inner: calc($up-br-outer - $up-spacing); @@ -103,6 +103,10 @@ $up-br-inner: calc($up-br-outer - $up-spacing); } mask { display: none !important; } } + // %serverGuideMessage is userProfileOuterThemed + // &%serverGuideMessage %bannerSVGWrapper { + // min-height: $up-image-banner-height !important; + // } // top to bottom elements - don't wanna nest bc extra specificity could break the selectors %userPopoutBannerPremium,