summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2024-04-03 15:34:47 +0200
committerAhmed Abdelhalim <[email protected]>2024-04-03 15:34:47 +0200
commitbec2ef3c6df3a152f30152c2104803ecfee17b83 (patch)
tree26a2b60c29e45678541b36a2ed34c5d7fed04f67 /assets
parent346a9f33ddf89d0e88100777c66fa580980b1b2b (diff)
Fix styling issues on phones/small screens
Diffstat (limited to 'assets')
-rw-r--r--assets/scss/web/_blog.scss42
1 files changed, 19 insertions, 23 deletions
diff --git a/assets/scss/web/_blog.scss b/assets/scss/web/_blog.scss
index 0eac85f..7cfb522 100644
--- a/assets/scss/web/_blog.scss
+++ b/assets/scss/web/_blog.scss
@@ -28,37 +28,33 @@
border-left-width: 4px;
border-left-style: solid;
}
- pre {
- font-size: 1rem;
- }
-
- div.highlight {
- line-height: 1.5;
- }
+ // Code (not only code blocks)
code {
opacity: 0.5;
-
- &.language-ascii {
- line-height: 1
- }
-
- > span {
- margin-left: 16px;
- margin-right: 16px;
- &:first-child {
- padding-top: 8px;
- }
- &:last-child {
- padding-bottom: 8px;
- }
- }
}
+ // Code-block highlighting
pre {
+ font-size: 14px;
+ overflow: auto;
opacity: 1;
- code {
+
+ > code {
opacity: 1;
+
+ > span {
+ height: 1.1rem; // for some reason, the default is messed up (3rd line is always higher value)
+
+ margin-left: 16px;
+ margin-right: 16px;
+ &:first-child {
+ padding-top: 8px;
+ }
+ &:last-child {
+ padding-bottom: 8px;
+ }
+ }
}
}
}