Changeset 20293
- Timestamp:
- 03/28/2012 02:10:19 AM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/wp-admin.dev.css
r20282 r20293 1836 1836 1837 1837 .postbox-container .meta-box-sortables { 1838 min-height: 50px;1839 1838 -moz-box-sizing: border-box; 1840 1839 -webkit-box-sizing: border-box; … … 1848 1847 } 1849 1848 1850 .metabox-holder .postbox-container .empty-container { 1849 .metabox-holder .postbox-container .empty-container, 1850 #post-body.columns-2 #side-sortables:empty { 1851 1851 border: 3px dashed #CCCCCC; 1852 1852 height: 250px; … … 1889 1889 } 1890 1890 1891 #post-body.columns-2 #side-sortables { 1892 min-height: 250px; 1893 } 1894 1891 1895 /* one column on the dash */ 1892 @media only screen and (max-width: 7 68px) {1896 @media only screen and (max-width: 799px) { 1893 1897 #wpbody-content #dashboard-widgets .postbox-container { 1894 1898 width: 100%; … … 1903 1907 1904 1908 /* two columns on the dash, but keep the setting if one is selected */ 1905 @media only screen and (min-width: 768px) and (max-width: 1200px) {1909 @media only screen and (min-width: 800px) and (max-width: 1200px) { 1906 1910 #wpbody-content #dashboard-widgets .postbox-container { 1907 1911 width: 49.5%; 1908 1912 } 1909 1913 1910 1914 #wpbody-content #dashboard-widgets #postbox-container-2, 1911 1915 #wpbody-content #dashboard-widgets #postbox-container-3, … … 1914 1918 width: 50.5%; 1915 1919 } 1916 1917 # wpbody-content.metabox-holder .postbox-container .empty-container,1918 # wpbody-content#postbox-container-3 .empty-container,1919 # wpbody-content#postbox-container-4 .empty-container {1920 1921 #dashboard-widgets.metabox-holder .postbox-container .empty-container, 1922 #dashboard-widgets #postbox-container-3 .empty-container, 1923 #dashboard-widgets #postbox-container-4 .empty-container { 1920 1924 border: 0 none; 1921 1925 height: 0; 1922 1926 min-height: 0; 1923 1927 } 1924 1928 1925 1929 #wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container { 1926 1930 width: 100%; … … 1946 1950 1947 1951 /* one column on the post write/edit screen */ 1948 @media only screen and (max-width: 102 4px) {1952 @media only screen and (max-width: 1025px) { 1949 1953 #wpbody-content #poststuff #post-body { 1950 1954 margin: 0; 1951 1955 } 1952 1956 1953 1957 #wpbody-content #post-body.columns-2 #postbox-container-1 { 1954 1958 margin-right: 0; 1955 1959 width: 100%; 1960 } 1961 1962 #poststuff #postbox-container-1 .empty-container, 1963 #poststuff #postbox-container-1 #side-sortables:empty { 1964 border: 0 none; 1965 height: 0; 1966 min-height: 0; 1967 } 1968 1969 #poststuff #post-body.columns-2 #side-sortables { 1970 min-height: 0; 1956 1971 } 1957 1972 … … 2121 2136 2122 2137 .welcome-panel .welcome-panel-close:before { 2123 2124 2125 2126 2127 2128 2138 background: url('../images/xit.gif') 0 17% no-repeat; 2139 content: ' '; 2140 height: 100%; 2141 width: 10px; 2142 left: -12px; 2143 position: absolute; 2129 2144 } 2130 2145 2131 2146 .welcome-panel .welcome-panel-close:hover:before { 2132 2147 background-position: 100% 17%; 2133 2148 } 2134 2149 … … 3582 3597 .media-item .progress { 3583 3598 float: right; 3584 3585 3586 3599 height: 22px; 3600 margin: 6px 10px 0 0; 3601 width: 200px; 3587 3602 line-height: 2em; 3588 3603 padding: 0; … … 4671 4686 .about-wrap div.updated, 4672 4687 .about-wrap div.error { 4673 4688 display: none !important; 4674 4689 } 4675 4690 -
trunk/wp-admin/js/postbox.dev.js
r20272 r20293 130 130 131 131 _mark_area : function() { 132 var visible = $('div.postbox:visible').length ;132 var visible = $('div.postbox:visible').length, side = $('#post-body #side-sortables'); 133 133 134 $('# post-body .meta-box-sortables:visible, #dashboard-widgets .meta-box-sortables:visible').not('#advanced-sortables').each(function(n, el){134 $('#dashboard-widgets .meta-box-sortables:visible').each(function(n, el){ 135 135 var t = $(this); 136 136 … … 140 140 t.addClass('empty-container'); 141 141 }); 142 143 if ( side.length ) { 144 if ( side.children('.postbox:visible').length ) 145 side.removeClass('empty-container'); 146 else if ( $('#postbox-container-1').css('width') == '280px' ) 147 side.addClass('empty-container'); 148 } 142 149 }, 143 150
Note: See TracChangeset
for help on using the changeset viewer.