Jump to content

Template:Dialogue/styles.css: Difference between revisions

From Continuum Universes Wiki
< Template:Dialogue
Line 5: Line 5:
     margin: 10px 0;
     margin: 10px 0;
     border-radius: 8px;
     border-radius: 8px;
     max-width: 600px; /* Prevents excessive stretching */
     max-width: 600px;
     width: auto; /* Auto scales with content */
     width: auto;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
Line 29: Line 29:
}
}


/* Allow each dialogue item to expand dynamically */
/* Prevents unnecessary extra space */
.dialogue-box > div {
blockquote {
     width: 100%;
     margin: 0;
    padding: 0;
}
}

Revision as of 03:29, 10 March 2025

.dialogue-box {
    background-color: var(--background-color-base);
    border: 2px solid #ddd;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    max-width: 600px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dialogue-character {
    font-weight: bold;
    color: #005bbb;
    font-size: 1.2em;
    margin-top: 5px;
    width: 100%;
}

.dialogue-line {
    font-style: italic;
    margin-left: 10px;
    padding-left: 5px;
    word-wrap: break-word;
    width: 100%;
    white-space: normal;
}

/* Prevents unnecessary extra space */
blockquote {
    margin: 0;
    padding: 0;
}