Making WordPress.org


Ignore:
Timestamp:
05/31/2018 12:51:13 PM (8 years ago)
Author:
netweb
Message:

Support Theme: Update CSS to meet WordPress CSS Coding Standards

See https://make.wordpress.org/core/handbook/best-practices/coding-standards/css/

File:
1 edited

Legend:

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

    r6958 r7256  
    6767
    6868        ul li {
    69                 list-style-type:none;
    70                 position:relative;
     69                list-style-type: none;
     70                position: relative;
    7171
    7272                a {
     
    8383
    8484                        &.subcurrent {
    85                                 font-weight: bold;
     85                                font-weight: 700;
    8686                        }
    8787
     
    154154
    155155        #head-search {
     156
    156157                @include breakpoint( $sm ) {
    157158                        float: right;
     
    186187                                }
    187188
    188                                 @media screen and (max-width:480px) {
     189                                @media screen and (max-width: 480px) {
    189190                                        width: 216px;
    190191                                }
     
    229230
    230231                #wporg-header-menu {
    231                         float:left;
     232                        float: left;
    232233                        list-style: none;
    233234                        margin: -15px 0 0;
     
    241242                ul li {
    242243                        float: left;
    243                         position:relative;
     244                        position: relative;
    244245
    245246                        a {
     
    264265                        }
    265266
    266                         &.current-menu-item:after,
    267                         &.current_page_parent:after {
     267                        &.current-menu-item::after,
     268                        &.current_page_parent::after {
    268269                                border-bottom: 9px solid #f7f7f7;
    269270                                border-left: 9px solid transparent;
    270271                                border-right: 9px solid transparent;
    271                                 content: '';
     272                                content: "";
    272273                                height: 0;
    273274                                left: 50%;
     
    310311                ul li .nav-submenu:hover {
    311312                        display: block !important;/* Prevents #wporg-header ul overwriting this */
    312                         left:0;
    313                         margin-left:0;
     313                        left: 0;
     314                        margin-left: 0;
    314315                        position: absolute;
    315316                        top: 46px;
     
    322323                }
    323324
    324                 ul li.current-menu-item:after,
    325                 ul li.current_page_parent:after,
     325                ul li.current-menu-item::after,
     326                ul li.current_page_parent::after,
    326327                ul li a.current ~ .uparrow {
    327328                        border-bottom-color: $color__wp-blue;
     
    336337        display: block;
    337338        float: left;
    338         font-family: 'dashicons';
     339        font-family: dashicons;
    339340        font-size: 16px;
    340341        font-style: normal;
    341         font-weight: normal;
     342        font-weight: 400;
    342343        left: 10px;
    343344        line-height: 1;
     
    348349        text-shadow: none;
    349350        top: 75px;
    350         transition: color .1s ease-in;
     351        transition: color 0.1s ease-in;
    351352        vertical-align: top;
    352353        -webkit-font-smoothing: antialiased;
    353354
    354         &:before {
     355        &::before {
    355356                border: none;
    356357                box-sizing: border-box;
    357358                color: #888;
    358                 content: '\f228';
     359                content: "\f228";
    359360                display: inline-block;
    360361                float: left;
    361                 font: normal 50px/1 'Dashicons';
     362                font: 400 50px/1 Dashicons;
    362363                margin: 0;
    363364                outline: none;
     
    375376#download-mobile {
    376377        background: #f7f7f7;
    377         border-bottom: 1px solid #dddddd;
     378        border-bottom: 1px solid #ddd;
    378379
    379380        .wrapper {
Note: See TracChangeset for help on using the changeset viewer.