From d0cac47def375e4a2ee37fb6b1f9b1fe2a8599f5 Mon Sep 17 00:00:00 2001 From: andrewgryan Date: Sat, 25 May 2024 19:59:47 +0100 Subject: [PATCH] better css --- docs/static/style.css | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/static/style.css b/docs/static/style.css index 6f136e8..62957d7 100644 --- a/docs/static/style.css +++ b/docs/static/style.css @@ -35,6 +35,37 @@ h3 { font-style: normal; } +h1 { + --color-1: #550527; + --color-2: #688e26; + --color-3: #faa613; + --color-4: #f44708; + --color-5: #a10702; + color: transparent; + text-wrap: balance; + background: linear-gradient( + 135deg, + var(--color-1) calc(19% - 1px), + transparent 19%, + transparent calc(20% - 1px), + var(--color-2) 20%, + var(--color-2) calc(39% - 1px), + transparent 39%, + transparent calc(40% - 1px), + var(--color-3) 40%, + var(--color-3) calc(59% - 1px), + transparent 59%, + transparent calc(60% - 1px), + var(--color-4) 60%, + var(--color-4) calc(79% - 1px), + transparent 79%, + transparent calc(80% - 1px), + var(--color-5) 80% + ); + background-clip: text; + -webkit-background-clip: text; +} + pre { padding-inline: 0.75rem; padding-block: 0.5rem;