Making WordPress.org

Changeset 1730


Ignore:
Timestamp:
07/10/2015 09:34:31 PM (11 years ago)
Author:
coffee2code
Message:

W.org P2 child theme: Adjust style rules so they can be made to apply equally to widget-based table of contents as it does to menu-based version.

Also makes chapters behave as links in to ToC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css

    r1214 r1730  
    1111}
    1212
    13 .post-type-archive-handbook ul#menu-table-of-contents a[href="#"],
    14 .single-handbook ul#menu-table-of-contents a[href="#"] {
     13.post-type-archive-handbook #wrapper .menu-table-of-contents-container > ul:first-child > li > a,
     14.single-handbook #wrapper .menu-table-of-contents-container > ul:first-child > li > a {
    1515        font-weight: bold;
    1616        color: #555;
     
    1818        padding: 4px 0;
    1919        display: block;
    20         cursor: text;
    21 }
    22 
    23 .post-type-archive-handbook ul#menu-table-of-contents a[href="#"]:hover,
    24 .single-handbook ul#menu-table-of-contents a[href="#"]:hover {
    25         color: #555!important;
    26 }
    27 
    28 .post-type-archive-handbook ul#menu-table-of-contents a,
    29 .single-handbook ul#menu-table-of-contents a {
     20}
     21
     22.post-type-archive-handbook #wrapper .menu-table-of-contents-container a,
     23.single-handbook #wrapper .menu-table-of-contents-container a {
    3024        color: #555;
    3125}
     
    157151}
    158152
    159 .post-type-archive-handbook ul#menu-table-of-contents,
    160 .single-handbook ul#menu-table-of-contents {
     153.post-type-archive-handbook #wrapper .menu-table-of-contents-container > ul,
     154.single-handbook #wrapper .menu-table-of-contents-container > ul {
    161155        padding: 12px;
    162156        background: #f5f5f5;
    163157}
    164158
    165 .post-type-archive-handbook ul#menu-table-of-contents > li,
    166 .single-handbook ul#menu-table-of-contents > li {
     159.post-type-archive-handbook #wrapper .menu-table-of-contents-container > ul > li,
     160.single-handbook #wrapper .menu-table-of-contents-container > ul > li {
    167161        list-style: none;
    168162}
    169163
    170 .post-type-archive-handbook ul#menu-table-of-contents li ul a ,
    171 .single-handbook ul#menu-table-of-contents li ul a {
     164.post-type-archive-handbook #wrapper .menu-table-of-contents-container > ul li ul a ,
     165.single-handbook #wrapper .menu-table-of-contents-container > ul li ul a {
    172166        font-weight: normal;
    173167}
Note: See TracChangeset for help on using the changeset viewer.