generated from replugged-org/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inline status bitesize profile padding fix & other stuff
- Loading branch information
Showing
25 changed files
with
276 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Bulk of the profile modal styles. | ||
@use "profiles/popout"; | ||
@use "profiles/full"; | ||
@use "profiles/panel"; | ||
|
||
@use "globals"; // Assigns profile padding for statuses and badges relative to the banner's height. | ||
@use "eyebrows"; // Styles for eyebrows. Self explanatory. | ||
@use "banners"; // Makes banners smaller with svg adjustments. | ||
@use "roles"; // Also self explanatory. | ||
@use "heights"; // Full profile heights. | ||
|
||
@use "fixes/botfix"; // Fixes related to bot profiles, Discord's official profile, and deleted user profiles. | ||
@use "fixes/static"; // Fixes for static profile modals such as the one in settings. | ||
|
||
// IN NEED OF A DEEP CLEAN AAAAA | ||
|
||
@use "components/banner/buttons"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,193 @@ | ||
// Bulk of the profile modal styles. | ||
@use "profiles/popout"; | ||
@use "profiles/full"; | ||
@use "profiles/panel"; | ||
@use "sort"; | ||
|
||
@use "globals"; // Assigns profile padding for statuses and badges relative to the banner's height. | ||
@use "eyebrows"; // Styles for eyebrows. Self explanatory. | ||
@use "banners"; // Makes banners smaller with svg adjustments. | ||
@use "roles"; // Also self explanatory. | ||
@use "heights"; // Full profile heights. | ||
@use "buttons"; | ||
@use "avatar"; | ||
|
||
@use "fixes/botfix"; // Fixes related to bot profiles, Discord's official profile, and deleted user profiles. | ||
@use "fixes/static"; // Fixes for static profile modals such as the one in settings. | ||
// I've gotten to that point where this is getting really hard to sort through. Hopefully nothing needs to be changed lol | ||
|
||
// IN NEED OF A DEEP CLEAN AAAAA | ||
// #region Debubble status | ||
[class^="visibleContainer"] { | ||
position: relative; | ||
top: unset !important; | ||
left: unset !important; | ||
padding: 0 16px; | ||
} | ||
[class^="invisibleContainer"] { | ||
display: none; | ||
} | ||
[class^="statusBubbleOuter"] { | ||
border: unset !important; | ||
box-shadow: unset; | ||
max-width: fit-content; | ||
&::before, | ||
&::after { | ||
display: none; | ||
} | ||
[class^="content"] { | ||
text-align: unset; | ||
max-height: unset !important; | ||
-webkit-line-clamp: unset; | ||
} | ||
.emoji { | ||
cursor: default; | ||
} | ||
} | ||
[class^="statusBubble"] { | ||
min-width: unset; | ||
padding: unset; | ||
border-radius: unset; | ||
background: unset; | ||
} | ||
// #endregion | ||
|
||
@use "components/banner/buttons"; | ||
// #region Prep header | ||
$bitesize-padding: 158px; | ||
$panel-padding: 165px; | ||
$fullsize-padding: 273px; | ||
|
||
[class*="biteSizeOuter"] { | ||
> div { | ||
max-height: calc( | ||
100vh - 28px - var(--custom-user-popout-outside-components-height) - $bitesize-padding | ||
); | ||
padding-top: $bitesize-padding; | ||
} | ||
header { | ||
> svg { | ||
transform: translateY(calc($bitesize-padding * -1)); | ||
} | ||
} | ||
&:not([class*="userProfileOuterThemed"]) header { | ||
> [class^="avatar"] { | ||
transform: translate(16px, calc(61px + $bitesize-padding * -1)); | ||
} | ||
} | ||
&[class*="userProfileOuterThemed"] header { | ||
> [class^="avatar"] { | ||
transform: translate(12px, calc(57px + $bitesize-padding * -1)); | ||
} | ||
} | ||
} | ||
|
||
[class^="userPanelOuter"] { | ||
> div > [class^="none"] { | ||
padding-top: $panel-padding; | ||
} | ||
header { | ||
> svg { | ||
position: fixed !important; | ||
transform: translateY(calc($panel-padding * -1)); | ||
} | ||
> [class^="avatar"] { | ||
position: fixed !important; | ||
transform: translate(16px, calc(72px + $panel-padding * -1)); | ||
} | ||
} | ||
} | ||
|
||
[class*="fullSizeOuter"] { | ||
> div { | ||
padding-top: $fullsize-padding; | ||
padding-bottom: 16px; | ||
} | ||
header { | ||
> svg { | ||
transform: translateY(calc($fullsize-padding * -1)); | ||
} | ||
> [class^="headerInner"] > [class^="avatar"] { | ||
transform: translate(24px, calc(145px + $fullsize-padding * -1)); | ||
} | ||
} | ||
} | ||
|
||
[class*="userProfileOuter"] { | ||
header { | ||
min-height: unset !important; | ||
> svg { | ||
position: absolute; | ||
width: unset; | ||
padding-right: 4px; | ||
} | ||
> [class^="avatar"], | ||
> [class^="headerInner"] > [class^="avatar"] { | ||
position: absolute; | ||
top: unset; | ||
left: unset; | ||
} | ||
> [class^="headerInner"] { | ||
position: absolute; | ||
padding: unset; | ||
> [class^="buttons"] { | ||
position: absolute; | ||
padding-right: 4px; | ||
margin-right: 16px; | ||
top: 0; | ||
right: 0; | ||
transform: translateY($fullsize-padding - 44px); | ||
} | ||
} | ||
} | ||
&:not([class*="userProfileOuterThemed"], [class^="userPanelOuter"]) header { | ||
> svg { | ||
border-top-left-radius: var(--radius-sm); | ||
border-top-right-radius: var(--radius-sm); | ||
padding-right: unset; | ||
} | ||
> [class^="headerInner"] { | ||
> [class^="buttons"] { | ||
padding-right: unset; | ||
} | ||
} | ||
} | ||
} | ||
// #endregion | ||
|
||
// #region Prep body | ||
[class*="userProfileOuter"] { | ||
&[class*="themeContainer"] { | ||
> div { | ||
gap: 16px; | ||
> [class^="body"] { | ||
> [class^="menus"] { | ||
padding-bottom: 16px; | ||
} | ||
} | ||
} | ||
} | ||
> div, | ||
> div > [class^="none"] { | ||
gap: 12px; | ||
display: flex; | ||
flex-direction: column; | ||
max-height: -webkit-fill-available; | ||
> header { | ||
&, | ||
> [class^="headerInner"] { | ||
display: contents; | ||
> div:not([class]) { | ||
order: -1; | ||
} | ||
} | ||
} | ||
> [class^="body"] { | ||
display: contents; | ||
> [class^="container"] { | ||
order: -2; | ||
max-height: max-content; | ||
} | ||
> * { | ||
margin: 0 16px; | ||
} | ||
} | ||
> footer { | ||
padding-top: 4px; | ||
} | ||
> [class^="overlayBackground"] { | ||
margin-top: unset; | ||
} | ||
} | ||
} | ||
[class^="userPanelOuter"] > div > [class^="none"] { | ||
min-width: 340px; | ||
} | ||
// #endregion |
File renamed without changes.
Oops, something went wrong.