Making WordPress.org

Changeset 5149


Ignore:
Timestamp:
03/13/2017 04:29:35 PM (9 years ago)
Author:
danielbachhuber
Message:

make/cli: Style TOC as an inline list

Using a full inline sidebar affects the docs readability,
and isn't necessary for CLI docs

File:
1 edited

Legend:

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

    r5148 r5149  
    5353            height: .8em;
    5454        }
     55        .single-handbook div.table-of-contents {
     56            margin: 0;
     57            float: none;
     58            padding: 0;
     59            border: none;
     60            box-shadow: none;
     61            width: auto;
     62        }
     63        .single-handbook div.table-of-contents:after {
     64            content: " ";
     65            display: block;
     66            clear: both;
     67        }
     68        .single-handbook .table-of-contents h2 {
     69            display: none;
     70        }
     71        .single-handbook div.table-of-contents ul {
     72            padding: 0;
     73            margin-top: 0.4em;
     74            margin-bottom: 1.1em;
     75        }
     76        .single-handbook div.table-of-contents > ul li {
     77            display: inline-block;
     78            padding: 0;
     79            font-size: 12px;
     80        }
     81        .single-handbook div.table-of-contents > ul li a:after {
     82            content: "|";
     83            display: inline-block;
     84            width: 20px;
     85            text-align: center;
     86            color: #eeeeee
     87        }
     88        .single-handbook div.table-of-contents > ul li:last-child a:after {
     89            content: "";
     90        }
     91        .single-handbook div.table-of-contents ul ul {
     92            display: none;
     93        }
    5594    </style>
    5695    <?php
Note: See TracChangeset for help on using the changeset viewer.