Can I use Basil.js to change a page's width using a csv? - adobe-indesign

I want to make book covers using Indesign's Data Merge.
The indd is a spread where page 1 is the flap from the back cover, page 2 is the back cover, page 3 is the spine, page 4 is the front cover, page 5 is the flap from the front cover.
Page 3, the spine, should vary it's width from a value set in a CSV used for data merging all variable text and images. It should then export to PDF with the correct spine width.
Could this be done using Basil.js ?
I haven't tried Basil.js before.

Related

asciidoctor-pdf cover page image size to fill the page

I'm attempting to have the book-cover.png fill the entire first page of an ebook, but with the settings below it still leaves a small margin of white on both sides. What's the best image size to fill the cover and are there any options that would fill the page and not leave white margins? Thanks!
= Book Title
Author
Version 1.0, 2020-03-12
:front-cover-image: image::book-cover.png[Front Cover,1050,1600]
:doctype: book
:imagesdir: images
:toc: right
:toclevels: 2
ifndef::ebook-format[:leveloffset: 1]

How can i add this customization to my Shopify debut theme?

I'm trying to do some customization to my Debut theme in Shopify. On the home page I'm trying to customize my Featured images sizes. Shopify gives you the ability to adjust how many pictures you can put on a row and the sizes adjust accordingly.
Problem 1: I want to have 4 pictures per row but use the same sizing as 3 pictures on a row.
I found this question on the forum and it helped with the sizing.
These photos are the areas where I made the adjustments (may not show sizing adjustments in pictures). It did make the photos larger when done.
(Click images to enlarge)
Problem 2: This increased the picture size, but it puts the 4th picture on a separate row. I"m pretty sure this has to do with the page sizing. I'm struggling to find the page / box width to adjust sizing to keep all the pictures in the same row.
I tried to adjust the div width, but it didn't work.

Full bleed column with bottom padding with wkhtmltopdf

I'm converting a HTML page with wkhtmltopdf from HTML to PDF. My page consists of a left column with full bleed background color. How can I force a bottom/top padding so that my content is not pushed against the edge of the page (as demonstrated below), while keeping the full bleed background color for the left column?
I've tried p {page-break-inside: avoid;} without success. Setting padding on the page level goes against the full bleed.

3 SVG's on the same page

I'm trying to display 3 animated svg's on the homepage of our future website.
When animating the each svg separately (each on a single page) it works fine.
But, when animating them on the same page, they don't render prorperly, as the second svg displays some elements of the first one, and same thing for the third one taking elements from the second one.
I'm guessing it's due to the name of different masks, but I've tried renaming them, and the problem still happens.
I'm running out of solutions. Is there a SVG expert out there then can help? That would be super cool. Thank you!
Here is a test page with the 3 svg's. https://dl.dropboxusercontent.com/u/1699508/index.html
Each SVG has 3 states:
State 1 is "S0" on page-1
State 2 is "S0 SAnimStart" on page-1
State 3 is "S1 visible" on page-2
Thank you all :)
All SVGs are part of the HTML-DOM and all keyframe definitions too. And so there is a multiple use of ids, for instance id="page-1". Use unique ids or bind your animations on the css classes of the layers.

<li> elements clearing the row above

Is there a way to have a list of elements always clear the row above them without putting CSS on individual li elements?
Situation: Im building a site that's using the Business Catalyst CMS. I have a list of products which are built using lists. It all works fine except when you move the screen in and one of the product headings goes over three lines it makes the row under jump and only show one or two products instead of three.
See sample:
http://sklzaustralia.businesscatalyst.com/baseball-softball
Move the screen in until there is a gap on one of the rows. This gap is what I'm trying to avoid.
The products are imported with a module so I can add css to individual list items. It needs to be a general or solution.
I also know if I add a height to the it will solve this but that makes the responsive aspect messy as I need to pick a height that works across all screen sizes. So if its right for large screen, the gap is too large for small screen layout.
An ideas on fixing this problem...?
I ran into the same issue with an ecommerce site where product titles ranged from 2 words to 6 or more, and also included a short description underneath the product image.
You need to evaluate the elements within the
<div class="shop-product-small clear">
...and unfortunately define heights and min-heights to make sure each product div is always the same height. Play with font-size as well at a smaller #media width.
Set the width for li to be 50% when it falls below a breakpoint (when the gap appears).
Or just add .col-xs-6 to your li if you are using bootstrap.

Resources