replace basic-property-* css classes by selectors
This commit is contained in:
parent
874692ed5c
commit
5bdfdd410b
5 changed files with 15 additions and 17 deletions
|
@ -4,12 +4,10 @@
|
||||||
display: grid;
|
display: grid;
|
||||||
align-content: end;
|
align-content: end;
|
||||||
|
|
||||||
.basic-property-label,
|
|
||||||
& > label {
|
& > label {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.basic-property-select,
|
|
||||||
& > select {
|
& > select {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<h2 class="item-type">{{localize (lookup config.itemTypes item.type)}}</h2>
|
<h2 class="item-type">{{localize (lookup config.itemTypes item.type)}}</h2>
|
||||||
<div class="grid grid-3col basic-properties">
|
<div class="grid grid-3col basic-properties">
|
||||||
<div class="basic-property">
|
<div class="basic-property">
|
||||||
<label class="basic-property-label">{{localize "DS4.ArmorType"}}</label>
|
<label>{{localize "DS4.ArmorType"}}</label>
|
||||||
<select class="basic-property-select" name="data.armorType" data-type="String">
|
<select name="data.armorType" data-type="String">
|
||||||
{{#select data.armorType}}
|
{{#select data.armorType}}
|
||||||
{{#each config.armorTypes as |value key|}}
|
{{#each config.armorTypes as |value key|}}
|
||||||
<option value="{{key}}">{{value}}</option>
|
<option value="{{key}}">{{value}}</option>
|
||||||
|
@ -16,8 +16,8 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="basic-property">
|
<div class="basic-property">
|
||||||
<label class="basic-property-label">{{localize "DS4.ArmorMaterialType"}}</label>
|
<label>{{localize "DS4.ArmorMaterialType"}}</label>
|
||||||
<select class="basic-property-select" name="data.armorMaterialType" data-type="String">
|
<select name="data.armorMaterialType" data-type="String">
|
||||||
{{#select data.armorMaterialType}}
|
{{#select data.armorMaterialType}}
|
||||||
{{#each config.armorMaterialTypes as |value key|}}
|
{{#each config.armorMaterialTypes as |value key|}}
|
||||||
<option value="{{key}}">{{value}}</option>
|
<option value="{{key}}">{{value}}</option>
|
||||||
|
@ -26,8 +26,8 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="basic-property">
|
<div class="basic-property">
|
||||||
<label class="basic-property-label">{{localize "DS4.ArmorValue"}}</label>
|
<label>{{localize "DS4.ArmorValue"}}</label>
|
||||||
<input class="basic-property-input" type="text" name="data.armorValue" value="{{data.armorValue}}"
|
<input type="text" name="data.armorValue" value="{{data.armorValue}}"
|
||||||
placeholder="0" data-dtype="Number" />
|
placeholder="0" data-dtype="Number" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<h2 class="item-type">{{localize (lookup config.itemTypes item.type)}}</h2>
|
<h2 class="item-type">{{localize (lookup config.itemTypes item.type)}}</h2>
|
||||||
<div class="grid grid-1col basic-properties">
|
<div class="grid grid-1col basic-properties">
|
||||||
<div class="basic-property">
|
<div class="basic-property">
|
||||||
<label class="basic-property-label">{{localize "DS4.ArmorValue"}}</label>
|
<label>{{localize "DS4.ArmorValue"}}</label>
|
||||||
<input class="basic-property-input" type="text" name="data.armorValue" value="{{data.armorValue}}"
|
<input type="text" name="data.armorValue" value="{{data.armorValue}}"
|
||||||
placeholder="0" data-dtype="Number" />
|
placeholder="0" data-dtype="Number" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
{{#*inline "talentRankBasicProperty" }}
|
{{#*inline "talentRankBasicProperty" }}
|
||||||
<div class="basic-property">
|
<div class="basic-property">
|
||||||
<label class="basic-property-label" for="data.rank.{{property}}">{{localize localizeString}}</label>
|
<label for="data.rank.{{property}}">{{localize localizeString}}</label>
|
||||||
<input type="number" min="0" step="1" data-dtype="Number" {{disabled}}
|
<input type="number" min="0" step="1" data-dtype="Number" {{disabled}}
|
||||||
{{#if (eq property 'base') }}max="{{data.rank.max}}"{{/if}}
|
{{#if (eq property 'base') }}max="{{data.rank.max}}"{{/if}}
|
||||||
name="data.rank.{{property}}" value="{{lookup data.rank property}}" />
|
name="data.rank.{{property}}" value="{{lookup data.rank property}}" />
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<h2 class="item-type">{{localize (lookup config.itemTypes item.type)}}</h2>
|
<h2 class="item-type">{{localize (lookup config.itemTypes item.type)}}</h2>
|
||||||
<div class="grid grid-3col basic-properties">
|
<div class="grid grid-3col basic-properties">
|
||||||
<div class="basic-property">
|
<div class="basic-property">
|
||||||
<label class="basic-property-label">{{localize "DS4.AttackType"}}</label>
|
<label>{{localize "DS4.AttackType"}}</label>
|
||||||
<select class="basic-property-select" name="data.attackType" data-type="String">
|
<select name="data.attackType" data-type="String">
|
||||||
{{#select data.attackType}}
|
{{#select data.attackType}}
|
||||||
{{#each config.attackTypes as |value key|}}
|
{{#each config.attackTypes as |value key|}}
|
||||||
<option value="{{key}}">{{value}}</option>
|
<option value="{{key}}">{{value}}</option>
|
||||||
|
@ -16,13 +16,13 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="basic-property">
|
<div class="basic-property">
|
||||||
<label class="basic-property-label">{{localize "DS4.WeaponBonus"}}</label>
|
<label>{{localize "DS4.WeaponBonus"}}</label>
|
||||||
<input class="basic-property-input" type="number" name="data.weaponBonus" value="{{data.weaponBonus}}"
|
<input type="number" name="data.weaponBonus" value="{{data.weaponBonus}}"
|
||||||
placeholder="0" data-dtype="Number" />
|
placeholder="0" data-dtype="Number" />
|
||||||
</div>
|
</div>
|
||||||
<div class="basic-property">
|
<div class="basic-property">
|
||||||
<label class="basic-property-label">{{localize "DS4.OpponentDefense"}}</label>
|
<label>{{localize "DS4.OpponentDefense"}}</label>
|
||||||
<input class="basic-property-input" type="number" name="data.opponentDefense"
|
<input type="number" name="data.opponentDefense"
|
||||||
value="{{data.opponentDefense}}" placeholder="0" data-dtype="Number" />
|
value="{{data.opponentDefense}}" placeholder="0" data-dtype="Number" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue