feat: complete visual redesign of all item sheets + compact chat roll messages
- Rewrote _item.sass with unified layout: type-bar + dark header + stats pills + tabs - All 11 item templates converted to new pill-based stats bar - Chat roll message font sizes and padding compacted - Physical item partial rewritten as stat pills (QTY/WEIGHT/COST/TL) - Legacy itemsheet-header and itemsheet-maincol hidden
This commit is contained in:
@@ -1,55 +1,55 @@
|
||||
<div class="{{cssClass}} itemsheet">
|
||||
<div class="itemsheet-header"><label class="upcase">{{ localize 'MGT2.Items.Container' }}</label></div>
|
||||
<div class="itemsheet-panel">
|
||||
<div class="itemsheet-maincol">
|
||||
<img class="profile-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
{{#if system.locked}}
|
||||
<div class="field-group mt-05">
|
||||
<i class="fa-solid fa-lock"></i><label class="upcase">{{ localize 'MGT2.Items.Locked' }}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="field-group mt-05">
|
||||
<label>{{ localize 'MGT2.Items.Weight' }} ({{unitlabels.weight}})</label>
|
||||
<input type="number" value="{{weight}}" readonly />
|
||||
<div class="item-type-bar">
|
||||
<span class="item-type-label"><i class="fas fa-box"></i> {{ localize 'MGT2.Items.Container' }}</span>
|
||||
{{#if system.locked}}<span class="item-type-label" style="margin-left:8px;"><i class="fa-solid fa-lock"></i></span>{{/if}}
|
||||
</div>
|
||||
<div class="item-sheet-header">
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Weight' }} ({{unitlabels.weight}})</span>
|
||||
<input type="number" value="{{weight}}" readonly style="opacity:0.7;" />
|
||||
</div>
|
||||
<div class="item-stat-pill-checkbox">
|
||||
<input type="checkbox" name="system.onHand" id="onhand-{{item.id}}" data-dtype="Boolean" {{checked system.onHand}} />
|
||||
<label for="onhand-{{item.id}}">{{ localize 'MGT2.Items.OnHand' }}</label>
|
||||
</div>
|
||||
{{#if isGM}}
|
||||
<div class="item-stat-pill-checkbox">
|
||||
<input type="checkbox" name="system.locked" id="locked-{{item.id}}" data-dtype="Boolean" {{checked system.locked}} />
|
||||
<label for="locked-{{item.id}}">{{ localize 'MGT2.Items.Locked' }}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
{{#if isGM}}
|
||||
<a class="item tab-select" data-tab="tab3">{{ localize 'MGT2.Items.Configuration' }}</a>
|
||||
{{/if}}
|
||||
</nav>
|
||||
<div class="tab-content-area">
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div style="flex: 1">
|
||||
<input class="field field-item-name" name="name" type="text" value="{{item.name}}" data-dtype="String" />
|
||||
<nav class="horizontal-tabs tabs mt-1" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
<a class="item tab-select" data-tab="tab3">{{ localize 'MGT2.Items.Configuration' }}</a>
|
||||
</nav>
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group mt-1">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
<div class="field-groups mt-05">
|
||||
<div class="field-group flex-1">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.onHand" data-dtype="Boolean" {{checked system.onHand}} />{{ localize 'MGT2.Items.OnHand' }}</label>
|
||||
</div>
|
||||
{{#if isGM}}
|
||||
<div class="field-group flex-1">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.locked" data-dtype="Boolean" {{checked system.locked}} />{{ localize 'MGT2.Items.Locked' }}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="field-group flex-1">
|
||||
<label>{{ localize 'MGT2.Items.Location' }}</label>
|
||||
<input type="text" name="system.location" value="{{system.location}}" data-dtype="String" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab3">
|
||||
{{#if isGM}}
|
||||
<div class="field-group mt-05">
|
||||
<label>{{ localize 'MGT2.Items.LockedDescription' }}</label>
|
||||
<textarea name="system.lockedDescription" rows="6">{{system.lockedDescription}}</textarea>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Location' }}</label>
|
||||
<input type="text" name="system.location" value="{{system.location}}" data-dtype="String" />
|
||||
</div>
|
||||
</div>
|
||||
{{#if isGM}}
|
||||
<div class="tab" data-group="primary" data-tab="tab3">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.LockedDescription' }}</label>
|
||||
<textarea name="system.lockedDescription" rows="6">{{system.lockedDescription}}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user