WordPress.org

Making WordPress.org

Changeset 3463


Ignore:
Timestamp:
06/19/2016 11:23:22 AM (2 years ago)
Author:
ocean90
Message:

Plugin Directory: Change CSS class name for locale banner and add the missing Sass file.

See #1728.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style-rtl.css

    r3461 r3463  
    439439}
    440440
    441 .notification {
    442   padding: .5rem;
    443   background: #C7E8CA;
    444   text-align: center;
    445   font-size: 12.8px;
    446   font-size: 0.8rem;
    447 }
    448 
    449 @media (min-width: 67rem) {
    450   .notification {
    451     margin: 1rem auto 0;
    452     max-width: 960px;
    453   }
    454 }
    455 
    456441.notice {
    457442  background: #fff;
     
    507492.notice.notice-info.notice-alt {
    508493  background-color: #e5f5fa;
     494}
     495
     496.locale-banner {
     497  padding: .5rem;
     498  background: #C7E8CA;
     499  text-align: center;
     500  font-size: 12.8px;
     501  font-size: 0.8rem;
     502}
     503
     504@media (min-width: 67rem) {
     505  .locale-banner {
     506    margin: 1rem auto 0;
     507    max-width: 960px;
     508  }
    509509}
    510510
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css

    r3461 r3463  
    439439}
    440440
    441 .notification {
    442   padding: .5rem;
    443   background: #C7E8CA;
    444   text-align: center;
    445   font-size: 12.8px;
    446   font-size: 0.8rem;
    447 }
    448 
    449 @media (min-width: 67rem) {
    450   .notification {
    451     margin: 1rem auto 0;
    452     max-width: 960px;
    453   }
    454 }
    455 
    456441.notice {
    457442  background: #fff;
     
    507492.notice.notice-info.notice-alt {
    508493  background-color: #e5f5fa;
     494}
     495
     496.locale-banner {
     497  padding: .5rem;
     498  background: #C7E8CA;
     499  text-align: center;
     500  font-size: 12.8px;
     501  font-size: 0.8rem;
     502}
     503
     504@media (min-width: 67rem) {
     505  .locale-banner {
     506    margin: 1rem auto 0;
     507    max-width: 960px;
     508  }
    509509}
    510510
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r3460 r3463  
    7777
    7878        $slug = get_queried_object()->post_name;
    79         wp_enqueue_script( 'wporg-plugins-locale-banner', get_template_directory_uri() . '/js/locale-banner.js', array(), '20160525', true );
     79        wp_enqueue_script( 'wporg-plugins-locale-banner', get_template_directory_uri() . '/js/locale-banner.js', array(), '20160619', true );
    8080        wp_localize_script( 'wporg-plugins-locale-banner', 'wporgLocaleBanner', array(
    8181            'apiURL' => rest_url( "/plugins/v1/plugin/$slug/translations" ),
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/locale-banner.js

    r3460 r3463  
    1111
    1212            var $banner = $( '<div />', {
    13                 'class': 'notification',
     13                'class': 'locale-banner',
    1414                'html': response.suggest_string
    1515            } );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/elements/_elements.scss

    r3345 r3463  
    4040@import "tables";
    4141@import "notices";
     42@import "banners";
Note: See TracChangeset for help on using the changeset viewer.