WordPress.org

Make WordPress Core

Changeset 27944


Ignore:
Timestamp:
04/04/2014 05:22:47 AM (7 years ago)
Author:
azaozz
Message:

TinyMCE: add image backgrounds for more and nextpage tags (also jshint fix for theme.js). Fixes #27106

Location:
trunk/src
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/theme.js

    r27937 r27944  
    454454    preview: function( event ) {
    455455        var self = this,
    456             current;
     456            current, preview;
    457457
    458458        // Bail if the user scrolled on a touch device
     
    479479
    480480        // Construct a new Preview view.
    481         var preview = new themes.view.Preview({
     481        preview = new themes.view.Preview({
    482482            model: this.model
    483483        });
  • trunk/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css

    r27899 r27944  
    8181}
    8282
     83/* Remove blue highlighting of selected images in WebKit */
     84img::selection {
     85    background-color: transparent;
     86}
     87
    8388/* Styles for the WordPress plugins */
    8489.mce-content-body img[data-mce-placeholder] {
     
    9297    -webkit-box-shadow: none;
    9398    box-shadow: none;
    94     width: 95%;
    95     height: 10px;
     99    width: 96%;
     100    height: 16px;
    96101    display: block;
    97102    margin: 15px auto 0;
     
    100105}
    101106
    102 /* Remove blue highlighting of selected images in WebKit */
    103 img::selection {
    104     background-color: transparent;
    105 }
    106 
    107107.mce-content-body img.mce-wp-nextpage[data-mce-selected],
    108108.mce-content-body img.mce-wp-more[data-mce-selected] {
    109     background-color: rgba(128,128,128,0.2);
    110109    outline: 1px dotted #888;
    111     border-color: transparent;
    112110}
    113111
    114112.mce-content-body img.mce-wp-more {
    115     border-top: 2px dashed #bbb;
     113    background: transparent url( images/more.png ) repeat-y scroll center center;
    116114}
    117115
    118116.mce-content-body img.mce-wp-nextpage {
    119     border-top: 3px dotted #bbb;
     117    background: transparent url( images/pagebreak.png ) repeat-y scroll center center;
    120118}
    121119
     
    421419    outline: 0;
    422420}
     421
     422@media print,
     423    (-o-min-device-pixel-ratio: 5/4),
     424    (-webkit-min-device-pixel-ratio: 1.25),
     425    (min-resolution: 120dpi) {
     426
     427    .mce-content-body img.mce-wp-more {
     428        background-image: url( images/more-2x.png );
     429        background-size: 1900px 20px;
     430    }
     431
     432    .mce-content-body img.mce-wp-nextpage {
     433        background-image: url( images/pagebreak-2x.png );
     434        background-size: 1900px 20px;
     435    }
     436}
Note: See TracChangeset for help on using the changeset viewer.