Making WordPress.org


Ignore:
Timestamp:
09/16/2020 03:20:39 AM (4 years ago)
Author:
dd32
Message:

Main theme: Add RTL styles for the jQuery Modal plugin for the post-download modal.

Props nabilmoqbel.
See #4702.
Fixes #5427

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php

    r9761 r10262  
    101101    } elseif ( is_page( 'download' ) ) {
    102102        wp_enqueue_style( 'jquery-modal-style', get_theme_file_uri( '/css/jquery.modal.min.css' ), [], '0.9.2' );
     103        if ( is_rtl() ) {
     104            wp_add_inline_style(
     105                'jquery-modal-style',
     106                '.modal { text-align: right; }' .
     107                '.modal a.close-modal { right: unset; left: -12.5px; }'
     108            );
     109        }
    103110        wp_enqueue_script( 'jquery-modal', get_theme_file_uri( '/js/jquery.modal.min.js' ), [ 'jquery' ], '0.9.2', true );
    104111        wp_enqueue_script( 'wporg-page-download', get_theme_file_uri( '/js/page-download.js' ), [ 'jquery', 'jquery-modal' ], '20191220', true );
Note: See TracChangeset for help on using the changeset viewer.