Jump to content

User:Iceman0108/Custom/treeview.css

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* images:
file icon : File:File icon.gif
 */
.treeview, .treeview ul { 
	padding: 0;
	margin: 0;
	list-style: none;
}

.treeview ul {
	background-color: white;
	margin-top: 2px;
        margin-bottom:2px;
        font-size:10px;

}

.treeview .hitarea {
/*	background: url('')
	 -64px -25px no-repeat;*/
	height: 16px;
	width: 16px;
	margin-left: -16px;
	float: left;
	cursor: pointer;
}
/* fix for IE6 */
* html .hitarea {
	display: inline;
	float:none;
}

.treeview li {
  background: url(http://upload.wikimedia.org/wikipedia/commons/9/95/Page.png) no-repeat 0 center;  	
  margin: 0;	
  padding: 3px 0pt 3px 16px;
  font-weight:normal;
}

.treeview a.selected {
	background-color: #eee;
}

#treecontrol { margin: 1em 0; display: none; }

.treeview .hover { color: red; cursor: pointer; }

.treeview li.collapsable, .treeview li.lastCollapsable {
  background: url(http://upload.wikimedia.org/wikipedia/commons/1/11/Folder_delete.png) no-repeat 0 0;
  font-weight:bold;
}
.treeview li.expandable, .treeview li.lastExpandable {
  background: url(http://upload.wikimedia.org/wikipedia/commons/5/5d/Folder_add.png) no-repeat 0 0; 
  font-weight:bold;
}

.treeview .expandable-hitarea { background-position: -80px -3px; }

.treeview li.last {background: url(http://upload.wikimedia.org/wikipedia/commons/9/95/Page.png) no-repeat 0 center; }

.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; }