MediaWiki:Common.css: Difference between revisions

trying out treeview from Wikipedia
m (mentioned that popup classes are used by Template:Hover; removed unused "width" property)
(trying out treeview from Wikipedia)
Line 1,050: Line 1,050:
}
}


/* For popups that display immediately upon mouse hover; used by [[Template:Hover]] */
/* For creating popups that display immediately upon mouse hover; used by [[Template:Hover]] */
span.has_popup {
span.has_popup {
   position:relative;
   position:relative;
Line 1,062: Line 1,062:
   position:absolute;
   position:absolute;
   top:9px;
   top:9px;
}
/* For creating a tree-like list; see [[Template:Tree list]] */
.treeview ul {
padding: 0;
margin: 0;
}
.treeview li {
padding: 0;
margin: 0;
list-style-type: none;
list-style-image: none;
}
.treeview li li {
background: url("https://wiki.oni2.net/w/images/f/f2/Treeview-grey-line.png") no-repeat 0 -2981px;
/* @noflip */
padding-left: 21px;
text-indent: 0.3em;
}
.treeview li li:last-child {
background-position: 0 -5971px
}
/* First line here deals with new situation after RemexHTML switch,
* where emptyline cause the first child to become the 2nd child. Such a mess.
*/
.treeview li.emptyline > ul > .mw-empty-elt:first-child + .emptyline,
.treeview li.emptyline > ul > li:first-child {
background-position: 0 9px
}
}