Bladeren bron

Improve elements distribution in vademecum domiciliario

Tatiana Inama 7 jaren geleden
bovenliggende
commit
b269904249
3 gewijzigde bestanden met toevoegingen van 22 en 3 verwijderingen
  1. 20 1
      css/main.css
  2. 2 2
      js/vademecum-domiciliario.js
  3. BIN
      pdf/vademecum-apoyo-domiciliario.pdf

+ 20 - 1
css/main.css

@@ -214,7 +214,7 @@ tr:last-child td .sell-product-container {
     border: 0;
 }
 .sell-product-container {
-    padding: 1rem;
+    padding: .5rem 1rem;
     border-bottom: 1px solid #CCCCCC;
 }
 
@@ -226,6 +226,10 @@ tr:last-child td .sell-product-container {
     align-items: center;
 }
 
+.sell-product-container:last-child {
+    margin-bottom: 1rem;
+}
+
 .price-tag {
     text-align: center;
     color: #aaaaaa;
@@ -241,6 +245,7 @@ tr:last-child td .sell-product-container {
     font-size: 1rem;
     padding: 0 .2rem;
 }
+
 h4 {
     color: #004c8c;
     font-weight: 600;
@@ -254,4 +259,18 @@ h4 {
     font-family: 'Raleway', sans-serif;
     font-size: .75rem;
     text-align: center;
+}
+
+table.domi-prod:not(:first-child) {
+    page-break-before: unset;
+    width: 100%;
+}
+
+table.domi-prod {
+    page-break-inside: avoid;
+}
+
+h2.domi-h2 {
+    padding: 1rem;
+    margin-bottom: 0;
 }

+ 2 - 2
js/vademecum-domiciliario.js

@@ -40,10 +40,10 @@ const ProductList = (products, categories) => (
 	<div>
 		{
 			categories.map(category => (
-				<table id={category[TAG]}>
+				<table id={category[TAG]} className="domi-prod">
 					<thead>
 						<tr><th>
-							<h2>{category[LABEL]}</h2>
+							<h2 className="domi-h2">{category[LABEL]}</h2>
 						</th></tr>
 					</thead>
 					<tbody>

BIN
pdf/vademecum-apoyo-domiciliario.pdf