Changeset 2069


Ignore:
Timestamp:
08/08/12 09:39:25 (12 years ago)
Author:
sanmai
Message:
  • Terminal nodes/leaves and non-terminal node <div>s in the CMDI had

inconsistent heights in some browsers, now they should be the same.
component tree

  • Draw slight border around footer to distinguish it better.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/xslt/cmdi2xhtml.xsl

    r2064 r2069  
    3131                     <li>
    3232                     
    33                      <code>
     33                     <code class="node">
    3434                         <xsl:value-of select="fn:concat(local-name(), ' ')"/>
    3535                         <xsl:if test="count(@*) > 0">
     
    4848                                 <xsl:variable name="leaf_value" select="self::element()"                       as="xs:string"/>
    4949                                 <xsl:variable name="HTTP_URL"   select="starts-with($leaf_value, 'http://')"   as="xs:boolean"/>
    50                                  <sample>
     50                                 <code class="leaf">
    5151                                 <xsl:choose>
    5252                                     <xsl:when test="$HTTP_URL">
     
    5757                                     </xsl:otherwise>                                 
    5858                                 </xsl:choose>
    59                                  </sample>
     59                                 </code>
    6060                             </div>
    6161                         </xsl:when>
     
    9292                    }
    9393                   
    94                     code
     94                    .node
    9595                    {
    9696                        background-color: rgba(188, 205, 232, 0.8);
     
    9999                        padding: 5px;
    100100                        /*float: left;*/
    101                     }
     101                    }                   
     102                   
     103                    .leaf
     104                    {
     105                    }                   
    102106                   
    103107                    .Component_tree_node_content
     
    118122                        font-style: italic;
    119123                        font-weight: normal;
    120                         /* background-color: rgba(100, 201, 234, 0.4); */
     124                        /*background-color: rgba(100, 201, 234, 0.4);*/
    121125                    }
     126                   
     127                    footer
     128                    {
     129                        border: 1px dotted;
     130                    }                   
    122131                   
    123132                    address
Note: See TracChangeset for help on using the changeset viewer.