From 08006dd8a98b0f967f3e116c7628ef3d91707f08 Mon Sep 17 00:00:00 2001 From: Jose Falanga Date: Mon, 13 Oct 2025 19:17:35 -0300 Subject: [PATCH] testing blokcs --- arise-source/config/main.css | 39 +++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/arise-source/config/main.css b/arise-source/config/main.css index eb19ceb..53b7c99 100644 --- a/arise-source/config/main.css +++ b/arise-source/config/main.css @@ -36,29 +36,32 @@ code { font-family: monospace; } -/* Block code (Arise syntax highlighting) */ -pre.sourceCode, -pre.sourceCode code, -pre.sourceCode code span, -pre.sourceCode code span a { - font-family: monospace, "Courier New", Courier, monospace; - background-color: #293137; - color: #65f85a; - line-height: 1.2em; /* tighter spacing */ - padding: 4px 12px; +/* Pre background and alignment */ +pre.sourceCode { + background-color: #293137; /* full block background */ border-radius: 16px; - display: inline; /* prevent extra block spacing from nested spans */ - white-space: pre-wrap; /* preserve wrapping */ - word-wrap: break-word; + padding: 12px 16px; + overflow-x: auto; + line-height: 1.35em; /* tight but readable */ + font-family: monospace, "Courier New", Courier, monospace; + color: #65f85a; } -/* Pre itself */ -pre.sourceCode { - overflow-x: auto; - padding: 0; /* only the inner code has padding */ - margin: 1em 0; +/* Reset span backgrounds so lines don’t stack weirdly */ +pre.sourceCode span, +pre.sourceCode span a { + background: none !important; /* remove small rectangles */ + display: inline; /* normal inline stacking */ } +/* Syntax highlight colors */ +pre.sourceCode .co { color: #6ab04c; } /* comments */ +pre.sourceCode .kw { color: #eb4d4b; } /* keywords */ +pre.sourceCode .st { color: #f9ca24; } /* strings */ +pre.sourceCode .bu { color: #12CBC4; } /* built-ins */ +pre.sourceCode .fu { color: #ff7979; } /* function names */ +pre.sourceCode .va { color: #e056fd; } /* variables */ + /* Standard pre for other purposes */ pre { overflow-x: auto;