Making WordPress.org


Ignore:
Timestamp:
05/31/2018 12:51:13 PM (7 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/site/_site.scss

    r5824 r7256  
    77
    88/*--------------------------------------------------------------
    9 # .site-header 
     9# .site-header
    1010--------------------------------------------------------------*/
    1111.site-header {
     
    113113
    114114            li {
     115
    115116                &:hover > ul,
    116117                &.focus > ul {
     
    159160
    160161        @media screen and (min-width: $ms-breakpoint) {
     162
    161163            &.active {
    162164                border-bottom: 1px solid;
     
    171173
    172174@media screen and (min-width: $ms-breakpoint) {
     175
    173176    #wporg-header ul li a.current ~ .uparrow,
    174     #wporg-header ul li.current-menu-item:after,
    175     #wporg-header ul li.current_page_parent:after {
     177    #wporg-header ul li.current-menu-item::after,
     178    #wporg-header ul li.current_page_parent::after {
    176179        border-bottom: 9px solid $color__wp-blue;
    177180    }
     
    201204    -webkit-appearance: none;
    202205
    203     .toggled &:before {
     206    .toggled &::before {
    204207        content: "\f343";
    205208    }
     
    207210
    208211@media screen and ( min-width: $ms-breakpoint ) {
     212
    209213    .menu-toggle.dashicons {
    210214        display: none;
    211215    }
     216
    212217    .main-navigation {
    213218        float: right;
     
    269274
    270275    .page-header {
     276
    271277        h1 {
    272278            margin: 0;
    273279        }
     280
    274281        p {
    275282            margin: 0.5rem 0;
     
    294301--------------------------------------------------------------*/
    295302.sidebar {
     303
    296304    div {
    297305        margin-bottom: 2rem;
    298306
    299307        ul {
    300             margin-bottom:0;
    301         }
    302        
     308            margin-bottom: 0;
     309        }
     310
    303311        ul > li {
    304312            font-size: ms(-2);
     
    357365    .site-header.home &,
    358366    .site-main & {
     367
    359368        .button-search {
    360369            background: transparent;
     
    397406
    398407        @media screen and (min-width: $ms-breakpoint) {
     408
    399409            .search-field {
    400410                border-radius: 2px 0 0 2px;
     
    410420
    411421        @media screen and (min-width: 60em) {
     422
    412423            .search-field {
    413424                width: 10rem;
     
    425436
    426437.search {
     438
    427439    .site-main {
    428440        margin-top: 2rem;
     
    440452--------------------------------------------------------------*/
    441453.page {
     454
    442455    .entry-header {
    443456        margin-top: 2rem;
     
    456469
    457470    .entry-content {
     471
    458472        h2 {
    459473            font-size: ms( 4 );
     
    506520
    507521    .submenu li.current {
    508         font-weight: bold;
     522        font-weight: 700;
    509523    }
    510524
     
    525539
    526540.page-template-page-full-width {
     541
    527542    .entry-header .entry-title,
    528543    .entry-content section .container {
     
    539554    text-align: center;
    540555}
    541 
    542 
    543 
Note: See TracChangeset for help on using the changeset viewer.