Ticket #21947: dashCols.patch
| File dashCols.patch, 2.2 KB (added by belg4mit, 6 months ago) |
|---|
-
wp-admin.
old new 2027 2027 min-height: 250px; 2028 2028 } 2029 2029 2030 /* one column on the dash */2031 @media only screen and (max-width: 799px) {2030 /* one column on the dash if width<600px */ 2031 @media only screen and (max-width: 599px) { 2032 2032 #wpbody-content #dashboard-widgets .postbox-container { 2033 2033 width: 100%; 2034 2034 } … … 2040 2040 } 2041 2041 } 2042 2042 2043 /* two columns on the dash, but keep the setting if one is selected */ 2044 @media only screen and (min-width: 800px) and (max-width: 1200px) { 2045 #wpbody-content #dashboard-widgets .postbox-container { 2046 width: 49.5%; 2047 } 2048 2049 #wpbody-content #dashboard-widgets #postbox-container-2, 2050 #wpbody-content #dashboard-widgets #postbox-container-3, 2051 #wpbody-content #dashboard-widgets #postbox-container-4 { 2052 float: right; 2053 width: 50.5%; 2054 } 2055 2056 #dashboard-widgets #postbox-container-3 .empty-container, 2057 #dashboard-widgets #postbox-container-4 .empty-container { 2058 border: 0 none; 2059 height: 0; 2060 min-height: 0; 2061 } 2062 2043 /* two or more columns */ 2044 @media only screen and (min-width: 600px) { 2063 2045 #wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container { 2064 2046 width: 100%; 2065 2047 } … … 2070 2052 min-height: 0; 2071 2053 } 2072 2054 2073 /* show the radio buttons for column prefs only for one or two columns */2074 2055 .index-php .screen-layout, 2075 2056 .index-php .columns-prefs { 2076 2057 display: block; 2077 2058 } 2059 } 2060 2061 /* two columns on the dash if <900px */ 2062 @media only screen and (min-width: 600px) and (max-width: 899px) { 2063 #wpbody-content #dashboard-widgets .postbox-container { 2064 width: 49.5%; 2065 } 2066 2067 #wpbody-content #dashboard-widgets #postbox-container-2 { 2068 float: right; 2069 width: 50.5%; 2070 } 2078 2071 2072 /* show the correct radio buttons */ 2079 2073 .columns-prefs .columns-prefs-3, 2080 2074 .columns-prefs .columns-prefs-4 { 2081 2075 display: none; 2082 2076 } 2083 2077 } 2084 2078 2079 /* three columns on the dash */ 2080 @media only screen and (min-width: 900px) and (max-width: 1200px) { 2081 /* show the correct radio buttons */ 2082 .columns-prefs .columns-prefs-4 { 2083 display: none; 2084 } 2085 } 2086 2087 /* four columns on the dash, default for >1200px*/ 2088 2085 2089 /* one column on the post write/edit screen */ 2086 2090 @media only screen and (max-width: 850px) { 2087 2091 #wpbody-content #poststuff #post-body {