Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions collections/page-copy/Copy Destination/Copy Destination.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<html>
<head>
<meta charset="UTF-8" />
<meta name="Generator" content="Bloom Version 6.5.0" />
<meta name="BloomFormatVersion" content="2.1" />
<meta name="pageTemplateSource" content="Basic Book" />

<title> Copy Destination </title>
<style type="text/css" title="userModifiedStyles">/*<![CDATA[*/
/*]]>*/</style>
<meta name="maintenanceLevel" content="14" />
<meta name="mediaMaintenanceLevel" content="1" />
<meta name="FeatureRequirement" content="[{&quot;BloomDesktopMinVersion&quot;:&quot;6.2&quot;,&quot;BloomPlayerMinVersion&quot;:&quot;2.0&quot;,&quot;FeatureId&quot;:&quot;bloomCanvas&quot;,&quot;FeaturePhrase&quot;:&quot;6.2 use of bloom-canvas&quot;}]" />
<link rel="stylesheet" href="basePage.css" type="text/css" /><link rel="stylesheet" href="previewMode.css" type="text/css" /><link rel="stylesheet" href="origami.css" type="text/css" /><link rel="stylesheet" href="Basic Book.css" type="text/css" /><link rel="stylesheet" href="Factory-XMatter.css" type="text/css" /><link rel="stylesheet" href="branding.css" type="text/css" /><link rel="stylesheet" href="defaultLangStyles.css" type="text/css" /><link rel="stylesheet" href="appearance.css" type="text/css" /><link rel="stylesheet" href="../customCollectionStyles.css" type="text/css" /></head>

<body data-decodablestage="0" data-leveledreaderlevel="1" data-bookshelfurlkey="" data-L1="en" data-L2="" data-L3="">

<div id="bloomDataDiv">
<div data-book="styleNumberSequence" lang="*">0</div>
<div data-book="contentLanguage1" lang="*">en</div>
<div data-book="contentLanguage1Rtl" lang="*">False</div>
<div data-book="languagesOfBook" lang="*">English</div>
<div data-book="bookTitle" lang="en"><p>Copy Destination</p></div>
<div data-book="originalTitle" lang="*">Copy Destination</div>
</div>

<div class="bloom-page numberedPage customPage bloom-combinedPage side-left A5Portrait bloom-monolingual" data-page="" id="5e6f7a8b-0001-4001-8001-b0c1d2e30001" data-pagelineage="a5c8db02-2a20-4d99-b3f8-7fa8b3d1f8ba" data-page-number="1" lang="">
<div class="pageLabel" lang="en" data-i18n="TemplateBooks.PageLabel.Just Text">
Just Text
</div>
<div class="pageDescription" lang="en"></div>

<div class="marginBox">
<div class="split-pane horizontal-percent" style="min-height: 40px">
<div class="split-pane-component position-top" style="bottom: 50%">
<div class="split-pane-component-inner">
<div class="bloom-translationGroup bloom-trailingElement" data-default-languages="auto">
<div class="bloom-editable normal-style bloom-visibility-code-on bloom-content1 bloom-contentNational1" lang="en" contenteditable="true">
<p>This book starts with ordinary text and no media.</p>
</div>
<div class="bloom-editable normal-style" lang="z" contenteditable="true"><p></p></div>
</div>
</div>
</div>
<div class="split-pane-divider horizontal-divider" style="bottom: 50%" title="CTRL for precision. Double click to match previous page." data-splitter-label="50%"></div>
<div class="split-pane-component position-bottom" style="height: 50%">
<div class="split-pane-component-inner">
<div class="bloom-translationGroup bloom-trailingElement" data-default-languages="auto">
<div class="bloom-editable normal-style bloom-visibility-code-on bloom-content1 bloom-contentNational1" lang="en" contenteditable="true">
<p>The test pastes the source book's page after this one.</p>
</div>
<div class="bloom-editable normal-style" lang="z" contenteditable="true"><p></p></div>
</div>
</div>
</div>
</div>
</div>
</div>

</body>
</html>
249 changes: 249 additions & 0 deletions collections/page-copy/Copy Destination/appearance.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
/* From appearance-theme-default.css */
/* This is the default theme, not only in the sense that it is the one we use by default for new books,
* but also in the sense that it is copied to the start of each appearance.css file. Thus, the values
* set in this initial .bloom-page block are defaults for EVERY page in EVERY book, and this block is
* intended to provide a default for EVERY variable controlled by the appearance system.
* Some of these values are overridden for certain page sizes by other rules in this file.
* Intentionally, those rules are not more specific than this one, they just come later in the file
* and win for that reason.
* The rules for any other theme are copied later than the ones from this file in appearance.css,
* so anything in those files with the same (or of course greater) specificity can override these.
* For example, page-margin-right is set to 12mm in a .bloom-page block early in this file.
* For an A4Landscape page, a later rule in this file overrides the .bloom-page rule and makes it 15mm.
* If the book uses the large margins theme, a .bloom-page rule in that file overrides it again to 25mm.
* The rounded border theme overrides it to 2.5mm for Device page sizes, using a different selector again.
* These rules all have the same specificity even though they have different selectors, so the last one wins.
* I don't much like depending on the order of rules like this, or having rules left in the
* generated appearance.css file that we know will never apply to anything. But I don't see a better way
* to get the desired results:
* - a default for every property here that applies to every page in every book in every theme
* - a way to override default property values for certain page sizes
* - a way to override for certain themes (either for all page sizes or by page-size)
* Note: variables here set to zero representing a distance should have some unit, since they may
* be used in calc() expressions. For example, 0px, 0mm, 0in are all valid. 0 as a multiplier is fine.
*/
.bloom-page {
--topLevel-text-padding: 1em;

/* display: value in .numberedPage:after to display the page number */
--pageNumber-show: doShow-css-will-ignore-this-and-use-default; /* default is number displaying (the value is a self-documenting trick) */

/* font-size: value in .numberedPage:after to display the page number */
--pageNumber-font-size: 11pt;
/* Either --pageNumber-top or --pageNumber-bottom should be set to a value, but not both. */
/* bottom: value in .numberedPage:after to display the page number */
--pageNumber-bottom: 15px; /* Based on experiment with 5mm unprintable area for desktop printers (tested using boxes in Acrobat).
/* top: value in .numberedPage:after to display the page number */
--pageNumber-top: unset;
/* used for both height: and width: values in .numberedPage:after to display the page number.
* Values like 20mm or 20vmin are valid. */
--pageNumber-background-width: unset; /* for when we need to have a colored background, e.g. a circle */
/* background-color: value in .numberedPage:after to display the page number */
--pageNumber-background-color: transparent;
/* color: value in .numberedPage:after to display the page number */
--pageNumber-color: black;
--pageNumber-outline-color: white;
/* border-radius: value in .numberedPage:after to display the page number */
--pageNumber-border-radius: 0px;
/* left: value in .numberedPage.side-left:after to display the page number */
--pageNumber-left-margin: auto;
--pageNumber-extra-height: 0mm;

/* Themes should set to 0 if the marginBox is a different color than the page background. This affects the text padding.
Note that we could eventually figure this out in code, and probably need to once we provide a UI for
setting the marginBox border or page background color. */
--page-and-marginBox-are-same-color-multiplicand: 1;

/* right: value in .numberedPage.side-right:after to display the page number
* If this is used, --pageNumber-always-left-margin should be set to unset (a keyword).
* Note that if used, this should be set the same value as --page-margin-right, which is
* what this default value achieves. */
--pageNumber-right-margin: var(--page-margin-right);

/* left: value in .numberedPage.side-right:after to display the page number */
/* This allows the page number to always be on the left, regardless of page side.
* If this is used, --pageNumber-right-margin must be set to unset (a keyword).
* Valid values would include auto (a keyword), 5px, or 8%.
* The unset keyword removes having any value associated with this variable. */
--pageNumber-always-left-margin: unset;

/* background-color: value in .bloom-page when a theme wants a decorative shell behind the page surface */
/* DO WE NEED THIS? --page-frame-color: unset;*/

/* background-color: value in .bloom-page */
--page-background-color: white;

/* padding-left: value in .split-pane.vertical-percent
* .split-pane-component.position-right .split-pane-component-inner > div */
--page-verticalSplit-width: 3px; /* 3px is matching Bloom 5.6's right margin for vertical split */
/* padding-top: value in .split-pane.horizontal-percent
* .split-pane-component.position-bottom .split-pane-component-inner > div */
--page-horizontalSplit-height: 0px;
/* gap: value for .bloom-translationGroup */
/* When Bloom is configured to show each block of text in more than one language, this controls
the space between the different language sections of each block. */
--multilingual-editable-vertical-gap: 1em;
/* border-radius: value in .bloom-canvas (picture added by user to front cover or content page) */
--image-border-radius: 0px; /* 0px is the default, but we want to be explicit about square corners */
/* Most Bloom books are too small to need a gutter. NB: THIS MUST HAVE UNITS even when 0, else calc() fails */
--page-gutter: 0mm;

--page-margin: 12mm;

/* padding-top: value in .bloom-page.outsideFrontCover and .bloom-page.outsideBackCover */
/* same default value as --page-margin-top, but used for outside cover pages */
--cover-margin-top: var(--page-margin);
/* padding-bottom: value in .bloom-page.outsideFrontCover and .bloom-page.outsideBackCover */
/* same default value as --page-margin-bottom, but used for outside cover pages */
--cover-margin-bottom: var(--page-margin);
/* padding-left: and padding-right: value in .bloom-page.outsideFrontCover and .bloom-page.outsideBackCover */
--cover-margin-side: var(
--page-margin
); /* same default value as --page-margin-left and --page-margin-right, but used for outside cover pages */
/* display: value in .coverBottomBookTopic */
--cover-topic-show: doShow-css-will-ignore-this-and-use-default; /* default is topic displaying (the value is a self-documenting trick) */
/* display: value in .coverBottomLangName */
--cover-languageName-show: doShow-css-will-ignore-this-and-use-defaultblock; /* default is language name displaying (the value is a self-documenting trick) */
/* display: value in .cover .creditsRow */
--cover-creditsRow-show: doShow-css-will-ignore-this-and-use-default; /* default is credits row displaying (the value is a self-documenting trick) */

/* background-color: value in .numberedPage .marginBox */
/* This is not just for text boxes, but for everything inside the page margins.
(For example, the space between text boxes or the background of partly transparent images.)
It defaults to the page surface color rather than transparent, because in edit mode we set
the parent translationGroup color to show padding and still need the editable content area
itself to paint like the page surface. */
--marginBox-background-color: var(--page-background-color);
/* padding: value in .numberedPage .marginBox */
--marginBox-padding: 0px;
/* border-radius: value in .numberedPage .marginBox */
--marginBox-border-radius: 0px;
/* border-color: value in .numberedPage .marginBox */
--marginBox-border-color: black;
/* border-style: value in .numberedPage .marginBox */
--marginBox-border-style: none; /* default is no border, but we want to be explicit. 'none' is a keyword. */
/* border-width: value in .numberedPage .marginBox */
--marginBox-border-width: medium; /* must not be 0px/0mm/0in to have a border. 'medium' is a keyword. */

/* In some themes, at edit-
time, the format button lands under the page number. See BL-13206. The name is is intentionally vague about direction and what we do with it.
Must have a unit: this feeds a calc() with px, where a unitless 0 makes the whole expression invalid (BL-14901). */
--formatButton-pageNumber-dodge: 0px;
}

/* this rule might not always be what we need for every kind of interactive page, but it's a good default.
E.g., it allows the blue of the Simple Choice to come through. */
.bloom-page.bloom-interactive-page {
--marginBox-background-color: transparent;
}

/* Beware of making these rules more specific. We want them to be able to be overridden by .bloom-page rules
* that come from other themes (and hence later in the generated appearance.css file).
*/
.A3Landscape,
.A3Portrait,
.A4Landscape,
.A4Portrait,
.B5Portrait,
.LetterLandscape,
.LetterPortrait,
.LegalLandscape,
.LegalLandscape {
--page-margin: 15mm;
--page-gutter: 10mm;
}
.HalfLetterPortrait,/* SIL Mexico says use same as A5 */
.HalfLetterLandscape,
.A5Landscape,
.A5Portrait,
.Size6x9Landscape,
.Size6x9Portrait,
.USComicPortrait {
--page-margin: 12mm;
}
.QuarterLetterPortrait,
.QuarterLetterLandscape,
.A6Portrait,
.A6Landscape {
--page-margin: 10mm;
}
.Cm13Landscape {
--page-margin: 5mm;
}
.bloom-page[class*="Ebook"],
.bloom-page[class*="Device"] {
--page-margin: 10px;
}

.bloom-page[class*="Ebook"],
.bloom-page[class*="Device"],
.bloomPlayer-page .bloom-page {
/* Deliberately set both of these, which combines with a special device/bloom-player rule
* in basePage.less which sets both left and right margin to auto, and we get
* centered as the default for device/bloom-player pages. (To override this, you need to
* set the margin you don't want to something like "deliberately-invalid".)*/
--pageNumber-right-margin: 0px;
--pageNumber-always-left-margin: 0px;
}

.numberedPage[class*="Ebook"],
.numberedPage[class*="Device"] {
/* These page sizes have small margins, so we need extra height on numbered ones.
(Note that this disappears if page numbers are turned off, because --pageNumber-show-multiplicand is 0.) */
--pageNumber-extra-height: 8mm !important;
}

/* We need a small margin (above) for xmatter pages (e.g., Robots Mali credits page,
* especially in landscape, comment in BL-13002).
* But we need more on numbered pages, so we can fit the page number.
* This unfortunately breaks our rule about keeping the specificity at one class so that
* the settings dialog can override. But currently we don't expect to make page margins
* a book setting, so for now we're OK.*/
/*.numberedPage.Device16x9Portrait,
.numberedPage.Device16x9Landscape {
--page-margin-bottom: 45px; /* need room for page number, so not as small as others
}*/

/* classes are doubled in this rule because it needs to beat the one above that sets the
* bottom margin for numbered pages in Device page sizes. This makes it equally specific
* and thus the last one wins. */
.no-margin-page.no-margin-page,
.comic.comic {
--page-margin-top: 0px;
--page-margin-bottom: 0px;
--page-margin-right: 0px;
--page-margin-left: 0px;
--pageNumber-font-size: 0px; /* review will this work to hide it? */
--pageNumber-show-multiplicand: 0; /* no extra space for suppressed page number */
--pageNumber-extra-height: 0mm !important;
}

/*****************************************************************************
* These variables / rules are for xmatter pages.
*/
.bloom-frontMatter,
.bloom-backMatter {
--MarginBetweenXMatterBlocks: 2em;
--MarginBetweenXMatterMinorItems: 5px;
--DefaultCoverTitle1FontSize: 25pt;
--DefaultCoverTitle2FontSize: 12pt;
/* Same as our ordinary default, but we have to set it explicitly because of a trick
that copies the DefaultCoverTitle1FontSize to the translationGroup. */
--DefaultCoverTitle3FontSize: 10pt;
}

/* From this book's appearance settings */
.bloom-page {
--pageNumber-show-multiplicand: 1;
--cover-creditsRow-show: doShow-css-will-ignore-this-and-use-default;
--cover-title-L1-show: doShow-css-will-ignore-this-and-use-default;
--cover-title-L2-show: doShow-css-will-ignore-this-and-use-default;
--cover-title-L3-show: none;
--cover-topic-show: doShow-css-will-ignore-this-and-use-default;
--cover-languageName-show: doShow-css-will-ignore-this-and-use-default;
--pageNumber-show: doShow-css-will-ignore-this-and-use-default;
--pageNumber-left-margin-override: unset;
--pageNumber-right-margin-override: unset;
--cover-background-color: #c6c6c6;
}

15 changes: 15 additions & 0 deletions collections/page-copy/Copy Destination/appearance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cssThemeName": "default",
"fullBleed": false,
"pageNumber-position": "automatic",
"cover-creditsRow-show": true,
"cover-title-L1-show": true,
"cover-title-L2-show": true,
"cover-title-L3-show": false,
"cover-topic-show": true,
"cover-languageName-show": true,
"pageNumber-show": true,
"pageNumber-left-margin-override": "unset",
"pageNumber-right-margin-override": "unset",
"cover-background-color": "#c6c6c6"
}
Loading
Loading