aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2024-06-18 19:24:19 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2024-06-18 19:24:19 +0200
commit096ddc108dc7711ba8a08dffa690f61b116a714b (patch)
tree95f2772000215b638b7507568e6f89eee2bab30a /templates/base.html
parentc08c66ec5690fb000179ff6f93b4df4e164c6a5a (diff)
downloadmitjafelicijan.com-096ddc108dc7711ba8a08dffa690f61b116a714b.tar.gz
Fixed mobile code blocks where font sizes were all over the place
Diffstat (limited to 'templates/base.html')
-rwxr-xr-xtemplates/base.html16
1 files changed, 12 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html
index 54b35dd..6fa25b7 100755
--- a/templates/base.html
+++ b/templates/base.html
@@ -85,7 +85,7 @@
85 85
86 code { 86 code {
87 font-family: monospace; 87 font-family: monospace;
88 font-size: 13px; 88 font-size: 14px;
89 padding: 2px 4px; 89 padding: 2px 4px;
90 background: var(--inline-code-background)!important; 90 background: var(--inline-code-background)!important;
91 } 91 }
@@ -112,7 +112,7 @@
112 } 112 }
113 113
114 img, video, audio, table { 114 img, video, audio, table {
115 width: 800px; 115 width: 100%;
116 max-width: 100%; 116 max-width: 100%;
117 } 117 }
118 118
@@ -136,7 +136,10 @@
136 } 136 }
137 .promobox:hover { text-decoration: underline; } 137 .promobox:hover { text-decoration: underline; }
138 138
139 @media only screen and (max-width: 600px) { 139 /* Fix desktop and mobile code when font sizes are all over the place. */
140 pre code span { display: initial!important; }
141
142 @media only screen and (max-width: 1024px) {
140 body { 143 body {
141 word-wrap: break-word; 144 word-wrap: break-word;
142 } 145 }
@@ -149,7 +152,12 @@
149 word-wrap: break-word; 152 word-wrap: break-word;
150 } 153 }
151 154
152 /* Responsive tables */ 155 /* Fix mobile code when font sizes are all over the place. */
156 pre code span { display: initial!important; }
157 }
158
159 @media only screen and (max-width: 800px) {
160 /* Responsive tables. */
153 table { 161 table {
154 display: block; 162 display: block;
155 overflow-y: auto; 163 overflow-y: auto;