Add styling for checks
This commit is contained in:
parent
0d03dbf424
commit
db69a8f537
7 changed files with 18 additions and 8 deletions
|
@ -268,5 +268,6 @@
|
||||||
"DS4.ChecksSwim": "Schwimmen",
|
"DS4.ChecksSwim": "Schwimmen",
|
||||||
"DS4.ChecksWakeUp": "Erwachen",
|
"DS4.ChecksWakeUp": "Erwachen",
|
||||||
"DS4.ChecksWorkMechanism": "Mechanismus Öffnen",
|
"DS4.ChecksWorkMechanism": "Mechanismus Öffnen",
|
||||||
"DS4.ActorCheckFlavor": "{actor} würfelt eine {check} Probe."
|
"DS4.ActorCheckFlavor": "{actor} würfelt eine {check} Probe.",
|
||||||
|
"DS4.CheckTooltip": "{check} Probe würfeln"
|
||||||
}
|
}
|
||||||
|
|
|
@ -268,5 +268,6 @@
|
||||||
"DS4.ChecksSwim": "Swim",
|
"DS4.ChecksSwim": "Swim",
|
||||||
"DS4.ChecksWakeUp": "Wake Up",
|
"DS4.ChecksWakeUp": "Wake Up",
|
||||||
"DS4.ChecksWorkMechanism": "Work Mechanism",
|
"DS4.ChecksWorkMechanism": "Work Mechanism",
|
||||||
"DS4.ActorCheckFlavor": "{actor} rolls a {check} check."
|
"DS4.ActorCheckFlavor": "{actor} rolls a {check} check.",
|
||||||
|
"DS4.CheckTooltip": "Roll a {check} check"
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Data<DS4Actor>> {
|
||||||
return mergeObject(superDefaultOptions, {
|
return mergeObject(superDefaultOptions, {
|
||||||
...superDefaultOptions,
|
...superDefaultOptions,
|
||||||
classes: ["ds4", "sheet", "actor"],
|
classes: ["ds4", "sheet", "actor"],
|
||||||
height: 600,
|
height: 615,
|
||||||
scrollY: [
|
scrollY: [
|
||||||
".values",
|
".values",
|
||||||
".inventory",
|
".inventory",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.ds4.sheet.actor {
|
.ds4.sheet.actor {
|
||||||
min-width: 650px;
|
min-width: 650px;
|
||||||
min-height: 500px;
|
min-height: 610px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
.ds4-check {
|
.ds4-check {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-shadow: 0 0 10px red;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
.ds4-checks {
|
.ds4-checks {
|
||||||
display: grid;
|
display: grid;
|
||||||
column-gap: 0.5em;
|
column-gap: 2em;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
|
||||||
|
row-gap: 0.25em;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
!-- @param check-label: The label for the check
|
!-- @param check-label: The label for the check
|
||||||
--}}
|
--}}
|
||||||
|
|
||||||
<div class="ds4-check rollable-check" data-check="{{check-key}}">
|
<div class="ds4-check rollable-check" data-check="{{check-key}}" title="{{localize 'DS4.CheckTooltip' check=check-label}}">
|
||||||
{{check-label}}: {{check-target-number}}
|
<span>{{check-label}}</span>
|
||||||
|
<span>{{check-target-number}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue