mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-14 20:51:07 +01:00
CSS Changes to accomadate pip boy
This commit is contained in:
parent
7ac9e3cec1
commit
62d3e63eac
2 changed files with 97 additions and 126 deletions
|
|
@ -124,7 +124,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
top: -20px;
|
top: -20px;
|
||||||
gap: 10px;
|
gap: 15px;
|
||||||
margin-bottom: -16px;
|
margin-bottom: -16px;
|
||||||
|
|
||||||
.resources-section {
|
.resources-section {
|
||||||
|
|
@ -157,6 +157,7 @@
|
||||||
.status-value {
|
.status-value {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -171,34 +172,49 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
padding: 7px;
|
padding: 5px;
|
||||||
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
|
border-radius: 6px;
|
||||||
|
z-index: 1;
|
||||||
|
background: @dark-blue;
|
||||||
|
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: light-dark(@dark-blue, @golden);
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
|
||||||
.armor-slot {
|
|
||||||
cursor: pointer;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
font-size: var(--font-size-12);
|
|
||||||
|
|
||||||
.fa-shield-halved {
|
.slot {
|
||||||
color: light-dark(@dark-blue-40, @golden-40);
|
width: 15px;
|
||||||
}
|
height: 10px;
|
||||||
}
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
|
background: light-dark(@dark-blue-10, @golden-10);
|
||||||
.slot {
|
border-radius: 3px;
|
||||||
width: 15px;
|
transition: all 0.3s ease;
|
||||||
height: 10px;
|
cursor: pointer;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
|
||||||
background: light-dark(@dark-blue-10, @golden-10);
|
|
||||||
border-radius: 3px;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
&.filled {
|
&.filled {
|
||||||
background: light-dark(@dark-blue, @golden);
|
background: light-dark(@dark-blue, @golden);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.slot-label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: light-dark(@beige, @dark-blue);
|
||||||
|
background: light-dark(@dark-blue, @golden);
|
||||||
|
padding: 0 5px;
|
||||||
|
width: fit-content;
|
||||||
|
font-weight: bold;
|
||||||
|
border-radius: 0px 0px 5px 5px;
|
||||||
|
font-size: var(--font-size-12);
|
||||||
|
|
||||||
|
.label {
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.value {
|
||||||
|
padding-left: 6px;
|
||||||
|
border-left: 1px solid @dark-golden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type='number'] {
|
input[type='number'] {
|
||||||
|
|
@ -230,38 +246,6 @@
|
||||||
width: 40px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.progress-bar {
|
|
||||||
position: absolute;
|
|
||||||
appearance: none;
|
|
||||||
width: 125px;
|
|
||||||
height: 40px;
|
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
|
||||||
border-radius: 6px;
|
|
||||||
z-index: 1;
|
|
||||||
background: @dark-blue;
|
|
||||||
|
|
||||||
&::-webkit-progress-bar {
|
|
||||||
border: none;
|
|
||||||
background: @dark-blue;
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
&::-webkit-progress-value {
|
|
||||||
background: @gradient-hp;
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
&.stress-color::-webkit-progress-value {
|
|
||||||
background: @gradient-stress;
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
&::-moz-progress-bar {
|
|
||||||
background: @gradient-hp;
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
&.stress-color::-moz-progress-bar {
|
|
||||||
background: @gradient-stress;
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -270,12 +254,13 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
.status-bar.armor-slots {
|
.status-bar.armor-slots {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 95px;
|
width: 100px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
|
|
||||||
.status-label {
|
.status-label {
|
||||||
|
|
@ -298,7 +283,7 @@
|
||||||
.status-value {
|
.status-value {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 0 6px;
|
padding: 0 5px;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
|
|
@ -307,69 +292,58 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
color: light-dark(@dark-blue, @beige);
|
color: light-dark(@dark-blue, @beige);
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
flex-direction: column;
|
||||||
border-bottom: none;
|
|
||||||
border-radius: 6px 6px 0 0;
|
|
||||||
|
|
||||||
input[type='number'] {
|
.slot-bar {
|
||||||
background: transparent;
|
display: flex;
|
||||||
font-size: 1.2rem;
|
flex-wrap: wrap;
|
||||||
width: 30px;
|
gap: 4px;
|
||||||
height: 20px;
|
padding: 5px;
|
||||||
text-align: center;
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border: none;
|
border-radius: 6px;
|
||||||
outline: 2px solid transparent;
|
z-index: 1;
|
||||||
color: light-dark(@dark-blue, @beige);
|
background: @dark-blue;
|
||||||
|
justify-content: center;
|
||||||
|
color: light-dark(@dark-blue, @golden);
|
||||||
|
|
||||||
&.bar-input {
|
.armor-slot {
|
||||||
padding: 0;
|
cursor: pointer;
|
||||||
color: light-dark(@dark-blue, @beige);
|
|
||||||
backdrop-filter: none;
|
|
||||||
background: transparent;
|
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
font-size: var(--font-size-12);
|
||||||
|
|
||||||
&:hover,
|
.fa-shield-halved {
|
||||||
&:focus {
|
color: light-dark(@dark-blue-40, @golden-40);
|
||||||
background: @semi-transparent-dark-blue;
|
|
||||||
backdrop-filter: blur(9.5px);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.slot-label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: light-dark(@beige, @dark-blue);
|
||||||
|
background: light-dark(@dark-blue, @golden);
|
||||||
|
padding: 0 5px;
|
||||||
|
width: 120%;
|
||||||
|
font-weight: bold;
|
||||||
|
border-radius: 5px;
|
||||||
|
font-size: var(--font-size-12);
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.label {
|
||||||
|
padding-right: 1px;
|
||||||
|
border-bottom: 1px solid @dark-golden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.value {
|
||||||
|
padding-left: 6px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar-label {
|
.bar-label {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-bar {
|
|
||||||
position: absolute;
|
|
||||||
appearance: none;
|
|
||||||
width: 80px;
|
|
||||||
height: 30px;
|
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
|
||||||
border-radius: 6px;
|
|
||||||
z-index: 1;
|
|
||||||
background: light-dark(transparent, @dark-blue);
|
|
||||||
border-bottom: none;
|
|
||||||
border-radius: 6px 6px 0 0;
|
|
||||||
|
|
||||||
&::-webkit-progress-bar {
|
|
||||||
border: none;
|
|
||||||
background: light-dark(transparent, @dark-blue);
|
|
||||||
}
|
|
||||||
&::-webkit-progress-value {
|
|
||||||
background: @gradient-stress;
|
|
||||||
}
|
|
||||||
&.stress-color::-webkit-progress-value {
|
|
||||||
background: @gradient-stress;
|
|
||||||
}
|
|
||||||
&::-moz-progress-bar {
|
|
||||||
background: @gradient-stress;
|
|
||||||
}
|
|
||||||
&.stress-color::-moz-progress-bar {
|
|
||||||
background: @gradient-stress;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-number {
|
.status-number {
|
||||||
|
|
|
||||||
|
|
@ -25,15 +25,11 @@
|
||||||
</span>
|
</span>
|
||||||
{{/times}}
|
{{/times}}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="slot-label">
|
||||||
|
<span class="label">{{localize "DAGGERHEART.GENERAL.HitPoints.short"}}</span>
|
||||||
|
<span class="value">{{document.system.resources.hitPoints.value}} / {{document.system.resources.hitPoints.max}}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='progress-bar'>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="status-label">
|
|
||||||
<h4><span>{{localize "DAGGERHEART.GENERAL.HitPoints.short"}}</span><span>|</span>
|
|
||||||
<span>{{document.system.resources.hitPoints.value}} / {{document.system.resources.hitPoints.max}}</span></h4>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="status-bar">
|
<div class="status-bar">
|
||||||
<div class='status-value'>
|
<div class='status-value'>
|
||||||
|
|
@ -43,11 +39,12 @@
|
||||||
</span>
|
</span>
|
||||||
{{/times}}
|
{{/times}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="slot-label">
|
||||||
<div class="progress-bar"></div>
|
<div class="slot-label">
|
||||||
<div class="status-label">
|
<span class="label">{{localize "DAGGERHEART.GENERAL.stress"}}</span>
|
||||||
<h4>{{localize "DAGGERHEART.GENERAL.stress"}}</span><span>|</span>
|
<span class="value">{{document.system.resources.stress.value}} / {{document.system.resources.stress.max}}</span>
|
||||||
<span>{{document.system.resources.stress.value}} / {{document.system.resources.stress.max}}</span></h4>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -62,7 +59,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if document.system.armor.system.marks}}
|
{{#if document.system.armor.system.marks}}
|
||||||
<div class="status-bar">
|
<div class="status-bar armor-slots">
|
||||||
<div class='status-value'>
|
<div class='status-value'>
|
||||||
<div class="slot-bar">
|
<div class="slot-bar">
|
||||||
{{#times document.system.armorScore}}
|
{{#times document.system.armorScore}}
|
||||||
|
|
@ -75,10 +72,10 @@
|
||||||
</a>
|
</a>
|
||||||
{{/times}}
|
{{/times}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="slot-label">
|
||||||
<div class="progress-bar"></div>
|
<span class="label">{{localize "DAGGERHEART.GENERAL.armorSlots"}}</span>
|
||||||
<div class="status-label">
|
<span class="value">{{document.system.armor.system.marks.value}} / {{document.system.armorScore}}</span>
|
||||||
<h4>{{localize "DAGGERHEART.GENERAL.armorSlots"}}|<span>{{document.system.armor.system.marks.value}} / {{document.system.armorScore}}</span></h4>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue