From 528c33bbb041691804119915e3eaf65c6c2f0344 Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Sat, 3 Jan 2026 19:35:59 +0330 Subject: added table of contents --- styles.css | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'styles.css') diff --git a/styles.css b/styles.css index bdd0a6b..ca9fc63 100644 --- a/styles.css +++ b/styles.css @@ -111,10 +111,31 @@ body.dark-mode { background-color: var(--code-bg-faint); } +#goBackUp { + position: fixed; + top: 70px; + right: 20px; + padding: 8px 16px; + background-color: var(--code-bg); + border: 1px solid var(--border); + cursor: pointer; + font-family: 'Roboto Mono', monospace; + font-size: 1.2rem; + border-radius: 4px; + z-index: 1000; + transition: 0.5s background-color; + color: var(--text); + font-weight: bold; +} + +#goBackUp:hover { + background-color: var(--code-bg-faint); +} + a { /* text-decoration: none; */ color: var(--link); - transition: 0.5s color; + transition: 0.5s background-color, 0.5s color !important; } a:hover { @@ -173,6 +194,23 @@ b { text-shadow: 0 0 2px var(--text); } +.table-item { + border-radius: 6px; + background-color: var(--code-bg); + transition: 0.5s background-color; + + text-decoration: none; + font-size: 1.5em; + padding: 5px 8px; + text-align: center; + color: inherit; + display: block; +} + +.table-item:hover { + background-color: var(--code-bg-faint); +} + pre code { background-color: transparent; padding: 0; -- cgit v1.2.3