cms/app-client/app/styles/components/transcript-component.scss
author Chloe Laisne <chloe.laisne@gmail.com>
Fri, 05 Aug 2016 14:55:45 +0200
changeset 251 ac320de33ec7
parent 248 256272c33349
child 254 a7cf2887e993
permissions -rw-r--r--
Add transcript button to player-component

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

.transcript-component h2 {
    position: absolute;
    z-index: 1;
    width: inherit;
    background: linear-gradient($light-blue, $light-blue 50%, transparent);
    padding-bottom: 54px;
}

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

.transcript-component .transcript .sentence {
    padding: 20px 20px 20px 64px;
    color: $medium-grey;
    position: relative;
    background-color: transparent;
    transition: background-color .15s, color .15s;
}

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

.transcript-component .transcript .sentence.active {
    background-color: $grey-blue;
    color: $light-white;
}

.transcript-component .transcript .sentence.active .translation {
    color: $light-blue;
}

.transcript-component .transcript .sentence .fa-play {
    position: absolute;
    border: solid 2px $medium-grey;
    border-radius: 100%;
    width: 24px;
    height: 24px;
    line-height: 20px;
    left: 20px;
    cursor: pointer;
    opacity: 0;
    border-color: $light-blue;
    color: $light-blue;
    transition: opacity .15s;
}

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

.transcript-component .transcript .sentence.active .fa-play {
    border-color: $light-blue;
    color: $light-blue;
    opacity: 1;
}

.transcript-component .transcript .sentence:not(.active):hover .fa-play {
    opacity: 1;
}

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