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

github.com/darshanbaral/aafu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Baral <darshanbaral@gmail.com>2020-04-07 06:57:31 +0300
committerDarshan Baral <darshanbaral@gmail.com>2020-04-07 06:57:31 +0300
commit142f1c8482b9a583c5185e485aea6783a7639b05 (patch)
tree69ee2405591810c187106d4ffc39a0667a0cdb80
parent55194976472bbe03e5baad5504541e958eba67fa (diff)
Added CSS for codeblocks and images in content
-rw-r--r--layouts/_default/single.html4
-rw-r--r--static/css/aafu.css12
2 files changed, 14 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index aae2433..556d7bf 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -6,7 +6,9 @@
</h1>
{{- partial "metadata" . -}}
</div>
- {{ .Content }}
+ <div class="content">
+ {{ .Content }}
+ </div>
</div>
{{ partial "prevnext" . }}
{{ end }}
diff --git a/static/css/aafu.css b/static/css/aafu.css
index e8b8105..bfe94f4 100644
--- a/static/css/aafu.css
+++ b/static/css/aafu.css
@@ -5,9 +5,19 @@ body {
background-color: var(--primaryBg);
color: var(--primaryText);
}
+.content img {
+ width: 100%;
+}
+pre {
+ background-color: var(--secondaryBg);
+ color: var(--secondaryText);
+ padding: 6px 12px;
+ border-radius: 5px;
+ box-shadow: 0px 0px 3px 1px var(--shadow) !important;
+}
code {
font-family: "Roboto Mono", monospace !important;
- font-size: 0.9em !important;
+ font-size: 1em !important;
}
footer {
font-size: 0.9em !important;