WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/09/2017 04:46:58 PM (3 years ago)
Author:
afercia
Message:

Buttons: Improve the .button-link CSS class for link-like buttons.

Updates .button-link adding color and underline to make link-like buttons look
like links by default. Introduces .button-link-delete as a modifier, stackable
CSS class for red button-links.

Props Cheffheid, afercia.

See #34242.
Fixes #35126.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r39968 r40052  
    14461446
    14471447                <?php if ( $supports_formats ) : ?>
    1448                     <button type="button" class="button-link post-option">
     1448                    <button type="button" class="post-option">
    14491449                        <span class="dashicons dashicons-admin-post"></span>
    14501450                        <span class="post-option-title"><?php _ex( 'Format', 'post format' ); ?></span>
     
    14551455
    14561456                <?php if ( $show_categories ) : ?>
    1457                     <button type="button" class="button-link post-option">
     1457                    <button type="button" class="post-option">
    14581458                        <span class="dashicons dashicons-category"></span>
    14591459                        <span class="post-option-title"><?php _e( 'Categories' ); ?></span>
     
    14631463
    14641464                <?php if ( $show_tags ) : ?>
    1465                     <button type="button" class="button-link post-option">
     1465                    <button type="button" class="post-option">
    14661466                        <span class="dashicons dashicons-tag"></span>
    14671467                        <span class="post-option-title"><?php _e( 'Tags' ); ?></span>
     
    14731473            <?php if ( $supports_formats ) : ?>
    14741474                <div class="setting-modal is-off-screen is-hidden">
    1475                     <button type="button" class="button-link modal-close">
     1475                    <button type="button" class="modal-close">
    14761476                        <span class="dashicons post-option-back"></span>
    14771477                        <span class="setting-title" aria-hidden="true"><?php _ex( 'Format', 'post format' ); ?></span>
     
    14841484            <?php if ( $show_categories ) : ?>
    14851485                <div class="setting-modal is-off-screen is-hidden">
    1486                     <button type="button" class="button-link modal-close">
     1486                    <button type="button" class="modal-close">
    14871487                        <span class="dashicons post-option-back"></span>
    14881488                        <span class="setting-title" aria-hidden="true"><?php _e( 'Categories' ); ?></span>
     
    14951495            <?php if ( $show_tags ) : ?>
    14961496                <div class="setting-modal tags is-off-screen is-hidden">
    1497                     <button type="button" class="button-link modal-close">
     1497                    <button type="button" class="modal-close">
    14981498                        <span class="dashicons post-option-back"></span>
    14991499                        <span class="setting-title" aria-hidden="true"><?php _e( 'Tags' ); ?></span>
     
    15081508    <div class="press-this-actions">
    15091509        <div class="pressthis-media-buttons">
    1510             <button type="button" class="insert-media button-link" data-editor="pressthis">
     1510            <button type="button" class="insert-media" data-editor="pressthis">
    15111511                <span class="dashicons dashicons-admin-media"></span>
    15121512                <span class="screen-reader-text"><?php _e( 'Add Media' ); ?></span>
Note: See TracChangeset for help on using the changeset viewer.