summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco <tomaselli.fr@gmail.com>2025-04-17 22:30:21 +0200
committerFrancesco <tomaselli.fr@gmail.com>2025-04-17 22:30:21 +0200
commitbfc6b2e9d728e5bba3ed48d2fd4725ec064f2429 (patch)
tree32385ee98bc24d47940d867f5f2fc52a3d99f062
parentaf13785d8114f9e7fcc281d5afe464165bbe361a (diff)
Add missing style to code on lists
-rw-r--r--assets/css/main.css27
1 files changed, 11 insertions, 16 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
index d80856b..f685c59 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -66,7 +66,7 @@ li {
list-style-type: none;
}
- & > input[type="checkbox"] {
+ &>input[type="checkbox"] {
width: var(--li-checkbox-size);
height: var(--li-checkbox-size);
margin: 0 0.2em 0.15em -1.25em;
@@ -139,6 +139,15 @@ code {
font-size: .9em;
}
+li code,
+table code,
+p code {
+ background-color: var(--code-background);
+ border-radius: 3px;
+ padding: 2px;
+}
+
+/* Latex */
.katex-display {
overflow-x: auto;
@@ -548,14 +557,6 @@ figcaption {
/* margin-top: -3rem; */
}
-/* Code in paragraphs */
-
-p code {
- background-color: var(--code-background);
- border-radius: 3px;
- padding: 2px;
-}
-
/* Tables */
table {
@@ -579,12 +580,6 @@ th {
font-weight: bold;
}
-table code {
- background-color: var(--code-background);
- border-radius: 3px;
- padding: 2px;
-}
-
/* Quotes */
blockquote {
@@ -598,4 +593,4 @@ blockquote {
blockquote p {
margin-left: 1rem;
margin-right: 1rem;
-}
+} \ No newline at end of file