Making WordPress.org

Ticket #334: coming-soon.3.diff

File coming-soon.3.diff, 3.2 KB (added by ryelle, 9 years ago)
  • classes/wccsp-settings.php

     
    3434        public function get_settings() {
    3535                $defaults = array(
    3636                        'enabled'                    => 'off',        // so that sites created before the plugin was deployed won't display the home page when the plugin is activated
    37                         'body_background_color'      => '#0073aa',
     37                        'body_background_color'      => '#0073AA',
    3838                        'image_id'                   => 0,
    3939                        'background_id'              => 0,
    4040                        'container_background_color' => '#FFFFFF', // deprecated
     
    6060                                'autofocus[section]' => 'wccsp_live_preview',
    6161                                'url'                => rawurlencode( add_query_arg( 'wccsp-preview', '', site_url() ) ),
    6262                        ),
    63                         admin_url( 'customize.php' )
     63                        '/customize.php'
    6464                );
    6565
    6666                return $url;
  • classes/wordcamp-coming-soon-page.php

     
    4545                }
    4646
    4747                $this->dequeue_all_stylesheets();
     48                wp_register_style( 'open-sans', 'https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600', array(), null );
    4849
    4950                wp_enqueue_style(
    5051                        'wccsp-template',
    5152                        plugins_url( '/css/template-coming-soon.css', __DIR__ ),
    52                         array(),
     53                        array( 'open-sans' ),
    5354                        1
    5455                );
    5556        }
  • css/template-coming-soon.css

     
    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;
    66        -moz-osx-font-smoothing: grayscale;
     
    130130        display: block;
    131131}
    132132
    133         label span {
    134                 margin-left: 8px;
    135                 text-transform: uppercase;
    136                 font-size: 16px;
    137         }
    138 
    139133.jetpack_subscription_widget {
    140134}
    141135
     
    184178                margin: 0 0 50px;
    185179        }
    186180
    187         .wccsp-contact input[type="text"],
    188         .wccsp-contact input[type="email"],
    189         .wccsp-contact textarea {
     181        .wccsp-contact .contact-form input[type="text"],
     182        .wccsp-contact .contact-form input[type="email"],
     183        .wccsp-contact .contact-form textarea {
     184                margin-bottom: 0;
     185                width: 100%;
     186                max-width: 100%;
    190187                border: 1px solid #cbcdce;
    191188        }
    192189
     
    194191                margin-bottom: 40px;
    195192        }
    196193
    197         .wccsp-contact label {
     194        .wccsp-contact .contact-form label {
    198195                margin-bottom: 10px;
     196                font-weight: normal;
    199197        }
    200198
    201         .wccsp-contact input[type="submit"] {
     199        .wccsp-contact .contact-form label span {
     200                margin-left: 8px;
     201                text-transform: uppercase;
     202                font-size: 16px;
     203        }
     204
     205        .wccsp-contact .contact-submit {
     206                text-align: right;
     207        }
     208
     209        .wccsp-contact .contact-form input[type="submit"] {
    202210                padding: 5px 30px;
    203211                width: auto;
    204212        }
     
    223231        .wccsp-footer a:focus {
    224232                text-decoration: underline;
    225233        }
     234
     235/* If infinite scroll is active, JP adds a footer. */
     236#infinite-footer {
     237        display: none !important;
     238}