diff --git a/docs/extra.css b/docs/extra.css index d8088bf..206dd1b 100644 --- a/docs/extra.css +++ b/docs/extra.css @@ -12,8 +12,24 @@ font-size: clamp(0.4rem, 1.2vw + 0.2rem, 0.75rem); line-height: 1.2; margin: 0; - WIDTH: 100%; white-space: pre; color: #0f0; /* Valfritt, men ser ofta snyggt ut */ background: transparent; /* Viktigt så du inte får en mindre bakgrund */ } + +.ascii-wrapper { + position: relative; + left: 50%; + right: 50%; + margin-left: -50vw; + margin-right: -50vw; + width: 100vw; + + display: flex; + justify-content: center; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + padding: 1rem 0; + background-color: var(--md-code-bg-color); /* eller t.ex. #000 för svart */ + box-sizing: border-box; +} \ No newline at end of file