Changeset 41356
- Timestamp:
- 09/09/2017 02:13:28 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/common.css
r41329 r41356 2865 2865 } 2866 2866 2867 /* Thickbox for Plugin Install screen */ 2868 body.about-php #TB_window, 2869 body.plugin-install-php #TB_window, 2870 body.import-php #TB_window, 2871 body.plugins-php #TB_window, 2872 body.update-core-php #TB_window, 2873 body.index-php #TB_window { 2867 /* Thickbox for the Plugin details modal. */ 2868 #TB_window.plugin-details-modal { 2874 2869 background: #fcfcfc; 2875 2870 } 2876 2871 2877 /* IE 8 needs a change in the pseudo element content */ 2878 .ie8 body.about-php #TB_window:before, 2879 .ie8 body.plugin-install-php #TB_window:before, 2880 .ie8 body.import-php #TB_window:before, 2881 .ie8 body.plugins-php #TB_window:before, 2882 .ie8 body.update-core-php #TB_window:before, 2883 .ie8 body.index-php #TB_window:before { 2884 content: " "; 2885 background: none; 2886 } 2887 2888 body.about-php #TB_window.thickbox-loading:before, 2889 body.plugin-install-php #TB_window.thickbox-loading:before, 2890 body.import-php #TB_window.thickbox-loading:before, 2891 body.plugins-php #TB_window.thickbox-loading:before, 2892 body.update-core-php #TB_window.thickbox-loading:before, 2893 body.index-php #TB_window.thickbox-loading:before { 2872 #TB_window.plugin-details-modal.thickbox-loading:before { 2894 2873 content: ""; 2895 2874 display: block; … … 2911 2890 (min-resolution: 120dpi) { 2912 2891 2913 body.about-php #TB_window.thickbox-loading:before, 2914 body.plugin-install-php #TB_window.thickbox-loading:before, 2915 body.import-php #TB_window.thickbox-loading:before, 2916 body.plugins-php #TB_window.thickbox-loading:before, 2917 body.update-core-php #TB_window.thickbox-loading:before, 2918 body.index-php #TB_window.thickbox-loading:before { 2892 #TB_window.plugin-details-modal.thickbox-loading:before { 2919 2893 background-image: url(../images/spinner-2x.gif); 2920 2894 } 2921 2895 } 2922 2896 2923 body.about-php #TB_title, 2924 body.plugin-install-php #TB_title, 2925 body.import-php #TB_title, 2926 body.plugins-php #TB_title, 2927 body.update-core-php #TB_title, 2928 body.index-php #TB_title { 2897 .plugin-details-modal #TB_title { 2929 2898 float: left; 2930 2899 height: 1px; 2931 2900 } 2932 2901 2933 body.about-php #TB_ajaxWindowTitle, 2934 body.plugin-install-php #TB_ajaxWindowTitle, 2935 body.import-php #TB_ajaxWindowTitle, 2936 body.plugins-php #TB_ajaxWindowTitle, 2937 body.update-core-php #TB_ajaxWindowTitle, 2938 body.index-php #TB_ajaxWindowTitle { 2902 .plugin-details-modal #TB_ajaxWindowTitle { 2939 2903 display: none; 2940 2904 } 2941 2905 2942 /* only on these screens */ 2943 .about-php #TB_closeWindowButton, 2944 .plugin-install-php #TB_closeWindowButton, 2945 .import-php #TB_closeWindowButton, 2946 .plugins-php #TB_closeWindowButton, 2947 .update-core-php #TB_closeWindowButton, 2948 .index-php #TB_closeWindowButton { 2906 .plugin-details-modal #TB_closeWindowButton { 2949 2907 left: auto; 2950 2908 right: -30px; … … 2952 2910 } 2953 2911 2954 2955 body.about-php #TB_closeWindowButton:hover, 2956 body.about-php #TB_closeWindowButton:focus, 2957 body.plugin-install-php #TB_closeWindowButton:hover, 2958 body.plugin-install-php #TB_closeWindowButton:focus, 2959 body.import-php #TB_closeWindowButton:hover, 2960 body.import-php #TB_closeWindowButton:focus, 2961 body.plugins-php #TB_closeWindowButton:hover, 2962 body.plugins-php #TB_closeWindowButton:focus, 2963 body.update-core-php #TB_closeWindowButton:hover, 2964 body.update-core-php #TB_closeWindowButton:focus, 2965 body.index-php #TB_closeWindowButton:hover, 2966 body.index-php #TB_closeWindowButton:focus { 2912 .plugin-details-modal #TB_closeWindowButton:hover, 2913 .plugin-details-modal #TB_closeWindowButton:focus { 2967 2914 color: #00a0d2; 2968 2915 outline: none; … … 2970 2917 } 2971 2918 2972 body.about-php .tb-close-icon, 2973 body.plugin-install-php .tb-close-icon, 2974 body.import-php .tb-close-icon, 2975 body.plugins-php .tb-close-icon, 2976 body.update-core-php .tb-close-icon, 2977 body.index-php .tb-close-icon { 2919 .plugin-details-modal .tb-close-icon { 2978 2920 display: none; 2979 2921 } 2980 2922 2981 body.about-php #TB_closeWindowButton:after, 2982 body.plugin-install-php #TB_closeWindowButton:after, 2983 body.import-php #TB_closeWindowButton:after, 2984 body.plugins-php #TB_closeWindowButton:after, 2985 body.update-core-php #TB_closeWindowButton:after, 2986 body.index-php #TB_closeWindowButton:after { 2923 .plugin-details-modal #TB_closeWindowButton:after { 2987 2924 content: "\f335"; 2988 2925 font: normal 32px/29px 'dashicons'; … … 2994 2931 /* move plugin install close icon to top on narrow screens */ 2995 2932 @media screen and ( max-width: 830px ) { 2996 body.about-php #TB_closeWindowButton, 2997 body.plugin-install-php #TB_closeWindowButton, 2998 body.import-php #TB_closeWindowButton, 2999 body.plugins-php #TB_closeWindowButton, 3000 body.update-core-php #TB_closeWindowButton, 3001 body.index-php #TB_closeWindowButton { 2933 .plugin-details-modal #TB_closeWindowButton { 3002 2934 right: 0; 3003 2935 top: -30px; -
trunk/src/wp-admin/js/plugin-install.js
r38172 r41356 8 8 9 9 var tbWindow, 10 $focusedBefore,11 10 $iframeBody, 12 11 $tabbables, 13 12 $firstTabbable, 14 13 $lastTabbable, 14 $focusedBefore = $(), 15 15 $uploadViewToggle = $( '.upload-view-toggle' ), 16 16 $wrap = $ ( '.wrap' ), … … 59 59 $body 60 60 .on( 'thickbox:iframe:loaded', tbWindow, function() { 61 /* 62 * Return if it's not the modal with the plugin details iframe. Other 63 * thickbox instances might want to load an iframe with content from 64 * an external domain. Avoid to access the iframe contents when we're 65 * not sure the iframe loads from the same domain. 66 */ 67 if ( ! tbWindow.hasClass( 'plugin-details-modal' ) ) { 68 return; 69 } 70 61 71 iframeLoaded(); 62 72 }) … … 150 160 tb_click.call(this); 151 161 152 // Set ARIA role and ARIA label. 153 tbWindow.attr({ 154 'role': 'dialog', 155 'aria-label': plugininstallL10n.plugin_modal_label 156 }); 162 // Set ARIA role, ARIA label, and add a CSS class. 163 tbWindow 164 .attr({ 165 'role': 'dialog', 166 'aria-label': plugininstallL10n.plugin_modal_label 167 }) 168 .addClass( 'plugin-details-modal' ); 157 169 158 170 // Set title attribute on the iframe. -
trunk/src/wp-includes/js/thickbox/thickbox.css
r37531 r41356 95 95 position: fixed; 96 96 display: none; 97 z-index: 10 3;97 z-index: 100050; 98 98 top: 50%; 99 99 left: 50%;
Note: See TracChangeset
for help on using the changeset viewer.