Making WordPress.org

Changeset 3649


Ignore:
Timestamp:
07/08/2016 06:42:57 AM (8 years ago)
Author:
drewapicture
Message:

developer.wordpress.org: Add hover styles to table of contents links in Code Reference pages.

Also slightly tightens up unordered lists within the ToC.

h/t kevinwhoffman.

See #1814.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss

    r3626 r3649  
    10561056        .table-of-contents {
    10571057            width: 300px;
     1058
     1059            ul {
     1060                margin-top: 6px;
     1061            }
     1062        }
     1063        ul.items {
     1064            li {
     1065                padding-bottom: 0px !important;
     1066            }
     1067            a {
     1068                &:hover {
     1069                    color: #d54e21 !important;
     1070                }
     1071            }
    10581072        }
    10591073        .toc-jump {
     
    14131427    }
    14141428
     1429    // Handbook ToC items.
    14151430    ul.items {
    14161431        margin-bottom: 8px !important;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css

    r3626 r3649  
    12661266  width: 300px;
    12671267}
     1268.devhub-wrap .wp-parser-class .table-of-contents ul, .devhub-wrap .wp-parser-function .table-of-contents ul, .devhub-wrap .wp-parser-hook .table-of-contents ul, .devhub-wrap .wp-parser-method .table-of-contents ul {
     1269  margin-top: 6px;
     1270}
     1271.devhub-wrap .wp-parser-class ul.items li, .devhub-wrap .wp-parser-function ul.items li, .devhub-wrap .wp-parser-hook ul.items li, .devhub-wrap .wp-parser-method ul.items li {
     1272  padding-bottom: 0px !important;
     1273}
     1274.devhub-wrap .wp-parser-class ul.items a:hover, .devhub-wrap .wp-parser-function ul.items a:hover, .devhub-wrap .wp-parser-hook ul.items a:hover, .devhub-wrap .wp-parser-method ul.items a:hover {
     1275  color: #d54e21 !important;
     1276}
    12681277.devhub-wrap .wp-parser-class .toc-jump, .devhub-wrap .wp-parser-function .toc-jump, .devhub-wrap .wp-parser-hook .toc-jump, .devhub-wrap .wp-parser-method .toc-jump {
    12691278  display: inline-block;
Note: See TracChangeset for help on using the changeset viewer.