Changeset 11732
- Timestamp:
- 04/01/2022 11:42:40 AM (20 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/consistency.php
r11597 r11732 64 64 65 65 <p> 66 <button type="submit" class=" consistency-form-submit">Analyze</button>66 <button type="submit" class="button is-primary consistency-form-submit">Analyze</button> 67 67 </p> 68 68 </form> … … 93 93 94 94 ?> 95 <table class=" consistency-table">95 <table class="gp-table consistency-table"> 96 96 <thead> 97 97 <th>Original</th> -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/js/editor.js
r8766 r11732 70 70 } 71 71 72 // Override copy functionto adopt custom markup.72 // Override functions to adopt custom markup. 73 73 $gp.editor.copy = function() { 74 74 var $activeTextarea = $gp.editor.current.find( '.textareas.active textarea' ); … … 101 101 var event = new Event( 'input' ); 102 102 $activeTextarea[0].dispatchEvent( event ); 103 }; 104 $gp.editor.tab = function() { 105 var text_area = $gp.editor.current.find( '.textareas.active textarea' ); 106 if ( ! text_area.length ) { 107 return; 108 } 109 110 var cursorPos = text_area.prop( 'selectionStart' ); 111 var v = text_area.val(); 112 var textBefore = v.substring( 0, cursorPos ); 113 var textAfter = v.substring( cursorPos, v.length ); 114 115 text_area.val( textBefore + '\t' + textAfter ); 116 117 text_area.focus(); 118 text_area[0].selectionEnd = cursorPos + 1; 119 }, 120 $gp.editor.newline = function() { 121 var text_area = $gp.editor.current.find( '.textareas.active textarea' ); 122 if ( ! text_area.length ) { 123 return; 124 } 125 126 var cursorPos = text_area.prop( 'selectionStart' ); 127 var v = text_area.val(); 128 var textBefore = v.substring( 0, cursorPos ); 129 var textAfter = v.substring( cursorPos, v.length ); 130 131 text_area.val( textBefore + '\n' + textAfter ); 132 133 text_area.focus(); 134 text_area[0].selectionEnd = cursorPos + 1; 103 135 }; 104 136 … … 244 276 .on( 'click', 'button.panel-header-actions__cancel', $gp.editor.hooks.cancel ) 245 277 .on( 'click', 'button.translation-actions__copy', $gp.editor.hooks.copy ) 278 .on( 'click', 'button.translation-actions__insert-tab', $gp.editor.hooks.tab ) 246 279 .on( 'click', 'button.translation-actions__save', $gp.editor.hooks.ok ) 247 280 .on( 'click', 'button.translation-actions__help', openHelpModal ) -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-project.php
r11523 r11732 145 145 146 146 <div class="locale-project"> 147 <table class=" locale-sub-projects">147 <table class="gp-table locale-sub-projects"> 148 148 <thead> 149 149 <tr> … … 241 241 <h3>Translation Contributors</h3> 242 242 <?php if ( $locale_contributors['contributors'] ) : ?> 243 <table class=" locale-project-contributors-table">243 <table class="gp-table locale-project-contributors-table"> 244 244 <thead> 245 245 <tr> 246 <th class="contributor- name">Contributor</th>246 <th class="contributor-details">Contributor</th> 247 247 <th class="contributor-stats">Translations</th> 248 248 </tr> … … 355 355 printf( 356 356 '<tr id="contributor-%s"> 357 <td class="contributor-name"> 358 %s 359 <a href="https://profiles.wordpress.org/%s/">%s %s</a> 360 <span>Latest translation: %s ago</span> 357 <td class="contributor-details"> 358 <div class="contributor-avatar"> 359 %s 360 %s 361 </div> 362 <div class="contributor-name"> 363 <a href="https://profiles.wordpress.org/%s/">%s</a> 364 <span>Latest translation: %s ago</span> 365 </div> 361 366 </td> 362 367 <td class="contributor-stats"> … … 386 391 </tr>', 387 392 $contributor->nicename, 393 get_avatar( $contributor->email, 40 ), 388 394 $contributor->is_editor ? '<span class="translation-editor">Editor</span>' : '', 389 395 $contributor->nicename, 390 get_avatar( $contributor->email, 40 ),391 396 $contributor->display_name ?: $contributor->nicename, 392 397 human_time_diff( strtotime( $contributor->last_update ) ), -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-projects.php
r9291 r11732 94 94 <div class="sort-bar"> 95 95 <form id="sort-filter" action="" method="GET"> 96 <input type="hidden" name="s" value="<?php echo esc_attr( $search ?? '' ); ?>" 96 <input type="hidden" name="s" value="<?php echo esc_attr( $search ?? '' ); ?>"> 97 97 <input type="hidden" name="page" value="1"> 98 98 … … 114 114 ?> 115 115 <label for="filter">Filter:</label> 116 <select id="filter" name="filter">116 <select id="filter" class="is-small" name="filter"> 117 117 <?php 118 118 $sorts = array(); … … 141 141 </select> 142 142 143 <button type="submit" ><?php echo ( 1 === $filter_count ? 'Apply Filter' : 'Apply Filters' ); ?></button>143 <button type="submit" class="button is-small"><?php echo ( 1 === $filter_count ? 'Apply Filter' : 'Apply Filters' ); ?></button> 144 144 </form> 145 145 </div> -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css
r11531 r11732 1 body, html { 2 height: 100%; 3 } 4 5 body, 1 /** 2 * wporg-main overrides. 3 */ 6 4 html, 7 .gp-content, 8 .gp-content textarea, 9 .gp-content input { 10 color: #1e1e1e; 11 font-size: 14px; /* Overwrite wporg-main. Affects layout rem sizing. */ 12 } 13 14 .gp-content * { 15 box-sizing: content-box; 16 } 17 18 .gp-content table tbody tr:nth-child(2n) { 19 background-color: unset; /* Override wporg-main. */ 20 } 21 5 body { 6 font-size: 16px; 7 } 8 9 .gp-content { 10 font-size: 1rem; 11 line-height: 1.5; 12 font-family: 13 -apple-system, 14 BlinkMacSystemFont, 15 "Segoe UI", 16 Helvetica, 17 Arial, 18 sans-serif, 19 "Apple Color Emoji", 20 "Segoe UI Emoji"; 21 } 22 23 .gp-content table { 24 font-size: inherit; 25 } 26 27 .gp-content table thead { 28 color: inherit; 29 background-color: inherit; 30 } 31 32 .gp-content table tbody tr:nth-child(2n):not(:hover) { 33 background-color: unset; 34 } 35 36 .gp-content input, 37 .gp-content select { 38 margin: 0; 39 } 40 41 .gp-content input[type=checkbox], 42 .gp-content input[type=radio] { 43 min-width: 0; 44 text-align: unset; 45 line-height: inherit; 46 } 47 48 .gp-content input, 49 .gp-content select, 22 50 .gp-content textarea { 23 max-width: 100%; 24 } 25 26 .gp-content summary { 27 display: list-item; 28 } 29 30 .gp-content textarea, 31 .gp-content select, 32 .gp-content input { 33 font-size: 1em; 34 } 35 51 transition: none; 52 } 53 54 .gp-content label { 55 vertical-align: unset; 56 } 57 58 .gp-content input[type=checkbox]:checked:before { 59 content: ''; 60 margin: 0; 61 width: 0.8rem; 62 height: 0.8rem; 63 float: none; 64 } 65 66 .gp-content input[type=radio]:checked:before { 67 content: ''; 68 margin: 0; 69 width: 0.625rem; 70 height: 0.625rem; 71 float: none; 72 border-radius: 50%; 73 font-size: inherit; 74 line-height: inherit; 75 text-indent: unset; 76 } 77 78 .gp-content .button:active { 79 transform: none; 80 } 81 82 .gp-content a, 83 li>a, 84 p a { 85 text-decoration: underline; 86 text-decoration-thickness: max(1px,0.063rem); 87 text-underline-offset: 0.1em; 88 } 89 90 li>a:hover, 91 p a:hover { 92 color: var( --gp-color-accent-fg ); 93 } 94 95 .gp-content a:active, 96 .gp-content a:focus, 97 .gp-content a:hover { 98 text-decoration: underline; 99 text-decoration-thickness: max(3px,0.188rem); 100 text-decoration-skip-ink: none; 101 } 102 103 .gp-content .button:focus, 104 .gp-content .button:hover { 105 text-decoration: none; 106 } 107 108 .gp-content .button-group > .button { 109 border-radius: 2px !important; 110 margin: 0; 111 display: inline-flex; 112 } 113 114 .gp-content .button:visited { 115 color: var( --gp-color-btn-text ); 116 border: 1px solid var( --gp-color-btn-border ); 117 box-shadow: none; 118 background: var( --gp-color-btn-bg ); 119 } 120 121 select.is-small { 122 padding-top: 3px; 123 padding-bottom: 3px; 124 font-size: 12px; 125 min-height: 28px; 126 } 127 128 /** 129 * Site header. 130 */ 36 131 .site-header { 37 132 font-family: "Open Sans", sans-serif; … … 45 140 46 141 .site-header .site-branding { 47 box-sizing: border-box;48 142 margin: 0 auto; 49 max-width: 960px;143 max-width: 1200px; 50 144 padding: 0 10px; 51 145 } … … 109 203 .navigation-main { 110 204 background: transparent; 111 max-width: 940px;205 max-width: 1200px; 112 206 height: 32px; 113 207 margin: -32px auto 0 auto; … … 250 344 } 251 345 346 /** 347 * GlotPress overrides. 348 */ 349 350 :root { 351 --gp-color-fg-default: #000000; 352 --gp-color-accent-fg: #2271b1; 353 --gp-color-accent-emphasis: #135e96; 354 355 --gp-color-border-default: #72777c; 356 --gp-color-border-muted: #b1b8c1; 357 358 --gp-color-btn-text: #2271b1; 359 --gp-color-btn-border: #2271b1; 360 --gp-color-btn-hover-text: #135e96; 361 --gp-color-btn-hover-border: #135e96; 362 363 --gp-color-btn-primary-text: #fff; 364 --gp-color-btn-primary-bg: #2271b1; 365 --gp-color-btn-primary-border: #2271b1; 366 --gp-color-btn-primary-hover-text: #fff; 367 --gp-color-btn-primary-hover-bg: #135e96; 368 --gp-color-btn-primary-hover-border: #135e96; 369 370 --gp-color-status-fuzzy-subtle: #f6a983; 371 --gp-color-status-current-subtle: #b5e1b9; 372 --gp-color-status-old-subtle: #cdc5e1; 373 --gp-color-status-waiting-subtle: #ffe399; 374 --gp-color-status-rejected-subtle: #eb9090; 375 } 376 377 .locale-sub-projects .stats, 378 .translation-sets .stats { 379 text-align: left; 380 } 381 382 table.glossary tr.editor, 383 table.translations tr.editor, 384 table.glossary tr.editor:hover, 385 table.translations tr.editor:hover { 386 border-left: 0; 387 box-shadow: none; 388 } 389 390 .gp-content textarea { 391 max-width: 100%; 392 } 393 394 .gp-content summary { 395 display: list-item; 396 } 397 252 398 #gp-js-message { 253 399 top: 50px; … … 296 442 297 443 .gp-content { 298 font-family: 'Open Sans', sans-serif !important;299 444 margin: 20px auto; 300 max-width: 940px;445 max-width: 1200px; 301 446 padding: 0 10px; 302 447 } 303 448 304 449 .gp-content h2 { 305 font-family: 'Open Sans', sans-serif !important; 306 font-size: 26px; 307 margin: 2px 0 .6em; 308 overflow: hidden; 309 } 310 311 .gp-content h2 .action { 312 margin-left: 6px; 450 font-size: 1.5rem; 313 451 } 314 452 … … 319 457 320 458 .gp-content h3 { 321 background: none;322 459 padding: 0; 323 460 margin: 2px 0 .6em; … … 328 465 border: 0; 329 466 padding: 0; 330 } 331 332 .gp-content .breadcrumb li { 333 text-shadow: none; 334 } 335 336 .actionlist a, 337 .actionlist a:link, 338 .actionlist a:visited, 339 .gp-content a { 340 color: #0073aa; 341 } 342 343 .gp-content a:hover, 344 li>a, 345 p a { 346 color: #00a0d2; 347 text-decoration: none; 467 margin: 0 0 1rem; 348 468 } 349 469 … … 393 513 span.context, 394 514 span.priority { 515 display: inline-block; 395 516 color: #1e1e1e; 396 517 font-size: 12px; 518 font-weight: 400; 397 519 padding: .1em 0; 398 520 margin-left: .2em; … … 419 541 } 420 542 421 table.translations thead tr {422 display: table-row !important;423 }424 543 425 544 table.translations td.original ul { … … 447 566 } 448 567 449 table.glossary {450 font-size: 14px;451 }452 453 table.glossary a.action,454 table.translations a.action {455 color: #1e1e1e;456 text-decoration: underline;457 }458 459 table.glossary a.action:hover,460 table.translations a.action:hover {461 color: #000;462 }463 464 568 .original-tags { 465 569 margin-top: .2em; 466 }467 468 table.translations thead th,469 table.translations tfoot th,470 table.translation-sets thead th,471 table.translations tfoot th,472 table.glossary thead th,473 table.locale-sub-projects thead th,474 table.locales thead th {475 background-color: #808286;476 color: #fff;477 }478 479 table.translations thead th:not(:last-child),480 table.translations tfoot th:not(:last-child),481 table.translation-sets thead th:not(:last-child),482 table.translations tfoot th:not(:last-child),483 table.glossary thead th:not(:last-child),484 table.locale-sub-projects thead th:not(:last-child),485 table.locales thead th:not(:last-child) {486 border-right-color: #434648;487 }488 489 table.translations,490 table.translation-sets,491 table.glossary,492 table.locale-sub-projects,493 table.consistency-table,494 .stats-table table {495 font-size: 15px;496 line-height: 1.6;497 border-spacing: 0;498 }499 500 table.translations td,501 table.translations th,502 table.translation-sets td,503 table.translation-sets th,504 table.locales td,505 table.locales th,506 table.glossary th,507 table.glossary td,508 table.locale-sub-projects th,509 table.locale-sub-projects td {510 border: 0;511 border-bottom: 1px solid #72777c;512 border-right: 1px solid #72777c;513 }514 515 table.locales,516 table.glossary,517 table.locale-sub-projects,518 table.translation-sets,519 table.translations {520 border-left: 1px solid #72777c;521 }522 523 table.translations tr:nth-child(4n+3),524 table.glossary tr:nth-child(4n+3),525 table.locale-sub-projects tr:nth-child(even),526 .translation-sets tr,527 .locales tr {528 background-color: #f6f7f7;529 }530 531 .glossary tr.view:hover,532 .translations tr.preview:hover,533 .translation-sets tr:nth-child(odd):hover,534 .locales tr:nth-child(odd):hover,535 .translation-sets tr:hover,536 .locales tr:hover,537 .locale-sub-projects tr:hover td {538 background-color: #e5f5fa;539 }540 541 #legend .box {542 border-color: #72777c;543 box-sizing: border-box;544 }545 546 table.translations tr.preview.status-current,547 #legend .status-current {548 background-color: #b5e1b9;549 }550 551 table.translations tr.preview.status-waiting,552 #legend .status-waiting {553 background-color: #ffe399;554 }555 556 table.translations tr.preview.status-fuzzy,557 #legend .status-fuzzy {558 background-color: #f6a983;559 }560 561 table.translations tr.preview.has-warnings td.original,562 div#legend div.has-warnings {563 border-left: 3px solid #dc3232;564 }565 566 table.translations tr.preview.status-rejected,567 #legend .status-rejected {568 background-color: #eb9090;569 }570 571 table.translations tr.preview.status-old,572 #legend .status-old {573 background-color: #cdc5e1;574 }575 576 .glossary tr.active,577 table.translations tr.editor {578 background-color: #fbfbfb;579 }580 581 .gp-content .meta {582 color: #32373c;583 }584 585 .gp-content .meta a {586 color: #0073aa;587 border-bottom: 0;588 }589 590 .gp-content .meta a:hover {591 color: #00a0d2;592 border-bottom: 0;593 570 } 594 571 … … 596 573 dt a.edit { 597 574 background: none; 575 color: inherit; 598 576 } 599 577 … … 609 587 610 588 table.glossary .editor .strings dd { 611 margin-bottom: 10px; 612 } 613 614 table.glossary .editor .strings p { 615 display: flex; 616 align-items: center; 617 font-size: 14px; 618 margin-top: 20px; 619 } 620 621 table.glossary .editor .strings p button { 622 font-size: 14px; 623 height: 26px; 624 } 625 626 table.glossary .editor .strings p button + .or-cancel { 627 font-size: 14px; 628 margin-left: .4em; 589 margin: 0 0 10px; 590 } 591 592 table.glossary .editor .strings input[type="text"] { 593 width: 100%; 629 594 } 630 595 … … 657 622 } 658 623 624 table.glossary .editor .meta dd { 625 font-weight: 400; 626 } 627 659 628 table.glossary .editor .meta dl:first-child { 660 629 margin-top: 0; … … 665 634 height: 80px; 666 635 resize: vertical; 667 box-sizing: border-box;668 636 } 669 637 … … 727 695 } 728 696 729 #gp-footer {730 clear: both;731 font-family: 'Open Sans' !important;732 background: none;733 color: #a0a5aa;734 }735 736 #gp-footer a {737 color: #0073aa;738 }739 740 697 /* custom markup */ 741 698 #headline .menu-link { … … 751 708 } 752 709 753 .gp-content ul {754 padding-left: 20px;755 } 756 757 .gp-content #submit {710 /*.gp-content ul { 711 padding-left: 0; 712 }*/ 713 714 /*.gp-content #submit { 758 715 font-size: 1em; 759 716 margin: 0.4em 0.1em 0 0; 760 } 717 }*/ 761 718 762 719 .notice { … … 771 728 772 729 .notice p { 773 font-size: 1 4px;730 font-size: 15px; 774 731 } 775 732 … … 782 739 783 740 .filter-header { 784 font-family: 'Open Sans' !important;785 741 display: inline-block; 786 742 position: relative; 787 box-sizing: border-box;788 743 margin: 30px 0; 789 744 padding: 0 20px; … … 793 748 background: #efefef; 794 749 color: #555; 795 font-size: 13px;796 750 } 797 751 … … 815 769 color: #666; 816 770 cursor: pointer; 771 text-decoration: none !important; 772 } 773 774 .filter-header-links li:hover > a, 775 .filter-header-links li:hover > span { 776 border-bottom-color: #666; 817 777 } 818 778 … … 845 805 border-top: 0; 846 806 z-index: 1; 807 margin: 0; 847 808 } 848 809 … … 938 899 box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); 939 900 background: #fff; 940 box-sizing: border-box; 901 } 902 903 .locale a { 904 text-decoration: none; 905 } 906 907 .locale .contributors a, 908 .locale-box .contributors a { 909 text-decoration: none !important 941 910 } 942 911 943 912 .locale.percent-100 { 944 913 border-color: #509040; 945 }946 947 a.contribute-button {948 color: #555;949 }950 951 a.contribute-button:hover {952 color: #333;953 }954 955 @media screen and (min-width: 783px) {956 a.contribute-button {957 font-size: 14px;958 padding: 0 14px;959 height: 28px;960 line-height: 28px;961 }962 914 } 963 915 … … 979 931 } 980 932 933 .locale .name .english { 934 font-size: 18px; 935 } 936 981 937 .locale .name li, 982 938 .locale-box .name li { … … 986 942 .locale .name li.english a, 987 943 .locale-box .name li.english { 988 font-weight: bold;944 font-weight: 600; 989 945 } 990 946 … … 1064 1020 box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); 1065 1021 background: #fff; 1066 box-sizing: border-box;1067 1022 } 1068 1023 … … 1078 1033 box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); 1079 1034 background: #fff; 1080 box-sizing: border-box;1081 1035 } 1082 1036 … … 1110 1064 1111 1065 .projects .project-description { 1112 font-size: 13px;1113 1066 border-left: 0; 1114 1067 margin-top: 0; … … 1173 1126 margin: 20px 0; 1174 1127 text-align: center; 1175 box-sizing: border-box;1176 1128 } 1177 1129 … … 1235 1187 box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); 1236 1188 background: #fff; 1237 box-sizing: border-box;1189 font-size: 14px; 1238 1190 } 1239 1191 … … 1343 1295 .projects-dropdown a:focus { 1344 1296 color: #333; 1297 text-decoration: none; 1345 1298 } 1346 1299 … … 1353 1306 position: absolute; 1354 1307 left: -1px; 1355 width: 100%; 1308 right: -1px; 1309 width: inherit; 1356 1310 background: #f9f9f9; 1357 1311 border: 1px solid #72777c; … … 1381 1335 position: absolute; 1382 1336 top: 5px; 1383 right: 15px;1337 right: 25px; 1384 1338 content: "\f140"; 1385 1339 width: 20px; 1386 height: 20px;1340 height: 30px; 1387 1341 font: 20px/1 "dashicons"; 1388 1342 border-left: 1px solid #72777c; … … 1433 1387 border-left: none; 1434 1388 border-right: none; 1389 width: 100% !important; 1435 1390 } 1436 1391 … … 1776 1731 list-style: none; 1777 1732 z-index: 5; 1733 margin: 0; 1734 font-size: 12px; 1778 1735 } 1779 1736 … … 1781 1738 position: relative; 1782 1739 display: inline-block; 1783 padding-left: 23px;1740 padding-left: 16px; 1784 1741 margin-right: 3px; 1785 1742 cursor: pointer; … … 1789 1746 content: ''; 1790 1747 position: absolute; 1791 top: 2px;1748 top: 4px; 1792 1749 left: 0; 1793 1750 width: 12px; … … 1834 1791 border: 1px solid #ccc; 1835 1792 background: #fff; 1836 box-sizing: border-box;1837 1793 page-break-inside: avoid; 1838 1794 break-inside: avoid; … … 1843 1799 display: block; 1844 1800 padding: 5px 8px; 1845 margin -bottom:10px;1801 margin: 0 0 10px; 1846 1802 background: #f9f9f9; 1847 1803 border-bottom: 1px solid #ccc; … … 1961 1917 } 1962 1918 1963 .locale-project-contributors-group.locale-project-contributors-contributors .avatar {1964 float: left;1965 vertical-align: middle;1966 margin-right: 10px;1967 margin-top: -0.5em;1968 }1969 1970 1919 .locale-project-contributors-group.locale-project-contributors-editors .avatar { 1971 1920 vertical-align: middle; … … 1991 1940 } 1992 1941 1942 .locale-project-contributors-table .contributor-details { 1943 width: 40%; 1944 overflow: hidden; 1945 } 1946 1947 .locale-project-contributors-table .contributor-avatar { 1948 float: left; 1949 width: 40px; 1950 display: flex; 1951 flex-direction: column; 1952 } 1953 1993 1954 .locale-project-contributors-table .contributor-name { 1994 width: 40%; 1995 position: relative; 1955 margin-left: 50px; 1956 display: flex; 1957 flex-direction: column; 1996 1958 } 1997 1959 1998 1960 .locale-project-contributors-table .translation-editor { 1999 position: absolute;2000 top: 37px;2001 left: 10px;2002 1961 width: 40px; 2003 1962 color: #fff; 2004 1963 font-weight: 200; 1964 font-size: 12px; 2005 1965 line-height: 16px; 2006 1966 text-align: center; 2007 1967 background-color: #826eb4; 2008 }2009 2010 .locale-project-contributors-table .contributor-name span {2011 float: left;2012 font-size: 12px;2013 display: block;2014 margin-top: 13px;2015 }2016 2017 .locale-project-contributors-table .contributor-name a {2018 display: inline-block;2019 margin-top: 0.5em;2020 1968 } 2021 1969 … … 2102 2050 } 2103 2051 2104 .locale-project-contributors-table .contributor- name,2052 .locale-project-contributors-table .contributor-details, 2105 2053 .locale-project-contributors-table .contributor-stats { 2106 2054 width: 100%; … … 2108 2056 } 2109 2057 2110 .locale-project-contributors-table .contributor- namespan {2058 .locale-project-contributors-table .contributor-details span { 2111 2059 float: none; 2112 2060 } … … 2135 2083 .consistency-form-locale, 2136 2084 .consistency-form-project { 2137 height: 30px;2138 padding: 3px;2139 box-sizing: border-box;2140 font-size: 15px;2141 line-height: 1;2142 color: #333;2143 border: 0;2144 outline: 1px solid #ccc;2145 background-color: white;2146 outline-offset: 0;2147 margin: 0 3px;2148 2085 vertical-align: middle; 2149 }2150 2151 .consistency-form-search:focus,2152 .consistency-form-locale:focus,2153 .consistency-form-project:focus {2154 outline: 1px solid #5b9dd9;2155 box-shadow: 0 0 2px rgba(30,128,190,.8);2156 2086 } 2157 2087 … … 2166 2096 .consistency-form-project { 2167 2097 width: 120px; 2168 }2169 2170 .gp-content .consistency-form-submit {2171 background: #0085ba;2172 border-color: #0073aa #006799 #006799;2173 box-shadow: 0 1px 0 #006799;2174 color: #fff;2175 height: 30px;2176 line-height: 1;2177 padding: 0 16px;2178 vertical-align: top;2179 box-sizing: border-box;2180 cursor: pointer;2181 display: inline-block;2182 font-size: 15px;2183 }2184 2185 .gp-content .consistency-form-submit:hover,2186 .gp-content .consistency-form-submit:focus {2187 background: #008ec2;2188 border-color: #006799;2189 box-shadow: 0 1px 0 #006799;2190 color: #fff;2191 }2192 2193 .gp-content .consistency-form-submit:focus {2194 box-shadow: 0 1px 0 #0073aa, 0 0 2px 1px #33b3db;2195 }2196 2197 .consistency-form-submit:active {2198 background: #0073aa;2199 border-color: #006799;2200 box-shadow: inset 0 2px 0 #006799;2201 2098 } 2202 2099 … … 2217 2114 table-layout: fixed; 2218 2115 margin: 30px 0; 2219 } 2220 2221 .consistency-table th { 2116 border: 0; 2117 } 2118 2119 .consistency-table thead th { 2222 2120 width: 50%; 2223 font-weight: bold;2224 2121 text-align: center; 2225 padding: 10px 0;2226 }2227 2228 .consistency-table tr {2229 border-bottom: 1px solid #72777c;2230 }2231 2232 .consistency-table tr.new-translation {2233 border-bottom-width: 0;2234 2122 } 2235 2123 2236 2124 .consistency-table td { 2237 padding: 10px 7.5px;2238 2125 vertical-align: top; 2239 2126 } … … 2244 2131 top: 0; 2245 2132 padding: 10px 7.5px; 2246 background: #fff; 2247 text-align: left; 2248 box-shadow: 0 -1px 0 #72777c, 0 3px 0 #72777c; 2133 background-color: var(--gp-color-canvas-subtle); 2134 border-top-width: 3px; 2135 } 2136 2137 .consistency-table tbody > tr.new-translation:first-child th { 2138 border-top-width: 0; 2249 2139 } 2250 2140 … … 2282 2172 2283 2173 .consistency-table .project-wordpress { 2284 b ox-shadow: -5px 0 0 #fff, -10px 0 0 #0073aa;2174 background: #E5F5FA !important; 2285 2175 } 2286 2176 … … 2295 2185 } 2296 2186 2297 .gp-content button, 2298 .gp-content input.button { 2299 background: #f7f7f7; 2300 border: 1px solid #ccc; 2301 box-shadow: 0 1px 0 #ccc; 2302 color: #555; 2303 vertical-align: top; 2304 border-radius: 3px; 2305 box-sizing: border-box; 2306 cursor: pointer; 2307 display: inline-block; 2308 font-size: 12px; 2309 height: 22px; 2310 line-height: 1; 2311 margin: 0 1px; 2312 padding: 0 10px; 2313 text-decoration: none; 2314 white-space: nowrap; 2315 -webkit-appearance: none; 2316 } 2317 2318 .gp-content button:hover, 2319 .gp-content button:focus, 2320 .gp-content input.button:hover, 2321 .gp-content input.button:focus { 2322 background: #fafafa; 2323 border-color: #999; 2324 color: #23282d; 2325 } 2326 2327 .gp-content button:focus, 2328 .gp-content input.button:focus { 2329 border-color: #5b9dd9; 2330 box-shadow: 0 0 3px rgba(0, 115, 170, 0.8); 2331 outline: 0; 2332 } 2333 2334 .gp-content .bulk-actions { 2335 margin-bottom: 1rem; 2336 } 2337 2338 .gp-content .bulk-actions select, 2339 .gp-content .bulk-actions input.button { 2340 vertical-align: middle; 2341 } 2342 2343 .gp-content .bulk-actions input.button { 2344 height: auto; 2345 padding: 10px; 2346 font-size: 14px; 2347 } 2348 2349 #legend { 2350 clear: both; 2351 float: left; 2352 padding: 0; 2353 margin: 1em 0; 2354 } 2355 2356 #legend + .actionlist { 2357 margin: 0; 2358 } 2359 2360 .paging a, 2361 .paging span, 2362 .paging .current, 2363 .paging .dots { 2364 width: auto; 2365 min-width: 2em; 2366 padding: .1em; 2187 .paging a { 2188 text-decoration: none !important; 2367 2189 } 2368 2190 … … 2378 2200 } 2379 2201 2380 table.translations { 2381 table-layout: fixed; 2382 } 2383 2384 table.translations th.checkbox { 2385 width: 16px; 2386 text-align: center; 2387 } 2388 @media screen and (max-width: 782px) { 2389 table.translations th.checkbox { 2390 width: 24px; 2391 } 2392 } 2393 2394 table.translations th.priority, 2202 table.translations th.gp-column-priority, 2395 2203 table.translations td.priority { 2396 2204 display: none; 2397 2205 } 2398 2206 2399 table.translations th.original, 2400 table.translations th.translation { 2207 table.translations tr.preview > td.priority + td.original { 2208 border-left: none; 2209 } 2210 2211 table.translations th.gp-column-original, 2212 table.translations th.gp-column-translation { 2401 2213 width: 50%; 2402 2214 } 2403 2215 2404 table.translations th. actions {2216 table.translations th.gp-column-actions { 2405 2217 width: 5em; 2406 2218 text-align: center; … … 2422 2234 width: 100%; 2423 2235 border: 0; 2424 background: #fff ;2425 color: #1e1e1e ;2236 background: #fff !important; 2237 color: #1e1e1e !important; 2426 2238 outline: none; 2427 2239 padding: 15px 0; … … 2443 2255 font-weight: normal; 2444 2256 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 2445 font-size: 15px;2446 2257 } 2447 2258 … … 2452 2263 .editor-panel .meta dt { 2453 2264 margin-right: .25em; 2265 } 2266 2267 .editor-panel .meta dd { 2268 font-weight: 400; 2454 2269 } 2455 2270 … … 2465 2280 } 2466 2281 2467 .editor-panel .meta .status-actions button { 2468 font-size: 14px; 2469 height: 26px; 2470 } 2471 2472 button.approve strong { 2282 .editor-panel .meta .status-actions button strong { 2283 margin-right: .4em; 2284 } 2285 2286 /*button.approve strong { 2473 2287 color: #46b450; 2474 } 2288 }*/ 2475 2289 2476 2290 button.reject strong { … … 2502 2316 align-items: flex-start; 2503 2317 } 2504 }2505 2506 .editor-panel * {2507 box-sizing: border-box;2508 2318 } 2509 2319 … … 2643 2453 box-shadow: none; 2644 2454 border-radius: 0; 2455 display: inline-flex; 2456 align-items: center; 2457 justify-content: center; 2645 2458 } 2646 2459 … … 2787 2600 list-style: none; 2788 2601 flex: 1; 2789 margin -left:10px;2602 margin: 0 0 0 10px; 2790 2603 } 2791 2604 … … 2827 2640 padding: 7px 0; 2828 2641 flex-direction: row-reverse; 2642 align-items: flex-end; 2829 2643 } 2830 2644 … … 2837 2651 } 2838 2652 2839 .translation-actions__secondary button { 2653 button.translation-actions__save { 2654 padding: 10px 18px !important; 2655 font-size: 16px !important; 2656 min-height: 45px !important 2657 } 2658 2659 /*.translation-actions__secondary button { 2840 2660 height: 35px; 2841 2661 } … … 2864 2684 box-shadow: 0 1px 0 #0073aa, 0 0 2px 1px #33b3db; 2865 2685 color: #fff; 2866 } 2686 }*/ 2867 2687 2868 2688 .suggestions-wrapper { … … 3021 2841 border: 1px solid #ccc; 3022 2842 box-shadow: 0 2px 10px rgba(0,0,0,.1); 3023 box-sizing: border-box;3024 2843 margin: 0; 3025 2844 overflow: auto; … … 3065 2884 font-weight: 300; 3066 2885 font-size: 22px; 2886 margin: 0; 3067 2887 } 3068 2888 … … 3153 2973 .textarea-direction-ltr button.translation-actions__rtl, 3154 2974 .translation-sets-rtl button.translation-actions__ltr { 3155 display: inline- block;2975 display: inline-flex !important; 3156 2976 } 3157 2977 … … 3159 2979 button.translation-actions__ltr, 3160 2980 button.translation-actions__rtl { 3161 display: none ;2981 display: none !important; 3162 2982 } 3163 2983 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-editor.php
r11316 r11732 184 184 <?php if ( $can_edit ) : ?> 185 185 <div class="translation-actions__primary"> 186 <button class=" translation-actions__save with-tooltip"186 <button class="button is-primary translation-actions__save with-tooltip" 187 187 type="button" 188 188 aria-label="<?php echo $can_approve_translation ? 'Save and approve translation' : 'Suggest new translation'; ?>" … … 192 192 </div> 193 193 <div class="translation-actions__secondary"> 194 <button type="button" class=" translation-actions__copy with-tooltip" aria-label="Copy original">194 <button type="button" class="button is-small translation-actions__copy with-tooltip" aria-label="Copy original"> 195 195 <span class="screen-reader-text">Copy</span><span aria-hidden="true" class="dashicons dashicons-admin-page"></span> 196 196 </button> 197 <button type="button" class="translation-actions__ltr with-tooltip" aria-label="Switch to LTR"> 197 <button type="button" class="button is-small translation-actions__insert-tab with-tooltip" aria-label="Insert tab"> 198 <span class="screen-reader-text">Insert tab</span><span aria-hidden="true" class="dashicons dashicons-editor-indent"></span> 199 </button> 200 <button type="button" class="button is-small translation-actions__insert-newline with-tooltip" aria-label="Insert newline"> 201 <span class="screen-reader-text">Insert newline</span><span aria-hidden="true" class="dashicons dashicons-editor-break"></span> 202 </button> 203 <button type="button" class="button is-small translation-actions__ltr with-tooltip" aria-label="Switch to LTR"> 198 204 <span class="screen-reader-text">LTR</span><span aria-hidden="true" class="dashicons dashicons-editor-ltr"></span> 199 205 </button> 200 <button type="button" class=" translation-actions__rtl with-tooltip" aria-label="Switch to RTL">206 <button type="button" class="button is-small translation-actions__rtl with-tooltip" aria-label="Switch to RTL"> 201 207 <span class="screen-reader-text">RTL</span><span aria-hidden="true" class="dashicons dashicons-editor-rtl"></span> 202 208 </button> 203 <button type="button" class=" translation-actions__help with-tooltip" aria-label="Show help">209 <button type="button" class="button is-small translation-actions__help with-tooltip" aria-label="Show help"> 204 210 <span class="screen-reader-text">Help</span><span aria-hidden="true" class="dashicons dashicons-editor-help"></span> 205 211 </button> … … 243 249 <?php if ( $can_approve_translation ) : ?> 244 250 <?php if ( 'current' !== $translation->translation_status ) : ?> 245 <button class=" approve" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-current_' . $translation->id ) ); ?>"><strong>+</strong> <?php _e( 'Approve', 'glotpress' ); ?></button>251 <button class="button is-primary approve" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-current_' . $translation->id ) ); ?>"><strong>+</strong> <?php _e( 'Approve', 'glotpress' ); ?></button> 246 252 <?php endif; ?> 247 253 <?php if ( 'rejected' !== $translation->translation_status ) : ?> 248 <button class=" reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>−</strong> <?php _e( 'Reject', 'glotpress' ); ?></button>254 <button class="button reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>−</strong> <?php _e( 'Reject', 'glotpress' ); ?></button> 249 255 <?php endif; ?> 250 256 <?php if ( 'fuzzy' !== $translation->translation_status ) : ?> 251 <button class=" fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button>257 <button class="button fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button> 252 258 <?php endif; ?> 253 259 <?php elseif ( $can_reject_self ): ?> 254 <button class=" reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>−</strong> <?php _e( 'Reject Suggestion', 'glotpress' ); ?></button>255 <button class=" fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button>260 <button class="button reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>−</strong> <?php _e( 'Reject Suggestion', 'glotpress' ); ?></button> 261 <button class="button fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button> 256 262 <?php endif; ?> 257 263 </div> -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.php
r11051 r11732 43 43 ?> 44 44 45 <div class="original-tags"> 45 46 <?php 47 $show_context = wporg_gp_should_display_original_context( $translation ); 48 $show_priority = '1' === $translation->priority || '-1' === $translation->priority; 49 if ( $show_context || $show_priority ) : 50 ?> 51 <div class="original-tags"> 52 <?php 53 if ( $show_context ) : 54 ?> 55 <span class="context bubble"><?php echo esc_html( $translation->context ); ?></span> 56 <?php 57 endif; 58 59 if ( $show_priority ) : 60 ?> 61 <span class="priority bubble"><?php echo esc_html( sprintf( 'Priority: %s', gp_array_get( GP::$original->get_static( 'priorities' ), $translation->priority ) ) ); ?></span> 62 <?php 63 endif; 64 ?> 65 </div> 46 66 <?php 47 if ( wporg_gp_should_display_original_context( $translation ) ) : 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> 67 endif; 68 ?> 60 69 </td> 61 70 <td class="translation foreign-text"> -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/css/translation-suggestions.css
r9557 r11732 2 2 list-style: none; 3 3 padding: 0; 4 margin: 0; 4 5 } 5 6 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/inc/class-plugin.php
r11093 r11732 113 113 plugins_url( 'css/translation-suggestions.css', PLUGIN_FILE ), 114 114 [], 115 '202 00301'115 '20220401' 116 116 ); 117 117 gp_enqueue_style( 'gp-translation-suggestions' ); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/templates/other-languages-suggestions.php
r10639 r11732 37 37 echo '<span aria-hidden="true" class="translation-suggestion__translation-raw">' . esc_translation( $suggestion['translation'] ) . '</span>'; 38 38 39 echo '<button type="button" class=" copy-suggestion">Copy</button>';39 echo '<button type="button" class="button is-small copy-suggestion">Copy</button>'; 40 40 echo '</div>'; 41 41 echo '</li>'; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/templates/translation-memory-suggestions.php
r8732 r11732 20 20 echo '<span aria-hidden="true" class="translation-suggestion__translation-raw">' . esc_translation( $suggestion['translation'] ) . '</span>'; 21 21 22 echo '<button type="button" class=" copy-suggestion">Copy</button>';22 echo '<button type="button" class="button is-small copy-suggestion">Copy</button>'; 23 23 echo '</div>'; 24 24 echo '</li>';
Note: See TracChangeset
for help on using the changeset viewer.