Making WordPress.org


Ignore:
Timestamp:
07/24/2018 05:27:23 PM (8 years ago)
Author:
obenland
Message:

DevHub: Add short descriptions to Related section

Props keesiemeijer, kevinwhoffman.
Fixes #1847.

File:
1 edited

Legend:

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

    r6912 r7491  
    342342                border-image: none;
    343343                border-style: solid solid none;
    344                 border-width: 1px 1px 0;   
     344                border-width: 1px 1px 0;
    345345                display: inline-block;
    346346                padding: .5em 1em;
    … …  
    352352                border-color: #ccc;
    353353                border-radius: 3px 3px 0 0;
    354                 color: #333; 
     354                color: #333;
    355355        }
    356356        .tab-section {
    … …  
    10611061        ----------------------------------------------- */
    10621062        .related {
    1063                 ul {
    1064                         line-height: 1.7; /* Slightly increase the line height for more readability */
    1065                         list-style-type: none;
    1066                         margin: 0;
    1067                         overflow-x: auto;
    1068                 }
    1069 
    10701063                .show-more, .hide-more {
    10711064                        display: none;
    10721065                }
    1073         }
    1074 
     1066
     1067                /* Hide the title and toc links (same as .screen-reader-text)
     1068                   this allows for linking from the toc. */
     1069                h3, .uses .toc-jump, .used-by .toc-jump {
     1070                        height: 0;
     1071                        margin-bottom: 0;
     1072                        clip: rect(1px, 1px, 1px, 1px);
     1073                        position: absolute !important;
     1074                }
     1075
     1076                .used-by, .uses {
     1077                        overflow-x: auto;
     1078                        clear: right;
     1079                }
     1080
     1081                td p  {
     1082                        margin-bottom: 0;
     1083                }
     1084
     1085                th, td {
     1086                        width: 50%;
     1087                }
     1088
     1089                @media (max-width: 43em) {
     1090                        .related-desc, span {
     1091                                display: none;
     1092                        }
     1093                }
     1094        }
    10751095
    10761096        .source-content {
    … …  
    11061126
    11071127        /* Changelog */
    1108         table {
     1128        .changelog table {
    11091129                .changelog-version {
    11101130                        width: 10%;
    … …  
    11131133                        width: 90%;
    11141134                }
    1115 
    11161135        }
    11171136
    … …  
    15871606                        color: #fff;
    15881607                        border-bottom: 1px solid #fff;
    1589                        
     1608
    15901609                        @media screen and (max-width: 48em) {
    15911610                                border-bottom: 0;
    … …  
    23932412                }
    23942413        }
    2395        
     2414
    23962415        .entry-content {
    23972416                margin-top: 2rem;
    … …  
    24802499                        background: #eee;
    24812500                }
    2482                
     2501
    24832502                &:focus, &:active {
    24842503                        border-color: #bbb;
    … …  
    24872506                        box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    24882507                }
    2489                
     2508
    24902509                > span {
    24912510                        color: #757575;
    2492                        
     2511
    24932512                        &.red {
    24942513                                color: #dc3232;
    … …  
    25032522        .btn-group {
    25042523                display: inline;
    2505                
     2524
    25062525                > a {
    25072526                        position: relative;
    2508                        
     2527
    25092528                        @media(min-width: 571px) {
    25102529                                &:first-child {
Note: See TracChangeset for help on using the changeset viewer.