Ticket #5778: 5778.diff
File 5778.diff, 2.6 KB (added by , 4 years ago) |
---|
-
templates/style.css
345 345 color: #509040; 346 346 } 347 347 348 span.context { 348 span.context, 349 span.priority { 350 color: #1e1e1e; 349 351 font-size: 90%; 350 352 padding: .1em 0; 351 353 margin-left: .2em; … … 355 357 box-shadow: .3em 0 0 #a0a5aa, -.3em 0 0 #a0a5aa; 356 358 } 357 359 360 span.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 358 375 table.translations thead tr { 359 376 display: table-row !important; 360 377 } … … 383 400 font-size: 12px; 384 401 } 385 402 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; 389 405 } 390 406 391 407 table.translations thead th, … … 2310 2326 text-align: center; 2311 2327 } 2312 2328 2313 table.translations th.priority {2314 width: 2em; 2315 text-align: center;2329 table.translations th.priority, 2330 table.translations td.priority { 2331 display: none; 2316 2332 } 2317 2333 2318 2334 table.translations th.original, … … 2587 2603 margin: 0; 2588 2604 } 2589 2605 2590 .source-details details + details {2606 .source-details details + details { 2591 2607 margin-top: 5px; 2592 2608 } 2593 2609 … … 2596 2612 overflow-wrap: break-word; 2597 2613 } 2598 2614 2615 .source-details__context .context { 2616 font-size: 100%; 2617 background: transparent; 2618 box-shadow: none; 2619 margin: 0; 2620 padding: 0; 2621 } 2622 2599 2623 .translation-wrapper { 2600 2624 padding: 0 10px; 2601 2625 margin: 15px 0; -
templates/translation-row-preview.php
40 40 </ul> 41 41 <?php 42 42 endif; 43 ?> 43 44 44 if ( $translation->context ) : 45 ?> 46 <span class="context bubble"><?php echo esc_html( $translation->context ); ?></span> 45 <div class="original-tags"> 47 46 <?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> 50 60 </td> 51 61 <td class="translation foreign-text"> 52 62 <?php