MediaWiki:Common.less/transcripts.less

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
// <pre>
/* ===========================
          Transcripts
   =========================== */

.transcript {
    .border-radius( ~"0 0 120px 120px / 0 0 8px 8px" );
    .box-shadow( 0 5px 7px -7px rgba(0, 0, 0, 0.4) );
    width: fit-content;
    overflow: hidden;
    background: #f1f1f1;
    margin: 0 0 15px 15px;
    padding: 5px 20px 15px 20px;

    // [[Template:Letter]]
    &.godletter {
        margin: 20px auto;
        padding: 20px 30px;
    }

}

.ns-120 .mw-parser-output,
.transcript {

    // avoid styling TOC by only selecting direct <ul> descendants
    > ul {
        list-style: none;

        // alignment markers
        li {
        	list-style: none;
            border-left: 1px dashed @loblolly;
            padding-left: 15px;
            margin: 12px 0;
            line-height: 1.65;
            
            // first bolded word is the name of the character
            b:first-of-type {
            	display: block;
            }

            // Don't want double margin at the bottom (from li plus ul)
            &:last-of-type {
                margin-bottom: 0;
            }

            &:hover {
                border-color: @river-bed;
            }

        }

    }

}

// quest actions for transcripts
.quest-action {
    text-align: center;
    font-style: italic;
    margin: 0 5%;

    &:before,
    &:after {
        content: '———';
        margin: 4px;
        letter-spacing: -1px;
    }

}