Making WordPress.org

Ticket #5778: 5778.diff

File 5778.diff, 2.6 KB (added by ocean90, 4 years ago)
  • templates/style.css

     
    345345        color: #509040;
    346346}
    347347
    348 span.context {
     348span.context,
     349span.priority {
     350        color: #1e1e1e;
    349351        font-size: 90%;
    350352        padding: .1em 0;
    351353        margin-left: .2em;
     
    355357        box-shadow: .3em 0 0 #a0a5aa, -.3em 0 0 #a0a5aa;
    356358}
    357359
     360span.context + span.priority {
     361        margin-left: 1em;
     362}
     363
     364.priority-high span.priority {
     365        color: #fff;
     366        background-color: #9A2323;
     367        box-shadow: 0.3em 0 0 #9A2323, -0.3em 0 0 #9A2323;
     368}
     369
     370.priority-low span.priority {
     371        background-color: #EE8E0D;
     372        box-shadow: 0.3em 0 0 #EE8E0D, -0.3em 0 0 #EE8E0D;
     373}
     374
    358375table.translations thead tr {
    359376        display: table-row !important;
    360377}
     
    383400        font-size: 12px;
    384401}
    385402
    386 table.translations td.original ul:not(:last-child),
    387 table.translations td.translation ul:not(:last-child) {
    388         margin-bottom: .2em;
     403.original-tags {
     404        margin-top: .2em;
    389405}
    390406
    391407table.translations thead th,
     
    23102326        text-align: center;
    23112327}
    23122328
    2313 table.translations th.priority {
    2314         width: 2em;
    2315         text-align: center;
     2329table.translations th.priority,
     2330table.translations td.priority {
     2331        display: none;
    23162332}
    23172333
    23182334table.translations th.original,
     
    25872603        margin: 0;
    25882604}
    25892605
    2590 .source-details details + details{
     2606.source-details details + details {
    25912607        margin-top: 5px;
    25922608}
    25932609
     
    25962612        overflow-wrap: break-word;
    25972613}
    25982614
     2615.source-details__context .context {
     2616        font-size: 100%;
     2617        background: transparent;
     2618        box-shadow: none;
     2619        margin: 0;
     2620        padding: 0;
     2621}
     2622
    25992623.translation-wrapper {
    26002624        padding: 0 10px;
    26012625        margin: 15px 0;
  • templates/translation-row-preview.php

     
    4040                        </ul>
    4141                        <?php
    4242                endif;
     43                ?>
    4344
    44                 if ( $translation->context ) :
    45                         ?>
    46                         <span class="context bubble"><?php echo esc_html( $translation->context ); ?></span>
     45                <div class="original-tags">
    4746                        <?php
    48                 endif;
    49                 ?>
     47                        if ( $translation->context ) :
     48                                ?>
     49                                <span class="context bubble"><?php echo esc_html( $translation->context ); ?></span>
     50                                <?php
     51                        endif;
     52
     53                        if ( '1' === $translation->priority || '-1' === $translation->priority ) :
     54                                ?>
     55                                <span class="priority bubble"><?php echo esc_html( sprintf( 'Priority: %s', gp_array_get( GP::$original->get_static( 'priorities' ), $translation->priority ) ) ); ?></span>
     56                                <?php
     57                        endif;
     58                        ?>
     59                </div>
    5060        </td>
    5161        <td class="translation foreign-text">
    5262                <?php