WordPress.org

Making WordPress.org

Ticket #1952: 1952.diff

File 1952.diff, 1.8 KB (added by dufresnesteven, 2 months ago)

This adds the placeholder div and the css that is on the homepage.

  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/header.php

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/header.php wordpress.org/public_html/wp-content/themes/pub/wporg-support/header.php
    index 016b5e58c..12e33ea16 100644
    wporg_get_global_header(); 
    6868                                <?php endif; ?>
    6969                        </div><!-- .site-branding -->
    7070                </header><!-- #masthead -->
     71                <div id="lang-guess-wrap"></div>
     72 No newline at end of file
  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/elements/_elements.scss

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/elements/_elements.scss wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/elements/_elements.scss
    index 16d6b7ac4..3d5172e0e 100644
    img { 
    6565@import "notices";
    6666@import "banners";
    6767@import "badges";
     68@import "legacy_notice";
  • new file wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/elements/_legacy_notice.scss

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/elements/_legacy_notice.scss wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/elements/_legacy_notice.scss
    new file mode 100644
    index 000000000..ba6a36635
    - +  
     1/* We include this top match the homepage language bar  */
     2#lang-guess {
     3        width: inherit;
     4        max-width: inherit;
     5        margin: 0;
     6        border: inherit;
     7        font: inherit;
     8        padding: .5rem;
     9        background: #C7E8CA;
     10        text-align: center;
     11        font-size: .8rem;
     12        -moz-border-radius: inherit;
     13        -khtml-border-radius: inherit;
     14        -webkit-border-radius: inherit;
     15        border-radius: inherit
     16}
     17
     18#lang-guess a {
     19        text-decoration: underline
     20}