Skip to content

Commit b6d2560

Browse files
committed
Convert bd-scss to bd-css
1 parent 36561c3 commit b6d2560

9 files changed

Lines changed: 112 additions & 173 deletions

File tree

CONTRIBUTING.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@ So, you're looking to contribute? Nice!
33
This will help you get started.
44

55
## Prerequisites
6+
67
- Basic knowledge of NodeJS.
7-
- Basic knowledge of SCSS/CSS.
8+
- Basic knowledge of CSS.
89
- Basic knowledge of Git/GitHub.
910
- Basic knowledge of the terminal/command prompt.
1011

1112
Install Dependencies:
12-
Open a terminal/command prompt and use the following command: `npm install` in the HorizontalServerList folder.
13+
Open a terminal/command prompt and use the following command: `bun install` in the HorizontalServerList folder.
1314

1415
## Development
15-
Run the `dev` script with: `npm run dev`.
16+
17+
Run the `dev` script with: `bun run dev`.
1618
This will watch for changes inside the `/src` folder and then auto compile them into your BetterDiscord themes folder.
1719

1820
## Deploying
21+
1922
Simply push your changes to the `main` branch and make a pull request.
20-
If all is well you PR will be accepted and merged with the `main` branch.
23+
If all is well you PR will be accepted and merged with the `main` branch.
2124

22-
This will then trigger an action to compile the `/src/_base.css` to the `deploy` branch.
25+
This will then trigger an action to compile the `/src/_base.css` to the `deploy` branch.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @type {import('bd-scss/lib/config').Config} */
1+
/** @type {import('bd-css/lib/config').Config} */
22
export default {
33
meta: {
44
name: 'Horizontal Server List',
@@ -8,6 +8,7 @@ export default {
88
source: 'https://github.com/DiscordStyles/HorizontalServerList',
99
invite: 'ZHthyCw',
1010
},
11+
static: true,
1112
github: 'DiscordStyles',
12-
addons: [{ target: 'src/addons/_bottomhsl.scss' }],
13+
addons: [{ target: 'src/addons/bottomhsl.css' }],
1314
};

bun.lock

Lines changed: 20 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
"private": false,
33
"type": "module",
44
"scripts": {
5-
"dev": "bun --bun bd-scss dev",
6-
"build": "bun --bun bd-scss build",
7-
"reroll": "bun --bun bd-scss reroll"
5+
"dev": "bun --bun bd-css dev",
6+
"build": "bun --bun bd-css build"
87
},
98
"dependencies": {
10-
"bd-scss": "^3.0.8"
9+
"bd-css": "^0.0.4"
1110
},
1211
"devDependencies": {
1312
"prettier": "^3.8.1"

powercord_manifest.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
}
1010

11-
// BetterFolders - Vencord
11+
/* BetterFolders - Vencord */
1212
.base__5e434 > div[style]:not(.base__5e434) {
1313
bottom: calc(var(--custom-guild-list-width) * 2);
1414
top: unset;

src/main.css

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
:root {
2+
--notices-height: 36px;
3+
--serverlist-offset: var(--custom-guild-list-width);
4+
}
5+
6+
.base__5e434[data-fullscreen='false'] .content__5e434 {
7+
margin-top: var(--serverlist-offset);
8+
overflow: visible !important;
9+
}
10+
11+
:fullscreen .content__5e434 {
12+
margin: 0 !important;
13+
}
14+
15+
.sidebar__5e434 {
16+
border-radius: 0;
17+
overflow: visible !important;
18+
}
19+
20+
.guilds__5e434 {
21+
transform-origin: top left;
22+
rotate: -90deg;
23+
height: 100vw !important;
24+
bottom: unset;
25+
position: absolute !important;
26+
left: 0;
27+
28+
.itemsContainer_ef3116,
29+
.stack_dbd263 {
30+
flex-direction: var(--HSL-server-direction);
31+
justify-content: var(--HSL-server-alignment);
32+
}
33+
}
34+
35+
.tree_ef3116 {
36+
padding-top: var(--HSL-top-padding, var(--size-sm));
37+
justify-content: var(--HSL-server-alignment);
38+
}
39+
40+
/* Rotate the icons back */
41+
.wrapper__6e9f8,
42+
.folderPreview__48112,
43+
.folderIconWrapper__48112,
44+
.lowerBadge_cc5dd2,
45+
.upperBadge_cc5dd2 {
46+
rotate: 90deg;
47+
}
48+
.childWrapper__6e9f8 {
49+
rotate: 0deg;
50+
}
51+
52+
/* Notices */
53+
.notice__6e2b9 {
54+
height: var(--notices-height);
55+
56+
& + .content__5e434 {
57+
--serverlist-offset: calc(var(--notices-height) + var(--custom-guild-list-width));
58+
}
59+
}
60+
61+
/* BetterFolders - Vencord */
62+
.container__5e434 > div[style]:not(.base__5e434) {
63+
width: 100vw !important;
64+
height: var(--serverlist-offset) !important;
65+
position: absolute;
66+
top: calc(var(--serverlist-offset) + var(--custom-app-top-bar-height));
67+
pointer-events: none;
68+
z-index: 1;
69+
70+
.guilds__5e434 {
71+
pointer-events: all;
72+
}
73+
74+
& + .base__5e434 .content__5e434 {
75+
margin-top: calc(var(--serverlist-offset) * 2);
76+
}
77+
}

0 commit comments

Comments
 (0)