Ignore:
Timestamp:
Aug 21, 2008, 3:14:03 AM (16 years ago)
Author:
rvelices
Message:
  • tried to reduce the number of css rules and selectors (most gains on menubar and usercomments) tested with IE6,IE7,FF,Opera9,Safari3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/default-layout.css

    r2479 r2480  
    11/* $Id$ */
    22BODY {
    3   margin: 5px;
    4   padding: 0;
    5   font-size: 0.8em;
    6   font-family:  Univers, Helvetica, Optima, "Bitstream Vera Sans", sans-serif;
    7   text-align: center; /* be nice to IE5 */
     3        margin: 5px;
     4        padding: 0;
     5        font-size: 0.8em;
     6        font-family:  Univers, Helvetica, Optima, "Bitstream Vera Sans", sans-serif;
    87}
    98
    109
    1110H1 {
    12   text-align: center;
    13   font-size: 150%;
    14   font-weight: bold;
    15   padding: 0;
    16   margin: 0.5em 0 1em 0;
     11        text-align: center;
     12        font-size: 150%;
     13        font-weight: bold;
     14        padding: 0;
     15        margin: 0.5em 0 1em 0;
    1716}
    1817
     
    3938
    4039HR.separation {
    41   visibility: hidden;
    42   clear: both;
     40        visibility: hidden;
     41        clear: both;
    4342}
    4443
    4544#copyright {
    46     clear: both;
    47     font-size: 83%;
    48     text-align: center;
    49     margin: 0 0 10px 0;
     45        clear: both;
     46        font-size: 83%;
     47        text-align: center;
     48        margin: 0 0 10px 0;
    5049}
    5150
    5251/** General defaults **/
    5352INPUT, SELECT {
    54   margin: 0;
    55   font-size: 1em;       /* <= some browsers don't set it correctly */
    56 }
    57 UL, DL, LI { text-align: left;}
    58 TABLE {                 /* horizontaly centered */
    59   margin-left: auto;
    60   margin-right: auto;
    61 }
    62 /* for debugging purpose */
    63 PRE { text-align:left; }
     53        margin: 0;
     54        font-size: 1em; /* <= some browsers don't set it correctly */
     55}
     56
     57TABLE { /* horizontaly centered */
     58        margin-left: auto;
     59        margin-right: auto;
     60}
    6461
    6562/** forms **/
    6663
    67 FORM { padding: 0em; }
     64FORM { padding: 0; margin: 0; }
    6865
    6966FORM P {
     
    7976
    8077TEXTAREA.description {
    81   height: 6em;
    82   width: 40em;
    83   overflow: auto;
     78        height: 6em;
     79        width: 40em;
     80        overflow: auto;
    8481}
    8582
    8683SELECT.categoryList {
    87   height: 20em;
    88   width: auto;
    89 }
    90 
    91 DIV.comment BLOCKQUOTE {
    92   padding: 0.5em;
    93   overflow: auto;       /* no solution for IE6 */
    94   min-height: 2.75em;   /* fix a Gecko bug whith scrollbar and 1 line only */
     84        height: 20em;
     85        width: auto;
    9586}
    9687
     
    10293 */
    10394FIELDSET {
    104   padding: 1em;
    105   margin: 1em;
    106   overflow: hidden; /* <- makes Opera happy */
     95        padding: 1em;
     96        margin: 1em;
     97        overflow: hidden; /* <- makes Opera happy */
    10798}
    10899
     
    112103FORM.filter FIELDSET UL,
    113104FORM.filter FIELDSET LABEL {
    114   display: block;
    115   float: left;
    116   margin-right: 1em;
    117   padding: 0;
     105        display: block;
     106        float: left;
     107        margin-right: 1em;
     108        padding: 0;
    118109}
    119110
    120111FORM.filter FIELDSET LI {
    121   list-style: none;
    122   margin-bottom: 0.5em;
     112        list-style: none;
     113        margin-bottom: 0.5em;
    123114}
    124115
    125116FORM.filter FIELDSET LI LABEL {
    126   display: inline;
    127   float: none;
     117        display: inline;
     118        float: none;
    128119}
    129120
    130121FORM.filter FIELDSET UL.tagSelection LABEL {
    131   display: inline;
    132   float: none;
    133   margin-right:0.5em;/*reduce from above*/
     122        display: inline;
     123        float: none;
     124        margin-right:0.5em;/*reduce from above*/
    134125}
    135126
     
    186177
    187178FORM.properties SPAN.property {
    188   font-weight: bold;
    189   float: left;
    190   width: 50%;
    191   text-align: right;
    192   margin: 0;
    193   padding: 0 0.5em 0 0;
    194 }
    195 
    196 #theHeader H1 {
    197   margin-bottom: 0.5em;
     179        font-weight: bold;
     180        float: left;
     181        width: 50%;
     182        text-align: right;
     183        margin: 0;
     184        padding: 0 0.5em 0 0;
    198185}
    199186
    200187/* button tools */
    201188UL.actions {
    202   text-indent: 0;
    203   list-style: none;
    204 }
    205 UL.actions  LI {
    206   display: inline;
    207 }
    208 UL.actions  A {
    209   border: none;
     189        text-indent: 0;
     190        list-style: none;
     191}
     192UL.actions LI {
     193        display: inline;
     194}
     195UL.actions A, UL.actions IMG {
     196        border: none;
    210197}
    211198
    212199UL.tagSelection {
    213   width: 99%;
    214   margin: 1em 0 1em 0;
    215   padding: 0;
     200        width: 99%;
     201        margin: 1em 0 1em 0;
     202        padding: 0;
    216203}
    217204
    218205UL.tagSelection LI {
    219   display: inline;
    220   white-space: nowrap;
     206        display: inline;
     207        white-space: nowrap;
    221208}
    222209
    223210#fullTagCloud {
    224   font-size: 120%;
    225   text-align: justify;
    226   padding: 0;
    227   margin: 1em 2em 1em 2em;
     211        font-size: 120%;
     212        text-align: justify;
     213        padding: 0;
     214        margin: 1em 2em 1em 2em;
    228215}
    229216
    230217#fullTagCloud LI {
    231   display: inline;
    232   white-space: nowrap;
    233   margin: 0 2px;
     218        display: inline;
     219        white-space: nowrap;
     220        margin: 0 2px;
    234221}
    235222
     
    244231/* Popup help page */
    245232BODY#thePopuphelpPage #copyright {
    246   display: none;
     233        display: none;
    247234}
    248235
    249236BODY#thePopuphelpPage .content P {
    250   text-align: justify;
    251   padding: 0.5em;
     237        text-align: justify;
     238        padding: 0.5em;
    252239}
    253240
     
    255242BODY#thePopuphelpPage .content UL LI
    256243{
    257   margin-bottom: 0.5em;
     244        margin-bottom: 0.5em;
    258245}
    259246
    260247BODY#thePopuphelpPage P#pageBottomActions A {
    261   border: none;
     248        border: none;
    262249}
    263250
    264251TR.tagLine {
    265   border-bottom: 1px solid #ddd;
    266   text-align: left;
     252        border-bottom: 1px solid #ddd;
    267253}
    268254TD.nbEntries {
    269   text-align: right;
    270   font-style: italic;
    271   font-size: 90%;
     255        text-align: right;
     256        font-style: italic;
     257        font-size: 90%;
    272258}
    273259
    274260FIELDSET.tagLetter {
    275   border: 1px solid #d3d3d3;
    276   width: 200px;
    277   margin: 0.5em;
    278   padding: 10px;
     261        border: 1px solid #d3d3d3;
     262        width: 200px;
     263        margin: 0.5em;
     264        padding: 10px;
    279265}
    280266
    281267LEGEND.tagLetterLegend {
    282   border: 1px solid #d3d3d3;
    283   font-size:120%;
    284   font-weight: bold;
    285   padding: 0 5px;
    286   font-style: normal;
     268        border: 1px solid #d3d3d3;
     269        font-size:120%;
     270        font-weight: bold;
     271        padding: 0 5px;
     272        font-style: normal;
    287273}
    288274
    289275TABLE.tagLetterContent {
    290   width:100%;
    291   font-size:80%;
    292   border-collapse : collapse;
    293 }
     276        width:100%;
     277        font-size:80%;
     278        border-collapse : collapse;
     279}
Note: See TracChangeset for help on using the changeset viewer.