Remove no-js.css, add the styles to admin-header instead
git-svn-id: http://svn.automattic.com/wordpress/trunk@10529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
552b480eb2
commit
e854ecac2e
|
@ -60,12 +60,15 @@ do_action('admin_head');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
<?php wp_print_styles('no-js'); ?>
|
<style type="text/css">
|
||||||
|
.hide-if-no-js{display:none}
|
||||||
|
.hide-if-js,.closed .inside{display:block}
|
||||||
|
</style>
|
||||||
</noscript>
|
</noscript>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(function(){
|
(function(){
|
||||||
var nojs = document.getElementById('no-js');
|
var ns = document.getElementsByTagName('noscript');
|
||||||
if ( nojs ) nojs.parentNode.removeChild(nojs);
|
if ( ns && (ns = ns[0]) ) ns.parentNode.removeChild(ns);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
/* styles to be used when Javascript is disabled */
|
|
||||||
|
|
||||||
.hide-if-no-js {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hide-if-js,
|
|
||||||
.closed .inside {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hide-if-js-inline {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
|
@ -433,7 +433,6 @@ function wp_default_styles( &$styles ) {
|
||||||
$styles->add( 'login', '/wp-admin/css/login.css', array(), '20081210' );
|
$styles->add( 'login', '/wp-admin/css/login.css', array(), '20081210' );
|
||||||
$styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20081210' );
|
$styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20081210' );
|
||||||
$styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' );
|
$styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' );
|
||||||
$styles->add( 'no-js', '/wp-admin/css/no-js.css', array(), '20081225' );
|
|
||||||
|
|
||||||
foreach ( $rtl_styles as $rtl_style )
|
foreach ( $rtl_styles as $rtl_style )
|
||||||
$styles->add_data( $rtl_style, 'rtl', true );
|
$styles->add_data( $rtl_style, 'rtl', true );
|
||||||
|
|
Loading…
Reference in New Issue