Skip to content
Snippets Groups Projects
Commit 85c9d7eb authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Add margin/padding reset parameter (VPU/Apps/Signature#6)

parent 990b8f30
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,15 @@ export function getThemeCSS() {
`;
}
export function getGeneralCSS() {
export function getGeneralCSS(doMarginPaddingReset = true) {
// language=css
const marginPaddingResetCss = doMarginPaddingReset ? css`
blockquote, body, dd, dl, dt, fieldset, figure, h1, h2, h3, h4, h5, h6, hr, html, iframe, legend, li, ol, p, pre, textarea, ul {
margin: 0;
padding: 0;
}
` : css``;
// language=css
return css`
h2 {
......@@ -128,10 +136,7 @@ export function getGeneralCSS() {
line-height: 1.125;
}
blockquote, body, dd, dl, dt, fieldset, figure, h1, h2, h3, h4, h5, h6, hr, html, iframe, legend, li, ol, p, pre, textarea, ul {
margin: 0;
padding: 0;
}
${marginPaddingResetCss}
.button[disabled], .file-cta[disabled], .file-name[disabled], .input[disabled], .pagination-ellipsis[disabled],
.pagination-link[disabled], .pagination-next[disabled], .pagination-previous[disabled], .select fieldset[disabled] select,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment