From ffcad484bcc2284db8af2c992e7e8c6a3e016079 Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Sun, 22 Jan 2023 11:32:47 +0100 Subject: [PATCH] add custom inject thing --- .github/workflows/retype_build.yml | 6 ++++++ .inject/code.js | 0 .inject/style.css | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100644 .inject/code.js create mode 100644 .inject/style.css diff --git a/.github/workflows/retype_build.yml b/.github/workflows/retype_build.yml index 5adb825..70baac4 100644 --- a/.github/workflows/retype_build.yml +++ b/.github/workflows/retype_build.yml @@ -29,6 +29,12 @@ jobs: - uses: retypeapp/action-build@latest id: retypebuild + + - name: Inject custom css and js + run: | + cd ${{ steps.retypebuild.outputs.retype-output-path }} + cat .inject/style.css >> resources/css/retype.css + cat .inject/code.js >> resources/js/retype.js - name: Upload artifact uses: actions/upload-pages-artifact@v1 diff --git a/.inject/code.js b/.inject/code.js new file mode 100644 index 0000000..e69de29 diff --git a/.inject/style.css b/.inject/style.css new file mode 100644 index 0000000..45c8ff4 --- /dev/null +++ b/.inject/style.css @@ -0,0 +1,7 @@ +.simplebar-content li img { + filter: invert(1); +} + +.dark .simplebar-content li img { + filter: none; +} \ No newline at end of file