web/css: highlight inline code

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans 2024-11-19 10:45:34 -07:00
parent 74e97c5c8c
commit 36cddbce4e
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View file

@ -11,6 +11,8 @@
--link-text-color: #0467dd; --link-text-color: #0467dd;
--visited-link-text-color: var(--link-text-color); --visited-link-text-color: var(--link-text-color);
--code-background-color: rgba(0, 0, 0, 0.2);
--primary-color: #00c853; --primary-color: #00c853;
--primary-color-dark: #00b24a; --primary-color-dark: #00b24a;
--error-color: red; --error-color: red;
@ -73,6 +75,8 @@
--semisecondary-text-color: #bbb; --semisecondary-text-color: #bbb;
--link-text-color: #4187eb; --link-text-color: #4187eb;
--code-background-color: rgba(255, 255, 255, 0.1);
--primary-color: #00b24a; --primary-color: #00b24a;
--primary-color-dark: #00c853; --primary-color-dark: #00c853;
--error-color: red; --error-color: red;

View file

@ -142,6 +142,12 @@ div.html-body {
} }
} }
code {
background-color: var(--code-background-color);
border-radius: 4px;
padding: 2px 0.5em;
}
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
margin: 0 0 .5rem; margin: 0 0 .5rem;
} }