Making WordPress.org


Ignore:
Timestamp:
04/05/2018 05:16:44 AM (7 years ago)
Author:
dd32
Message:

Plugin Directory: Make #changelog open the Development tab by default.

Due to how the tab pre-selection is specified in CSS, it's unfortunately not possible to scroll to the correct position, but this at least opens the correct tab.

Fixes #2771.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/style.scss

    r6398 r7032  
    125125    span#reviews,
    126126    span#developers,
     127    span#changelog,
    127128    span#installation {
    128129        position:fixed;
    129130    }
    130131
    131     span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ .tabs li#tablink-description ,
     132    span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ span#changelog:not(:target) ~ .tabs li#tablink-description ,
    132133    span#reviews:target ~ .tabs li#tablink-reviews,
    133134    span#installation:target ~ .tabs li#tablink-installation,
    134     span#developers:target ~ .tabs li#tablink-developers  {
     135    span#developers:target ~ .tabs li#tablink-developers,
     136    span#changelog:target ~ .tabs li#tablink-developers  {
    135137        border-top: 2px solid #eee;
    136138        border-left: 2px solid #eee;
     
    141143    }
    142144
    143     span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ .entry-content #tab-description,
    144     span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ .entry-content #screenshots,
    145     span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ .entry-content #faq,
    146     span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ .entry-content #tab-developers,
    147     span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ .entry-content #tab-developers ~ button,
     145    span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ span#changelog:not(:target) ~ .entry-content #tab-description,
     146    span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ span#changelog:not(:target) ~ .entry-content #screenshots,
     147    span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ span#changelog:not(:target) ~ .entry-content #faq,
     148    span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ span#changelog:not(:target) ~ .entry-content #tab-developers,
     149    span#reviews:not(:target) ~ span#installation:not(:target) ~ span#developers:not(:target) ~ span#changelog:not(:target) ~ .entry-content #tab-developers ~ button,
    148150    span#reviews:target ~ .entry-content #tab-reviews,
    149151    span#installation:target ~ .entry-content #tab-installation,
     
    151153    span#developers:target ~ .entry-content #tab-developers,
    152154    span#developers:target ~ .entry-content #tab-developers ~ button,
    153     span#developers:target ~ .entry-content #tab-developers .plugin-development {
     155    span#developers:target ~ .entry-content #tab-developers .plugin-development,
     156    span#changelog:target ~ .entry-content #tab-changelog,
     157    span#changelog:target ~ .entry-content #tab-developers,
     158    span#changelog:target ~ .entry-content #tab-developers ~ button,
     159    span#changelog:target ~ .entry-content #tab-developers .plugin-development {
    154160        display:block;
    155161    }
Note: See TracChangeset for help on using the changeset viewer.