Making WordPress.org

Ticket #1899: 1899.2.diff

File 1899.2.diff, 6.3 KB (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-topic-lead.php

     
    2020                                <div class="topic-indicator">
    2121                                        <span class="dashicons dashicons-admin-post" title="<?php esc_attr_e( 'Sticky Topic', 'wporg-forums' ); ?>"></span>
    2222                                </div>
     23                        <?php elseif ( bbp_is_topic_closed() ) : ?>
     24                                <div class="topic-indicator">
     25                                        <span class="dashicons dashicons-lock" title="<?php esc_attr_e( 'Closed Topic', 'wporg-forums' ); ?>"></span>
     26                                </div>
    2327                        <?php endif; ?>
    2428
    2529                        <div class="bbp-topic-author">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/site/_bbpress.scss

     
    764764                                        }
    765765                                }
    766766
    767                                 &.sticky,
    768                                 &.super-sticky {
     767                                &.sticky .dashicons-admin-post,
     768                                &.super-sticky .dashicons-admin-post,
     769                                &.status-closed .dashicons-lock {
    769770
    770                                         .dashicons-admin-post {
    771                                                 display: block;
    772                                                 float: left;
    773                                                 color: #fff;
    774                                                 background: gold;
    775                                                 padding-top: 3px;
    776                                                 width: 30px;
    777                                                 height: 25px;
    778                                                 border-radius: 0 3px 3px 0;
    779                                         }
     771                                        display: block;
     772                                        float: left;
     773                                        color: #fff;
     774                                        background: gold;
     775                                        padding-top: 3px;
     776                                        width: 30px;
     777                                        height: 25px;
     778                                        border-radius: 0 3px 3px 0;
     779                                }
    780780
    781                                         &.status-closed .dashicons-admin-post {
    782                                                 background: #bbb;
    783                                         }
     781                                &.status-closed .dashicons-admin-post,
     782                                &.status-closed .dashicons-lock {
     783                                        background: #bbb;
    784784                                }
    785785                        }
    786786                }
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/style-original.scss

     
    242242        background-color: #fff8e5 !important;
    243243}
    244244
     245/* Closed topics */
     246#bbpress-forums ul.status-closed:not(.sticky) li.bbp-topic-title a.bbp-topic-permalink:before {
     247        content: "\f160";
     248        color: #bbb;
     249        font: normal 16px/1 'dashicons';
     250        margin-right: 5px;
     251        float: left;
     252        padding-top: 2px;
     253}
     254
    245255/* Resolved topics */
    246256.topic-resolved-indicator {
    247257        background-color: #64b450;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/style-rtl.css

     
    434434        background-color: #fff8e5 !important;
    435435}
    436436
     437/* Closed topics */
     438#bbpress-forums ul.status-closed:not(.sticky) li.bbp-topic-title a.bbp-topic-permalink:before {
     439        content: "\f160";
     440        color: #bbb;
     441        font: normal 16px/1 'dashicons';
     442        margin-left: 5px;
     443        float: right;
     444        padding-top: 2px;
     445}
     446
    437447/* Resolved topics */
    438448.topic-resolved-indicator {
    439449        background-color: #64b450;
     
    32253235        width: 30px;
    32263236}
    32273237
    3228 .single-topic .entry-content #bbpress-forums .topic.sticky .dashicons-admin-post, .single-topic .entry-content #bbpress-forums .topic.super-sticky .dashicons-admin-post {
     3238.single-topic .entry-content #bbpress-forums .topic.sticky .dashicons-admin-post,
     3239.single-topic .entry-content #bbpress-forums .topic.super-sticky .dashicons-admin-post,
     3240.single-topic .entry-content #bbpress-forums .topic.status-closed .dashicons-lock {
    32293241        display: block;
    32303242        float: right;
    32313243        color: #fff;
     
    32363248        border-radius: 3px 0 0 3px;
    32373249}
    32383250
    3239 .single-topic .entry-content #bbpress-forums .topic.sticky.status-closed .dashicons-admin-post, .single-topic .entry-content #bbpress-forums .topic.super-sticky.status-closed .dashicons-admin-post {
     3251.single-topic .entry-content #bbpress-forums .topic.status-closed .dashicons-admin-post,
     3252.single-topic .entry-content #bbpress-forums .topic.status-closed .dashicons-lock {
    32403253        background: #bbb;
    32413254}
    32423255
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/style.css

     
    434434        background-color: #fff8e5 !important;
    435435}
    436436
     437/* Closed topics */
     438#bbpress-forums ul.status-closed:not(.sticky) li.bbp-topic-title a.bbp-topic-permalink:before {
     439        content: "\f160";
     440        color: #bbb;
     441        font: normal 16px/1 'dashicons';
     442        margin-right: 5px;
     443        float: left;
     444        padding-top: 2px;
     445}
     446
    437447/* Resolved topics */
    438448.topic-resolved-indicator {
    439449        background-color: #64b450;
     
    32273237        width: 30px;
    32283238}
    32293239
    3230 .single-topic .entry-content #bbpress-forums .topic.sticky .dashicons-admin-post, .single-topic .entry-content #bbpress-forums .topic.super-sticky .dashicons-admin-post {
     3240.single-topic .entry-content #bbpress-forums .topic.sticky .dashicons-admin-post,
     3241.single-topic .entry-content #bbpress-forums .topic.super-sticky .dashicons-admin-post,
     3242.single-topic .entry-content #bbpress-forums .topic.status-closed .dashicons-lock {
    32313243        display: block;
    32323244        float: left;
    32333245        color: #fff;
     
    32383250        border-radius: 0 3px 3px 0;
    32393251}
    32403252
    3241 .single-topic .entry-content #bbpress-forums .topic.sticky.status-closed .dashicons-admin-post, .single-topic .entry-content #bbpress-forums .topic.super-sticky.status-closed .dashicons-admin-post {
     3253.single-topic .entry-content #bbpress-forums .topic.status-closed .dashicons-admin-post,
     3254.single-topic .entry-content #bbpress-forums .topic.status-closed .dashicons-lock {
    32423255        background: #bbb;
    32433256}
    32443257