Custom labels for materials

This commit is contained in:
nesuprachy
2023-09-27 00:09:36 +02:00
parent ddc7f80824
commit b81879bc3c
2 changed files with 27 additions and 12 deletions
+20 -5
View File
@@ -97,7 +97,9 @@
margin-left: 10px;
}
.ui-dialog .charsheet input:focus,
.ui-dialog .charsheet select:focus {
.ui-dialog .charsheet select:focus,
.ui-dialog .charsheet .drd-network-name input:focus,
.ui-dialog .charsheet .drd-org-name input:focus {
outline: none;
box-shadow: inset 3px 3px 5px -5px #9b3f2b;
border: 1px inset #9b3f2b;
@@ -122,14 +124,15 @@
.ui-dialog .charsheet select {
width: fit-content;
}
.ui-dialog .charsheet input[type="text"] {
.ui-dialog .charsheet input[type="text"]:not(.drd-custom-label) {
width: 100%;
}
.ui-dialog .charsheet input[type="number"] {
text-align: center;
}
.drd-label + input,
.drd-label + select {
.drd-label + select,
.drd-custom-label + input {
margin-left: 10px;
}
.ui-dialog .charsheet textarea {
@@ -470,7 +473,7 @@ span[class="drd-hint"] {
margin-left: -34px;
}
/* Editable titles */
/* Editable labels */
.ui-dialog .charsheet .drd-custom-title {
font-family: "IM Fell English SC";
white-space: nowrap;
@@ -494,6 +497,18 @@ span.drd-editable::before {
font-family: "pictos";
content: "p";
}
.ui-dialog .charsheet .drd-custom-label {
font-family: "Roman Antique";
white-space: nowrap;
font-size: 1.2em;
font-style: italic;
background: transparent;
box-shadow: none;
border: 1px inset #e6e6e600;
padding: 0;
height: 27px;
width: 150px;
}
/* Resource squares */
.drd-resource-butts {
@@ -1013,7 +1028,7 @@ input[name="attr_companion_bond_current"] {
margin-left: 10px;
box-shadow: none;
background: transparent;
border: none;
border: 1px inset #e6e6e600;
}
.drd-network-bond {
column-gap: 10px;
+7 -7
View File
@@ -414,22 +414,22 @@
<input type="number" name="attr_copper" value="0" title="@{copper}"/>
</div>
<div>
<h2>Suroviny</h2>
<h2>Výroba</h2>
<span class="drd-label">Suroviny:</span>
<input type="number" name="attr_materials" value="0" title="@{materials}"/>
<span class="drd-label">Magické (volitelné):</span>
<input type="number" name="attr_materials_magical" value="0"/>
<span class="drd-label">Kovové (volitelné):</span>
<input type="number" name="attr_materials_metal" value="0"/>
<input class="drd-custom-label" type="text" name="attr_materials_custom1_label" placeholder="Libovolný materiál:"/>
<input type="number" name="attr_materials_custom1" value="0" title="@{materials_custom1}"/>
<input class="drd-custom-label" type="text" name="attr_materials_custom2_label" placeholder="Libovolný materiál:"/>
<input type="number" name="attr_materials_custom2" value="0" title="@{materials_custom2}"/>
</div>
<div>
<h2>Jídlo</h2>
<span class="drd-label">Jídlo:</span>
<input type="number" name="attr_rations" value="0" title="@{rations}"/>
<span class="drd-label">Voda:</span>
<input type="number" name="attr_water" value="0"/>
<input type="number" name="attr_water" value="0" title="@{water}"/>
<span class="drd-label">Krmivo:</span>
<input type="number" name="attr_feed" value="0"/>
<input type="number" name="attr_feed" value="0" title="@{feed}"/>
</div>
</div>
<div class="drd-pc-inventory-block2">