mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
Experimental table of content print styles
* Provide sense of hierarchy * Make full width * Break pages before and after Bug: T169823 Change-Id: I8a20c70b550de5bfda638873d180ea97880dfd13
This commit is contained in:
parent
3a3e7ac046
commit
8b9c485580
57
print.less
57
print.less
|
@ -82,5 +82,62 @@
|
|||
font-size: 10pt;
|
||||
}
|
||||
}
|
||||
|
||||
// Using #toc rather than .toc to override default print style
|
||||
#toc {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
font-family: serif;
|
||||
background: none;
|
||||
border: 0;
|
||||
display: block;
|
||||
|
||||
a {
|
||||
border: 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
> ul {
|
||||
|
||||
> li {
|
||||
margin-bottom: 20px;
|
||||
font-weight: bold;
|
||||
|
||||
> ul {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
|
||||
ul {
|
||||
padding-left: 30px;
|
||||
|
||||
li {
|
||||
padding-left: 30px;
|
||||
}
|
||||
.tocnumber {
|
||||
min-width: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li.toclevel-1 {
|
||||
> a {
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.tocnumber {
|
||||
padding-right: 0;
|
||||
text-align: right;
|
||||
margin-right: 30px;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue