Fix inconsistent css handling of .wide-screen, see #18198
git-svn-id: http://svn.automattic.com/wordpress/trunk@18743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -93,9 +93,12 @@ if ( $is_iphone ) { ?>
|
||||
</head>
|
||||
<body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
|
||||
<script type="text/javascript">
|
||||
document.body.className = document.body.className.replace(/no-js/, 'js');
|
||||
if ( document.body.clientWidth > 1300 )
|
||||
(function(){
|
||||
var bc = document.body.className, w = bc.match(/folded/) ? 1217 : 1330;
|
||||
document.body.className = bc.replace(/no-js/, 'js');
|
||||
if ( document.body.clientWidth > w )
|
||||
document.body.className += ' wide-window';
|
||||
})();
|
||||
</script>
|
||||
|
||||
<div id="wpwrap">
|
||||
|
||||
Reference in New Issue
Block a user