Ignore:
Timestamp:
Dec 26, 2010, 7:21:26 AM (13 years ago)
Author:
rvelices
Message:

simplify inefficient CSS rules according to pagespeed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/theme.css

    r8299 r8306  
    123123
    124124/* actions */
    125 UL.categoryActions {
     125.categoryActions {
    126126        margin: 0 2px;
    127127        width: auto;
     
    133133}
    134134
    135 UL.categoryActions LI {
     135.categoryActions LI {
    136136        display: inline;
    137137}
     
    216216
    217217/* Category thumbnails on main page, CSS code inspired from MOD subcatify */
    218 UL.thumbnailCategories {
     218.thumbnailCategories {
    219219        margin: 0;
    220220        padding: 0;
     
    224224}
    225225
    226 UL.thumbnailCategories LI {
     226.thumbnailCategories LI {
    227227        margin:0;
    228228        padding:0;
     
    272272
    273273/* Thumbnails */
    274 UL.thumbnails SPAN.thumbLegend {
     274.thumbnails SPAN.thumbLegend {
    275275        font-size: 90%;
    276276        overflow: hidden;/* oversized legend is clipped */
     
    278278
    279279/* Thumbnail "elastic" layout */
    280 UL.thumbnails {
     280.thumbnails {
    281281        margin: 0;
    282282        padding: 0;
     
    284284        text-align: center;     /* to center the whole collection in .content */
    285285}
    286 UL.thumbnails LI { display: inline }
    287 
    288 UL.thumbnails SPAN.wrap1 {
     286.thumbnails LI { display: inline }
     287
     288.thumbnails .wrap1 {
    289289        margin: 0 5px 5px 5px;
    290290        display: table-cell; display: inline-table;
     
    293293        text-align: center;             /* to center the thumbnail and legend in Geko/Opera */
    294294}
    295 UL.thumbnails SPAN.wrap2 {
     295.thumbnails .wrap2 {
    296296        margin: 0;                      /* important reset the margins */
    297297        display: table-cell;/* block prevents vertical-align here */
     
    301301        -webkit-border-radius: 4px; /* Safari webkit project */
    302302}
    303 UL.thumbnails SPAN.wrap2 A,
    304 UL.thumbnails LABEL {
     303.thumbnails .wrap2 A,
     304.thumbnails LABEL {
    305305        display: block;
    306306        border-bottom: 0;
    307307}
    308 UL.thumbnails IMG {
     308.thumbnails IMG {
    309309        margin-bottom: -4px;  /* why ??? something wrong with Geko and Opera ignored by IE6*/
    310310}
     
    508508}
    509509
    510 FORM.filter UL {
     510.filter UL {
    511511  margin: 0;
    512512}
    513 FORM.filter UL,
    514 FORM.filter LABEL {
     513.filter UL,
     514.filter LABEL {
    515515        display: block;
    516516        float: left;
     
    519519}
    520520
    521 FORM.filter LI {
     521.filter LI {
    522522        list-style: none;
    523523        margin-bottom: 0.5em;
    524524}
    525525
    526 FORM.filter LI LABEL {
     526.filter LI LABEL {
    527527        display: inline;
    528528        float: none;
    529529}
    530530
    531 FORM.filter UL.tagSelection LABEL {
     531.filter .tagSelection LABEL {
    532532        display: inline;
    533533        float: none;
     
    536536
    537537/* cannot use FIELDSET>LABEL because of IE<=6 */
    538 FORM.filter LABEL INPUT,
    539 FORM.filter LABEL SELECT,
    540 FORM.filter LABEL SPAN,
    541 FORM.filter LABEL TEXTAREA {
     538.filter LABEL INPUT,
     539.filter LABEL SELECT,
     540.filter LABEL SPAN,
     541.filter LABEL TEXTAREA {
    542542  display: block;
    543543  margin: 0.5em 0;
    544544}
    545 FORM.filter FIELDSET * LABEL INPUT,
    546 FORM.filter FIELDSET * LABEL SELECT,
    547 FORM.filter FIELDSET * LABEL TEXTAREA,
    548 FORM.filter LABEL SPAN INPUT,
    549 FORM.filter LABEL SPAN SELECT,
    550 FORM.filter LABEL SPAN TEXTAREA {
     545.filter FIELDSET * LABEL INPUT,
     546.filter FIELDSET * LABEL SELECT,
     547.filter FIELDSET * LABEL TEXTAREA,
     548.filter LABEL SPAN INPUT,
     549.filter LABEL SPAN SELECT,
     550.filter LABEL SPAN TEXTAREA {
    551551        display: inline;
    552552        vertical-align: top;
     
    554554}
    555555
    556 FORM.filter UL.tagSelection LI LABEL INPUT {
     556.filter .tagSelection LI LABEL INPUT {
    557557        margin-right:0;
    558558}
    559559
    560560
    561 FORM.filter INPUT[type="submit"] {
     561.filter INPUT[type="submit"] {
    562562        margin-top: 1em;
    563563}
    564564
    565 FORM.properties UL {
     565.properties UL {
    566566        list-style-type: none;
    567567        margin: 0;
     
    569569}
    570570
    571 FORM.properties LI {
     571.properties LI {
    572572        margin-bottom: 0.5em;
    573573        padding: 0;
     
    576576}
    577577
    578 FORM.properties SPAN.property {
     578.properties SPAN.property {
    579579        font-weight: bold;
    580580        float: left;
     
    586586
    587587/* button tools */
    588 UL.actions {
     588.actions {
    589589        text-indent: 0;
    590590        list-style: none;
    591591}
    592 UL.actions LI {
     592.actions LI {
    593593        display: inline;
    594594}
    595 UL.actions A, UL.actions IMG {
     595.actions A, .actions IMG {
    596596        border: none;
    597597}
    598598
    599 UL.tagSelection {
     599.tagSelection {
    600600        width: 99%;
    601601        margin: 1em 0;
     
    603603}
    604604
    605 UL.tagSelection LI {
     605.tagSelection LI {
    606606        display:inline-block;
    607607        width:150px!important;
     
    675675#theHeader {text-align: center;}
    676676
    677 #comments UL.thumbnailCategories LI { width:99%; }
     677#comments .thumbnailCategories LI { width:99%; }
    678678
    679679/* jQuery datepicker */
     
    683683
    684684/* Set some sizes according to your maximum thumbnail width and height */
    685 UL.thumbnails SPAN,
    686 UL.thumbnails SPAN.wrap2 A,
    687 UL.thumbnails LABEL,
     685.thumbnails SPAN,
     686.thumbnails .wrap2 A,
     687.thumbnails LABEL,
    688688.thumbnailCategory DIV.illustration {
    689689  width: 140px;      /* max thumbnail width + 2px */
    690690}
    691 UL.thumbnails SPAN.wrap2,
     691.thumbnails .wrap2,
    692692.content .thumbnailCategory .description {
    693693  height: 140px;    /* max thumbnail height + 2px */
     
    696696
    697697/* Category thumbnails on main page */
    698 UL.thumbnailCategories LI {
     698.thumbnailCategories LI {
    699699  width: 49.7%;    /* 49.7% for 2 per line, 33.2% for 3 per line*/
    700700}
    701701
    702702/* Set defaults for thumbnails legend */
    703 UL.thumbnails SPAN.thumbLegend {
     703.thumbnails SPAN.thumbLegend {
    704704  display: block;  /* display: none; if you don't want legend */
    705705  height: 4em;    /* legend height (don't set auto to be Gecko friendly)*/
Note: See TracChangeset for help on using the changeset viewer.