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/style-original.scss

    r7126 r7256  
    5757*/
    5858
    59 .wrapper:after {
     59.wrapper::after {
    6060    visibility: hidden;
    6161    display: block;
     
    7070 */
    7171@media only screen and (min-width: 960px) {
     72
    7273    .col-6 #bbpress-forums {
    7374        margin-left: 0;
     
    264265#bbpress-forums fieldset.bbp-form legend,
    265266#bbpress-forums fieldset.bbp-form legend {
    266     font-weight: bold;
     267    font-weight: 700;
    267268    font-size: 15px;
    268269    color: #333;
     
    276277
    277278.sidebar .bbp-forums .bbp-forum-info {
    278     width: 80%
    279 }
     279    width: 80%;
     280}
     281
    280282.sidebar .bbp-forums .bbp-forum-topic-count {
    281283    width: 20%;
    282284}
     285
    283286.sidebar .forum-info,
    284287.sidebar .topic-info {
     
    310313}
    311314
    312 .sidebar .forum-info li:before,
    313 .sidebar .topic-info li:before,
    314 .sidebar div ul li a:before {
    315     font: normal 16px/1 'dashicons';
     315.sidebar .forum-info li::before,
     316.sidebar .topic-info li::before,
     317.sidebar div ul li a::before {
     318    font: 400 16px/1 dashicons;
    316319    margin-right: 5px;
    317320    float: left;
     
    320323}
    321324
    322 .sidebar a.feed:before {
    323     content: '\f303';
    324 }
    325 
    326 .sidebar a.bbp-view-title:before {
    327     content: '\f109';
    328 }
    329 
    330 .sidebar .forum-info li.topic-count:before {
    331     content: '\f450';
    332 }
    333 
    334 .sidebar .topic-info li.topic-forum:before {
    335     content: '\f449';
    336 }
    337 
    338 .sidebar .topic-info li.voice-count:before {
    339     content: '\f307';
    340 }
    341 
    342 .sidebar .topic-info li.reply-count:before,
    343 .sidebar .forum-info li.reply-count:before {
    344     content: '\f451';
    345 }
    346 
    347 .sidebar .topic-info li.topic-freshness-author:before,
    348 .sidebar .forum-info li.forum-freshness-author:before {
    349     content: '\f338';
    350 }
    351 
    352 .sidebar .topic-info li.topic-freshness-time:before,
    353 .sidebar .forum-info li.forum-freshness-time:before {
    354     content: '\f469';
    355 }
    356 
    357 .sidebar .forum-info li.forum-subscribe:before,
    358 .sidebar .topic-info li.topic-subscribe:before {
    359     content: '\f147';
    360 }
    361 
    362 .sidebar .topic-info li.topic-favorite:before {
    363     content: '\f155';
     325.sidebar a.feed::before {
     326    content: "\f303";
     327}
     328
     329.sidebar a.bbp-view-title::before {
     330    content: "\f109";
     331}
     332
     333.sidebar .forum-info li.topic-count::before {
     334    content: "\f450";
     335}
     336
     337.sidebar .topic-info li.topic-forum::before {
     338    content: "\f449";
     339}
     340
     341.sidebar .topic-info li.voice-count::before {
     342    content: "\f307";
     343}
     344
     345.sidebar .topic-info li.reply-count::before,
     346.sidebar .forum-info li.reply-count::before {
     347    content: "\f451";
     348}
     349
     350.sidebar .topic-info li.topic-freshness-author::before,
     351.sidebar .forum-info li.forum-freshness-author::before {
     352    content: "\f338";
     353}
     354
     355.sidebar .topic-info li.topic-freshness-time::before,
     356.sidebar .forum-info li.forum-freshness-time::before {
     357    content: "\f469";
     358}
     359
     360.sidebar .forum-info li.forum-subscribe::before,
     361.sidebar .topic-info li.topic-subscribe::before {
     362    content: "\f147";
     363}
     364
     365.sidebar .topic-info li.topic-favorite::before {
     366    content: "\f155";
    364367}
    365368
     
    388391}
    389392
    390 #bbpress-forums ul.sticky li.bbp-topic-title a.bbp-topic-permalink:before,
    391 #bbpress-forums ul.super-sticky li.bbp-topic-title a.bbp-topic-permalink:before {
    392     font: normal 16px/1 'dashicons';
    393     content: '\f450';
     393#bbpress-forums ul.sticky li.bbp-topic-title a.bbp-topic-permalink::before,
     394#bbpress-forums ul.super-sticky li.bbp-topic-title a.bbp-topic-permalink::before {
     395    font: 400 16px/1 dashicons;
     396    content: "\f450";
    394397    margin-right: 5px;
    395398    float: left;
     
    398401}
    399402
    400 #bbpress-forums ul.sticky.status-closed li.bbp-topic-title a.bbp-topic-permalink:before,
    401 #bbpress-forums ul.super-sticky.status-closed li.bbp-topic-title a.bbp-topic-permalink:before {
     403#bbpress-forums ul.sticky.status-closed li.bbp-topic-title a.bbp-topic-permalink::before,
     404#bbpress-forums ul.super-sticky.status-closed li.bbp-topic-title a.bbp-topic-permalink::before {
    402405    color: #bbb;
    403406}
     
    427430    border-radius: 3px;
    428431    font-size: 10px;
    429     font-weight: bold;
     432    font-weight: 700;
    430433}
    431434
     
    514517#bbpress-forums fieldset.bbp-form input {
    515518    border: 1px solid #ccc;
    516     outline-color: rgb(131,189,102);
     519    outline-color: rgb(131, 189, 102);
    517520}
    518521
     
    564567//  box-sizing: border-box;
    565568//  background: #f3f3f3;
    566 //  background-image: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#f4f4f4));
     569//  background-image:
     570//    -webkit-gradient(
     571//      linear,
     572//      left top,
     573//      left bottom,
     574//      from(#fefefe),
     575//      to(#f4f4f4)
     576//     );
    567577//  background-image: -webkit-linear-gradient(top, #fefefe, #f4f4f4);
    568578//  background-image: linear-gradient(to bottom, #fefefe, #f4f4f4);
     
    573583//  border-color: #999;
    574584//  background: #f3f3f3;
    575 //  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f3f3f3));
     585//  background-image:
     586//    -webkit-gradient(
     587//      linear,
     588//      left top,
     589//      left bottom,
     590//      from(#fff),
     591//      to(#f3f3f3)
     592//    );
    576593//  background-image: -webkit-linear-gradient(top, #fff, #f3f3f3);
    577594//  background-image: linear-gradient(to bottom, #fff, #f3f3f3);
     
    588605#bbpress-forums fieldset.bbp-form select:focus,
    589606#bbpress-forums fieldset.bbp-form input:focus {
    590     box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
     607    box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8);
    591608}
    592609
     
    613630
    614631/* Sticky topics */
    615 #bbpress-forums ul.sticky li.bbp-topic-title a.bbp-topic-permalink:before,
    616 #bbpress-forums ul.super-sticky li.bbp-topic-title a.bbp-topic-permalink:before {
     632#bbpress-forums ul.sticky li.bbp-topic-title a.bbp-topic-permalink::before,
     633#bbpress-forums ul.super-sticky li.bbp-topic-title a.bbp-topic-permalink::before {
    617634    content: "\f109";
    618635    color: #ffb900;
     
    627644
    628645/* Closed topics */
    629 #bbpress-forums ul.status-closed:not(.sticky) li.bbp-topic-title a.bbp-topic-permalink:before {
     646#bbpress-forums ul.status-closed:not(.sticky) li.bbp-topic-title a.bbp-topic-permalink::before {
    630647    content: "\f160";
    631648    color: #bbb;
    632     font: normal 16px/1 'dashicons';
     649    font: 400 16px/1 dashicons;
    633650    margin-right: 5px;
    634651    float: left;
     
    647664}
    648665
    649 .resolved:before,
    650 .topic-resolved-indicator:before {
     666.resolved::before,
     667.topic-resolved-indicator::before {
    651668    content: "\f147";
    652669    color: #64b450; /*#46b450;*/
    653     font: normal 18px/0.8 'dashicons';
     670    font: 400 18px/0.8 dashicons;
    654671    margin-right: 3px;
    655672    position: relative;
     
    657674}
    658675
    659 .topic-resolved-indicator:before {
     676.topic-resolved-indicator::before {
    660677    color: #fff;
    661678    font-size: 21px;
     
    664681
    665682/* Force widths for desktops */
    666 @media screen and ( min-width: 960px )  {
     683@media screen and ( min-width: 960px ) {
     684
    667685    #header-inner,
    668686    #headline-inner,
     
    673691        width: 960px;
    674692    }
     693
    675694    div.content {
    676695        width: 692px;
    677696    }
     697
    678698    div.leftcol {
    679699        width: 340px;
    680700    }
     701
    681702    div.rightcol {
    682703        width: 340px;
    683704    }
     705
    684706    div.sidebar {
    685707        width: 212px;
    686708    }
     709
    687710    div.group div.content {
    688711        width: 660px;
    689712    }
     713
    690714    div.group div.sidebar {
    691715        width: 200px;
     
    695719/* Do not fix #header for non-desktops */
    696720@media screen and ( max-width: 782px ) {
     721
    697722    #header {
    698723        top: 0;
     
    700725        position: absolute;
    701726    }
     727
    702728    #wpadminbar {
    703729        position: absolute;
     
    706732
    707733@media screen and ( max-width: 480px ) {
     734
    708735    .topic-resolved-indicator {
    709736        padding-top: 2px;
     
    713740    }
    714741
    715     .topic-resolved-indicator:before {
     742    .topic-resolved-indicator::before {
    716743        font-size: 19px;
    717744    }
     
    720747/* Bump #header-inner height on mobile to support stacked elements */
    721748@media screen and ( max-width: 460px ) {
     749
    722750    #header-inner {
    723751        height: 140px;
     
    725753        padding: 0;
    726754    }
     755
    727756    #main {
    728757        margin: 100px 10px 40px 10px;
Note: See TracChangeset for help on using the changeset viewer.