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 = {
type: "talent",
gruppe: talentGruppe,
name: item.name,
name: item.name.replace(/Sprachen kennen/g, "Sprache:").replace(/Lesen\/Schreiben/g, "Schrift: "),
taw: "" + item.system.taw,
tawPath: `system.items.${index}.taw`,
werte,

View File

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

View File

@ -1,22 +1,4 @@
.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;
left: -1px;
top: -2px;
scale: 0.8;
img {
position: absolute;

View File

@ -8,8 +8,7 @@
@use "./character-tabs/combat";
@use "./character-tabs/spells";
@use "./character-tabs/liturgies";
@use "./character-tabs/skills";
.application.sheet.dsa41.actor.character {
@ -87,11 +86,14 @@
@include inventory.tab;
}
.tab.combat.active {
@include combat.tab;
}
.tab.skills.active {
@include skills.tab;
}
.tab.spells {
@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}}"
data-tab="{{tabs.skills.id}}"
data-group="{{tabs.skills.group}}">
<div class="collapsible">
<div class="talent-group">
<h2>Kampftalente</h2>
<ul>
@ -82,4 +83,5 @@
{{/each}}
</ul>
</div>
</div>
</section>