Ticket #22644: 22644.2.diff
File 22644.2.diff, 9.1 KB (added by , 12 years ago) |
---|
-
wp-admin/admin-header.php
97 97 98 98 ?> 99 99 </head> 100 <body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">100 <body class="wp-admin wp-core-ui no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>"> 101 101 <script type="text/javascript"> 102 102 document.body.className = document.body.className.replace('no-js','js'); 103 103 </script> -
wp-includes/class-wp-editor.php
113 113 $buttons .= '<a id="' . $editor_id . '-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</a>\n"; 114 114 } 115 115 116 echo '<div id="wp-' . $editor_id . '-wrap" class="wp- editor-wrap ' . $switch_class . '">';116 echo '<div id="wp-' . $editor_id . '-wrap" class="wp-core-ui wp-editor-wrap ' . $switch_class . '">'; 117 117 118 118 if ( self::$editor_buttons_css ) { 119 119 wp_print_styles('editor-buttons'); -
wp-includes/css/buttons.css
34 34 1.0 - Button Layouts 35 35 ---------------------------------------------------------------------------- */ 36 36 37 . button,38 . button-primary,39 . button-secondary {37 .wp-core-ui .button, 38 .wp-core-ui .button-primary, 39 .wp-core-ui .button-secondary { 40 40 display: inline-block; 41 41 text-decoration: none; 42 42 font-size: 12px; … … 57 57 } 58 58 59 59 /* Remove the dotted border on :focus and the extra padding in Firefox */ 60 button::-moz-focus-inner,61 input[type="reset"]::-moz-focus-inner,62 input[type="button"]::-moz-focus-inner,63 input[type="submit"]::-moz-focus-inner {60 .wp-core-ui button::-moz-focus-inner, 61 .wp-core-ui input[type="reset"]::-moz-focus-inner, 62 .wp-core-ui input[type="button"]::-moz-focus-inner, 63 .wp-core-ui input[type="submit"]::-moz-focus-inner { 64 64 border-width: 1px 0; 65 65 border-style: solid none; 66 66 border-color: transparent; 67 67 padding: 0; 68 68 } 69 69 70 . button.button-large,71 . button-group.button-large .button {70 .wp-core-ui .button.button-large, 71 .wp-core-ui .button-group.button-large .button { 72 72 height: 30px; 73 73 line-height: 28px; 74 74 padding: 0 12px 2px; 75 75 } 76 76 77 . button.button-small,78 . button-group.button-small .button {77 .wp-core-ui .button.button-small, 78 .wp-core-ui .button-group.button-small .button { 79 79 height: 21px; 80 80 line-height: 20px; 81 81 padding: 0 8px 1px; 82 82 } 83 83 84 . button.button-hero,85 . button-group.button-hero .button {84 .wp-core-ui .button.button-hero, 85 .wp-core-ui .button-group.button-hero .button { 86 86 font-size: 14px; 87 87 height: 46px; 88 88 line-height: 44px; 89 89 padding: 0 36px; 90 90 } 91 91 92 . button:active {92 .wp-core-ui .button:active { 93 93 outline: none; 94 94 } 95 95 96 . button.hidden {96 .wp-core-ui .button.hidden { 97 97 display: none; 98 98 } 99 99 … … 101 101 2.0 - Default Button Style 102 102 ---------------------------------------------------------------------------- */ 103 103 104 . button,105 . button-secondary {104 .wp-core-ui .button, 105 .wp-core-ui .button-secondary { 106 106 background: #f3f3f3; 107 107 background-image: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#f4f4f4)); 108 108 background-image: -webkit-linear-gradient(top, #fefefe, #f4f4f4); … … 114 114 text-shadow: 0 1px 0 #fff; 115 115 } 116 116 117 . button.hover,118 . button:hover,119 . button-secondary:hover,120 . button.focus,121 . button:focus,122 . button-secondary:focus {117 .wp-core-ui .button.hover, 118 .wp-core-ui .button:hover, 119 .wp-core-ui .button-secondary:hover, 120 .wp-core-ui .button.focus, 121 .wp-core-ui .button:focus, 122 .wp-core-ui .button-secondary:focus { 123 123 background: #f3f3f3; 124 124 background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f3f3f3)); 125 125 background-image: -webkit-linear-gradient(top, #fff, #f3f3f3); … … 131 131 color: #222; 132 132 } 133 133 134 . button.focus,135 . button:focus,136 . button-secondary:focus {134 .wp-core-ui .button.focus, 135 .wp-core-ui .button:focus, 136 .wp-core-ui .button-secondary:focus { 137 137 -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.2); 138 138 box-shadow: 1px 1px 1px rgba(0,0,0,.2); 139 139 } 140 140 141 . button.active,142 . button.active:hover,143 . button.active:focus,144 . button:active,145 . button-secondary:active {141 .wp-core-ui .button.active, 142 .wp-core-ui .button.active:hover, 143 .wp-core-ui .button.active:focus, 144 .wp-core-ui .button:active, 145 .wp-core-ui .button-secondary:active { 146 146 background: #eee; 147 147 background-image: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#fefefe)); 148 148 background-image: -webkit-linear-gradient(top, #f4f4f4, #fefefe); … … 157 157 box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); 158 158 } 159 159 160 . button[disabled],161 . button:disabled,162 . button-secondary[disabled],163 . button-secondary:disabled,164 . button-disabled {160 .wp-core-ui .button[disabled], 161 .wp-core-ui .button:disabled, 162 .wp-core-ui .button-secondary[disabled], 163 .wp-core-ui .button-secondary:disabled, 164 .wp-core-ui .button-disabled { 165 165 color: #aaa !important; 166 166 border-color: #ddd !important; 167 167 background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f4f4f4)) !important; … … 180 180 3.0 - Primary Button Style 181 181 ---------------------------------------------------------------------------- */ 182 182 183 . button-primary {183 .wp-core-ui .button-primary { 184 184 background-color: #21759b; 185 185 background-image: -webkit-gradient(linear, left top, left bottom, from(#2a95c5), to(#21759b)); 186 186 background-image: -webkit-linear-gradient(top, #2a95c5, #21759b); … … 197 197 text-shadow: 0 1px 0 rgba(0,0,0,0.1); 198 198 } 199 199 200 . button-primary.hover,201 . button-primary:hover,202 . button-primary.focus,203 . button-primary:focus {200 .wp-core-ui .button-primary.hover, 201 .wp-core-ui .button-primary:hover, 202 .wp-core-ui .button-primary.focus, 203 .wp-core-ui .button-primary:focus { 204 204 background-color: #278ab7; 205 205 background-image: -webkit-gradient(linear, left top, left bottom, from(#2e9fd2), to(#21759b)); 206 206 background-image: -webkit-linear-gradient(top, #2e9fd2, #21759b); … … 215 215 text-shadow: 0 -1px 0 rgba(0,0,0,0.3); 216 216 } 217 217 218 . button-primary.focus,219 . button-primary:focus {218 .wp-core-ui .button-primary.focus, 219 .wp-core-ui .button-primary:focus { 220 220 border-color: #0e3950; 221 221 -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,0.4); 222 222 box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,0.4); 223 223 } 224 224 225 . button-primary.active,226 . button-primary.active:hover,227 . button-primary.active:focus,228 . button-primary:active {225 .wp-core-ui .button-primary.active, 226 .wp-core-ui .button-primary.active:hover, 227 .wp-core-ui .button-primary.active:focus, 228 .wp-core-ui .button-primary:active { 229 229 background: #1b607f; 230 230 background-image: -webkit-gradient(linear, left top, left bottom, from(#21759b), to(#278ab7)); 231 231 background-image: -webkit-linear-gradient(top, #21759b, #278ab7); … … 240 240 text-shadow: 0 1px 0 rgba(0,0,0,0.1); 241 241 } 242 242 243 . button-primary[disabled],244 . button-primary:disabled,245 . button-primary-disabled {243 .wp-core-ui .button-primary[disabled], 244 .wp-core-ui .button-primary:disabled, 245 .wp-core-ui .button-primary-disabled { 246 246 color: #94cde7 !important; 247 247 background: #298cba !important; 248 248 border-color: #1b607f !important; … … 256 256 4.0 - Button Groups 257 257 ---------------------------------------------------------------------------- */ 258 258 259 . button-group {259 .wp-core-ui .button-group { 260 260 position: relative; 261 261 display: inline-block; 262 262 white-space: nowrap; … … 264 264 vertical-align: middle; 265 265 } 266 266 267 . button-group > .button {267 .wp-core-ui .button-group > .button { 268 268 display: inline-block; 269 269 border-radius: 0; 270 270 margin-right: -1px; 271 271 z-index: 10; 272 272 } 273 273 274 . button-group > .button-primary {274 .wp-core-ui .button-group > .button-primary { 275 275 z-index: 100; 276 276 } 277 277 278 . button-group > .button:hover {278 .wp-core-ui .button-group > .button:hover { 279 279 z-index: 20; 280 280 } 281 281 282 . button-group > .button:first-child {282 .wp-core-ui .button-group > .button:first-child { 283 283 border-radius: 3px 0 0 3px; 284 284 } 285 285 286 . button-group > .button:last-child {286 .wp-core-ui .button-group > .button:last-child { 287 287 border-radius: 0 3px 3px 0; 288 288 } -
wp-includes/js/media-views.js
1099 1099 uploader: true 1100 1100 }); 1101 1101 1102 // Ensure core UI is enabled. 1103 this.$el.addClass('wp-core-ui'); 1104 1102 1105 // Initialize modal container view. 1103 1106 if ( this.options.modal ) { 1104 1107 this.modal = new media.view.Modal({ -
wp-includes/media.php
1505 1505 </script> 1506 1506 1507 1507 <script type="text/html" id="tmpl-media-modal"> 1508 <div class="media-modal ">1508 <div class="media-modal wp-core-ui"> 1509 1509 <h3 class="media-modal-title">{{ data.title }}</h3> 1510 1510 <a class="media-modal-close media-modal-icon" href="#" title="<?php esc_attr_e('Close'); ?>"></a> 1511 1511 </div>