Changeset 3345
- Timestamp:
- 06/14/2016 06:58:07 AM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 2 added
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
r3335 r3345 42 42 <?php endif; ?> 43 43 44 <form id="upload_form" enctype="multipart/form-data" method="POST" action="">44 <form id="upload_form" class="plugin-upload-form" enctype="multipart/form-data" method="POST" action=""> 45 45 <?php wp_nonce_field( 'wporg-plugins-upload' ); ?> 46 46 <input type="hidden" name="action" value="upload"/> 47 47 <fieldset> 48 <legend><?php _e( ' Plugin Categories (up to 3)', 'wporg-plugins' ); ?></legend>49 <ul class="category-checklist form-no-clear">48 <legend><?php _e( 'Select categories (up to 3)', 'wporg-plugins' ); ?></legend> 49 <ul class="category-checklist"> 50 50 <?php wp_terms_checklist( 0, array( 'taxonomy' => 'plugin_category' ) ); ?> 51 51 </ul> 52 52 </fieldset> 53 <input type="file" id="zip_file" name="zip_file" size="25"/> 54 <input id="upload_button" class="button" type="submit" value="<?php esc_attr_e( 'Upload', 'wporg-plugins' ); ?>"/> 53 54 <input type="file" id="zip_file" class="plugin-file" name="zip_file" size="25" accept=".zip"/> 55 <label class="button button-secondary" for="zip_file"><?php _e( 'Select File', 'wporg-plugins' ); ?></label> 56 57 <input id="upload_button" class="button button-primary" type="submit" value="<?php esc_attr_e( 'Upload', 'wporg-plugins' ); ?>"/> 55 58 56 59 <p> … … 58 61 </p> 59 62 </form> 63 <script> 64 ( function ( $ ) { 65 var $label = $( 'label.button' ), 66 labelText = $label.text(); 67 68 $( '#zip_file' ) 69 .on( 'change', function( event ) { 70 var fileName = event.target.value.split( '\\' ).pop(); 71 72 fileName ? $label.text( fileName ) : $label.text( labelText ); 73 } ) 74 .on( 'focus', function() { $label.addClass( 'focus' ); } ) 75 .on( 'blur', function() { $label.removeClass( 'focus' ); } ); 76 } ( window.jQuery ) ); 77 </script> 60 78 61 79 <?php else : ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css
r3337 r3345 239 239 } 240 240 241 h1, h2, h3, .plugin-section .section-title, .site-main .page-title, .single .type-plugin .plugin-header .plugin-title, h4, h5, h6 {241 h1, h2, h3, .plugin-section .section-title, .site-main .page-title, .single .type-plugin .plugin-header .plugin-title, .page h1, h4, h5, .page h2, h6 { 242 242 clear: both; 243 243 line-height: 1.5; … … 266 266 } 267 267 268 h3, .plugin-section .section-title, .site-main .page-title, .single .type-plugin .plugin-header .plugin-title {268 h3, .plugin-section .section-title, .site-main .page-title, .single .type-plugin .plugin-header .plugin-title, .page h1 { 269 269 font-size: 25px; 270 270 font-size: 1.5625rem; … … 281 281 } 282 282 283 h5 {283 h5, .page h2 { 284 284 font-size: 16px; 285 285 font-size: 1rem; … … 397 397 background-color: #eee; 398 398 border: 0; 399 height: 1px;400 margin -bottom: 1.5em;399 height: 2px; 400 margin: 5rem auto; 401 401 } 402 402 … … 500 500 1.0 - Button Layouts 501 501 ---------------------------------------------------------------------------- */ 502 .button, 502 .button, .plugin-upload-form .button-primary, 503 503 .button-primary, 504 .plugin-upload-form .button-primary, 504 505 .button-secondary { 505 506 -webkit-appearance: none; … … 527 528 } 528 529 529 .button.button-large, 530 .button-group.button-large .button { 530 .button.button-large, .plugin-upload-form .button-large.button-primary, 531 .button-group.button-large .button, 532 .button-group.button-large .plugin-upload-form .button-primary, .plugin-upload-form 533 .button-group.button-large .button-primary { 531 534 height: 1.953125rem; 532 535 line-height: 1; … … 534 537 } 535 538 536 .button.button-small, 537 .button-group.button-small .button { 539 .button.button-small, .plugin-upload-form .button-small.button-primary, 540 .button-group.button-small .button, 541 .button-group.button-small .plugin-upload-form .button-primary, .plugin-upload-form 542 .button-group.button-small .button-primary { 538 543 font-size: 10.24px; 539 544 font-size: 0.64rem; … … 543 548 } 544 549 545 a.button, .single .type-plugin .entry-content .button.section-toggle, 550 a.button, .single .type-plugin .entry-content .button.section-toggle, .single .type-plugin .entry-content .plugin-upload-form .section-toggle.button-primary, .plugin-upload-form .single .type-plugin .entry-content .section-toggle.button-primary, .plugin-upload-form a.button-primary, 546 551 a.button-primary, 547 552 .single .type-plugin .entry-content .button-primary.section-toggle, 553 .plugin-upload-form a.button-primary, 548 554 a.button-secondary, 549 555 .single .type-plugin .entry-content .button-secondary.section-toggle { … … 551 557 } 552 558 553 a.button.button-large, .single .type-plugin .entry-content .button.button-large.section-toggle, 559 a.button.button-large, .single .type-plugin .entry-content .button.button-large.section-toggle, .single .type-plugin .entry-content .plugin-upload-form .button-large.section-toggle.button-primary, .plugin-upload-form .single .type-plugin .entry-content .button-large.section-toggle.button-primary, .plugin-upload-form a.button-large.button-primary, 554 560 .button-group.button-large a.button, 555 561 .button-group.button-large .single .type-plugin .entry-content .button.section-toggle, .single .type-plugin .entry-content 556 .button-group.button-large .button.section-toggle { 562 .button-group.button-large .button.section-toggle, 563 .button-group.button-large .single .type-plugin .entry-content .plugin-upload-form .section-toggle.button-primary, .single .type-plugin .entry-content .plugin-upload-form 564 .button-group.button-large .section-toggle.button-primary, 565 .button-group.button-large .plugin-upload-form .single .type-plugin .entry-content .section-toggle.button-primary, .plugin-upload-form .single .type-plugin .entry-content 566 .button-group.button-large .section-toggle.button-primary, 567 .button-group.button-large .plugin-upload-form a.button-primary, .plugin-upload-form 568 .button-group.button-large a.button-primary { 557 569 line-height: 1.953125rem; 558 570 } 559 571 560 a.button.button-small, .single .type-plugin .entry-content .button.button-small.section-toggle, 572 a.button.button-small, .single .type-plugin .entry-content .button.button-small.section-toggle, .single .type-plugin .entry-content .plugin-upload-form .button-small.section-toggle.button-primary, .plugin-upload-form .single .type-plugin .entry-content .button-small.section-toggle.button-primary, .plugin-upload-form a.button-small.button-primary, 561 573 .button-group.button-small a.button, 562 574 .button-group.button-small .single .type-plugin .entry-content .button.section-toggle, .single .type-plugin .entry-content 563 .button-group.button-small .button.section-toggle { 575 .button-group.button-small .button.section-toggle, 576 .button-group.button-small .single .type-plugin .entry-content .plugin-upload-form .section-toggle.button-primary, .single .type-plugin .entry-content .plugin-upload-form 577 .button-group.button-small .section-toggle.button-primary, 578 .button-group.button-small .plugin-upload-form .single .type-plugin .entry-content .section-toggle.button-primary, .plugin-upload-form .single .type-plugin .entry-content 579 .button-group.button-small .section-toggle.button-primary, 580 .button-group.button-small .plugin-upload-form a.button-primary, .plugin-upload-form 581 .button-group.button-small a.button-primary { 564 582 line-height: 1.25rem; 565 583 } 566 584 567 .button:active, 568 .button:focus { 585 .button:active, .plugin-upload-form .button-primary:active, 586 .button:focus, 587 .plugin-upload-form .button-primary:focus { 569 588 outline: none; 570 589 } 571 590 572 .button.hidden {591 .button.hidden, .plugin-upload-form .hidden.button-primary { 573 592 display: none; 574 593 } … … 589 608 2.0 - Default Button Style 590 609 ---------------------------------------------------------------------------- */ 591 .button, 610 .button, .plugin-upload-form .button-primary, 592 611 .button:visited, 612 .plugin-upload-form .button-primary:visited, 593 613 .button-secondary { 594 614 background: #f7f7f7; … … 599 619 } 600 620 601 p .button {621 p .button, p .plugin-upload-form .button-primary, .plugin-upload-form p .button-primary { 602 622 vertical-align: baseline; 603 623 } 604 624 605 .button.hover, 625 .button.hover, .plugin-upload-form .hover.button-primary, 606 626 .button:hover, 627 .plugin-upload-form .button-primary:hover, 607 628 .button-secondary:hover, 608 629 .button.focus, 630 .plugin-upload-form .focus.button-primary, 609 631 .button:focus, 632 .plugin-upload-form .button-primary:focus, 610 633 .button-secondary:focus { 611 634 background: #fafafa; … … 614 637 } 615 638 616 .button.focus, 639 .button.focus, .plugin-upload-form .focus.button-primary, 617 640 .button:focus, 641 .plugin-upload-form .button-primary:focus, 618 642 .button-secondary:focus, 619 643 .button-link:focus { … … 622 646 } 623 647 624 .button.active, 648 .button.active, .plugin-upload-form .active.button-primary, 625 649 .button.active:hover, 650 .plugin-upload-form .active.button-primary:hover, 626 651 .button:active, 652 .plugin-upload-form .button-primary:active, 627 653 .button-secondary:active { 628 654 background: #eee; … … 632 658 } 633 659 634 .button.active:focus {660 .button.active:focus, .plugin-upload-form .active.button-primary:focus { 635 661 border-color: #5b9dd9; 636 662 box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 3px rgba(0, 115, 170, 0.8); 637 663 } 638 664 639 .button[disabled], 665 .button[disabled], .plugin-upload-form [disabled].button-primary, 640 666 .button:disabled, 667 .plugin-upload-form .button-primary:disabled, 641 668 .button.disabled, 669 .plugin-upload-form .disabled.button-primary, 642 670 .button-secondary[disabled], 643 671 .button-secondary:disabled, … … 672 700 3.0 - Primary Button Style 673 701 ---------------------------------------------------------------------------- */ 674 .button-primary, 702 .button-primary, .plugin-upload-form .button-primary, 675 703 .download-button { 676 704 background: #0085ba; … … 682 710 } 683 711 684 .button-primary.hover, .button-primary:hover, . button-primary.focus,.button-primary:focus,712 .button-primary.hover, .button-primary:hover, .plugin-upload-form .button-primary:hover, .button-primary.focus, .button-primary:focus, .plugin-upload-form .button-primary:focus, 685 713 .download-button.hover, 686 714 .download-button:hover, … … 693 721 } 694 722 695 .button-primary.focus, .button-primary:focus, 723 .button-primary.focus, .button-primary:focus, .plugin-upload-form .button-primary:focus, 696 724 .download-button.focus, 697 725 .download-button:focus { … … 722 750 } 723 751 724 .button-primary.button.button-hero, 725 .download-button.button.button-hero { 752 .button-primary.button.button-hero, .plugin-upload-form .button-hero.button-primary, 753 .download-button.button.button-hero, 754 .plugin-upload-form .download-button.button-hero.button-primary { 726 755 box-shadow: 0 2px 0 #006799; 727 756 } 728 757 729 .button-primary.button.button-hero.active, . button-primary.button.button-hero.active:hover, .button-primary.button.button-hero.active:focus, .button-primary.button.button-hero:active,758 .button-primary.button.button-hero.active, .plugin-upload-form .button-hero.active.button-primary, .button-primary.button.button-hero.active:hover, .plugin-upload-form .button-hero.active.button-primary:hover, .button-primary.button.button-hero.active:focus, .plugin-upload-form .button-hero.active.button-primary:focus, .button-primary.button.button-hero:active, .plugin-upload-form .button-hero.button-primary:active, 730 759 .download-button.button.button-hero.active, 760 .plugin-upload-form .download-button.button-hero.active.button-primary, 731 761 .download-button.button.button-hero.active:hover, 762 .plugin-upload-form .download-button.button-hero.active.button-primary:hover, 732 763 .download-button.button.button-hero.active:focus, 733 .download-button.button.button-hero:active { 764 .plugin-upload-form .download-button.button-hero.active.button-primary:focus, 765 .download-button.button.button-hero:active, 766 .plugin-upload-form .download-button.button-hero.button-primary:active { 734 767 box-shadow: inset 0 3px 0 #006799; 735 768 } … … 755 788 } 756 789 757 .button-group > .button {790 .button-group > .button, .plugin-upload-form .button-group > .button-primary { 758 791 display: inline-block; 759 792 border-radius: 0; … … 762 795 } 763 796 764 .button-group > .button-primary {797 .button-group > .button-primary, .plugin-upload-form .button-group > .button-primary { 765 798 z-index: 100; 766 799 } 767 800 768 .button-group > .button:hover {801 .button-group > .button:hover, .plugin-upload-form .button-group > .button-primary:hover { 769 802 z-index: 20; 770 803 } 771 804 772 .button-group > .button:first-child {805 .button-group > .button:first-child, .plugin-upload-form .button-group > .button-primary:first-child { 773 806 border-radius: 3px 0 0 3px; 774 807 } 775 808 776 .button-group > .button:last-child {809 .button-group > .button:last-child, .plugin-upload-form .button-group > .button-primary:last-child { 777 810 border-radius: 0 3px 3px 0; 778 811 } 779 812 780 .button-group > .button:focus {813 .button-group > .button:focus, .plugin-upload-form .button-group > .button-primary:focus { 781 814 position: relative; 782 815 z-index: 1; … … 787 820 ---------------------------------------------------------------------------- */ 788 821 @media screen and (max-width: 48em) { 789 .button, 822 .button, .plugin-upload-form .button-primary, 790 823 .button.button-large, 791 .button.button-small, 792 input#publish, 793 input#save-post, 794 a.preview, 795 .single .type-plugin .entry-content .preview.section-toggle { 824 .plugin-upload-form .button-large.button-primary, 825 .button.button-smallw, 826 .plugin-upload-form .button-smallw.button-primary { 796 827 font-size: 14px; 797 828 height: auto; … … 801 832 vertical-align: middle; 802 833 } 803 #media-upload .button { 804 font-size: 13px; 805 line-height: 22px; 806 padding: 0 10px 1px; 807 height: 24px; 808 } 809 .media-frame.mode-grid .bulk-select .button { 810 margin-bottom: 0; 811 } 812 /* Publish Metabox Options */ 813 .save-post-status.button { 814 margin: 0 14px 0 10px; 815 /* 14px right margin to match all other buttons */ 816 position: relative; 817 } 818 /* Reset responsive styles in Press This, Customizer */ 819 .wp-customizer .button { 820 font-size: 13px; 821 height: 28px; 822 line-height: 26px; 823 margin: 0; 824 padding: 0 10px 1px; 825 vertical-align: inherit; 826 } 827 /* Reset responsive styles on Log in button on iframed login form */ 828 .interim-login .button.button-large { 829 height: 30px; 830 line-height: 28px; 831 padding: 0 12px 2px; 832 } 834 } 835 836 /* Include margin and padding in the width calculation of input and textarea. */ 837 input, 838 textarea { 839 -webkit-box-sizing: border-box; 840 -moz-box-sizing: border-box; 841 box-sizing: border-box; 842 } 843 844 input[type="text"], 845 input[type="password"], 846 input[type="checkbox"], 847 input[type="color"], 848 input[type="date"], 849 input[type="datetime"], 850 input[type="datetime-local"], 851 input[type="email"], 852 input[type="month"], 853 input[type="number"], 854 input[type="password"], 855 input[type="search"], 856 input[type="radio"], 857 input[type="tel"], 858 input[type="text"], 859 input[type="time"], 860 input[type="url"], 861 input[type="week"], 862 select, 863 textarea { 864 -webkit-appearance: none; 865 border: 1px solid #ddd; 866 -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07); 867 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07); 868 background-color: #fff; 869 color: #32373c; 870 -webkit-transition: 0.05s border-color ease-in-out; 871 transition: 0.05s border-color ease-in-out; 872 } 873 874 input[type="text"]:focus, 875 input[type="password"]:focus, 876 input[type="checkbox"]:focus, 877 input[type="color"]:focus, 878 input[type="date"]:focus, 879 input[type="datetime"]:focus, 880 input[type="datetime-local"]:focus, 881 input[type="email"]:focus, 882 input[type="month"]:focus, 883 input[type="number"]:focus, 884 input[type="password"]:focus, 885 input[type="search"]:focus, 886 input[type="radio"]:focus, 887 input[type="tel"]:focus, 888 input[type="text"]:focus, 889 input[type="time"]:focus, 890 input[type="url"]:focus, 891 input[type="week"]:focus, 892 select:focus, 893 textarea:focus { 894 color: #111; 895 } 896 897 input[type="text"]:focus, 898 input[type="password"]:focus, 899 input[type="color"]:focus, 900 input[type="date"]:focus, 901 input[type="datetime"]:focus, 902 input[type="datetime-local"]:focus, 903 input[type="email"]:focus, 904 input[type="month"]:focus, 905 input[type="number"]:focus, 906 input[type="password"]:focus, 907 input[type="search"]:focus, 908 input[type="tel"]:focus, 909 input[type="text"]:focus, 910 input[type="time"]:focus, 911 input[type="url"]:focus, 912 input[type="week"]:focus, 913 input[type="checkbox"]:focus, 914 input[type="radio"]:focus, 915 select:focus, 916 textarea:focus { 917 border-color: #5b9dd9; 918 -webkit-box-shadow: 0 0 2px rgba(30, 140, 190, 0.8); 919 box-shadow: 0 0 2px rgba(30, 140, 190, 0.8); 920 } 921 922 /* rtl:ignore */ 923 input[type="email"], 924 input[type="url"] { 925 direction: ltr; 833 926 } 834 927 835 928 input[type="text"], 836 929 input[type="email"], 837 input[type=" url"],930 input[type="search"], 838 931 input[type="password"], 839 input[type="search"], 840 input[type="number"], 841 input[type="tel"], 842 input[type="range"], 843 input[type="date"], 844 input[type="month"], 845 input[type="week"], 846 input[type="time"], 847 input[type="datetime"], 848 input[type="datetime-local"], 849 input[type="color"], 932 input[type="number"] { 933 padding: 6px 10px; 934 } 935 936 /* Vertically align the number selector with the input. */ 937 input[type="number"] { 938 height: 40px; 939 line-height: inherit; 940 } 941 942 input[type="checkbox"], 943 input[type="radio"] { 944 border: 1px solid #b4b9be; 945 background: #fff; 946 color: #555; 947 clear: none; 948 cursor: pointer; 949 display: inline-block; 950 line-height: 0; 951 margin: -4px 4px 0 0; 952 padding: 0 !important; 953 text-align: center; 954 vertical-align: middle; 955 min-width: 16px; 956 -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); 957 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); 958 -webkit-transition: .05s border-color ease-in-out; 959 transition: .05s border-color ease-in-out; 960 height: 25px; 961 width: 25px; 962 } 963 964 input[type="checkbox"] { 965 padding: 10px; 966 } 967 968 input[type="radio"] { 969 -webkit-border-radius: 50%; 970 border-radius: 50%; 971 margin-right: 4px; 972 line-height: 10px; 973 } 974 975 input[type="checkbox"]:checked:before, 976 input[type="radio"]:checked:before { 977 float: left; 978 display: inline-block; 979 vertical-align: middle; 980 width: 16px; 981 font: normal 21px/1 dashicons; 982 speak: none; 983 -webkit-font-smoothing: antialiased; 984 -moz-osx-font-smoothing: grayscale; 985 } 986 987 input[type="checkbox"]:checked:before { 988 content: "\f147"; 989 color: #1e8cbe; 990 font: normal 30px/1 dashicons; 991 margin: -3px -5px; 992 } 993 994 input[type="radio"]:checked:before { 995 content: "\2022"; 996 text-indent: -9999px; 997 -webkit-border-radius: 50px; 998 border-radius: 50px; 999 font-size: 24px; 1000 width: 9px; 1001 height: 9px; 1002 margin: 7px; 1003 line-height: 16px; 1004 background-color: #1e8cbe; 1005 vertical-align: middle; 1006 } 1007 1008 @-moz-document url-prefix() { 1009 input[type="checkbox"], 1010 input[type="radio"], 1011 .form-table input.tog { 1012 margin-bottom: -1px; 1013 } 1014 } 1015 1016 /* Search */ 1017 input[type="search"] { 1018 -webkit-appearance: textfield; 1019 } 1020 1021 input[type="search"]::-webkit-search-decoration { 1022 display: none; 1023 } 1024 1025 .ie8 input[type="password"] { 1026 font-family: sans-serif; 1027 } 1028 1029 textarea, 1030 input, 1031 select, 1032 button { 1033 font-family: inherit; 1034 font-size: inherit; 1035 font-weight: inherit; 1036 } 1037 1038 textarea, 1039 input, 1040 select { 1041 font-size: 16px; 1042 padding: 3px 5px; 1043 -webkit-border-radius: 0; 1044 border-radius: 0; 1045 /* Reset mobile webkit's default element styling */ 1046 } 1047 850 1048 textarea { 851 color: #666; 852 border: 1px solid #ccc; 853 } 854 855 input[type="text"]:focus, 856 input[type="email"]:focus, 857 input[type="url"]:focus, 858 input[type="password"]:focus, 859 input[type="search"]:focus, 860 input[type="number"]:focus, 861 input[type="tel"]:focus, 862 input[type="range"]:focus, 863 input[type="date"]:focus, 864 input[type="month"]:focus, 865 input[type="week"]:focus, 866 input[type="time"]:focus, 867 input[type="datetime"]:focus, 868 input[type="datetime-local"]:focus, 869 input[type="color"]:focus, 870 textarea:focus { 871 color: #111; 872 } 873 874 select { 875 border: 1px solid #ccc; 876 } 877 878 input[type="text"], 879 input[type="email"], 880 input[type="url"], 881 input[type="password"], 882 input[type="search"], 883 input[type="number"], 884 input[type="tel"], 885 input[type="range"], 886 input[type="date"], 887 input[type="month"], 888 input[type="week"], 889 input[type="time"], 890 input[type="datetime"], 891 input[type="datetime-local"], 892 input[type="color"] { 893 -webkit-appearance: none; 894 padding: 3px; 895 } 896 897 textarea { 898 padding-left: 3px; 899 width: 100%; 1049 overflow: auto; 1050 padding: 2px 6px; 1051 line-height: 1.4; 1052 resize: vertical; 1053 } 1054 1055 input[type="file"] { 1056 padding: 3px 0; 1057 } 1058 1059 label { 1060 cursor: pointer; 1061 } 1062 1063 input.readonly, 1064 input[readonly], 1065 textarea.readonly, 1066 textarea[readonly] { 1067 background-color: #eee; 1068 } 1069 1070 :-moz-placeholder { 1071 color: #a9a9a9; 1072 } 1073 1074 input:disabled, 1075 input.disabled, 1076 select:disabled, 1077 select.disabled, 1078 textarea:disabled, 1079 textarea.disabled { 1080 background: rgba(255, 255, 255, 0.5); 1081 border-color: rgba(222, 222, 222, 0.75); 1082 -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04); 1083 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04); 1084 color: rgba(51, 51, 51, 0.5); 1085 } 1086 1087 input[type="file"]:disabled, 1088 input[type="file"].disabled, 1089 input[type="range"]:disabled, 1090 input[type="range"].disabled { 1091 background: none; 1092 -webkit-box-shadow: none; 1093 box-shadow: none; 1094 } 1095 1096 input[type="checkbox"]:disabled, 1097 input[type="checkbox"].disabled, 1098 input[type="radio"]:disabled, 1099 input[type="radio"].disabled, 1100 input[type="checkbox"]:disabled:checked:before, 1101 input[type="checkbox"].disabled:checked:before, 1102 input[type="radio"]:disabled:checked:before, 1103 input[type="radio"].disabled:checked:before { 1104 opacity: 0.7; 1105 } 1106 1107 label, 1108 fieldset label { 1109 vertical-align: middle; 1110 } 1111 1112 /* =Media Queries 1113 -------------------------------------------------------------- */ 1114 @media screen and (min-width: 48em) { 1115 /* Input Elements */ 1116 input[type="text"], 1117 input[type="email"], 1118 input[type="search"], 1119 input[type="password"], 1120 input[type="number"] { 1121 padding: 0; 1122 } 1123 input[type="number"] { 1124 height: 28px; 1125 } 1126 input[type="checkbox"] { 1127 padding: 0; 1128 } 1129 input[type="checkbox"]:checked:before { 1130 font: normal 21px/1 dashicons; 1131 margin: -3px 0 0 -4px; 1132 } 1133 input[type="radio"], 1134 input[type="checkbox"] { 1135 height: 16px; 1136 width: 16px; 1137 } 1138 input[type="radio"]:checked:before { 1139 width: 6px; 1140 height: 6px; 1141 margin: 4px; 1142 } 1143 textarea, 1144 input, 1145 select { 1146 font-size: 14px; 1147 } 900 1148 } 901 1149 … … 926 1174 } 927 1175 928 p a:not(.button) , p .single .type-plugin .entry-content .section-toggle:not(.button), .single .type-plugin .entry-content p .section-toggle:not(.button),929 p a:not(.button): hover,930 p .single .type-plugin .entry-content .section-toggle:not(.button): hover, .single .type-plugin .entry-content931 p .section-toggle:not(.button): hover {1176 p a:not(.button):not(.plugin-upload-form .button-primary), p .single .type-plugin .entry-content .section-toggle:not(.button):not(.plugin-upload-form .button-primary), .single .type-plugin .entry-content p .section-toggle:not(.button):not(.plugin-upload-form .button-primary), 1177 p a:not(.button):not(.plugin-upload-form .button-primary):hover, 1178 p .single .type-plugin .entry-content .section-toggle:not(.button):not(.plugin-upload-form .button-primary):hover, .single .type-plugin .entry-content 1179 p .section-toggle:not(.button):not(.plugin-upload-form .button-primary):hover { 932 1180 border: none; 933 1181 } … … 1138 1386 # Clearings 1139 1387 --------------------------------------------------------------*/ 1140 .clear:before, .single .type-plugin:before, .single .type-plugin .plugin-header:before, 1388 .clear:before, .single .type-plugin:before, .single .type-plugin .plugin-header:before, .plugin-upload-form .category-checklist:before, 1141 1389 .clear:after, 1142 1390 .single .type-plugin:after, 1143 1391 .single .type-plugin .plugin-header:after, 1392 .plugin-upload-form .category-checklist:after, 1144 1393 .entry-content:before, 1145 1394 .entry-content:after, … … 1157 1406 } 1158 1407 1159 .clear:after, .single .type-plugin:after, .single .type-plugin .plugin-header:after, 1408 .clear:after, .single .type-plugin:after, .single .type-plugin .plugin-header:after, .plugin-upload-form .category-checklist:after, 1160 1409 .entry-content:after, 1161 1410 .comment-content:after, … … 1327 1576 } 1328 1577 1329 #wporg-header .button {1578 #wporg-header .button, #wporg-header .plugin-upload-form .button-primary, .plugin-upload-form #wporg-header .button-primary { 1330 1579 box-shadow: none; 1331 1580 } … … 1887 2136 1888 2137 /*-------------------------------------------------------------- 1889 ## Asides2138 ## Pages 1890 2139 --------------------------------------------------------------*/ 1891 .blog .format-aside .entry-title, 1892 .archive .format-aside .entry-title { 1893 display: none; 2140 .page .type-page { 2141 margin: 0 auto; 2142 max-width: 35.527136788rem; 2143 padding: 0 2rem; 2144 } 2145 2146 .page hr { 2147 margin-left: -6.5rem; 2148 margin-right: -6.5rem; 2149 } 2150 2151 .plugin-upload-form fieldset { 2152 border: none; 2153 margin: 0; 2154 padding: 0; 2155 } 2156 2157 .plugin-upload-form legend { 2158 margin: 1rem 0; 2159 } 2160 2161 .plugin-upload-form .category-checklist { 2162 list-style-type: none; 2163 margin: 0 0 2rem; 2164 } 2165 2166 .plugin-upload-form .category-checklist li { 2167 float: left; 2168 padding: 0.5rem 0; 2169 width: 50%; 2170 } 2171 2172 @media screen and (min-width: 48em) { 2173 .plugin-upload-form .category-checklist li { 2174 padding: 0; 2175 } 2176 .plugin-upload-form .category-checklist label { 2177 font-size: 12.8px; 2178 font-size: 0.8rem; 2179 } 2180 } 2181 2182 @media screen and (min-width: 48em) { 2183 .plugin-upload-form label.button, .plugin-upload-form label.button-primary { 2184 line-height: 1.8; 2185 } 2186 .plugin-upload-form .button-primary { 2187 font-size: 14px; 2188 height: auto; 2189 line-height: normal; 2190 margin-bottom: 4px; 2191 padding: 6px 14px; 2192 vertical-align: middle; 2193 } 2194 } 2195 2196 .plugin-upload-form .plugin-file { 2197 width: 0.1px; 2198 height: 0.1px; 2199 opacity: 0; 2200 overflow: hidden; 2201 position: absolute; 2202 z-index: -1; 1894 2203 } 1895 2204 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/elements/_elements.scss
r3230 r3345 27 27 background-color: $color__background-hr; 28 28 border: 0; 29 height: 1px;30 margin -bottom: 1.5em;29 height: 2px; 30 margin: 5rem auto; 31 31 } 32 32 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/forms/_buttons.scss
r3261 r3345 327 327 .button, 328 328 .button.button-large, 329 .button.button-small, 330 input#publish, 331 input#save-post, 332 a.preview { 329 .button.button-smallw { 333 330 font-size: 14px; 334 331 height: auto; … … 338 335 vertical-align: middle; 339 336 } 340 341 #media-upload .button { 342 font-size: 13px; 343 line-height: 22px; 344 padding: 0 10px 1px; 345 height: 24px; 346 } 347 348 .media-frame.mode-grid .bulk-select .button { 349 margin-bottom: 0; 350 } 351 352 /* Publish Metabox Options */ 353 .save-post-status.button { 354 margin: 0 14px 0 10px; /* 14px right margin to match all other buttons */ 355 position: relative; 356 } 357 358 /* Reset responsive styles in Press This, Customizer */ 359 360 .wp-customizer .button { 361 font-size: 13px; 362 height: 28px; 363 line-height: 26px; 364 margin: 0; 365 padding: 0 10px 1px; 366 vertical-align: inherit; 367 } 368 369 /* Reset responsive styles on Log in button on iframed login form */ 370 371 .interim-login .button.button-large { 372 height: 30px; 373 line-height: 28px; 374 padding: 0 12px 2px; 375 } 376 } 337 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/forms/_fields.scss
r3257 r3345 1 1 @import "../variables-site/variables-site"; 2 3 /* Include margin and padding in the width calculation of input and textarea. */ 4 input, 5 textarea { 6 -webkit-box-sizing: border-box; 7 -moz-box-sizing: border-box; 8 box-sizing: border-box; 9 } 10 11 input[type="text"], 12 input[type="password"], 13 input[type="checkbox"], 14 input[type="color"], 15 input[type="date"], 16 input[type="datetime"], 17 input[type="datetime-local"], 18 input[type="email"], 19 input[type="month"], 20 input[type="number"], 21 input[type="password"], 22 input[type="search"], 23 input[type="radio"], 24 input[type="tel"], 25 input[type="text"], 26 input[type="time"], 27 input[type="url"], 28 input[type="week"], 29 select, 30 textarea { 31 -webkit-appearance: none; 32 border: 1px solid $color__border-input; 33 -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); 34 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); 35 background-color: #fff; 36 color: $color__text-input; 37 -webkit-transition: 0.05s border-color ease-in-out; 38 transition: 0.05s border-color ease-in-out; 39 40 &:focus { 41 color: $color__text-input-focus; 42 } 43 } 44 45 input[type="text"]:focus, 46 input[type="password"]:focus, 47 input[type="color"]:focus, 48 input[type="date"]:focus, 49 input[type="datetime"]:focus, 50 input[type="datetime-local"]:focus, 51 input[type="email"]:focus, 52 input[type="month"]:focus, 53 input[type="number"]:focus, 54 input[type="password"]:focus, 55 input[type="search"]:focus, 56 input[type="tel"]:focus, 57 input[type="text"]:focus, 58 input[type="time"]:focus, 59 input[type="url"]:focus, 60 input[type="week"]:focus, 61 input[type="checkbox"]:focus, 62 input[type="radio"]:focus, 63 select:focus, 64 textarea:focus { 65 border-color: #5b9dd9; 66 -webkit-box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); 67 box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); 68 } 69 70 /* rtl:ignore */ 71 input[type="email"], 72 input[type="url"] { 73 direction: ltr; 74 } 2 75 3 76 input[type="text"], 4 77 input[type="email"], 5 input[type=" url"],78 input[type="search"], 6 79 input[type="password"], 7 input[type="search"], 8 input[type="number"], 9 input[type="tel"], 10 input[type="range"], 11 input[type="date"], 12 input[type="month"], 13 input[type="week"], 14 input[type="time"], 15 input[type="datetime"], 16 input[type="datetime-local"], 17 input[type="color"], 80 input[type="number"] { 81 padding: 6px 10px; 82 } 83 84 /* Vertically align the number selector with the input. */ 85 input[type="number"] { 86 height: 40px; 87 line-height: inherit; 88 } 89 90 input[type="checkbox"], 91 input[type="radio"] { 92 border: 1px solid #b4b9be; 93 background: #fff; 94 color: #555; 95 clear: none; 96 cursor: pointer; 97 display: inline-block; 98 line-height: 0; 99 margin: -4px 4px 0 0; 100 padding: 0 !important; 101 text-align: center; 102 vertical-align: middle; 103 min-width: 16px; 104 -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.1 ); 105 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.1 ); 106 -webkit-transition: .05s border-color ease-in-out; 107 transition: .05s border-color ease-in-out; 108 height: 25px; 109 width: 25px; 110 } 111 112 input[type="checkbox"] { 113 padding: 10px; 114 } 115 116 input[type="radio"] { 117 -webkit-border-radius: 50%; 118 border-radius: 50%; 119 margin-right: 4px; 120 line-height: 10px; 121 } 122 123 input[type="checkbox"]:checked:before, 124 input[type="radio"]:checked:before { 125 float: left; 126 display: inline-block; 127 vertical-align: middle; 128 width: 16px; 129 font: normal 21px/1 dashicons; 130 speak: none; 131 -webkit-font-smoothing: antialiased; 132 -moz-osx-font-smoothing: grayscale; 133 } 134 135 input[type="checkbox"]:checked:before { 136 content: "\f147"; 137 color: #1e8cbe; 138 font: normal 30px/1 dashicons; 139 margin: -3px -5px; 140 } 141 142 input[type="radio"]:checked:before { 143 content: "\2022"; 144 text-indent: -9999px; 145 -webkit-border-radius: 50px; 146 border-radius: 50px; 147 font-size: 24px; 148 width: 9px; 149 height: 9px; 150 margin: 7px; 151 line-height: 16px; 152 background-color: #1e8cbe; 153 vertical-align: middle; 154 } 155 156 @-moz-document url-prefix() { 157 input[type="checkbox"], 158 input[type="radio"], 159 .form-table input.tog { 160 margin-bottom: -1px; 161 } 162 } 163 164 /* Search */ 165 input[type="search"] { 166 -webkit-appearance: textfield; 167 } 168 169 input[type="search"]::-webkit-search-decoration { 170 display: none; 171 } 172 173 .ie8 input[type="password"] { 174 font-family: sans-serif; 175 } 176 177 textarea, 178 input, 179 select, 180 button { 181 font-family: inherit; 182 font-size: inherit; 183 font-weight: inherit; 184 } 185 186 textarea, 187 input, 188 select { 189 font-size: 16px; 190 padding: 3px 5px; 191 -webkit-border-radius: 0; 192 border-radius: 0; /* Reset mobile webkit's default element styling */ 193 } 194 18 195 textarea { 19 color: $color__text-input; 20 border: 1px solid $color__border-input; 21 22 &:focus { 23 color: $color__text-input-focus; 24 } 25 } 26 27 select { 28 border: 1px solid $color__border-input; 29 } 30 31 input[type="text"], 32 input[type="email"], 33 input[type="url"], 34 input[type="password"], 35 input[type="search"], 36 input[type="number"], 37 input[type="tel"], 38 input[type="range"], 39 input[type="date"], 40 input[type="month"], 41 input[type="week"], 42 input[type="time"], 43 input[type="datetime"], 44 input[type="datetime-local"], 45 input[type="color"] { 46 -webkit-appearance: none; 47 padding: 3px; 48 } 49 50 textarea { 51 padding-left: 3px; 52 width: 100%; 53 } 196 overflow: auto; 197 padding: 2px 6px; 198 line-height: 1.4; 199 resize: vertical; 200 } 201 202 input[type="file"] { 203 padding: 3px 0; 204 } 205 206 label { 207 cursor: pointer; 208 } 209 210 input.readonly, 211 input[readonly], 212 textarea.readonly, 213 textarea[readonly] { 214 background-color: #eee; 215 } 216 217 :-moz-placeholder { 218 color: #a9a9a9; 219 } 220 221 input:disabled, 222 input.disabled, 223 select:disabled, 224 select.disabled, 225 textarea:disabled, 226 textarea.disabled { 227 background: rgba( 255, 255, 255, 0.5 ); 228 border-color: rgba( 222, 222, 222, 0.75 ); 229 -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 ); 230 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 ); 231 color: rgba( 51, 51, 51, 0.5 ); 232 } 233 234 input[type="file"]:disabled, 235 input[type="file"].disabled, 236 input[type="range"]:disabled, 237 input[type="range"].disabled { 238 background: none; 239 -webkit-box-shadow: none; 240 box-shadow: none; 241 } 242 243 input[type="checkbox"]:disabled, 244 input[type="checkbox"].disabled, 245 input[type="radio"]:disabled, 246 input[type="radio"].disabled, 247 input[type="checkbox"]:disabled:checked:before, 248 input[type="checkbox"].disabled:checked:before, 249 input[type="radio"]:disabled:checked:before, 250 input[type="radio"].disabled:checked:before { 251 opacity: 0.7; 252 } 253 254 label, 255 fieldset label { 256 vertical-align: middle; 257 } 258 259 260 /* =Media Queries 261 -------------------------------------------------------------- */ 262 263 @media screen and ( min-width: 48em ) { 264 /* Input Elements */ 265 input[type="text"], 266 input[type="email"], 267 input[type="search"], 268 input[type="password"], 269 input[type="number"] { 270 padding: 0; 271 } 272 273 input[type="number"] { 274 height: 28px; 275 } 276 277 input[type="checkbox"] { 278 padding: 0; 279 } 280 281 input[type="checkbox"]:checked:before { 282 font: normal 21px/1 dashicons; 283 margin: -3px 0 0 -4px; 284 } 285 286 input[type="radio"], 287 input[type="checkbox"] { 288 height: 16px; 289 width: 16px; 290 } 291 292 input[type="radio"]:checked:before { 293 width: 6px; 294 height: 6px; 295 margin: 4px; 296 } 297 298 textarea, 299 input, 300 select { 301 font-size: 14px; 302 } 303 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/site/_site.scss
r3336 r3345 22 22 23 23 /*-------------------------------------------------------------- 24 ## Asides24 ## Pages 25 25 --------------------------------------------------------------*/ 26 @import "primary/asides"; 26 @import "primary/page"; 27 @import "primary/upload-form"; 27 28 28 29 /*-------------------------------------------------------------- -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/variables-site/_colors.scss
r3336 r3345 7 7 8 8 $color__text-screen: #21759b; 9 $color__text-input: # 666;9 $color__text-input: #32373c; 10 10 $color__text-input-focus: #111; 11 11 $color__link: #21759b; … … 17 17 $color__border-button-hover: #ccc #bbb #aaa; 18 18 $color__border-button-focus: #aaa #bbb #bbb; 19 $color__border-input: # ccc;19 $color__border-input: #ddd; 20 20 $color__border-abbr: #666; 21 21
Note: See TracChangeset
for help on using the changeset viewer.