diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-29 22:43:43 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-29 22:46:43 +0200 |
| commit | 98bb6a6c189519b02b86de8f3ce52cdb8813cfe7 (patch) | |
| tree | 98ce7c119d7f893f425962f711f08c61f36e88b3 /design/style.css | |
| parent | e3d51d7716299e67a4ab784394a0852ebb8ba8a4 (diff) | |
feat(design): base code and pre
Diffstat (limited to 'design/style.css')
| -rw-r--r-- | design/style.css | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/design/style.css b/design/style.css index 73eed40..c2dd3f5 100644 --- a/design/style.css +++ b/design/style.css @@ -5,7 +5,7 @@ --color-rose: #F2B5D4; /* link accent */ --color-light-rose: hsl(330, 55%, 70%, 0.2); /* link accent hover and highlight */ - --font-size-tiny: 0.85rem; /* quote, legend */ + --font-size-tiny: 0.85rem; /* quote, legend, code */ font-size: 20px; } @@ -136,3 +136,33 @@ figcaption { color: var(--color-gray); } +code, pre { + background: rgba(0, 0, 0, 0.4); +} + +code { + padding: 0.05em 0.1em; + + font-family: monospace; + font-size: var(--font-size-tiny); + + color: var(--color-gray); + border: var(--color-light) 1px solid; +} + +pre { + border: var(--color-light) 2px solid; + + margin-bottom: 1.5rem; + padding: 0.5rem 1rem; + margin-left: -1rem; + margin-right: -1rem; + + & code { + padding: 0; + + background: none; + border: none; + } +} + |
