Making WordPress.org


Ignore:
Timestamp:
08/22/2016 04:53:17 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Coming Soon Page: Revert font to Open Sans.

The original design used Open Sans, but during the merge I switched to the new 4.6 font stack, because I assumed the new stack could be (and should be) used to replace Open Sans in all contexts. Using native fonts would have avoided all of the problems associated with Open Sans (extra HTTP request, leaking information via headers, etc).

That assumption was incorrect, though, because the new font stack is only meant to be used for UI elements, not content.

See #334
Props ryelle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wordcamp-coming-soon-page.php

    r3784 r3836  
    4747        $this->dequeue_all_stylesheets();
    4848
     49        wp_register_style(
     50            'open-sans',
     51            'https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600',
     52            array(),
     53            null
     54        );
     55
    4956        wp_enqueue_style(
    5057            'wccsp-template',
    5158            plugins_url( '/css/template-coming-soon.css', __DIR__ ),
    52             array(),
     59            array( 'open-sans' ),
    5360            1
    5461        );
Note: See TracChangeset for help on using the changeset viewer.