Making WordPress.org

Changeset 3836


Ignore:
Timestamp:
08/22/2016 04:53:17 PM (10 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

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page
Files:
2 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                );
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/css/template-coming-soon.css

    r3784 r3836  
    11body {
    22        margin: 0;
    3         font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
     3        font-family: "Open Sans", sans-serif;
    44        font-size: 24px;
    55        -webkit-font-smoothing: antialiased;
Note: See TracChangeset for help on using the changeset viewer.