Making WordPress.org

Changeset 14060


Ignore:
Timestamp:
09/17/2024 04:03:18 PM (4 months ago)
Author:
akirk
Message:

Translation Events: Fix CSS styling of event bubble

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/wporg-gp-translation-events.php

    r14004 r14060  
    392392        }
    393393
    394         $content = '<div id="active-events-before-translation-table" class="active-events-before-translation-table">';
     394        $content = '<div id="active-events-before-translation-table" class="active-events-before-translation-table" style="width: 100%; border: 1px solid var(--gp-color-border-default); background: var(--gp-color-status-waiting-subtle); margin: 1rem 0; padding: 0.3rem 0.8rem;">';
    395395        /* translators: %d: Number of events */
    396396        $content .= sprintf( _n( 'Contributing to %d event:', 'Contributing to %d events:', $number_of_events, 'gp-translation-events' ), $number_of_events );
     
    398398
    399399        foreach ( array_splice( $events, 0, 2 ) as $event ) {
    400             $content .= '<span class="active-events-before-translation-table"><a href="' . Urls::event_details( $event->id() ) . '" target="_blank">' . esc_html( $event->title() ) . '</a></span>';
     400            $content .= '<span class="active-events-before-translation-table" style="font-weight: 500; color: var(--gp-color-bubble-inactive-project-text); border: 1px solid var(--gp-color-bubble-inactive-project-text); font-size: .7em; margin-right: 0.3em; width: 6em; text-align: center; padding: 0.2em 0.5em; border-radius: 1em; text-transform: capitalize;"><a href="' . Urls::event_details( $event->id() ) . '" target="_blank" style="color: var(--gp-color-bubble-inactive-project-text); text-decoration: none;">' . esc_html( $event->title() ) . '</a></span>';
    401401        }
    402402
     
    415415                    'id'    => array(),
    416416                    'class' => array(),
     417                    'style' => array(),
    417418                ),
    418419                'span' => array(
    419420                    'class' => array(),
     421                    'style' => array(),
    420422                ),
    421423                'a'    => array(
    422424                    'href'   => array(),
    423425                    'target' => array(),
     426                    'style'  => array(),
    424427                ),
    425428            )
    426429        );
    427430    }
     431
    428432
    429433    /**
Note: See TracChangeset for help on using the changeset viewer.