core/usr/local/www/tree/tree.css
2014-11-28 18:37:49 +01:00

161 lines
2.8 KiB
CSS

/*
* CSS for Standard tree layout
* Copyright (C) 2005 SilverStripe Limited
* Feel free to use this on your websites, but please leave this message in the fies
* http://www.silverstripe.com/blog
*/
ul.tree{
width: auto;
padding-left : 0px;
margin-left : 0px;
}
ul.tree img{
border : none;
}
ul.tree, ul.tree ul {
padding-left: 0;
}
ul.tree ul {
margin-left: 16px;
}
ul.tree li.closed ul {
display: none;
}
ul.tree li {
list-style: none;
}
ul.tree li:before {
/*background: url(i-repeater.gif) 0 0 repeat-y;*/
/*display: block;
width: auto;*/
padding: 0px 0px 0px 0px;
/* background-color:#FFFFFF; */
}
ul.tree li.last {
list-style: none;
background-image: none;
}
/* Span-A: I/L/I glpyhs */
ul.tree span.a {
/*background: url(t.gif) 0 50% no-repeat;*/
display: block;
}
ul.tree span.a.last:before {
/*background: url(l.gif) 0 50% no-repeat;*/
padding: 0px 0px 0px 0px;
}
/* Span-B: Plus/Minus icon */
ul.tree span.b:before {
font-family: "Glyphicons Halflings";
content: "\e095";
}
ul.tree span.a.children span.b:before {
/*background: url(minus.gif) 0 50% no-repeat;*/
cursor: pointer;
font-family: "Glyphicons Halflings";
content: "\e082";
}
ul.tree li.closed span.a.children span.b:before {
/*background: url(plus.gif) 0 50% no-repeat;*/
cursor: pointer;
font-family: "Glyphicons Halflings";
content: "\e081";
}
/* Span-C: Spacing and extending tree line below the icon */
ul.tree span.c {
margin-left: 4px;
}
ul.tree span.a.children span.c {
/*background: url(i-bottom.gif) 0 50% no-repeat;*/
}
ul.tree span.a.spanClosed span.c:before {
/*background-image: none;*/
content: "";
}
/* Anchor tag: Page icon */
/*ul.tree a {
white-space: nowrap;
overflow: hidden;
padding: 3px 0px 3px 18px;
line-height: 16px;
background: url(page-file.png) 0 0 no-repeat;
}*/
ul.tree a:before {
white-space: nowrap;
overflow: hidden;
padding: 3px 6px 3px 3px;
line-height: 16px;
font-family: "Glyphicons Halflings";
content: "\e022";
}
ul.tree span.a.children a:before {
/*background-image: url(page-openfoldericon.png);*/
font-family: "Glyphicons Halflings";
content: "\e118";
}
ul.tree span.a.children.spanClosed a:before {
/*background-image: url(page-foldericon.png);*/
font-family: "Glyphicons Halflings";
content: "\e117";
}
/* Unformatted tree */
ul.tree.unformatted li {
background-image: none;
padding-left: 16px;
}
ul.tree.unformatted li li {
background-image: none;
padding-left: 0px;
}
/*
* Divs, by default store vertically aligned data
*/
ul.tree li div {
float: right;
clear: right;
height: 1em;
margin-top: -26px;
}
/* As inside DIVs should be treated normally */
ul.tree div a {
padding: 0;
background-image: none;
min-height: auto;
height: auto;
}
ul.tree li A:link, ul.tree li A:hover, ul.tree li A:visited {
color : #111111;
}
ul.tree li .over{
background-color : pink;
}