Make WordPress Core

Changeset 26070


Ignore:
Timestamp:
11/09/2013 11:19:35 PM (11 years ago)
Author:
lancewillett
Message:

Bundled Themes: implement Microsoft-specific @viewport rules for better responsive styling in Windows 8 "snapped" views. Props celloexpressions, fixes #25888.

Location:
trunk/src/wp-content/themes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/style.css

    r25902 r26070  
    22842284----------------------------------------------- */
    22852285
     2286/* Does the same thing as <meta name="viewport" content="width=device-width">,
     2287 * but in the future W3C standard way. -ms- prefix is required for IE10+ to
     2288 * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
     2289 * the meta tag. See http://core.trac.wordpress.org/ticket/25888.
     2290 */
     2291@-ms-viewport {
     2292    width: device-width;
     2293}
     2294@viewport {
     2295    width: device-width;
     2296}
     2297
    22862298@media (max-width: 800px) {
    22872299    /* Simplify the basic layout */
  • trunk/src/wp-content/themes/twentythirteen/style.css

    r25902 r26070  
    25782578 */
    25792579
     2580/* Does the same thing as <meta name="viewport" content="width=device-width">,
     2581 * but in the future W3C standard way. -ms- prefix is required for IE10+ to
     2582 * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
     2583 * the meta tag. See http://core.trac.wordpress.org/ticket/25888.
     2584 */
     2585@-ms-viewport {
     2586    width: device-width;
     2587}
     2588@viewport {
     2589    width: device-width;
     2590}
     2591
    25802592@media (max-width: 1599px) {
    25812593    .site {
  • trunk/src/wp-content/themes/twentytwelve/style.css

    r25902 r26070  
    14331433-------------------------------------------------------------- */
    14341434
     1435/* Does the same thing as <meta name="viewport" content="width=device-width">,
     1436 * but in the future W3C standard way. -ms- prefix is required for IE10+ to
     1437 * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
     1438 * the meta tag. See http://core.trac.wordpress.org/ticket/25888.
     1439 */
     1440@-ms-viewport {
     1441    width: device-width;
     1442}
     1443@viewport {
     1444    width: device-width;
     1445}
     1446
    14351447/* Minimum width of 600 pixels. */
    14361448@media screen and (min-width: 600px) {
Note: See TracChangeset for help on using the changeset viewer.