Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/eshlox/simplicity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemysław Kołodziejczyk <eshlox@vertolabs.com>2018-11-12 21:09:25 +0300
committerPrzemysław Kołodziejczyk <eshlox@vertolabs.com>2018-11-12 21:09:25 +0300
commit8e5c17023876ecc58865a3fa5502d9b14734a207 (patch)
tree088cfa4926a68b0376d53c756459be8100a89550
parent026c2295b737f323ee18caee22cf4219bbdbc2dd (diff)
Fix pre/code background color
-rw-r--r--assets/src/styles/_components/content.scss8
-rw-r--r--exampleSite/content/posts/2017/code.md13
2 files changed, 18 insertions, 3 deletions
diff --git a/assets/src/styles/_components/content.scss b/assets/src/styles/_components/content.scss
index 97f2c9d..12a4743 100644
--- a/assets/src/styles/_components/content.scss
+++ b/assets/src/styles/_components/content.scss
@@ -63,9 +63,11 @@ body {
}
}
- div.highlight {
- pre {
- border-left: 0.3rem solid $links-color;
+ pre {
+ border-left: 0.3rem solid $links-color;
+
+ code {
+ background-color: transparent;
}
}
diff --git a/exampleSite/content/posts/2017/code.md b/exampleSite/content/posts/2017/code.md
index d29c7de..a5bf777 100644
--- a/exampleSite/content/posts/2017/code.md
+++ b/exampleSite/content/posts/2017/code.md
@@ -23,6 +23,19 @@ if filename and os.path.isfile(filename):
```python
import os
+# Very long line, very long line, very long line, very long line, very long line, very long line, very long line, very long line.
+filename = os.environ.get('PYTHONSTARTUP')
+if filename and os.path.isfile(filename):
+ with open(filename) as fobj:
+ startup_file = fobj.read()
+ exec(startup_file)
+```
+
+---
+
+```python
+import os
+
filename = os.environ.get('PYTHONSTARTUP')
if filename and os.path.isfile(filename):
with open(filename) as fobj: