Ignore:
Timestamp:
2021-09-20T10:43:51+12:00 (3 years ago)
Author:
cstephen
Message:

Remove default button theme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItem.vue

    r35413 r35429  
    1010
    1111            <div style="position: relative;">
    12                 <button @mouseover="showDownloadOptions = true" @mouseout="showDownloadOptions = false" type="button">
     12                <button class="btn-primary" @mouseover="showDownloadOptions = true" @mouseout="showDownloadOptions = false" type="button">
    1313                    <span class="material-icons">download</span>
    1414                    <span>{{ translations.get("TranscriptionItem_Download") }}</span>
     
    1717                <div class="download-popup card" :class="{ 'download-popup-show': showDownloadOptions }"
    1818                     @mouseover="showDownloadOptions = true" @mouseout="showDownloadOptions = false">
    19                     <button @click="downloadAsText" type="button" class="theme-flat">
     19                    <button @click="downloadAsText" type="button" class="btn-primary theme-flat">
    2020                        <span class="material-icons">text_snippet</span>
    2121                        <span>{{ translations.get("TranscriptionItem_DownloadAsText") }}</span>
    2222                    </button>
    2323
    24                     <button @click="downloadAsJson" type="button" class="theme-flat">
     24                    <button @click="downloadAsJson" type="button" class="btn-primary theme-flat">
    2525                        <span class="material-icons">integration_instructions</span>
    2626                        <span>{{ translations.get("TranscriptionItem_DownloadAsJson") }}</span>
    2727                    </button>
    2828
    29                     <button @click="downloadAsWebvtt" type="button" class="theme-flat">
     29                    <button @click="downloadAsWebvtt" type="button" class="btn-primary theme-flat">
    3030                        <span class="material-icons">subtitles</span>
    3131                        <span>{{ translations.get("TranscriptionItem_DownloadAsWebvtt") }}</span>
     
    3434            </div>
    3535
    36             <button class="theme-error" @click="remove" type="button">
     36            <button class="btn-primary theme-error" @click="remove" type="button">
    3737                <span class="material-icons">delete</span>
    3838                <span>{{ translations.get("TranscriptionItem_Remove") }}</span>
     
    4040        </div>
    4141
    42         <TranscriptionItemEditor :transcription="transcription" />
    43 
    4442        <hr />
    4543
    46         <button @click="toggleEditor" type="button" class="theme-flat">
    47             <span class="material-icons" :class="{ 'transform-rotate180': showEditor }">expand_more</span>
     44        <TranscriptionItemEditor :transcription="transcription" style="margin-bottom: 1em" />
     45
     46        <button @click="toggleEditor" type="button" class="btn-primary theme-flat">
     47            <span class="material-icons expander-toggle" :class="{ 'rotate-180': showEditor }">expand_more</span>
    4848            <span>{{ translations.get("TranscriptionItem_ExpandEditor") }}</span>
    4949        </button>
     
    5757    grid-template-columns: auto 1fr auto auto;
    5858    align-items: center;
    59 
    60     margin-bottom: 0.5em;
    61 }
    62 
    63 .transcription__editor-container {
    64     display: flex;
    65     flex-direction: column;
    66 
    67     padding-top: 1em;
    6859}
    6960
     
    8980    visibility: visible;
    9081    opacity: 1;
     82}
     83
     84.expander-toggle {
     85    transition-duration: 0.4s;
     86}
     87
     88.rotate-180 {
     89    transform: rotate(180deg);
    9190}
    9291</style>
Note: See TracChangeset for help on using the changeset viewer.