Skalande ASCII skisser
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joakim Svensson 2025-04-19 09:49:44 +00:00
parent 02c300acf9
commit 3e8831d1e5
1 changed files with 4 additions and 6 deletions

View File

@ -1,16 +1,14 @@
.ascii-wrapper {
width: 100%;
display: flex;
justify-content: center;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
text-align: center; /* centrerar inline-block-barnet */
padding: 1rem 0;
}
.ascii-wrapper pre {
display: inline-block; /* gör så att max-width fungerar */
max-width: 100%;
font-size: clamp(0.4rem, 1.2vw + 0.10rem, 1rem); /* skalar mjukt från små till stora skärmar */
font-size: clamp(0.4rem, 1.2vw + 0.2rem, 1rem);
line-height: 1.2;
white-space: pre;
margin: 0;
white-space: pre;
}