Jump to content

Template:Dialogue/styles.css: Difference between revisions

From Continuum Universes Wiki
< Template:Dialogue
No edit summary
No edit summary
Line 6: Line 6:
     border-radius: 8px;
     border-radius: 8px;
     max-width: 500px;
     max-width: 500px;
     min-height: 40px; /* Ensure it doesn't shrink too much */
     width: 100%;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
    justify-content: flex-start;
     align-items: flex-start;
     align-items: flex-start;
    min-height: auto; /* Allow height to grow dynamically */
}
}


Line 18: Line 18:
     font-size: 1.2em;
     font-size: 1.2em;
     margin-top: 5px;
     margin-top: 5px;
    width: 100%;
}
}


Line 25: Line 26:
     padding-left: 5px;
     padding-left: 5px;
     word-wrap: break-word;
     word-wrap: break-word;
    width: 100%;
}
}


/* Allow the dialogue box to grow dynamically */
/* Ensure the dialogue box expands when more text is present */
.dialogue-box > * {
.dialogue-box > div {
     flex-grow: 1;
     flex-grow: 1;
    width: 100%;
}
}

Revision as of 03:10, 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: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto; /* Allow height to grow dynamically */
}

.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%;
}

/* Ensure the dialogue box expands when more text is present */
.dialogue-box > div {
    flex-grow: 1;
    width: 100%;
}