Difference between revisions of "Template:Clade/styles.css"

From blackwiki
Jump to navigation Jump to search
imported>Xaosflux
m (Changed protection level for "Template:Clade/styles.css": Highly visible template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
imported>Jts1882
(update to match recent module update)
Line 11: Line 11:
 
     width:100%;
 
     width:100%;
 
}
 
}
table.clade td {
 
border:0;
 
padding:0;
 
vertical-align:middle;
 
text-align:center;
 
}
 
 
table.clade td.clade-label {  /* the cell with the label */
 
table.clade td.clade-label {  /* the cell with the label */
     width:0.8em; /* was only used for first leaf but shouldn't matter for others */
+
     width:0.7em; /* was only used for first leaf but shouldn't matter for others */
    border:0;
 
 
     padding:0 0.2em;
 
     padding:0 0.2em;
 
     vertical-align:bottom;
 
     vertical-align:bottom;
 
     text-align:center;
 
     text-align:center;
 +
    border-left: 1px solid;  /* don't set default colour, helps with green on black monotype skin  */
 +
    border-bottom: 1px solid;
 +
}
 +
table.clade td.clade-label.first {
 +
border-left: none;
 +
border-right: none;
 +
}
 +
table.clade td.clade-label.reverse {
 +
border-left: none;
 +
border-right: 1px solid;
 
}
 
}
 
table.clade td.clade-slabel {  /* the cell with the sublabel; only use if there is a label */
 
table.clade td.clade-slabel {  /* the cell with the sublabel; only use if there is a label */
    border:0;
 
 
     padding:0 0.2em;
 
     padding:0 0.2em;
 
     vertical-align:top;
 
     vertical-align:top;
 
     text-align:center;
 
     text-align:center;
 +
    border-left: 1px solid;
 +
}
 +
table.clade td.clade-slabel.last  {
 +
border-left: none;
 +
border-right: none;
 +
}
 +
table.clade td.clade-slabel.reverse {
 +
border-left: none;
 +
border-right: 1px solid;
 
}
 
}
 +
 
table.clade td.clade-bar {  /* the cell with the bar label or group label */
 
table.clade td.clade-bar {  /* the cell with the bar label or group label */
 
     vertical-align:middle;
 
     vertical-align:middle;
 
     text-align:left;
 
     text-align:left;
 
     padding:0 0.5em;
 
     padding:0 0.5em;
 +
}
 +
table.clade td.clade-bar.reverse {
 +
    text-align:right;
 
}
 
}
  
Line 40: Line 55:
 
     padding:0;
 
     padding:0;
 
     text-align:left;
 
     text-align:left;
    vertical-align:middle;
 
 
}
 
}
 
table.clade td.clade-leafR {  /* the cell with the leaf content (rowspan=2) */
 
table.clade td.clade-leafR {  /* the cell with the leaf content (rowspan=2) */
 
     border:0;
 
     border:0;
 
     padding:0;
 
     padding:0;
 +
    text-align:right;
 +
}
 +
table.clade td.clade-leaf.reverse {  /* the cell with the leaf content (rowspan=2) */
 
     text-align:right;
 
     text-align:right;
 
}
 
}

Revision as of 14:17, 28 May 2019

/* {{pp-template}} */
table.clade {
    border-spacing:0;
    margin:0;
    font-size:100%;
    line-height:100%;
    border-collapse:separate;
    width:auto;
}
table.clade table.clade {
    width:100%;
}
table.clade td.clade-label {  /* the cell with the label */
    width:0.7em; /* was only used for first leaf but shouldn't matter for others */
    padding:0 0.2em;
    vertical-align:bottom;
    text-align:center;
    border-left: 1px solid;   /* don't set default colour, helps with green on black monotype skin  */
    border-bottom: 1px solid;
}
table.clade td.clade-label.first {
	border-left: none;
	border-right: none;
}
table.clade td.clade-label.reverse {
	border-left: none;
	border-right: 1px solid;
}
table.clade td.clade-slabel {  /* the cell with the sublabel; only use if there is a label */
    padding:0 0.2em;
    vertical-align:top;
    text-align:center;
    border-left: 1px solid;
}
table.clade td.clade-slabel.last  {
	border-left: none;
	border-right: none;
}
table.clade td.clade-slabel.reverse {
	border-left: none;
	border-right: 1px solid;
}

table.clade td.clade-bar {  /* the cell with the bar label or group label */
    vertical-align:middle;
    text-align:left;
    padding:0 0.5em;
}
table.clade td.clade-bar.reverse {
    text-align:right;
}

table.clade td.clade-leaf {  /* the cell with the leaf content (rowspan=2) */
    border:0;
    padding:0;
    text-align:left;
}
table.clade td.clade-leafR {  /* the cell with the leaf content (rowspan=2) */
    border:0;
    padding:0;
    text-align:right;
}
table.clade td.clade-leaf.reverse {  /* the cell with the leaf content (rowspan=2) */
    text-align:right;
}