Make WordPress Core

Ticket #36753: 36753.diff

File 36753.diff, 14.7 KB (added by helen, 9 years ago)
  • src/wp-admin/css/common.css

     
    215215body {
    216216        background: #f1f1f1;
    217217        color: #444;
    218         font-family: "Open Sans", sans-serif;
     218        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    219219        font-size: 13px;
    220220        line-height: 1.4em;
    221221        min-width: 600px;
  • src/wp-admin/css/customize-controls.css

     
    12191219        border-bottom: 1px solid #ddd;
    12201220        clear: both;
    12211221        color: #666;
    1222         font: 24px "Open Sans", sans-serif;
     1222        font: 24px -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    12231223        margin: 30px 0 0 0;
    12241224        padding: 0;
    12251225        padding-bottom: 7px;
  • src/wp-admin/css/dashboard.css

     
    951951        color: #fff;
    952952}
    953953
    954 /* Make the browser nags easier to read with Open Sans */
    955 
    956954#dashboard_browser_nag h2.hndle {
    957955        border: none;
    958956        font-weight: 600;
  • src/wp-admin/css/install.css

     
    66body {
    77        background: #fff;
    88        color: #444;
    9         font-family: "Open Sans", sans-serif;
     9        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    1010        margin: 140px auto 25px;
    1111        padding: 20px 20px 10px 20px;
    1212        max-width: 700px;
     
    132132}
    133133textarea {
    134134        border: 1px solid #ddd;
    135         font-family: "Open Sans", sans-serif;
     135        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif
    136136        width: 100%;
    137137        -webkit-box-sizing: border-box;
    138138        -moz-box-sizing: border-box;
     
    181181
    182182input,
    183183submit {
    184         font-family: "Open Sans", sans-serif;
     184        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    185185}
    186186
    187187.form-table input[type=text],
  • src/wp-admin/css/login.css

     
    1212        background: #f1f1f1;
    1313        min-width: 0;
    1414        color: #444;
    15         font-family: "Open Sans", sans-serif;
     15        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    1616        font-size: 13px;
    1717        line-height: 1.4em;
    1818}
  • src/wp-admin/css/press-this-editor.css

     
    7777*/
    7878body {
    7979        color: #404040;
    80         font-family: "Open Sans", Helvetica, Arial, sans-serif;
     80        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    8181        font-size: 20px;
    8282        font-weight: 400;
    8383        line-height: 1.6;
  • src/wp-admin/css/press-this.css

     
    294294select,
    295295textarea {
    296296        color: #404040;
    297         font-family: "Open Sans", Helvetica, Arial, sans-serif;
     297        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    298298        font-size: 20px;
    299299        font-weight: 400;
    300300        line-height: 1.6;
  • src/wp-admin/includes/class-wp-press-this.php

     
    793793                        $press_this = str_replace( '.css', '-rtl.css', $press_this );
    794794                }
    795795
    796                 $open_sans_font_url = '';
    797 
    798                 /* translators: If there are characters in your language that are not supported
    799                  * by Open Sans, translate this to 'off'. Do not translate into your own language.
    800                  */
    801                 if ( 'off' !== _x( 'on', 'Open Sans font: on or off' ) ) {
    802                         $subsets = 'latin,latin-ext';
    803 
    804                         /* translators: To add an additional Open Sans character subset specific to your language,
    805                          * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
    806                          */
    807                         $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)' );
    808 
    809                         if ( 'cyrillic' == $subset ) {
    810                                 $subsets .= ',cyrillic,cyrillic-ext';
    811                         } elseif ( 'greek' == $subset ) {
    812                                 $subsets .= ',greek,greek-ext';
    813                         } elseif ( 'vietnamese' == $subset ) {
    814                                 $subsets .= ',vietnamese';
    815                         }
    816 
    817                         $query_args = array(
    818                                 'family' => urlencode( 'Open Sans:400italic,700italic,400,600,700' ),
    819                                 'subset' => urlencode( $subsets ),
    820                         );
    821 
    822                         $open_sans_font_url = ',' . add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
    823                 }
    824 
    825                 return $styles . $press_this . $open_sans_font_url;
     796                return $styles . $press_this;
    826797        }
    827798
    828799        /**
  • src/wp-includes/css/admin-bar.css

     
    77        text-shadow: none;
    88        text-transform: none;
    99        letter-spacing: normal;
    10         font: normal 13px/32px "Open Sans", sans-serif;
     10        font: normal 13px/32px -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    1111        -webkit-border-radius: 0;
    1212        border-radius: 0;
    1313        -webkit-box-sizing: content-box;
     
    7979#wpadminbar {
    8080        direction: ltr;
    8181        color: #ccc;
    82         font: normal 13px/32px "Open Sans", sans-serif;
     82        font: normal 13px/32px -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    8383        height: 32px;
    8484        position: fixed;
    8585        top: 0;
     
    618618#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
    619619        position: relative;
    620620        z-index: 30;
    621         font: 13px/24px "Open Sans", sans-serif;
     621        font: 13px/24px -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    622622        height: 24px;
    623623        width: 24px;
    624624        max-width: none;
     
    798798        }
    799799
    800800        #wpadminbar * {
    801                 font: normal 14px/32px "Open Sans", sans-serif;
     801                font: normal 14px/32px -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif, sans-serif;
    802802        }
    803803
    804804        #wpadminbar .quicklinks > ul > li > a,
  • src/wp-includes/css/editor.css

     
    11091109        background: #ebebeb;
    11101110        color: #666;
    11111111        cursor: pointer;
    1112         font: 13px/19px "Open Sans", sans-serif;
     1112        font-size: 13px;
     1113        line-height: 19px;
    11131114        height: 20px;
    11141115        margin: 5px 0 0 5px;
    11151116        padding: 3px 8px 4px;
  • src/wp-includes/css/media-views.css

     
    1717
    1818.media-modal,
    1919.media-frame {
    20         font-family: "Open Sans", sans-serif;
     20        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    2121        font-size: 12px;
    2222        -webkit-overflow-scrolling: touch;
    2323}
     
    8080.media-frame input[type="url"],
    8181.media-frame textarea,
    8282.media-frame select {
    83         font-family: "Open Sans", sans-serif;
     83        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    8484        font-size: 12px;
    8585        border-width: 1px;
    8686        border-style: solid;
     
    807807        padding: 4px;
    808808        font-size: 13px;
    809809        color: #444;
    810         font-family: "Open Sans", sans-serif;
     810        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    811811        -webkit-appearance: none;
    812812}
    813813
  • src/wp-includes/css/wp-embed-template.css

     
    5959
    6060.wp-embed {
    6161        padding: 25px;
    62         font: 400 14px/1.5 'Open Sans', sans-serif;
     62        font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    6363        color: #82878c;
    6464        background: white;
    6565        border: 1px solid #e5e5e5;
     
    307307        height: 28px;
    308308        margin: 0 0 10px 0;
    309309        padding: 0 5px;
    310         font: 400 14px/1.5 'Open Sans', sans-serif;
     310        font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    311311        resize: none;
    312312        cursor: text;
    313313}
  • src/wp-includes/embed.php

     
    877877 * @since 4.4.0
    878878 */
    879879function enqueue_embed_scripts() {
    880         wp_enqueue_style( 'open-sans' );
    881880        wp_enqueue_style( 'wp-embed-template-ie' );
    882881
    883882        /**
  • src/wp-includes/functions.php

     
    26672667                body {
    26682668                        background: #fff;
    26692669                        color: #444;
    2670                         font-family: "Open Sans", sans-serif;
     2670                        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    26712671                        margin: 2em auto;
    26722672                        padding: 1em 2em;
    26732673                        max-width: 700px;
     
    26782678                        border-bottom: 1px solid #dadada;
    26792679                        clear: both;
    26802680                        color: #666;
    2681                         font: 24px "Open Sans", sans-serif;
     2681                        font-size: 24px;
    26822682                        margin: 30px 0 0 0;
    26832683                        padding: 0;
    26842684                        padding-bottom: 7px;
  • src/wp-includes/script-loader.php

     
    697697        $styles->text_direction = function_exists( 'is_rtl' ) && is_rtl() ? 'rtl' : 'ltr';
    698698        $styles->default_dirs = array('/wp-admin/', '/wp-includes/css/');
    699699
    700         $open_sans_font_url = '';
    701 
    702         /* translators: If there are characters in your language that are not supported
    703          * by Open Sans, translate this to 'off'. Do not translate into your own language.
    704          */
    705         if ( 'off' !== _x( 'on', 'Open Sans font: on or off' ) ) {
    706                 $subsets = 'latin,latin-ext';
    707 
    708                 /* translators: To add an additional Open Sans character subset specific to your language,
    709                  * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
    710                  */
    711                 $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)' );
    712 
    713                 if ( 'cyrillic' == $subset ) {
    714                         $subsets .= ',cyrillic,cyrillic-ext';
    715                 } elseif ( 'greek' == $subset ) {
    716                         $subsets .= ',greek,greek-ext';
    717                 } elseif ( 'vietnamese' == $subset ) {
    718                         $subsets .= ',vietnamese';
    719                 }
    720 
    721                 // Hotlink Open Sans, for now
    722                 $open_sans_font_url = "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
    723         }
    724 
    725700        // Register a stylesheet for the selected admin color scheme.
    726701        $styles->add( 'colors', true, array( 'wp-admin', 'buttons' ) );
    727702
     
    743718        $styles->add( 'site-icon',           "/wp-admin/css/site-icon$suffix.css" );
    744719        $styles->add( 'l10n',                "/wp-admin/css/l10n$suffix.css" );
    745720
    746         $styles->add( 'wp-admin', false, array( 'open-sans', 'dashicons', 'common', 'forms', 'admin-menu', 'dashboard', 'list-tables', 'edit', 'revisions', 'media', 'themes', 'about', 'nav-menus', 'widgets', 'site-icon', 'l10n' ) );
     721        $styles->add( 'wp-admin', false, array( 'dashicons', 'common', 'forms', 'admin-menu', 'dashboard', 'list-tables', 'edit', 'revisions', 'media', 'themes', 'about', 'nav-menus', 'widgets', 'site-icon', 'l10n' ) );
    747722
    748         $styles->add( 'login',               "/wp-admin/css/login$suffix.css", array( 'open-sans', 'dashicons', 'buttons', 'forms', 'l10n' ) );
    749         $styles->add( 'install',             "/wp-admin/css/install$suffix.css", array( 'open-sans', 'buttons' ) );
     723        $styles->add( 'login',               "/wp-admin/css/login$suffix.css", array( 'dashicons', 'buttons', 'forms', 'l10n' ) );
     724        $styles->add( 'install',             "/wp-admin/css/install$suffix.css", array( 'buttons' ) );
    750725        $styles->add( 'wp-color-picker',     "/wp-admin/css/color-picker$suffix.css" );
    751726        $styles->add( 'customize-controls',  "/wp-admin/css/customize-controls$suffix.css", array( 'wp-admin', 'colors', 'ie', 'imgareaselect' ) );
    752727        $styles->add( 'customize-widgets',   "/wp-admin/css/customize-widgets$suffix.css", array( 'wp-admin', 'colors' ) );
    753728        $styles->add( 'customize-nav-menus', "/wp-admin/css/customize-nav-menus$suffix.css", array( 'wp-admin', 'colors' ) );
    754         $styles->add( 'press-this',          "/wp-admin/css/press-this$suffix.css", array( 'open-sans', 'buttons' ) );
     729        $styles->add( 'press-this',          "/wp-admin/css/press-this$suffix.css", array( 'buttons' ) );
    755730
    756731        $styles->add( 'ie', "/wp-admin/css/ie$suffix.css" );
    757732        $styles->add_data( 'ie', 'conditional', 'lte IE 7' );
     
    759734        // Common dependencies
    760735        $styles->add( 'buttons',   "/wp-includes/css/buttons$suffix.css" );
    761736        $styles->add( 'dashicons', "/wp-includes/css/dashicons$suffix.css" );
    762         $styles->add( 'open-sans', $open_sans_font_url );
    763737
    764738        // Includes CSS
    765         $styles->add( 'admin-bar',            "/wp-includes/css/admin-bar$suffix.css", array( 'open-sans', 'dashicons' ) );
     739        $styles->add( 'admin-bar',            "/wp-includes/css/admin-bar$suffix.css", array( 'dashicons' ) );
    766740        $styles->add( 'wp-auth-check',        "/wp-includes/css/wp-auth-check$suffix.css", array( 'dashicons' ) );
    767741        $styles->add( 'editor-buttons',       "/wp-includes/css/editor$suffix.css", array( 'dashicons' ) );
    768742        $styles->add( 'media-views',          "/wp-includes/css/media-views$suffix.css", array( 'buttons', 'dashicons', 'wp-mediaelement' ) );