aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-03-30 13:26:11 +0300
committerGravatar GitHub <[email protected]>2021-03-30 13:26:11 +0300
commit397d143161563fcdfcec32637e8d4d03dd6541f2 (patch)
treef2d32e6f9b8dae443ab8936cbcd4d03bc78fcaa4 /pydis_site/static
parentFix applying description changes to wrong places (diff)
parentMerge pull request #393 from ks129/guides-app (diff)
Merge branch 'dewikification' into resources-lists
Diffstat (limited to 'pydis_site/static')
-rw-r--r--pydis_site/static/css/content/page.css31
-rw-r--r--pydis_site/static/css/events/base.css12
2 files changed, 43 insertions, 0 deletions
diff --git a/pydis_site/static/css/content/page.css b/pydis_site/static/css/content/page.css
new file mode 100644
index 00000000..57d7472b
--- /dev/null
+++ b/pydis_site/static/css/content/page.css
@@ -0,0 +1,31 @@
+.breadcrumb-section {
+ padding: 1rem;
+}
+
+i.has-icon-padding {
+ padding: 0 10px 25px 0;
+}
+
+/*
+ * Move padding padding from <pre> tag to hljs <code> tags so the padding
+ * space is colored the same as the background of hljs <code> blocks.
+ */
+.content pre {
+ padding: 0;
+}
+
+code.hljs {
+ padding: 1.75em 2em;
+}
+
+/*
+ * Show header permalink on hover.
+ */
+.headerlink {
+ display: none;
+ padding-left: 0.5em;
+}
+
+:is(h1, h2, h3, h4, h5, h6):hover > .headerlink {
+ display: inline;
+}
diff --git a/pydis_site/static/css/events/base.css b/pydis_site/static/css/events/base.css
new file mode 100644
index 00000000..266bca1d
--- /dev/null
+++ b/pydis_site/static/css/events/base.css
@@ -0,0 +1,12 @@
+.breadcrumb-section {
+ padding: 1rem;
+}
+
+pre {
+ /*
+ * Style it the same as the <code> tag, since highlight.js does not style
+ * backgrounds of <pre> tags but bulma does, resulting in a weird off-white
+ * border.
+ */
+ background-color: #282c34;
+}