|
| 1 | +@import "../branding-base.less"; |
| 2 | + |
| 3 | +// I made a branding-common.less file, because there are 2 similar Guatemala brandings being created at the same time. |
| 4 | +@TopLogoMarginOffset: 2rem; |
| 5 | +@BottomLogoMarginOffset: 3rem; |
| 6 | + |
| 7 | +p { |
| 8 | + margin-bottom: 1em; |
| 9 | +} |
| 10 | + |
| 11 | +.credits-page-branding-top-block { |
| 12 | + display: flex; |
| 13 | + flex-direction: column; |
| 14 | + |
| 15 | + .credits-page-branding-top-logo-block { |
| 16 | + display: flex; |
| 17 | + flex-direction: row; |
| 18 | + max-height: 75px; |
| 19 | + justify-content: space-between; |
| 20 | + |
| 21 | + // This is the top of the credits page, where we put the logos. There is a top left and a top right nested |
| 22 | + // inside of the top logo section. |
| 23 | + .credits-page-branding-top-logo-right, |
| 24 | + .credits-page-branding-top-logo-left { |
| 25 | + width: calc(50% + @TopLogoMarginOffset); |
| 26 | + display: flex; |
| 27 | + max-width: 300px; // in case of large page sizes, we don't want the logos to get carried away |
| 28 | + } |
| 29 | + |
| 30 | + // Move the logos toward the left and right edges of the page. |
| 31 | + .credits-page-branding-top-logo-left { |
| 32 | + margin-left: -@TopLogoMarginOffset; |
| 33 | + align-content: flex-start; |
| 34 | + img.branding { |
| 35 | + margin-left: unset; |
| 36 | + } |
| 37 | + } |
| 38 | + |
| 39 | + .credits-page-branding-top-logo-right { |
| 40 | + margin-right: -@TopLogoMarginOffset; |
| 41 | + align-content: flex-end; |
| 42 | + img.branding { |
| 43 | + margin-right: unset; |
| 44 | + } |
| 45 | + } |
| 46 | + } |
| 47 | +} |
| 48 | + |
| 49 | +.marginBox [data-book="credits-page-branding-bottom-html"] { |
| 50 | + margin: 0 -@BottomLogoMarginOffset; // enlarge bottom logo to fill the space better |
| 51 | + margin-top: auto; |
| 52 | +} |
| 53 | + |
| 54 | +// NOTE. The existence of this selector tells XMatterHelper that we can handle device layout, so don't revert to a specialized one. |
| 55 | +.Device16x9Portrait, |
| 56 | +.Device16x9Landscape { |
| 57 | + &.credits { |
| 58 | + .marginBox { |
| 59 | + left: 10px !important; |
| 60 | + height: calc(100% - 8mm) !important; |
| 61 | + .credits-page-branding-top-block { |
| 62 | + padding-top: unset; |
| 63 | + font-size: 8pt; // otherwise we'll never fit in all the text. |
| 64 | + img { |
| 65 | + max-width: 100%; |
| 66 | + } |
| 67 | + .credits-page-branding-top-logo-left { |
| 68 | + margin-left: unset; |
| 69 | + } |
| 70 | + .credits-page-branding-top-logo-right { |
| 71 | + margin-right: unset; |
| 72 | + } |
| 73 | + } |
| 74 | + .licenseDescription, |
| 75 | + .licenseNotes { |
| 76 | + font-size: 8pt; // otherwise we'll never fit in all the text. |
| 77 | + } |
| 78 | + [data-book="credits-page-branding-bottom-html"] { |
| 79 | + margin: unset; |
| 80 | + } |
| 81 | + } |
| 82 | + } |
| 83 | +} |
| 84 | + |
| 85 | +.Device16x9Landscape { |
| 86 | + &.credits { |
| 87 | + .marginBox { |
| 88 | + .copyright, |
| 89 | + .licenseBlock { |
| 90 | + margin-bottom: 0; // Device landscape is especially limited in vertical space. |
| 91 | + } |
| 92 | + } |
| 93 | + } |
| 94 | +} |
0 commit comments