fixes display of liturgies and preliminary styling

feature/applicationv2
yuna 2025-10-18 11:47:04 +02:00
parent 2dd920a094
commit b13fc29791
5 changed files with 18 additions and 20 deletions

View File

@ -14,16 +14,13 @@ export default {
context.liturgies = [];
context.blessings = [];
Object.values(actorData.items).forEach((item, index) => {
if (item.type === "Blessing") {
context.blessings.push({
deity: item.system.gottheit,
value: item.system.wert
})
}
actorData.itemTypes.Blessing.forEach((item, index) => {
context.blessings.push({
deity: item.system.gottheit,
value: item.system.wert
})
})
Object.values(actorData.items).forEach((item, index) => {
if (item.type === "Liturgy") {
actorData.itemTypes.Liturgy.forEach((item, index) => {
context.blessings.forEach(({deity, value}) => {
let insertObject = context.liturgies.find(p => p.deity === deity);
@ -77,7 +74,6 @@ export default {
}
})
}
})

View File

@ -22,8 +22,7 @@ export default {
context.skills = {};
context.flatSkills = [];
actorData.items.forEach((item, index) => {
if (item.type === "Skill") {
actorData.itemTypes.Skill.forEach((item, index) => {
const talentGruppe = item.system.gruppe;
const eigenschaften = Object.values(item.system.probe);
@ -68,7 +67,7 @@ export default {
context.skills[talentGruppe].push(obj);
context.flatSkills.push(obj);
}
}
)
return context

View File

@ -96,14 +96,14 @@ $deity_colours_tint: (
&::before {
position: absolute;
content: '';
background-image: url("../../assets/velvet_strip.png");
background-image: url("/systems/DSA_4-1/assets/velvet_strip.png");
background-repeat: repeat-y;
background-size: cover;
width: 86px;
height: 100%;
top: 45px;
left: 12px;
left: 28px;
}
&::after { /* for tinting the texture */
@ -113,7 +113,7 @@ $deity_colours_tint: (
height: 100%;
top: 45px;
left: 12px;
left: 28px;
}
}
}

View File

@ -1,5 +1,10 @@
@mixin tab {
> div {
height: unset;
}
table {
border-top: unset;
border-bottom: unset;

View File

@ -1,7 +1,7 @@
<section class="tab {{tabs.liturgies.id}} {{tabs.liturgies.cssClass}}"
data-tab="{{tabs.liturgies.id}}"
data-group="{{tabs.liturgies.group}}">
<div>
<div class="tab-resources">
<div class="karmapoints">
@ -23,7 +23,6 @@
</tr>
</thead>
<tbody>
{{#if this.countO}}
<tr>
<th rowspan="{{this.total}}" class="background"></th>
<th class="banner-mid" rowspan="{{countO}}">
@ -43,7 +42,6 @@
<td></td>
</tr>
{{/each}}
{{/if}}
{{#if this.countI}}
<tr>
<th class="banner-mid" rowspan="{{countI}}">
@ -197,6 +195,6 @@
</tbody>
</table>
{{/each}}
</div>
</section>