Changeset 951


Ignore:
Timestamp:
Nov 24, 2005, 8:09:13 PM (18 years ago)
Author:
chrisaga
Message:
  • fix bug 222 : comments page broken with IE

IE doesn't understand child selector nor min-height
use floating design instead of positionning

Location:
branches/branch-1_5/template/yoga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_5/template/yoga/content.css

    r939 r951  
    146146/* User comments */
    147147
     148#content DIV#comments {
     149  padding-left: 5px;
     150  padding-right: 5px;
     151  -moz-box-sizing: padding-box;
     152}
    148153#content DIV.comment {
    149   margin: 5px;
    150   border: 1px solid gray;
    151   min-height: 150px; /* maximum thumbnail height */
     154  margin: 0 0 0.5em 0;
     155  padding: 0;
     156  overflow: hidden; /* these 2 lines ensure the floating child is kept in the DIV */
     157  width: 100%;      /* don't ask why. It's a very usefull trick                   */
    152158}
    153159
    154 #content DIV.comment > A.illustration {
     160#content DIV.comment A.illustration {
    155161  display: block;
    156   position: absolute;
    157   margin: 5px;
    158 }
    159 
    160 #content DIV.comment > A.illustration IMG {
    161   border: 1px solid gray;
     162  float: left;
     163  margin: 0.5em 0 0 0.5em;
    162164}
    163165
     
    172174}
    173175
    174 #content DIV.comment > UL.actions > LI {
     176#content DIV.comment  UL.actions LI {
    175177  display: inline;
    176178}
    177179
    178180#content DIV.comment BLOCKQUOTE {
    179   margin: 1em 1em 1em 140px; /* margin-left corresponds to maximum thumbnail width */
    180   border: 1px solid #d3d3d3;
    181   border-left: 2px solid gray;
     181  margin: 1em 0.5em 0.5em 150px; /* margin-left corresponds to maximum thumbnail width + ~10px */
    182182  padding: 0.5em;
    183183}
    184 
    185184
    186185/* should be in admin.css ? CSS properties also used in popuphelp */
  • branches/branch-1_5/template/yoga/default-colors.css

    r910 r951  
    9999}
    100100
     101/* User comments */
     102#content DIV.comment {
     103  border: 1px solid gray;
     104}
    101105
    102 #comments BLOCKQUOTE {
    103     background: #eeeeee;
     106#content DIV.comment  A.illustration IMG {
     107  border: 1px solid gray;
     108}
     109
     110#comments DIV.comment BLOCKQUOTE {
     111    border: 1px solid #d3d3d3;
    104112    border-left: 2px solid #696969;
    105113}
Note: See TracChangeset for help on using the changeset viewer.