Skip to content

Commit 1edd732

Browse files
committed
ProfileBannerHeight: create
1 parent 5657a10 commit 1edd732

13 files changed

Lines changed: 187 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[preview-new1]: https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-new1.avif
2+
[preview-new2]: https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-new2.avif
3+
[preview-new3]: https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-new3.avif
4+
[preview-old1]: https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-old1.avif
5+
[preview-old2]: https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-old2.avif
6+
[preview-old3]: https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-old3.avif
7+
8+
# Profile Banner Height
9+
![Status: working](https://img.shields.io/badge/status-working-green?style=flat-square)
10+
11+
Customisable profile banner height.
12+
13+
| Old profile | New profile experiment |
14+
| ----------------------------- | ----------------------------------------- |
15+
| ![Old themed][preview-old1] | ![New themed][preview-new1] |
16+
| ![Old themed][preview-old2] | ![New unthemed with status][preview-new2] |
17+
| ![Old unthemed][preview-old3] | ![New unthemed][preview-new3] |
18+
19+
## Usage
20+
### `@import`
21+
```css
22+
@import url("https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/main.css");
23+
```
24+
### Replugged automatic theme
25+
[Install now](https://replugged.dev/install?identifier=net.saltssaumure.ProfileBannerHeight)
26+
### Replugged manual theme
27+
[Download now](https://github.com/MiniDiscordThemes/Snippets/releases/latest/download/net.saltssaumure.ProfileBannerHeight.asar)
28+
### Vencord online theme
29+
```
30+
https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/main.css
31+
```
32+
33+
## Customisation
34+
Paste the following at the end of Custom / Quick CSS, then edit the values:
35+
```css
36+
.userProfileInner__8ff35 {
37+
/* Plain colour banner */
38+
&:where(:not(:has(.banner__6d414[style*="background-image"]))) {
39+
--banner-height-desired: 60px;
40+
}
41+
/* Image banner */
42+
&:where(:has(.banner__6d414[style*="background-image"])) {
43+
--banner-height-desired: 70px;
44+
}
45+
/* All banner types in new profile experiment */
46+
&.biteSizeInnerThemed__5cdaf {
47+
--banner-height-desired: 65px;
48+
}
49+
}
50+
```
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"id": "net.saltssaumure.ProfileBannerHeight",
3+
"name": "Profile Banner Height",
4+
"description": "Customisable profile banner height. See GitHub for customisation options.",
5+
"author": [
6+
{
7+
"name": "Saltssaumure",
8+
"discordID": "134142022092062720",
9+
"github": "Saltssaumure"
10+
}
11+
],
12+
"version": "1.0.0",
13+
"updater": {
14+
"type": "store",
15+
"id": "net.saltssaumure.ProfileBannerHeight"
16+
},
17+
"license": "MIT",
18+
"type": "replugged-theme",
19+
"main": "scss/main.scss",
20+
"source": "https://github.com/MiniDiscordThemes/Snippets/blob/main/themes/ProfileBannerHeight",
21+
"image": [
22+
"https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-new1.avif",
23+
"https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-new2.avif",
24+
"https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-new3.avif",
25+
"https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-old1.avif",
26+
"https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-old2.avif",
27+
"https://minidiscordthemes.github.io/Snippets/ProfileBannerHeight/preview-old3.avif"
28+
]
29+
}
51.7 KB
Loading
17.6 KB
Loading
21.1 KB
Loading
22.9 KB
Loading
54.7 KB
Loading
21.1 KB
Loading
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Hide overflowing banner
2+
.userPopoutInner_ac0960 {
3+
overflow: hidden;
4+
position: relative;
5+
6+
&::before {
7+
width: 100%;
8+
height: 100%;
9+
}
10+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// New profile
2+
3+
.biteSizeInnerThemed__5cdaf {
4+
// Banner, icon, badges, status all wrapped in header
5+
--banner-height-original: 105px;
6+
--banner-height-desired: 65px;
7+
--height-diff: calc(var(--banner-height-original) - var(--banner-height-desired));
8+
--guff-height: 45px; // Height of everything but banner in header
9+
--header-height-original: calc(var(--banner-height-original) + var(--guff-height));
10+
--avatar-offset: 4px;
11+
12+
// Move header up
13+
.header__725f2 {
14+
position: absolute;
15+
top: calc(-1 * var(--height-diff));
16+
17+
// Avatar
18+
.userProfileOuterThemed_a425f3 & .clickable_bf76d2 {
19+
top: calc(61px - var(--avatar-offset));
20+
left: calc(22px - var(--avatar-offset));
21+
}
22+
23+
// Status
24+
.invisibleContainer__1e05d,
25+
.visibleContainer_adf761.biteSize__4396a {
26+
top: calc(var(--banner-height-original) - 10px);
27+
}
28+
}
29+
30+
// Margin fills space left by header
31+
.body__489bc {
32+
margin-top: calc(var(--header-height-original) - var(--height-diff));
33+
}
34+
}

0 commit comments

Comments
 (0)