Created
March 9, 2023 08:53
-
-
Save doup/78710118d8e54fd89b89d587798f6452 to your computer and use it in GitHub Desktop.
Bevy #7761 `text_wrap_debug.rs`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Bevy #7761 example</title> | |
<style> | |
/* Reset */ | |
* { | |
box-sizing: border-box; | |
} | |
html, | |
body { | |
padding: 0; | |
margin: 0; | |
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, | |
segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, | |
arial, sans-serif; | |
} | |
.root { | |
display: flex; | |
flex-direction: column; | |
gap: 8px; | |
width: 100vw; | |
height: 100vh; | |
padding: 8px; | |
} | |
.row { | |
display: flex; | |
gap: 8px; | |
height: 50%; | |
} | |
.col { | |
display: flex; | |
flex-direction: column; | |
height: 100%; | |
flex-grow: 1; | |
flex-basis: 0; | |
overflow: hidden; | |
background-color: #7fbeea; | |
} | |
.no-wrap { | |
white-space: nowrap; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="root"> | |
<div class="row"> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
<div class="col"> | |
<div> | |
Line 1<br /> | |
Line 2<br /> | |
Line 3 | |
</div> | |
<div class="no-wrap"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas | |
auctor, nunc ac faucibus fringilla. | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment