Making WordPress.org


Ignore:
Timestamp:
01/29/2018 11:42:42 PM (8 years ago)
Author:
obenland
Message:

WPorg: Make subnav tab accessible

See #3091.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/css/components/_wporg-header.scss

    r6315 r6459  
    5353        max-width: 75%;
    5454        min-width: 200px;
    55         padding: 20px 0 0;
    5655        position: absolute;
    5756        text-align: left;
     57        top: 100%;
    5858        transition: left 0.3s;
    5959        z-index: 100000;
    6060
    61         &.active {
     61        &.toggled {
    6262            left: 0;
    6363        }
     
    8989        }
    9090
     91        a:hover,
     92        a.current,
     93        &.current-menu-item a,
     94        &.current_page_parent a {
     95            color: #00a0d2;
     96        }
     97
    9198        &#download,
    9299        &.download {
     
    123130
    124131            &.current,
    125             &.current-menu-item {
    126                 a {
    127                     color: #eee;
    128                 }
    129             }
    130 
     132            &.current-menu-item,
    131133            .uparrow {
    132134                display: none;
     
    134136        }
    135137
    136         a:hover,
    137         a.current,
    138         &.current-menu-item a,
    139         &.current_page_parent a {
    140             color: #00a0d2;
    141         }
    142     }
    143 
    144     .nav-submenu {
    145         display: none;
    146         margin-bottom: 10px;
    147         margin-top: -15px;
    148         padding: 0;
    149         position: static;
    150 
    151         li a {
    152             height: 24px;
    153             line-height: 24px;
    154             margin-left: 20px;
     138        .nav-submenu {
     139            clip: rect(1px, 1px, 1px, 1px);
     140            height: 1px;
     141            left: -2px;
     142            margin: 0;
     143            overflow: hidden;
     144            padding: 0;
     145            position: absolute;
     146            width: 1px;
     147            z-index: 99999;
     148
     149            li a {
     150                height: 24px;
     151                line-height: 24px;
     152                margin: 0;
     153            }
    155154        }
    156155    }
     
    195194
    196195            .button {
    197                 background: #191e23 url( //s.w.org/wp-includes/images/admin-bar-sprite.png?d=20120831 ) no-repeat 2px 4px;
     196                background: #191e23 url( //s.w.org/wp-includes/images/admin-bar-sprite.png?d=20120831 ) no-repeat 2px 5px;
    198197                border: none;
    199198                border-radius: 0;
     
    231230        }
    232231
     232        #headline h2 {
     233            text-rendering: optimizeLegibility;
     234        }
     235
    233236        #wporg-header-menu {
    234237            float:left;
     
    247250
    248251            a {
    249                 color: #eee;
    250                 display: block;
    251                 font-family: "Open Sans", Helvetica, Arial, "Liberation Sans", sans-serif;
    252                 font-size: 13px;
    253                 font-weight: 600;
    254252                height: 46px;
    255                 line-height: 34px;
    256                 margin: 0 4px;
    257253                padding: 0 6px;
    258254
     
    290286            }
    291287
    292             .nav-submenu li {
    293                 float: none;
    294 
    295                 a {
    296                     height: 34px;
    297                     line-height: 34px;
    298                     margin-left: 6px;
    299                 }
    300             }
    301         }
    302 
    303         .nav-submenu {
    304             background: #32373c;
    305             border: #32373c solid 1px;
    306             border-top: 0;
    307             display: none !important;/* Prevents #wporg-header ul overwriting this */
    308             margin-top: -1px;
    309             min-width: 0;
    310         }
    311 
    312         ul li:hover .nav-submenu,
    313         ul li .nav-submenu:hover {
    314             display: block !important;/* Prevents #wporg-header ul overwriting this */
    315             left:0;
    316             margin-left:0;
    317             position: absolute;
    318             top: 46px;
    319             width: auto;
    320             z-index: 101;
    321         }
    322 
    323         #headline h2 {
    324             text-rendering: optimizeLegibility;
     288            .nav-submenu {
     289                background: #32373c;
     290                border: #32373c solid 1px;
     291                border-top: 0;
     292                margin-top: -1px;
     293                min-width: 0;
     294
     295                li {
     296                    float: none;
     297
     298                    a {
     299                        height: 34px;
     300                        line-height: 34px;
     301                    }
     302                }
     303            }
     304        }
     305
     306        ul.nav-menu li:hover > ul,
     307        .nav-menu ul li:hover > ul,
     308        ul.nav-menu .focus > ul,
     309        .nav-menu .focus > ul {
     310            clip: inherit;
     311            height: inherit;
     312            overflow: inherit;
     313            width: inherit;
    325314        }
    326315
     
    334323
    335324#mobile-menu-button {
     325    background: none;
     326    border: none;
     327    box-shadow: none;
    336328    display: block;
    337329    float: left;
     
    340332    font-style: normal;
    341333    font-weight: normal;
    342     height: 32px;
    343334    left: 10px;
    344335    line-height: 1;
     336    padding: 1px;
    345337    position: absolute;
    346338    text-align: center;
    347339    text-decoration: inherit;
     340    text-shadow: none;
    348341    top: 75px;
    349342    transition: color .1s ease-in;
    350343    vertical-align: top;
    351     width: 39px;
    352     -webkit-font-smoothing: antialiased;
    353 
    354344    &:before {
    355345        border: none;
     
    360350        float: left;
    361351        font: normal 50px/1 'Dashicons';
    362         height: 32px;
    363352        margin: 0;
    364353        outline: none;
     
    366355        text-decoration: none;
    367356        vertical-align: middle;
    368         width: 39px;
    369357        -webkit-font-smoothing: antialiased;
    370     }
    371 
    372     &:hover {
    373         background:none;
    374358    }
    375359
     
    377361        display: none;
    378362    }
     363
     364    -webkit-font-smoothing: antialiased;
    379365}
    380366
Note: See TracChangeset for help on using the changeset viewer.