shortens display of language skills

feature/applicationv2
macniel 2025-10-17 23:28:02 +02:00
parent 2900a45959
commit 2dd920a094
7 changed files with 65 additions and 24 deletions

View File

@ -38,7 +38,7 @@ export default {
const obj = { const obj = {
type: "talent", type: "talent",
gruppe: talentGruppe, gruppe: talentGruppe,
name: item.name, name: item.name.replace(/Sprachen kennen/g, "Sprache:").replace(/Lesen\/Schreiben/g, "Schrift: "),
taw: "" + item.system.taw, taw: "" + item.system.taw,
tawPath: `system.items.${index}.taw`, tawPath: `system.items.${index}.taw`,
werte, werte,

View File

@ -3,9 +3,24 @@
--font-body: Gentium, sans-serif; --font-body: Gentium, sans-serif;
label, label,
.sheet-tabs.tabs a { .sheet-tabs.tabs a,
h2 {
font-family: Gentium, sans-serif; font-family: Gentium, sans-serif;
font-weight: bold; font-weight: bold;
font-size: 12pt;
}
h2 {
height: 32px;
line-height: 32px;
padding: 0;
margin: 0;
}
ul {
li {
margin-bottom: 16px;
}
} }
input, input,

View File

@ -1,22 +1,4 @@
.dsa41.sheet.actor.character { .dsa41.sheet.actor.character {
.tab.skills {
columns: 2;
column-gap: 20px;
.talent-group {
break-inside: avoid-column;
display: unset;
height: unset;
gap: unset;
padding: unset;
}
ul {
list-style-type: none;
padding-left: 0;
}
}
} }

View File

@ -148,7 +148,6 @@ $rollable_colours_font: (
height: 28px; height: 28px;
left: -1px; left: -1px;
top: -2px; top: -2px;
scale: 0.8;
img { img {
position: absolute; position: absolute;

View File

@ -8,8 +8,7 @@
@use "./character-tabs/combat"; @use "./character-tabs/combat";
@use "./character-tabs/spells"; @use "./character-tabs/spells";
@use "./character-tabs/liturgies"; @use "./character-tabs/liturgies";
@use "./character-tabs/skills";
.application.sheet.dsa41.actor.character { .application.sheet.dsa41.actor.character {
@ -87,11 +86,14 @@
@include inventory.tab; @include inventory.tab;
} }
.tab.combat.active { .tab.combat.active {
@include combat.tab; @include combat.tab;
} }
.tab.skills.active {
@include skills.tab;
}
.tab.spells { .tab.spells {
@include spells.tab; @include spells.tab;
} }

View File

@ -0,0 +1,41 @@
@mixin tab {
container: thisTab / inline-size;
.collapsible {
columns: 2;
column-gap: 20px;
padding: 8px;
display: block;
height: unset;
.talent-group {
break-inside: avoid-column;
display: unset;
height: unset;
gap: unset;
padding: unset;
}
ul {
list-style-type: none;
padding-left: 0;
}
}
@container thisTab (inline-size <= 740px ) {
.collapsible {
columns: 1;
}
}
@container thisTab (inline-size > 740px ) {
.collapsible {
columns: 2;
}
}
}

View File

@ -1,6 +1,7 @@
<section class="tab {{tabs.skills.id}} {{tabs.skills.cssClass}}" <section class="tab {{tabs.skills.id}} {{tabs.skills.cssClass}}"
data-tab="{{tabs.skills.id}}" data-tab="{{tabs.skills.id}}"
data-group="{{tabs.skills.group}}"> data-group="{{tabs.skills.group}}">
<div class="collapsible">
<div class="talent-group"> <div class="talent-group">
<h2>Kampftalente</h2> <h2>Kampftalente</h2>
<ul> <ul>
@ -82,4 +83,5 @@
{{/each}} {{/each}}
</ul> </ul>
</div> </div>
</div>
</section> </section>