Skip to content

Commit 6fb3b03

Browse files
committed
Merge pull request #567 from gmartin7/BL-2353CoverImageWidth
BL-2353 Fix image width on xmatter to use full width
2 parents 0e16a0f + 8e30038 commit 6fb3b03

File tree

7 files changed

+139
-21
lines changed

7 files changed

+139
-21
lines changed

DistFiles/xMatter/Factory-XMatter/Factory-XMatter.css

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.bloom-frontMatter .pageLabel:after,
1+
.bloom-frontMatter .pageLabel:after,
22
.bloom-backMatter .pageLabel:after {
33
content: ": Factory Front/Back Matter";
44
}
@@ -9,48 +9,76 @@
99
left: 15mm;
1010
width: 180mm;
1111
}
12+
.A4Portrait.outsideFrontCover .marginBox IMG,
13+
.A4Portrait.outsideBackCover .marginBox IMG {
14+
max-width: 180mm;
15+
}
1216
.A4Landscape.outsideFrontCover .marginBox,
1317
.A4Landscape.outsideBackCover .marginBox {
1418
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
1519
height: 185mm;
1620
left: 15mm;
1721
width: 267mm;
1822
}
23+
.A4Landscape.outsideFrontCover .marginBox IMG,
24+
.A4Landscape.outsideBackCover .marginBox IMG {
25+
max-width: 267mm;
26+
}
1927
.A5Portrait.outsideFrontCover .marginBox,
2028
.A5Portrait.outsideBackCover .marginBox {
2129
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
2230
height: 185mm;
2331
left: 15mm;
2432
width: 118mm;
2533
}
34+
.A5Portrait.outsideFrontCover .marginBox IMG,
35+
.A5Portrait.outsideBackCover .marginBox IMG {
36+
max-width: 118mm;
37+
}
2638
.A5Landscape.outsideFrontCover .marginBox,
2739
.A5Landscape.outsideBackCover .marginBox {
2840
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
2941
height: 123mm;
3042
left: 15mm;
3143
width: 180mm;
3244
}
45+
.A5Landscape.outsideFrontCover .marginBox IMG,
46+
.A5Landscape.outsideBackCover .marginBox IMG {
47+
max-width: 180mm;
48+
}
3349
.A6Portrait.outsideFrontCover .marginBox,
3450
.A6Portrait.outsideBackCover .marginBox {
3551
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
3652
height: 123mm;
3753
left: 15mm;
3854
width: 75mm;
3955
}
56+
.A6Portrait.outsideFrontCover .marginBox IMG,
57+
.A6Portrait.outsideBackCover .marginBox IMG {
58+
max-width: 75mm;
59+
}
4060
.A6Landscape.outsideFrontCover .marginBox,
4161
.A6Landscape.outsideBackCover .marginBox {
4262
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
4363
height: 80mm;
4464
left: 15mm;
4565
width: 118mm;
4666
}
67+
.A6Landscape.outsideFrontCover .marginBox IMG,
68+
.A6Landscape.outsideBackCover .marginBox IMG {
69+
max-width: 118mm;
70+
}
4771
.B5Portrait.outsideFrontCover .marginBox,
4872
.B5Portrait.outsideBackCover .marginBox {
4973
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
5074
height: 225mm;
5175
left: 15mm;
5276
width: 146mm;
5377
}
78+
.B5Portrait.outsideFrontCover .marginBox IMG,
79+
.B5Portrait.outsideBackCover .marginBox IMG {
80+
max-width: 146mm;
81+
}
5482
.insideFrontCover .bloom-content1 {
5583
display: inherit;
5684
}
@@ -345,4 +373,3 @@ BODY[bookcreationtype="translation"] .titlePage #funding .bloom-contentNational1
345373
.ISBNContainer .ISBNContainer SPAN {
346374
vertical-align: top;
347375
}
348-
/*# sourceMappingURL=Factory-XMatter.css.map */

DistFiles/xMatter/SIL-Cameroon-XMatter/SIL-Cameroon-XMatter.css

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.bloom-frontMatter .pageLabel:after,
1+
.bloom-frontMatter .pageLabel:after,
22
.bloom-backMatter .pageLabel:after {
33
content: ": SIL-Cameroon Front/Back Matter";
44
}
@@ -9,48 +9,76 @@
99
left: 15mm;
1010
width: 180mm;
1111
}
12+
.A4Portrait.outsideFrontCover .marginBox IMG,
13+
.A4Portrait.outsideBackCover .marginBox IMG {
14+
max-width: 180mm;
15+
}
1216
.A4Landscape.outsideFrontCover .marginBox,
1317
.A4Landscape.outsideBackCover .marginBox {
1418
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
1519
height: 185mm;
1620
left: 15mm;
1721
width: 267mm;
1822
}
23+
.A4Landscape.outsideFrontCover .marginBox IMG,
24+
.A4Landscape.outsideBackCover .marginBox IMG {
25+
max-width: 267mm;
26+
}
1927
.A5Portrait.outsideFrontCover .marginBox,
2028
.A5Portrait.outsideBackCover .marginBox {
2129
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
2230
height: 185mm;
2331
left: 15mm;
2432
width: 118mm;
2533
}
34+
.A5Portrait.outsideFrontCover .marginBox IMG,
35+
.A5Portrait.outsideBackCover .marginBox IMG {
36+
max-width: 118mm;
37+
}
2638
.A5Landscape.outsideFrontCover .marginBox,
2739
.A5Landscape.outsideBackCover .marginBox {
2840
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
2941
height: 123mm;
3042
left: 15mm;
3143
width: 180mm;
3244
}
45+
.A5Landscape.outsideFrontCover .marginBox IMG,
46+
.A5Landscape.outsideBackCover .marginBox IMG {
47+
max-width: 180mm;
48+
}
3349
.A6Portrait.outsideFrontCover .marginBox,
3450
.A6Portrait.outsideBackCover .marginBox {
3551
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
3652
height: 123mm;
3753
left: 15mm;
3854
width: 75mm;
3955
}
56+
.A6Portrait.outsideFrontCover .marginBox IMG,
57+
.A6Portrait.outsideBackCover .marginBox IMG {
58+
max-width: 75mm;
59+
}
4060
.A6Landscape.outsideFrontCover .marginBox,
4161
.A6Landscape.outsideBackCover .marginBox {
4262
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
4363
height: 80mm;
4464
left: 15mm;
4565
width: 118mm;
4666
}
67+
.A6Landscape.outsideFrontCover .marginBox IMG,
68+
.A6Landscape.outsideBackCover .marginBox IMG {
69+
max-width: 118mm;
70+
}
4771
.B5Portrait.outsideFrontCover .marginBox,
4872
.B5Portrait.outsideBackCover .marginBox {
4973
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
5074
height: 225mm;
5175
left: 15mm;
5276
width: 146mm;
5377
}
78+
.B5Portrait.outsideFrontCover .marginBox IMG,
79+
.B5Portrait.outsideBackCover .marginBox IMG {
80+
max-width: 146mm;
81+
}
5482
.insideFrontCover .bloom-content1 {
5583
display: inherit;
5684
}
@@ -345,4 +373,3 @@ BODY[bookcreationtype="translation"] .titlePage #funding .bloom-contentNational1
345373
.ISBNContainer .ISBNContainer SPAN {
346374
vertical-align: top;
347375
}
348-
/*# sourceMappingURL=SIL-Cameroon-XMatter.css.map */

DistFiles/xMatter/Traditional-XMatter/Traditional-XMatter.css

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.bloom-frontMatter .pageLabel:after,
1+
.bloom-frontMatter .pageLabel:after,
22
.bloom-backMatter .pageLabel:after {
33
content: ": Traditional Front/Back Matter";
44
}
@@ -9,48 +9,76 @@
99
left: 15mm;
1010
width: 180mm;
1111
}
12+
.A4Portrait.outsideFrontCover .marginBox IMG,
13+
.A4Portrait.outsideBackCover .marginBox IMG {
14+
max-width: 180mm;
15+
}
1216
.A4Landscape.outsideFrontCover .marginBox,
1317
.A4Landscape.outsideBackCover .marginBox {
1418
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
1519
height: 185mm;
1620
left: 15mm;
1721
width: 267mm;
1822
}
23+
.A4Landscape.outsideFrontCover .marginBox IMG,
24+
.A4Landscape.outsideBackCover .marginBox IMG {
25+
max-width: 267mm;
26+
}
1927
.A5Portrait.outsideFrontCover .marginBox,
2028
.A5Portrait.outsideBackCover .marginBox {
2129
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
2230
height: 185mm;
2331
left: 15mm;
2432
width: 118mm;
2533
}
34+
.A5Portrait.outsideFrontCover .marginBox IMG,
35+
.A5Portrait.outsideBackCover .marginBox IMG {
36+
max-width: 118mm;
37+
}
2638
.A5Landscape.outsideFrontCover .marginBox,
2739
.A5Landscape.outsideBackCover .marginBox {
2840
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
2941
height: 123mm;
3042
left: 15mm;
3143
width: 180mm;
3244
}
45+
.A5Landscape.outsideFrontCover .marginBox IMG,
46+
.A5Landscape.outsideBackCover .marginBox IMG {
47+
max-width: 180mm;
48+
}
3349
.A6Portrait.outsideFrontCover .marginBox,
3450
.A6Portrait.outsideBackCover .marginBox {
3551
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
3652
height: 123mm;
3753
left: 15mm;
3854
width: 75mm;
3955
}
56+
.A6Portrait.outsideFrontCover .marginBox IMG,
57+
.A6Portrait.outsideBackCover .marginBox IMG {
58+
max-width: 75mm;
59+
}
4060
.A6Landscape.outsideFrontCover .marginBox,
4161
.A6Landscape.outsideBackCover .marginBox {
4262
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
4363
height: 80mm;
4464
left: 15mm;
4565
width: 118mm;
4666
}
67+
.A6Landscape.outsideFrontCover .marginBox IMG,
68+
.A6Landscape.outsideBackCover .marginBox IMG {
69+
max-width: 118mm;
70+
}
4771
.B5Portrait.outsideFrontCover .marginBox,
4872
.B5Portrait.outsideBackCover .marginBox {
4973
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
5074
height: 225mm;
5175
left: 15mm;
5276
width: 146mm;
5377
}
78+
.B5Portrait.outsideFrontCover .marginBox IMG,
79+
.B5Portrait.outsideBackCover .marginBox IMG {
80+
max-width: 146mm;
81+
}
5482
.insideFrontCover .bloom-content1 {
5583
display: inherit;
5684
}
@@ -345,4 +373,3 @@ BODY[bookcreationtype="translation"] .titlePage #funding .bloom-contentNational1
345373
.ISBNContainer .ISBNContainer SPAN {
346374
vertical-align: top;
347375
}
348-
/*# sourceMappingURL=Traditional-XMatter.css.map */

DistFiles/xMatter/bloom-xmatter-common.css

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.bloom-frontMatter .pageLabel:after,
1+
.bloom-frontMatter .pageLabel:after,
22
.bloom-backMatter .pageLabel:after {
33
content: ": unknown Front/Back Matter";
44
}
@@ -9,48 +9,83 @@
99
left: 15mm;
1010
width: 180mm;
1111
}
12+
.A4Portrait.outsideFrontCover .marginBox IMG,
13+
.A4Portrait.outsideBackCover .marginBox IMG {
14+
/* BL-2353 Keeps XMatter thumb images from going too wide (or too small) */
15+
max-width: 180mm;
16+
}
1217
.A4Landscape.outsideFrontCover .marginBox,
1318
.A4Landscape.outsideBackCover .marginBox {
1419
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
1520
height: 185mm;
1621
left: 15mm;
1722
width: 267mm;
1823
}
24+
.A4Landscape.outsideFrontCover .marginBox IMG,
25+
.A4Landscape.outsideBackCover .marginBox IMG {
26+
/* BL-2353 Keeps XMatter thumb images from going too wide (or too small) */
27+
max-width: 267mm;
28+
}
1929
.A5Portrait.outsideFrontCover .marginBox,
2030
.A5Portrait.outsideBackCover .marginBox {
2131
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
2232
height: 185mm;
2333
left: 15mm;
2434
width: 118mm;
2535
}
36+
.A5Portrait.outsideFrontCover .marginBox IMG,
37+
.A5Portrait.outsideBackCover .marginBox IMG {
38+
/* BL-2353 Keeps XMatter thumb images from going too wide (or too small) */
39+
max-width: 118mm;
40+
}
2641
.A5Landscape.outsideFrontCover .marginBox,
2742
.A5Landscape.outsideBackCover .marginBox {
2843
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
2944
height: 123mm;
3045
left: 15mm;
3146
width: 180mm;
3247
}
48+
.A5Landscape.outsideFrontCover .marginBox IMG,
49+
.A5Landscape.outsideBackCover .marginBox IMG {
50+
/* BL-2353 Keeps XMatter thumb images from going too wide (or too small) */
51+
max-width: 180mm;
52+
}
3353
.A6Portrait.outsideFrontCover .marginBox,
3454
.A6Portrait.outsideBackCover .marginBox {
3555
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
3656
height: 123mm;
3757
left: 15mm;
3858
width: 75mm;
3959
}
60+
.A6Portrait.outsideFrontCover .marginBox IMG,
61+
.A6Portrait.outsideBackCover .marginBox IMG {
62+
/* BL-2353 Keeps XMatter thumb images from going too wide (or too small) */
63+
max-width: 75mm;
64+
}
4065
.A6Landscape.outsideFrontCover .marginBox,
4166
.A6Landscape.outsideBackCover .marginBox {
4267
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
4368
height: 80mm;
4469
left: 15mm;
4570
width: 118mm;
4671
}
72+
.A6Landscape.outsideFrontCover .marginBox IMG,
73+
.A6Landscape.outsideBackCover .marginBox IMG {
74+
/* BL-2353 Keeps XMatter thumb images from going too wide (or too small) */
75+
max-width: 118mm;
76+
}
4777
.B5Portrait.outsideFrontCover .marginBox,
4878
.B5Portrait.outsideBackCover .marginBox {
4979
/*There's no page number on the cover, so we might as well have a the bottom stuff closer to the bottom*/
5080
height: 225mm;
5181
left: 15mm;
5282
width: 146mm;
5383
}
84+
.B5Portrait.outsideFrontCover .marginBox IMG,
85+
.B5Portrait.outsideBackCover .marginBox IMG {
86+
/* BL-2353 Keeps XMatter thumb images from going too wide (or too small) */
87+
max-width: 146mm;
88+
}
5489
.insideFrontCover .bloom-content1 {
5590
display: inherit;
5691
}
@@ -345,4 +380,3 @@ BODY[bookcreationtype="translation"] .titlePage #funding .bloom-contentNational1
345380
.ISBNContainer .ISBNContainer SPAN {
346381
vertical-align: top;
347382
}
348-
/*# sourceMappingURL=bloom-xmatter-common.css.map */

DistFiles/xMatter/bloom-xmatter-common.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
//Just center the margin box, (for now, we're ignoring the binding)
2121
left: @MarginOuter;
2222
width: @PageWidth - (2 * @MarginOuter);
23+
IMG { /* BL-2353 Keeps XMatter thumb images from going too wide (or too small) */
24+
max-width: @PageWidth - (2 * @MarginOuter);
25+
}
2326
}
2427
.A4Portrait& {
2528
.SetMarginBoxCover(@A4Portrait-Height, @A4Portrait-Width);

0 commit comments

Comments
 (0)