aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/static')
-rw-r--r--pydis_site/static/css/content/color.css7
-rw-r--r--pydis_site/static/css/content/tag.css13
-rw-r--r--pydis_site/static/images/content/discord_colored_messages/ansi-colors.pngbin43004 -> 100261 bytes
-rw-r--r--pydis_site/static/images/content/discord_colored_messages/result.pngbin13740 -> 9608 bytes
-rw-r--r--pydis_site/static/images/content/fix-ssl-certificate/pem.pngbin0 -> 11619 bytes
-rw-r--r--pydis_site/static/images/content/help_channels/available_channels.pngbin6556 -> 0 bytes
-rw-r--r--pydis_site/static/images/content/help_channels/available_message.pngbin89386 -> 0 bytes
-rw-r--r--pydis_site/static/images/content/help_channels/claimed_channel.pngbin26100 -> 0 bytes
-rw-r--r--pydis_site/static/images/content/help_channels/dormant_channels.pngbin22386 -> 0 bytes
-rw-r--r--pydis_site/static/images/content/help_channels/help-system-category.pngbin0 -> 7425 bytes
-rw-r--r--pydis_site/static/images/content/help_channels/new-post-button.pngbin0 -> 15804 bytes
-rw-r--r--pydis_site/static/images/content/help_channels/new-post-form.pngbin0 -> 35364 bytes
-rw-r--r--pydis_site/static/images/content/help_channels/newly-created-thread-example.pngbin0 -> 149793 bytes
-rw-r--r--pydis_site/static/images/content/help_channels/occupied_channels.pngbin10950 -> 0 bytes
-rw-r--r--pydis_site/static/images/content/help_channels/question-example.pngbin0 -> 45436 bytes
-rw-r--r--pydis_site/static/images/content/regenerating_token.jpgbin0 -> 180570 bytes
-rw-r--r--pydis_site/static/js/content/listing.js41
17 files changed, 61 insertions, 0 deletions
diff --git a/pydis_site/static/css/content/color.css b/pydis_site/static/css/content/color.css
new file mode 100644
index 00000000..f4801c28
--- /dev/null
+++ b/pydis_site/static/css/content/color.css
@@ -0,0 +1,7 @@
+.content .fa-github {
+ color: black;
+}
+
+.content .fa-github:hover {
+ color: #7289DA;
+}
diff --git a/pydis_site/static/css/content/tag.css b/pydis_site/static/css/content/tag.css
new file mode 100644
index 00000000..79795f9e
--- /dev/null
+++ b/pydis_site/static/css/content/tag.css
@@ -0,0 +1,13 @@
+.content a * {
+ /* This is the original color, but propagated down the chain */
+ /* which allows for elements inside links, such as codeblocks */
+ color: #7289DA;
+}
+
+.content a *:hover {
+ color: dimgray;
+}
+
+span.update-time {
+ text-decoration: black underline dotted;
+}
diff --git a/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png b/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png
index d7176393..d980ab4c 100644
--- a/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png
+++ b/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png
Binary files differ
diff --git a/pydis_site/static/images/content/discord_colored_messages/result.png b/pydis_site/static/images/content/discord_colored_messages/result.png
index a666804e..41ed555c 100644
--- a/pydis_site/static/images/content/discord_colored_messages/result.png
+++ b/pydis_site/static/images/content/discord_colored_messages/result.png
Binary files differ
diff --git a/pydis_site/static/images/content/fix-ssl-certificate/pem.png b/pydis_site/static/images/content/fix-ssl-certificate/pem.png
new file mode 100644
index 00000000..face520f
--- /dev/null
+++ b/pydis_site/static/images/content/fix-ssl-certificate/pem.png
Binary files differ
diff --git a/pydis_site/static/images/content/help_channels/available_channels.png b/pydis_site/static/images/content/help_channels/available_channels.png
deleted file mode 100644
index 0b9cfd03..00000000
--- a/pydis_site/static/images/content/help_channels/available_channels.png
+++ /dev/null
Binary files differ
diff --git a/pydis_site/static/images/content/help_channels/available_message.png b/pydis_site/static/images/content/help_channels/available_message.png
deleted file mode 100644
index 09668c9b..00000000
--- a/pydis_site/static/images/content/help_channels/available_message.png
+++ /dev/null
Binary files differ
diff --git a/pydis_site/static/images/content/help_channels/claimed_channel.png b/pydis_site/static/images/content/help_channels/claimed_channel.png
deleted file mode 100644
index 777e31ea..00000000
--- a/pydis_site/static/images/content/help_channels/claimed_channel.png
+++ /dev/null
Binary files differ
diff --git a/pydis_site/static/images/content/help_channels/dormant_channels.png b/pydis_site/static/images/content/help_channels/dormant_channels.png
deleted file mode 100644
index 7c9ba61e..00000000
--- a/pydis_site/static/images/content/help_channels/dormant_channels.png
+++ /dev/null
Binary files differ
diff --git a/pydis_site/static/images/content/help_channels/help-system-category.png b/pydis_site/static/images/content/help_channels/help-system-category.png
new file mode 100644
index 00000000..bea5a92c
--- /dev/null
+++ b/pydis_site/static/images/content/help_channels/help-system-category.png
Binary files differ
diff --git a/pydis_site/static/images/content/help_channels/new-post-button.png b/pydis_site/static/images/content/help_channels/new-post-button.png
new file mode 100644
index 00000000..4ceabf0f
--- /dev/null
+++ b/pydis_site/static/images/content/help_channels/new-post-button.png
Binary files differ
diff --git a/pydis_site/static/images/content/help_channels/new-post-form.png b/pydis_site/static/images/content/help_channels/new-post-form.png
new file mode 100644
index 00000000..3e90bf7d
--- /dev/null
+++ b/pydis_site/static/images/content/help_channels/new-post-form.png
Binary files differ
diff --git a/pydis_site/static/images/content/help_channels/newly-created-thread-example.png b/pydis_site/static/images/content/help_channels/newly-created-thread-example.png
new file mode 100644
index 00000000..d7b1eed4
--- /dev/null
+++ b/pydis_site/static/images/content/help_channels/newly-created-thread-example.png
Binary files differ
diff --git a/pydis_site/static/images/content/help_channels/occupied_channels.png b/pydis_site/static/images/content/help_channels/occupied_channels.png
deleted file mode 100644
index 6ccb4ed6..00000000
--- a/pydis_site/static/images/content/help_channels/occupied_channels.png
+++ /dev/null
Binary files differ
diff --git a/pydis_site/static/images/content/help_channels/question-example.png b/pydis_site/static/images/content/help_channels/question-example.png
new file mode 100644
index 00000000..da181351
--- /dev/null
+++ b/pydis_site/static/images/content/help_channels/question-example.png
Binary files differ
diff --git a/pydis_site/static/images/content/regenerating_token.jpg b/pydis_site/static/images/content/regenerating_token.jpg
new file mode 100644
index 00000000..7b2588dc
--- /dev/null
+++ b/pydis_site/static/images/content/regenerating_token.jpg
Binary files differ
diff --git a/pydis_site/static/js/content/listing.js b/pydis_site/static/js/content/listing.js
new file mode 100644
index 00000000..4b722632
--- /dev/null
+++ b/pydis_site/static/js/content/listing.js
@@ -0,0 +1,41 @@
+/**
+ * Trim a tag listing to only show a few lines of content.
+ */
+function trimTag() {
+ const containers = document.getElementsByClassName("tag-container");
+ for (const container of containers) {
+ if (container.textContent.startsWith("Contains the following tags:")) {
+ // Tag group, no need to trim
+ continue;
+ }
+
+ // Remove every element after the first two paragraphs
+ while (container.children.length > 2) {
+ container.removeChild(container.lastChild);
+ }
+
+ // Trim down the elements if they are too long
+ const containerLength = container.textContent.length;
+ if (containerLength > 300) {
+ if (containerLength - container.firstChild.textContent.length > 300) {
+ // The first element alone takes up more than 300 characters
+ container.removeChild(container.lastChild);
+ }
+
+ let last = container.lastChild.lastChild;
+ while (container.textContent.length > 300 && container.lastChild.childNodes.length > 0) {
+ last = container.lastChild.lastChild;
+ last.remove();
+ }
+
+ if (container.textContent.length > 300 && (last instanceof HTMLElement && last.tagName !== "CODE")) {
+ // Add back the final element (up to a period if possible)
+ const stop = last.textContent.indexOf(".");
+ last.textContent = last.textContent.slice(0, stop > 0 ? stop + 1: null);
+ container.lastChild.appendChild(last);
+ }
+ }
+ }
+}
+
+trimTag();