📉
slate-transcript-editor-docs
  • Slate Transcript Editor - Docs
  • notes
    • Apple script testing
    • css-injection-karaoke
    • insert-text-at-selection
    • set-selection
    • notes
    • web workers
    • Takeaways form draftJs vs Slate
    • pause-while-typing
    • verbose-generate-previous-timings-up-to-current-func
  • ADR
    • [short title of solved problem and solution] - ADR Template
Powered by GitBook
On this page

Was this helpful?

  1. notes

css-injection-karaoke

<style scoped>
{`
    /* Next words */
    .timecode[data-previous-timings~="${parseInt(currentTime)}"]{
        color:  #6c757d; /*Bootstrap grey for secondary*/
    }

    /* Previous words */
    .timecode:not([data-previous-timings~="${parseInt(currentTime)}"]){
        color: #343a40!important /* Bootstrap black, for dark */
    }

    .timecode:not([data-start^="${parseInt(currentTime)}"]){
        color: orange!important// #6c757d; /*Bootstrap grey for secondary*/
    }  

    .timecode[data-start^="${parseInt(currentTime)}"]{
        color: red!important //#343a40!important /* Bootstrap black, for dark */
    }
`}
</style>
PreviousApple script testingNextinsert-text-at-selection

Last updated 3 years ago

Was this helpful?