]> Harvie.CZ GIT Repositories and Mirrors - mirrors/Designs.git/commitdiff
square tables possible
authorTomas Mudrunka <tomas.mudrunka@gmail.com>
Wed, 10 Jun 2026 20:10:48 +0000 (22:10 +0200)
committerTomas Mudrunka <tomas.mudrunka@gmail.com>
Wed, 10 Jun 2026 20:10:48 +0000 (22:10 +0200)
tools/din_rail_module_label_generator.html

index 830fc8aa004100c2a696956648bdf8fddca6d07f..5fa56dad9f9a62fc8b9228c3573093cfd6858c20 100644 (file)
@@ -10,7 +10,7 @@ SPDX-License-Identifier: BSD-3-Clause
 /* DIN Rail Modules are 17.5mm wide, but mounted with 18mm pitch to accomodate differences */
 
 /* fonts */
-table,h1 { font-family: sans-serif; font-weight: normal; font-size: 3.8mm; line-height: 5.2mm; }
+table,h1 { font-family: sans-serif; font-weight: normal; font-size: 3.8mm; line-height: 4.7mm; }
 small { font-size: 2.5mm; line-height: 2.5mm; }
 small small { font-size: 2mm; line-height: 1.9mm; }
 a { color: dark-grey; text-decoration: none; }
@@ -21,12 +21,14 @@ tr { margin-bottom: 10mm; }
 td * { display: block; }
 td {
        border: 1px solid black; width: 18mm; height: 16mm; 
-       text-align: center; padding: 0; overflow: hidden;
+       text-align: center; padding: 3px 0 0 0; overflow: hidden;
        display: flex-wrap; float: left; margin-bottom: 4mm; box-sizing: border-box;
        justify-content: center; /* align-items: center; */
        white-space: pre-line;
        position: relative;
 }
+.square * td { height: 18mm; }
+.half * td { height: 9mm; }
 td:not(:last-child) { border-right: 0px solid red; }
 
 /* wide modules */
@@ -161,7 +163,7 @@ Use CTRL+S to save whole tool including your changes to your computer. CTRL+P to
 
 
 
-<table class="indexed">
+<table class="indexed square">
 
 <tr>
 <td colspan="3">&#x1F525;<br />Kuchyně<br />Varná deska</td>
@@ -169,7 +171,7 @@ Use CTRL+S to save whole tool including your changes to your computer. CTRL+P to
 <td>&#x1F50C; &#x1F4E1;<br />Předsíň Data</td>
 <td>&#x1F525;<br />Kuchyně Trouba</td>
 <td>&#x1F50C; &#x2744;&#xFE0F;<br />Kuchyně Lednice</td>
-<td>&#x1F50C; &#x1F525;<br />Kuchyně<small>Mikrovlnná Trouba</small></td>
+<td>&#x1F50C; &#x1F525;<br />Kuchyně <small>Mikrovlnná Trouba</small></td>
 <td>&#x1F50C; &#x1F4A7;<br />Kuchyně Myčka</td>
 <td colspan="4">&#x26A1; &#x1F4A7;<br />Proudový chránič</td>
 <td>&#x1F50C; &#x1F4A7;<br />Koupelna Pračka</td>
@@ -179,9 +181,9 @@ Use CTRL+S to save whole tool including your changes to your computer. CTRL+P to
 <td>&#x1F50C;<br />Kuchyně Linka</td>
 <td>&#x1F50C;<br />Obývák Předsíň<small>Střed</small></td>
 <td>&#x1F50C;<br />Ložnice</td>
-<td>&#x1F50C; &#x1f4a1;<br />Kuchyně Digestoř</td>
-<td>&#x1F525;<br />Koupelna Podlaha</td>
-<td>&#x1F525;<br />Koupelna Žebřík</td>
+<td>&#x1F50C; &#x1f4a1;<br />Kuchyně Linka<small>Digestoř</small></td>
+<td>&#x1F525;<br />Koupelna <small>Topení</small>Podlaha</td>
+<td>&#x1F525;<br />Koupelna <small>Topení</small>Žebřík</td>
 <td>&#x1F50C; &#x1f4a1;<br />Koupelna</td>
 <td></td>
 <td></td>
This page took 0.223186 seconds and 4 git commands to generate.