Make WordPress Core

Changeset 30594


Ignore:
Timestamp:
11/28/2014 02:35:09 AM (10 years ago)
Author:
azaozz
Message:

Editor: move the DFW v2 transitions CSS from editor.css to wp-admin.css. They are needed only on the Edit Post screen.
See #30453.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/edit.css

    r30573 r30594  
    12421242}
    12431243
     1244/* DFW 2
     1245-------------------------------------------------------------- */
     1246
     1247.focus-on .wrap > h2,
     1248.focus-on #wpfooter,
     1249.focus-on .postbox-container,
     1250.focus-on div.updated,
     1251.focus-on div.error,
     1252.focus-on div.notice {
     1253    opacity: 0;
     1254    -webkit-transition-duration: 0.6s;
     1255    transition-duration: 0.6s;
     1256    -webkit-transition-property: opacity;
     1257    transition-property: opacity;
     1258    -webkit-transition-timing-function: ease-in-out;
     1259    transition-timing-function: ease-in-out;
     1260}
     1261
     1262.focus-on #wp-toolbar {
     1263    opacity: 0.3;
     1264    -webkit-transition-duration: 0.6s;
     1265    transition-duration: 0.6s;
     1266    -webkit-transition-property: opacity;
     1267    transition-property: opacity;
     1268    -webkit-transition-timing-function: ease-in-out;
     1269    transition-timing-function: ease-in-out;
     1270}
     1271
     1272.focus-off .wrap > h2,
     1273.focus-off #wpfooter,
     1274.focus-off .postbox-container,
     1275.focus-off div.updated,
     1276.focus-off div.error,
     1277.focus-off div.notice,
     1278.focus-off #wp-toolbar {
     1279    opacity: 1;
     1280    -webkit-transition-duration: 0.2s;
     1281    transition-duration: 0.2s;
     1282    -webkit-transition-property: opacity;
     1283    transition-property: opacity;
     1284    -webkit-transition-timing-function: ease-in-out;
     1285    transition-timing-function: ease-in-out;
     1286}
     1287
     1288.focus-on #adminmenuback,
     1289.focus-on #adminmenuwrap,
     1290.focus-on .screen-meta-toggle {
     1291    -webkit-transition-duration: 0.6s;
     1292    transition-duration: 0.6s;
     1293    -webkit-transition-property: -webkit-transform;
     1294    transition-property: transform;
     1295    -webkit-transition-timing-function: ease-in-out;
     1296    transition-timing-function: ease-in-out;
     1297}
     1298
     1299/* @noflip */
     1300.focus-on #adminmenuback,
     1301.focus-on #adminmenuwrap {
     1302    -webkit-transform: translateX( -100% );
     1303    -ms-transform: translateX( -100% );
     1304    transform: translateX( -100% );
     1305}
     1306
     1307/* @noflip */
     1308.rtl.focus-on #adminmenuback,
     1309.rtl.focus-on #adminmenuwrap {
     1310    -webkit-transform: translateX( 100% );
     1311    -ms-transform: translateX( 100% );
     1312    transform: translateX( 100% );
     1313}
     1314
     1315.focus-on .screen-meta-toggle {
     1316    -webkit-transform: translateY( -100% );
     1317    -ms-transform: translateY( -100% );
     1318    transform: translateY( -100% );
     1319}
     1320
     1321.focus-off #adminmenuback,
     1322.focus-off #adminmenuwrap,
     1323.focus-off .screen-meta-toggle {
     1324    -webkit-transform: translateX( 0 );
     1325    -ms-transform: translateX( 0 );
     1326    transform: translateX( 0 );
     1327    -webkit-transition-duration: 0.2s;
     1328    transition-duration: 0.2s;
     1329    -webkit-transition-property: -webkit-transform;
     1330    transition-property: transform;
     1331    -webkit-transition-timing-function: ease-in-out;
     1332    transition-timing-function: ease-in-out;
     1333}
     1334
    12441335/* =Media Queries
    12451336-------------------------------------------------------------- */
  • trunk/src/wp-includes/css/editor.css

    r30573 r30594  
    21332133    }
    21342134}
    2135 
    2136 /* TODO: DFW responsive */
    2137 
    2138 /* DFW 2
    2139 -------------------------------------------------------------- */
    2140 
    2141 .focus-on .wrap > h2,
    2142 .focus-on #wpfooter,
    2143 .focus-on .postbox-container,
    2144 .focus-on div.updated,
    2145 .focus-on div.error,
    2146 .focus-on #wp-toolbar {
    2147     opacity: 0;
    2148     -webkit-transition-duration: 0.6s;
    2149     transition-duration: 0.6s;
    2150     -webkit-transition-property: opacity;
    2151     transition-property: opacity;
    2152     -webkit-transition-timing-function: ease-in-out;
    2153     transition-timing-function: ease-in-out;
    2154 }
    2155 
    2156 .focus-on #wp-toolbar {
    2157     opacity: 0.3;
    2158 }
    2159 
    2160 .focus-off .wrap > h2,
    2161 .focus-off #wpfooter,
    2162 .focus-off .postbox-container,
    2163 .focus-off div.updated,
    2164 .focus-off div.error,
    2165 .focus-off #wp-toolbar {
    2166     opacity: 1;
    2167     -webkit-transition-duration: 0.2s;
    2168     transition-duration: 0.2s;
    2169     -webkit-transition-property: opacity;
    2170     transition-property: opacity;
    2171     -webkit-transition-timing-function: ease-in-out;
    2172     transition-timing-function: ease-in-out;
    2173 }
    2174 
    2175 .focus-on #adminmenuback,
    2176 .focus-on #adminmenuwrap,
    2177 .focus-on .screen-meta-toggle {
    2178     -webkit-transition-duration: 0.6s;
    2179     transition-duration: 0.6s;
    2180     -webkit-transition-property: -webkit-transform;
    2181     transition-property: transform;
    2182     -webkit-transition-timing-function: ease-in-out;
    2183     transition-timing-function: ease-in-out;
    2184 }
    2185 
    2186 /* @noflip */
    2187 .focus-on #adminmenuback,
    2188 .focus-on #adminmenuwrap {
    2189     -webkit-transform: translateX( -100% );
    2190     -ms-transform: translateX( -100% );
    2191     transform: translateX( -100% );
    2192 }
    2193 
    2194 /* @noflip */
    2195 .rtl.focus-on #adminmenuback,
    2196 .rtl.focus-on #adminmenuwrap {
    2197     -webkit-transform: translateX( 100% );
    2198     -ms-transform: translateX( 100% );
    2199     transform: translateX( 100% );
    2200 }
    2201 
    2202 .focus-on .screen-meta-toggle {
    2203     -webkit-transform: translateY( -100% );
    2204     -ms-transform: translateY( -100% );
    2205     transform: translateY( -100% );
    2206 }
    2207 
    2208 .focus-off #adminmenuback,
    2209 .focus-off #adminmenuwrap,
    2210 .focus-off .screen-meta-toggle {
    2211     -webkit-transform: translateX( 0 );
    2212     -ms-transform: translateX( 0 );
    2213     transform: translateX( 0 );
    2214     -webkit-transition-duration: 0.2s;
    2215     transition-duration: 0.2s;
    2216     -webkit-transition-property: -webkit-transform;
    2217     transition-property: transform;
    2218     -webkit-transition-timing-function: ease-in-out;
    2219     transition-timing-function: ease-in-out;
    2220 }
Note: See TracChangeset for help on using the changeset viewer.