markdown-pdf icon indicating copy to clipboard operation
markdown-pdf copied to clipboard

Respecting @Page?

Open Merovex opened this issue 8 years ago • 0 comments

I am trying to use the @page to do "proper" margining, etc. Just following the following CSS, I see that the style is effectively ignored. Is there any intent to support @page in the future?

Additionally, the CSS defines the page-size (note the 2nd line after @page{ below), which should override the default.

Thanks.

html * {
	font: normal normal normal 12pt/normal Constantia, Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
}

/* ========= */
/* = PAGES = */
/* ========= */
@page {
	margin: 12mm 16mm 10mm 16mm;
	size: 7in 9.25in landscape;

	@footnotes {
		border-top: thin solid black;
		margin-left: 30%;
		margin-top: 0.6em;
		padding-top: 0.3em;
	}

	@bottom-right {
	    color: #000;
		content: counter(page);
		font-family: helvetica, arial, sans-serif;
        font-size: 12px;
        margin-top: -10px;
		margin-right: -40px;
    }
}

@page toc {
	margin-right: 6mm;

    @bottom-right {
        content: "";
    }
}

@page cover {
	margin: 0;

	@bottom-right {
        content: "";
    }
}

Merovex avatar Mar 31 '18 12:03 Merovex