aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/assets/css/common/misc.css
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-05-07 01:48:11 +0000
committerEgor Tensin <Egor.Tensin@gmail.com>2020-05-07 01:48:11 +0000
commitadb9b3fe169a92ea2da7b8c804c8b91f966c21a4 (patch)
treefe340f4de0afa6763e220194d2e6bea3366b4c71 /assets/css/common/misc.css
parentbind-mounts: rename the file (diff)
downloadjekyll-theme-adb9b3fe169a92ea2da7b8c804c8b91f966c21a4.tar.gz
jekyll-theme-adb9b3fe169a92ea2da7b8c804c8b91f966c21a4.zip
remove everything except Jekyll theme stuff
I tagged the previous commit to explain what's going on.
Diffstat (limited to 'assets/css/common/misc.css')
-rw-r--r--assets/css/common/misc.css50
1 files changed, 50 insertions, 0 deletions
diff --git a/assets/css/common/misc.css b/assets/css/common/misc.css
new file mode 100644
index 0000000..4bf362b
--- /dev/null
+++ b/assets/css/common/misc.css
@@ -0,0 +1,50 @@
+/* Utility classes to prevent blocks from expanding unreasonably. */
+.wide-enough {
+ max-width: 400px;
+}
+.wider {
+ max-width: 600px;
+}
+/* Links become blue inside of <hN> elements otherwise. */
+h1 a,
+h2 a,
+h3 a,
+h4 a,
+h5 a,
+h6 a {
+ color: inherit;
+}
+/* Link captions might become too close to badges on the sidebar. */
+span.badge {
+ margin-left: .5em;
+}
+/* Add horizontal scrollbars to <pre>s and don't wrap the code inside. */
+pre {
+ overflow-x: auto;
+}
+pre code {
+ white-space: pre;
+ word-wrap: normal;
+}
+/* Lighter background for <pre> and <code> elements. */
+pre {
+ font-size: inherit;
+ background-color: #fbfbfb;
+}
+.highlight {
+ background-color: #fbfbfb !important;
+}
+code {
+ color: inherit;
+ background-color: #fbfbfb;
+ font-size: inherit;
+}
+/* Prevent <code> elements from standing out from alerts. */
+.alert code {
+ padding: 0;
+ background-color: inherit;
+}
+/* Don't color category links blue. */
+.text-muted a.category {
+ color: inherit;
+}