Skip to content

Commit

Permalink
Merge pull request #7 from wiemanboy/sass-rewrite
Browse files Browse the repository at this point in the history
Refactored big css file to multiple scss files
  • Loading branch information
wiemanboy authored Mar 30, 2024
2 parents f946fe2 + 30eb70f commit 26ac49d
Show file tree
Hide file tree
Showing 17 changed files with 668 additions and 399 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Compile source code
env:
OUTPUT_BRANCH: release
OUTPUT: wiemantheme.theme.css

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Install dependencies
run: npm install

- name: Compile SCSS
run: npm run compile

- name: Commit changes
run: |
git config --global user.name 'wiemanboy'
git config --global user.email '[email protected]'
git checkout -b $OUTPUT_BRANCH
rm -rf .github
rm -rf node_modules
rm -rf src
rm -rf .gitignore
rm -rf package.json
rm -rf package-lock.json
rm -rf README.md
rm -rf $OUTPUT.map
git add .
git commit -m "Compile SCSS"
git push -f origin $OUTPUT_BRANCH
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.idea
node_modules
233 changes: 233 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "wiemantheme",
"version": "1.1.3",
"scripts": {
"compile": "sass src/Main.scss wiemantheme.theme.css"
},
"devDependencies": {
"sass": "^1.43.4"
}
}
18 changes: 18 additions & 0 deletions src/Main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* @name WiemanTheme
* @author wiemanboy
* @version 2.0.0
* @description My very own discord theme! :)
* @source https://github.com/wiemanboy/WiemanTheme
*/

@import "components/Theme",
"components/header/CustomTitle",
"components/main/DmMenu",
"components/main/MembersMenu",
"components/main/BdButton",
"components/main/Button",
"components/main/SpotifyInvite",
"components/main/profile/Banner",
"components/main/profile/Popout",
"components/settings/MicTestBar";
File renamed without changes
Loading

0 comments on commit 26ac49d

Please sign in to comment.