cms/app-client/app/styles/components/transcript-component.scss
author ymh <ymh.work@gmail.com>
Sat, 03 Dec 2016 00:09:28 +0100
changeset 461 9b7a6c099870
parent 457 a7a333c0b1eb
child 476 9cffc7f32f14
permissions -rw-r--r--
add morphenes to transcripts

.transcript-component {
    background-color: $corpus-light-grey;
    padding: 0px;
    width: 554px;
    box-sizing: border-box;
}

body.videoscreen .transcript-component {
    overflow: scroll;
}

.transcript-component h2 {
    position: absolute;
    z-index: 1;
    width: inherit;
    //background: linear-gradient($corpus-light-grey, $corpus-light-grey 50%, transparent);
    padding-top: 12px;
    padding-bottom: 20px;
    line-height: 30px;
    margin: 0px!important;
    color: $corpus-blue;
    font-weight: bold;
}

.transcript-component h2 .translation{
    display: block;
    font-weight: normal;
}

body.videoscreen .transcript-component h2 {
    padding-bottom: 0px;
    position: static;
}

body.videoscreen .transcript-component .transcript {
    margin: 0px;
    padding: 154px 20px 0px 20px;
}

.transcript-component .transcript {
    margin: 0px;
    padding: 70px 20px 0px 20px;
}

body.videoscreen .transcript-component .transcript {
    padding-top: 0px;
}

.transcript-component .transcript h3 {
    padding: 10px 10px 10px 32px;
    font-weight: bold;
    color: $corpus-blue;
    font-size: 12px;
    line-height: 24px;
}

.transcript-component .transcript .annotations {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.transcript-component .transcript .annotations .sentence {
    padding: 10px 10px 10px 32px;
    color: $corpus-black;
    position: relative;
    background-color: transparent;
    transition: background-color .15s, color .15s;
    min-height: 24px;
}

.transcript-component .transcript .annotations .sentence:not(.active):hover {
    cursor: pointer;
    background-color: $corpus-grey;
    color: $corpus-white;
}

.transcript-component .transcript .annotations .sentence.active {
    background-color: $corpus-blue;
    color: $corpus-white;
    pointer-events: none;
}


.transcript-component .transcript .annotations .sentence.active .translation {
    color: $corpus-white;
    font-weight: normal;
}

.transcript-component .transcript .annotations .sentence .words {
    font-size: 0px;
    margin: 5px 0px;
}

.transcript-component .transcript .annotations .sentence .words .word {
    display: inline-block;
}

.transcript-component .transcript .annotations .sentence .original {
    font-weight: bold;
}

.transcript-component .transcript .annotations .sentence .words .word .original,
.transcript-component .transcript .annotations .sentence .words .word .translation
 {
    background-color: $corpus-black;
    padding: 0px 4px;
    margin-right: 2px;
    margin-bottom: 1px;
    font-size: 12px;
}
.transcript-component .transcript .annotations .sentence .words .word .morphene-original,
.transcript-component .transcript .annotations .sentence .words .word .morphene-translation {
    background-color: $corpus-dark-grey;
    padding: 0px 2px;
    margin-right: 2px;
    margin-bottom: 1px;
    font-size: 12px;
}


.transcript-component .transcript .annotations .sentence:hover .words .word .original,
.transcript-component .transcript .annotations .sentence:hover .words .word .translation {
    background-color: $corpus-white;
    color: $corpus-grey;
}

.transcript-component .transcript .annotations .sentence:hover .words .word .morphene-original,
.transcript-component .transcript .annotations .sentence:hover .words .word .morphene-translation {
    background-color: $corpus-light-grey2;
    color: $corpus-grey;
}


.transcript-component .transcript .annotations .sentence.active .words .word .original,
.transcript-component .transcript .annotations .sentence.active .words .word .translation {
    background-color: $corpus-white;
    color: $corpus-blue;
}

.transcript-component .transcript .annotations .sentence.active .words .word .morphene-original,
.transcript-component .transcript .annotations .sentence.active .words .word .morphene-translation {
    background-color: $corpus-lighter-blue;
    color: $corpus-blue;
}

.transcript-component .transcript .annotations .sentence .words .word {
    color: $corpus-white;
    margin-top: 2px;
}

.transcript-component .transcript .annotations .sentence .words .word p {
    line-height: 20px;
}

.transcript-component .transcript .annotations .sentence .words .word .morphene-container {
    line-height: 15px;
    display: -ms-inline-flexbox;
    display: inline-flex;
}


.transcript-component .transcript .annotations .sentence .words .word .translation {
    margin-bottom: 2px;
}

.transcript-component .transcript .annotations .sentence .fa-play {
    position: absolute;
    border-style: solid;
    border-width: 2px;
    border-color: $corpus-black;
    border-radius: 100%;
    width: 24px;
    height: 24px;
    line-height: 20px;
    left: 2.5px;
    cursor: pointer;
    opacity: 1;
    color: $corpus-black;
}

.transcript-component .transcript .annotations .sentence .fa-play::before {
    margin-left: 3px;
}

.transcript-component .transcript .annotations .sentence:not(.active):hover .fa-play {
    border-color: $corpus-white;
    color: $corpus-white;
}

.transcript-component .transcript .annotations .sentence p {
    margin: 0;
    line-height: 24px;
}

.transcript-component .transcript .annotations .sentence .speaker {
    font-weight: bold;
}

.transcript-component .transcript .annotations .sentence .hidden-speaker {
    visibility: hidden;
}

.transcript-component .transcript .annotations .sentence .title {
    float: right;
    line-height: 24px;
    padding-left: 20px;
    color: $corpus-grey;
    font-weight: bold;
}

.transcript-component .transcript .annotations .sentence.active .title {
    color: $corpus-white;
}

.transcript-component .transcript .annotations .sentence:not(.active):hover .title {
    color: $corpus-white;
}