Add the layout for the details tab (closes #143)
This commit is contained in:
parent
194eba779d
commit
23fc2cb474
4 changed files with 34 additions and 6 deletions
|
|
@ -27,6 +27,7 @@ export class UntypedItemSheet extends GenericItemSheet {
|
||||||
|
|
||||||
ctx.computed = {
|
ctx.computed = {
|
||||||
showSettingsTab: ctx.isGM || this.item.isOwned,
|
showSettingsTab: ctx.isGM || this.item.isOwned,
|
||||||
|
isEmbedded: this.item.isOwned,
|
||||||
};
|
};
|
||||||
|
|
||||||
return ctx;
|
return ctx;
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,6 @@
|
||||||
.panel {
|
.panel {
|
||||||
@include material.elevate(2);
|
@include material.elevate(2);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
padding: var(--gap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
@use "../../../mixins/utils";
|
@use "../../../mixins/utils";
|
||||||
|
|
||||||
.dotdungeon.style-v3 .item--untyped {
|
.dotdungeon.style-v3 .item--untyped {
|
||||||
|
--gap: 8px;
|
||||||
|
|
||||||
.nav-bar {
|
.nav-bar {
|
||||||
@include material.elevate(8);
|
@include material.elevate(8);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -12,15 +14,20 @@
|
||||||
nav {
|
nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
gap: 8px;
|
gap: var(--gap);
|
||||||
padding: 8px;
|
padding: var(--gap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-content {
|
.page-content {
|
||||||
padding: 8px;
|
padding: calc(var(--gap) * 1);
|
||||||
padding-bottom: 60px;
|
padding-bottom: 60px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
> .tab {
|
||||||
|
height: 100%;
|
||||||
|
gap: var(--gap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@include utils.tab("general") {
|
@include utils.tab("general") {
|
||||||
|
|
@ -28,11 +35,14 @@
|
||||||
--height: 50px;
|
--height: 50px;
|
||||||
grid-template-columns: var(--height) 1fr;
|
grid-template-columns: var(--height) 1fr;
|
||||||
grid-template-rows: var(--height) 1fr;
|
grid-template-rows: var(--height) 1fr;
|
||||||
gap: 8px;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include utils.tab("details") {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,19 @@
|
||||||
<div class="tab" data-group="page" data-tab="details">
|
<div class="tab" data-group="page" data-tab="details">
|
||||||
Details Tab
|
<div class="cost panel">
|
||||||
|
Purchase Cost
|
||||||
|
</div>
|
||||||
|
<div class="usage-cost panel">
|
||||||
|
Usage Cost
|
||||||
|
</div>
|
||||||
|
<div class="tier panel">
|
||||||
|
Item Rarity
|
||||||
|
</div>
|
||||||
|
{{#if computed.isEmbedded}}
|
||||||
|
<div class="location panel">
|
||||||
|
Item Location
|
||||||
|
</div>
|
||||||
|
<div class="quantity panel">
|
||||||
|
Quantity
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue