mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-25 00:43:38 +02:00
feat: add style to armors tooltip, add a style to make armor slot label more clear that was a button and add a tooltip location
This commit is contained in:
parent
420d436bb1
commit
3bfa6b28ed
5 changed files with 59 additions and 17 deletions
|
|
@ -3078,7 +3078,8 @@
|
||||||
"immune": "Immune",
|
"immune": "Immune",
|
||||||
"middleClick": "[Middle Click] Keep tooltip view",
|
"middleClick": "[Middle Click] Keep tooltip view",
|
||||||
"tokenSize": "The token size used on the canvas",
|
"tokenSize": "The token size used on the canvas",
|
||||||
"previewTokenHelp": "Left-click to place, right-click to cancel"
|
"previewTokenHelp": "Left-click to place, right-click to cancel",
|
||||||
|
"clickManageArmor": "Click to manage armor equipments"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -319,6 +319,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
@ -332,6 +334,15 @@
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: light-dark(@beige, @dark-blue);
|
color: light-dark(@beige, @dark-blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: light-dark(@light-black, @dark-blue);
|
||||||
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
|
|
||||||
|
h4, i {
|
||||||
|
color: light-dark(@dark-blue, @golden);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.slot-value {
|
.slot-value {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -381,6 +392,17 @@
|
||||||
font-size: var(--font-size-12);
|
font-size: var(--font-size-12);
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: light-dark(@light-black, @dark-blue);
|
||||||
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
|
|
||||||
|
.label, .value, i {
|
||||||
|
color: light-dark(@dark-blue, @golden);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
padding-right: 1px;
|
padding-right: 1px;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,19 @@
|
||||||
|
@import '../../utils/fonts.less';
|
||||||
|
@import '../../utils/colors.less';
|
||||||
|
|
||||||
.bordered-tooltip.locked-tooltip .daggerheart.armor-management-container {
|
.bordered-tooltip.locked-tooltip .daggerheart.armor-management-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 16px;
|
gap: 10px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-family: @font-subtitle;
|
||||||
|
margin: 0;
|
||||||
|
border: none;
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: var(--font-size-20);
|
||||||
|
}
|
||||||
|
|
||||||
.armor-source-container {
|
.armor-source-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -10,16 +22,16 @@
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
|
||||||
.armor-source-label {
|
.armor-source-label {
|
||||||
font-size: var(--font-size-24);
|
font-family: @font-body;
|
||||||
font-weight: bold;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-bar {
|
.status-bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 80px;
|
width: 100%;
|
||||||
height: 20px;
|
height: 30px;
|
||||||
|
|
||||||
.status-value {
|
.status-value {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -27,8 +39,8 @@
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 80px;
|
width: 100%;
|
||||||
height: 20px;
|
height: 30px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
@ -36,13 +48,13 @@
|
||||||
|
|
||||||
input[type='number'] {
|
input[type='number'] {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
font-size: 1rem;
|
font-size: 1.2rem;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 15px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: none;
|
border: none;
|
||||||
outline: 2px solid transparent;
|
outline: 2px solid transparent;
|
||||||
color: @beige;
|
color: @beige;
|
||||||
|
font-family: @font-body;
|
||||||
|
|
||||||
&.bar-input {
|
&.bar-input {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
@ -50,6 +62,7 @@
|
||||||
backdrop-filter: none;
|
backdrop-filter: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
height: 25px;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
|
|
@ -60,14 +73,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar-label {
|
.bar-label {
|
||||||
|
font-family: @font-body;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.progress-bar {
|
.progress-bar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
width: 80px;
|
width: 100%;
|
||||||
height: 20px;
|
height: 30px;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
@ -107,8 +122,11 @@
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background: @dark-blue;
|
background: @dark-blue;
|
||||||
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: light-dark(@dark-blue, @golden);
|
||||||
|
min-height: 30px;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
.armor-slot {
|
.armor-slot {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
</a>
|
</a>
|
||||||
{{/times}}
|
{{/times}}
|
||||||
</div>
|
</div>
|
||||||
<a class="slot-label" data-action="toggleArmorMangement">
|
<a class="slot-label" data-action="toggleArmorMangement" data-tooltip="{{localize 'DAGGERHEART.UI.Tooltip.clickManageArmor'}}">
|
||||||
<span class="label">{{localize "DAGGERHEART.GENERAL.armorSlots"}}</span>
|
<span class="label">{{localize "DAGGERHEART.GENERAL.armorSlots"}}</span>
|
||||||
<div class="slot-value-container">
|
<div class="slot-value-container">
|
||||||
<span class="value">{{document.system.armorScore.value}} / {{document.system.armorScore.max}}</span>
|
<span class="value">{{document.system.armorScore.value}} / {{document.system.armorScore.max}}</span>
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
value='{{document.system.armorScore.value}}'
|
value='{{document.system.armorScore.value}}'
|
||||||
max='{{document.system.armorScore.max}}'
|
max='{{document.system.armorScore.max}}'
|
||||||
></progress>
|
></progress>
|
||||||
<a class="status-label" data-action="toggleArmorMangement">
|
<a class="status-label" data-action="toggleArmorMangement" data-tooltip="{{localize 'DAGGERHEART.UI.Tooltip.clickManageArmor'}}">
|
||||||
<h4>{{localize "DAGGERHEART.GENERAL.armorSlots"}}</h4>
|
<h4>{{localize "DAGGERHEART.GENERAL.armorSlots"}}</h4>
|
||||||
<i class="fa-solid fa-gear"></i>
|
<i class="fa-solid fa-gear"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
<div class="daggerheart armor-management-container">
|
<div class="daggerheart armor-management-container">
|
||||||
|
<h3>{{localize "DAGGERHEART.GENERAL.armorSlots"}}</h3>
|
||||||
{{#each sources as |source|}}
|
{{#each sources as |source|}}
|
||||||
{{#if ../useResourcePips}}
|
{{#if ../useResourcePips}}
|
||||||
<div class="armor-source-container">
|
<div class="armor-source-container">
|
||||||
<label class="armor-source-label">{{source.name}}</label>
|
<p class="armor-source-label">{{source.name}}</p>
|
||||||
<div class="slot-bar">
|
<div class="slot-bar">
|
||||||
{{#times source.max}}
|
{{#times source.max}}
|
||||||
<a class='armor-slot' data-value="{{add this 1}}" data-uuid="{{source.uuid}}">
|
<a class='armor-slot' data-value="{{add this 1}}" data-uuid="{{source.uuid}}">
|
||||||
|
|
@ -17,7 +18,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="armor-source-container">
|
<div class="armor-source-container">
|
||||||
<label class="armor-source-label">{{source.name}}</label>
|
<p class="armor-source-label">{{source.name}}</p>
|
||||||
<div class="status-bar armor-slots">
|
<div class="status-bar armor-slots">
|
||||||
<div class='status-value'>
|
<div class='status-value'>
|
||||||
<input class="bar-input armor-marks-input" value="{{source.value}}" data-uuid="{{source.uuid}}" type="number">
|
<input class="bar-input armor-marks-input" value="{{source.value}}" data-uuid="{{source.uuid}}" type="number">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue