Jump to content

Template:Dialogue/styles.css: Difference between revisions

From Continuum Universes Wiki
< Template:Dialogue
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
.dialogue-box {
.dialogue-box {
     background-color: var(--background-color-base);
     background-color: var(--bg-light);
     border: 2px solid #ddd;
     border: 2px solid var(--accent-alt);
     padding: 10px;
     padding: 10px;
     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;
    height: auto;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
Line 14: Line 15:
.dialogue-character {
.dialogue-character {
     font-weight: bold;
     font-weight: bold;
     color: #005bbb;
     color: var(--accent-primary);
     font-size: 1.2em;
     font-size: 1.2em;
     margin-top: 5px;
     margin-top: 5px;
Line 27: Line 28:
     width: 100%;
     width: 100%;
     white-space: normal;
     white-space: normal;
}
/* Allow each dialogue item to expand dynamically */
.dialogue-box > div {
    width: 100%;
}
}

Latest revision as of 10:57, 24 October 2025

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

.dialogue-character {
    font-weight: bold;
    color: var(--accent-primary);
    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;
}