cms/app-client/app/styles/components/transcript-component.scss
author ymh <ymh.work@gmail.com>
Mon, 28 Nov 2016 17:04:56 +0100
changeset 450 7bddb57bf806
parent 373 e952c8a31a2b
child 454 710a2ae08a74
permissions -rw-r--r--
avoid use unsupported Reflect api

.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: 66px;
    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;
}

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

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

.transcript-component .transcript h3 {
    padding: 20px 20px 20px 64px;
    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: 20px 20px 20px 64px;
    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: 10px 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: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.active .words .word .original,
.transcript-component .transcript .annotations .sentence.active .words .word .translation {
    background-color: $corpus-white;
}

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

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

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

.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: 20px;
    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 .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;
}