From 2d0737994603f0d8f2688a8f2b4d4dff3b4d4803 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 25 Jan 2021 22:26:25 +0100 Subject: [PATCH] improved display printable cards --- .../custom/materiotheme/assets/dist/main.css | 20 +++++++++---------- .../custom/materiotheme/assets/dist/print.css | 20 +++++++++---------- .../materiotheme/assets/styles/print.scss | 4 +--- 3 files changed, 21 insertions(+), 23 deletions(-) diff --git a/web/themes/custom/materiotheme/assets/dist/main.css b/web/themes/custom/materiotheme/assets/dist/main.css index 2b7e2f69..c33606df 100644 --- a/web/themes/custom/materiotheme/assets/dist/main.css +++ b/web/themes/custom/materiotheme/assets/dist/main.css @@ -2559,17 +2559,17 @@ body { display: inline-block; vertical-align: top; width: 49%; } - #printable-root-page > article .field--name-field-manufacturer .field__item, - #printable-root-page > article .field--name-field-distributor .field__item { + #printable-root-page > article .field--name-field-manufacturer .taxonomy-term, + #printable-root-page > article .field--name-field-distributor .taxonomy-term { padding-bottom: 0.5em; } - #printable-root-page > article .field--name-field-manufacturer .taxonomy-term > h2, - #printable-root-page > article .field--name-field-distributor .taxonomy-term > h2 { - margin: 0; - font-weight: 600; - font-size: 1em; } - #printable-root-page > article .field--name-field-manufacturer .taxonomy-term p, - #printable-root-page > article .field--name-field-distributor .taxonomy-term p { - margin: 0; } + #printable-root-page > article .field--name-field-manufacturer .taxonomy-term > h2, + #printable-root-page > article .field--name-field-distributor .taxonomy-term > h2 { + margin: 0; + font-weight: 600; + font-size: 1em; } + #printable-root-page > article .field--name-field-manufacturer .taxonomy-term p, + #printable-root-page > article .field--name-field-distributor .taxonomy-term p { + margin: 0; } #printable-root-page > article .field--name-field-materiau-images { margin-top: 1em; display: flex; diff --git a/web/themes/custom/materiotheme/assets/dist/print.css b/web/themes/custom/materiotheme/assets/dist/print.css index 9daffc3d..18c75490 100644 --- a/web/themes/custom/materiotheme/assets/dist/print.css +++ b/web/themes/custom/materiotheme/assets/dist/print.css @@ -49,17 +49,17 @@ body { display: inline-block; vertical-align: top; width: 49%; } - #printable-root-page > article .field--name-field-manufacturer .field__item, - #printable-root-page > article .field--name-field-distributor .field__item { + #printable-root-page > article .field--name-field-manufacturer .taxonomy-term, + #printable-root-page > article .field--name-field-distributor .taxonomy-term { padding-bottom: 0.5em; } - #printable-root-page > article .field--name-field-manufacturer .taxonomy-term > h2, - #printable-root-page > article .field--name-field-distributor .taxonomy-term > h2 { - margin: 0; - font-weight: 600; - font-size: 1em; } - #printable-root-page > article .field--name-field-manufacturer .taxonomy-term p, - #printable-root-page > article .field--name-field-distributor .taxonomy-term p { - margin: 0; } + #printable-root-page > article .field--name-field-manufacturer .taxonomy-term > h2, + #printable-root-page > article .field--name-field-distributor .taxonomy-term > h2 { + margin: 0; + font-weight: 600; + font-size: 1em; } + #printable-root-page > article .field--name-field-manufacturer .taxonomy-term p, + #printable-root-page > article .field--name-field-distributor .taxonomy-term p { + margin: 0; } #printable-root-page > article .field--name-field-materiau-images { margin-top: 1em; display: flex; diff --git a/web/themes/custom/materiotheme/assets/styles/print.scss b/web/themes/custom/materiotheme/assets/styles/print.scss index f8fcd941..fb46eb0c 100644 --- a/web/themes/custom/materiotheme/assets/styles/print.scss +++ b/web/themes/custom/materiotheme/assets/styles/print.scss @@ -62,10 +62,8 @@ body{ display: inline-block; vertical-align: top; width:49%; - .field__item{ - padding-bottom: 0.5em; - } .taxonomy-term{ + padding-bottom: 0.5em; >h2{ margin:0; font-weight: 600;