Film
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joakim Svensson 2025-04-19 09:24:23 +00:00
parent 4723efd76d
commit c5be9b3bf6
1 changed files with 11 additions and 11 deletions

View File

@ -1,16 +1,16 @@
.ascii-wrapper { .ascii-wrapper {
width: 50%; width: 100%;
overflow-x: auto; overflow-x: auto;
-webkit-overflow-scrolling: touch; /* för smooth scroll på mobil */ -webkit-overflow-scrolling: touch;
text-align: center; /* centrerar inline-block-barnet */
padding: 1rem 0;
} }
.ascii-wrapper pre { .ascii-wrapper pre {
display: table; /* Gör att den bara tar så mycket plats som behövs */ display: inline-block; /* gör så att max-width fungerar */
max-width: 100%; /* Begränsa till förälderns bredd */ max-width: 100%;
margin: 0 auto; /* Centrerar innehållet */ font-size: clamp(0.65rem, 1vw + 0.3rem, 1rem); /* skalar mjukt från små till stora skärmar */
} line-height: 1.2;
white-space: pre;
.ascii-wrapper code { margin: 0;
white-space: pre; /* Bevara mellanrum och radbrytningar */ }
font-size: 1em; /* Behåll läsbar storlek */
}