From d35324689fbc63a236622c3a8bd50ecf449cf53c Mon Sep 17 00:00:00 2001 From: Winston <44872771+winston-yallow@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:29:01 +0100 Subject: [PATCH] Add discourse theme component --- README.md | 10 +++++++++- about.json | 5 +++++ common/common.scss | 21 +++++++++++++++++++++ common/head_tag.html | 3 +++ 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 about.json create mode 100644 common/common.scss create mode 100644 common/head_tag.html diff --git a/README.md b/README.md index d42c3b7..7ba0073 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ -# discourse-tweaks +# Discourse Tweaks A theme components to enable GDScript highligting and other Godot specific tweaks + +## Usage +In discourse, go to Admin > Customize > Themes. Click the Install button and choose +"From a git repository". Enter the URL of this repo: +``` +https://github.com/godotengine/discourse-tweaks +``` + diff --git a/about.json b/about.json new file mode 100644 index 0000000..51ac74d --- /dev/null +++ b/about.json @@ -0,0 +1,5 @@ +{ + "name": "Godot Tweaks", + "about_url": "https://github.com/godotengine/discourse-tweaks", + "license_url": "https://github.com/godotengine/discourse-tweaks/blob/main/LICENSE" +} diff --git a/common/common.scss b/common/common.scss new file mode 100644 index 0000000..5147dcf --- /dev/null +++ b/common/common.scss @@ -0,0 +1,21 @@ + +.d-wrap[data-wrap="comment"] { + padding: 0px; + padding-left: 2.5em; + padding-right: 0.75em; + color: rgb(221, 221, 221); + border: 1px solid #585858; + border-left: 5px solid #585858; + background-color: rgb(43, 43, 43); + background-image: url("/images/emoji/google/speech_balloon.png"); + background-repeat: no-repeat; + background-size: 1.5em; + background-position: 0.5em 1em; + box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2); + margin-bottom: 1em; +} + +.d-wrap[data-wrap="footnote"] { + font-size: smaller; + font-weight: bold; +} diff --git a/common/head_tag.html b/common/head_tag.html new file mode 100644 index 0000000..8a81e8c --- /dev/null +++ b/common/head_tag.html @@ -0,0 +1,3 @@ +