Template:Dialogue/styles.css: Difference between revisions
Appearance
Cdjensen94 (talk | contribs) No edit summary |
Cdjensen94 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
.dialogue-box { | .dialogue-box { | ||
background-color: | background-color: #f4f4f4; | ||
border: 2px solid #ddd; | border: 2px solid #ddd; | ||
padding: 10px; | padding: 10px; | ||
margin: 10px 0; | margin: 10px 0; | ||
border-radius: 8px; | border-radius: 8px; | ||
max-width: | max-width: 600px; /* Prevents excessive stretching */ | ||
width: | width: auto; /* Auto scales with content */ | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: flex-start; | align-items: flex-start; | ||
} | } | ||
Line 27: | Line 26: | ||
word-wrap: break-word; | word-wrap: break-word; | ||
width: 100%; | width: 100%; | ||
white-space: normal; | |||
} | } | ||
/* | /* Allow each dialogue item to expand dynamically */ | ||
.dialogue-box > div { | .dialogue-box > div { | ||
width: 100%; | width: 100%; | ||
} | } |