MDL-54654 book: silence csslint warning
[moodle.git] / mod / book / tool / print / print.css
CommitLineData
f567699f 1/*csslint important:false */
d8389cd6
JC
2#page-mod-book-print {
3 color: #000;
4 background-color: #fff;
02039379 5 font-family: "Times New Roman", Times, serif;
d8389cd6
JC
6 font-size: 1em;
7 font-weight: normal;
8 text-decoration: none;
02039379 9}
d8389cd6
JC
10#page-mod-book-print.dir-ltr {
11 margin-left: 50px;
12 margin-right: 10px;
02039379 13
d8389cd6
JC
14}
15#page-mod-book-print.dir-rtl {
16 margin-left: 10px;
17 margin-right: 50px;
02039379
PS
18}
19
d8389cd6
JC
20#page-mod-book-print h1,
21#page-mod-book-print h2,
22#page-mod-book-print h3,
23#page-mod-book-print h4,
24#page-mod-book-print h5,
25#page-mod-book-print h6 {
26 page-break-after: avoid;
27 page-break-inside: avoid;
28}
29#page-mod-book-print.dir-ltr h1,
30#page-mod-book-print.dir-ltr h2,
31#page-mod-book-print.dir-ltr h3,
32#page-mod-book-print.dir-ltr h4,
33#page-mod-book-print.dir-ltr h5,
34#page-mod-book-print.dir-ltr h6 {
35 margin-left: 0px;
36}
37#page-mod-book-print.dir-rtl h1,
38#page-mod-book-print.dir-rtl h2,
39#page-mod-book-print.dir-rtl h3,
40#page-mod-book-print.dir-rtl h4,
41#page-mod-book-print.dir-rtl h5,
42#page-mod-book-print.dir-rtl h6 {
43 margin-left: 0px;
02039379
PS
44}
45
d8389cd6
JC
46/* just some hack - ignore user defined <font> */
47#page-mod-book-print font {
48 color: #000;
49 background-color: #eee;
02039379
PS
50 font-family: "Times New Roman", Times, serif;
51 font-size: 1em;
52 font-weight: normal;
53 text-decoration: none;
54}
55
d8389cd6
JC
56#page-mod-book-print .book_summary {
57 text-align: center;
58 margin-bottom: 120px;
59}
60#page-mod-book-print.dir-ltr .book_summary {
61 margin-left: -40px;
62}
63#page-mod-book-print.dir-rtl .book_summary {
64 margin-right: -40px;
02039379 65}
02039379 66
d8389cd6
JC
67#page-mod-book-print .book_chapter {
68 page-break-before: always;
02039379
PS
69}
70
71/* ===== TOC numbering styles ===== */
72
73/* numbering == NONE */
d8389cd6 74#page-mod-book-print .book_toc_none {
02039379
PS
75 page-break-before: always;
76}
d8389cd6
JC
77#page-mod-book-print.dir-ltr .book_toc_none ul,
78#page-mod-book-print.dir-ltr .book_toc_none ul ul {
02039379
PS
79 margin-left: 0px;
80 padding-left: 0px;
81}
d8389cd6
JC
82#page-mod-book-print.dir-rtl .book_toc_none ul,
83#page-mod-book-print.dir-rtl .book_toc_none ul ul {
84 margin-right: 0px;
85 padding-right: 0px;
02039379 86}
d8389cd6 87#page-mod-book-print .book_toc_none li {
02039379
PS
88 margin-top: 10px;
89 list-style: none;
90}
d8389cd6 91#page-mod-book-print .book_toc_none li li {
02039379
PS
92 margin-top: 0px;
93 list-style: none;
94}
02039379 95/* numbering == NUMBERED */
d8389cd6 96#page-mod-book-print .book_toc_numbered {
02039379
PS
97 page-break-before: always;
98}
d8389cd6 99#page-mod-book-print .book_toc_numbered li {
02039379
PS
100 margin-top: 10px;
101 list-style: none;
102}
d8389cd6 103#page-mod-book-print .book_toc_numbered li li {
02039379
PS
104 margin-top: 0px;
105 list-style: none;
106}
d8389cd6
JC
107#page-mod-book-print.dir-ltr .book_toc_numbered ul,
108#page-mod-book-print.dir-ltr .book_toc_numbered ul ul {
109 margin-left: 0px;
110 padding-left: 0px;
111}
112#page-mod-book-print.dir-rtl .book_toc_numbered ul,
113#page-mod-book-print.dir-rtl .book_toc_numbered ul ul {
114 margin-right: 0px;
115 padding-right: 0px;
116}
02039379
PS
117
118/* numbering == BULLETS */
d8389cd6 119#page-mod-book-print .book_toc_bullets {
02039379
PS
120 page-break-before: always;
121}
d8389cd6
JC
122#page-mod-book-print .book_toc_bullets li {
123 margin-top: 10px;
124 list-style: none;
125}
126#page-mod-book-print .book_toc_bullets li li {
127 margin-top: 0px;
128 list-style: circle;
129}
130#page-mod-book-print.dir-ltr .book_toc_bullets ul {
02039379
PS
131 margin-left: 0px;
132 padding-left: 0px;
133}
d8389cd6 134#page-mod-book-print.dir-ltr .book_toc_bullets ul ul {
02039379
PS
135 margin-left: 20px;
136 padding-left: 0px;
137}
d8389cd6
JC
138#page-mod-book-print.dir-rtl .book_toc_bullets ul {
139 margin-right: 0px;
140 padding-right: 0px;
02039379 141}
d8389cd6
JC
142#page-mod-book-print.dir-rtl .book_toc_bullets ul ul {
143 margin-right: 20px;
144 padding-right: 0px;
02039379
PS
145}
146
147/* numbering == INDENTED */
d8389cd6 148#page-mod-book-print .book_toc_indented {
02039379
PS
149 page-break-before: always;
150}
d8389cd6
JC
151#page-mod-book-print .book_toc_indented li {
152 margin-top: 10px;
153 list-style: none;
154}
155#page-mod-book-print .book_toc_indented li li {
156 margin-top: 0px;
157 list-style: none;
158}
159#page-mod-book-print.dir-ltr .book_toc_indented ul {
02039379
PS
160 margin-left: 0px;
161 padding-left: 0px;
162}
d8389cd6 163#page-mod-book-print.dir-ltr .book_toc_indented ul ul {
02039379
PS
164 margin-left: 20px;
165 padding-left: 0px;
166}
d8389cd6
JC
167#page-mod-book-print.dir-rtl .book_toc_indented ul {
168 margin-right: 0px;
169 padding-right: 0px;
02039379 170}
d8389cd6
JC
171#page-mod-book-print.dir-rtl .book_toc_indented ul ul {
172 margin-right: 20px;
173 padding-right: 0px;
5595391e
JPG
174}
175
d8389cd6 176/* Exclude elements from printing. */
5595391e
JPG
177@media print
178{
d8389cd6
JC
179 .hidden-print {
180 display: none !important;
5595391e
JPG
181 }
182}