Making WordPress.org


Ignore:
Timestamp:
02/08/2022 07:19:44 AM (5 years ago)
Author:
dd32
Message:

Support Forums: Add a notice above a forum if you're subscribed to it.

This also adds a notice that you've successfully unsubscribed from the item too.

See #3456.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/elements/_notices.scss

    r7256 r11529  
    22
    33.notice {
    4         background: #fff;
    5         border-left: 4px solid #fff;
     4        --notice-background-color: #fff;
     5        --notice-border-color: #fff;
     6
     7        background: var(--notice-background-color);
     8        border-left: 4px solid var(--notice-border-color);
    69        box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
    710        margin: 1em 0;
     
    2326
    2427        &.notice-success {
    25                 border-left-color: #46b450;
    26         }
     28                --notice-border-color: #46b450;
    2729
    28         &.notice-success.notice-alt {
    29                 background-color: #ecf7ed;
     30                &.notice-alt {
     31                        --notice-background-color: #ecf7ed;
     32                }
    3033        }
    3134
    3235        &.notice-warning {
    33                 border-left-color: #ffb900;
    34         }
     36                --notice-border-color: #ffb900;
    3537
    36         &.notice-warning.notice-alt {
    37                 background-color: #fff8e5;
     38                &.notice-alt {
     39                        --notice-background-color: #fff8e5;
     40                }
    3841        }
    3942
    4043        &.notice-error {
    41                 border-left-color: #dc3232;
    42         }
     44                --notice-border-color: #dc3232;
    4345
    44         &.notice-error.notice-alt {
    45                 background-color: #fbeaea;
     46                &.notice-alt {
     47                        --notice-background-color: #fbeaea;
     48                }
    4649        }
    4750
    4851        &.notice-info {
    49                 border-left-color: #00a0d2;
     52                --notice-border-color: #00a0d2;
     53
     54                &.notice-alt {
     55                        --notice-background-color: #e5f5fa;
     56                }
    5057        }
    5158
    52         &.notice-info.notice-alt {
    53                 background-color: #e5f5fa;
     59        &.with-dashicon {
     60                padding-left: 80px;
     61
     62                .dashicons {
     63                        color: var(--notice-border-color);
     64                        float: left;
     65                        font-size: 70px;
     66                        margin-left: -77px;
     67                }
     68
     69                > p {
     70                        margin: 0;
     71                        min-height: 5em;
     72                        padding-bottom: 1em;
     73                        padding-top: 1em;
     74                }
    5475        }
    5576}
Note: See TracChangeset for help on using the changeset viewer.