improve scss of character values
This commit is contained in:
parent
0d2af1ae00
commit
9cd430a229
2 changed files with 31 additions and 26 deletions
|
@ -55,14 +55,38 @@ header.sheet-header {
|
|||
$size: 60px;
|
||||
row-gap: $margin-sm;
|
||||
.combat-value {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
@include centered-content;
|
||||
height: $size;
|
||||
width: $size;
|
||||
flex: 0 0 auto;
|
||||
background-size: contain;
|
||||
font-size: 1.5em;
|
||||
&.hitPoints {
|
||||
background-image: url("assets/DS4-HP.png");
|
||||
}
|
||||
&.defense {
|
||||
background-image: url("assets/DS4-DEF.png");
|
||||
}
|
||||
&.initiative {
|
||||
background-image: url("assets/DS4-INI.png");
|
||||
}
|
||||
&.movement {
|
||||
background-image: url("assets/DS4-MR.png");
|
||||
}
|
||||
&.meleeAttack {
|
||||
background-image: url("assets/DS4-MAT.png");
|
||||
}
|
||||
&.rangedAttack {
|
||||
background-image: url("assets/DS4-RAT.png");
|
||||
}
|
||||
&.spellcasting {
|
||||
background-image: url("assets/DS4-SPC.png");
|
||||
}
|
||||
&.targetedSpellcasting {
|
||||
background-image: url("assets/DS4-TSC.png");
|
||||
}
|
||||
}
|
||||
|
||||
.combat-value-formula {
|
||||
width: $size;
|
||||
input {
|
||||
|
@ -70,30 +94,6 @@ header.sheet-header {
|
|||
}
|
||||
}
|
||||
}
|
||||
.combat-value.hitPoints {
|
||||
background-image: url("assets/DS4-HP.png");
|
||||
}
|
||||
.combat-value.defense {
|
||||
background-image: url("assets/DS4-DEF.png");
|
||||
}
|
||||
.combat-value.initiative {
|
||||
background-image: url("assets/DS4-INI.png");
|
||||
}
|
||||
.combat-value.movement {
|
||||
background-image: url("assets/DS4-MR.png");
|
||||
}
|
||||
.combat-value.meleeAttack {
|
||||
background-image: url("assets/DS4-MAT.png");
|
||||
}
|
||||
.combat-value.rangedAttack {
|
||||
background-image: url("assets/DS4-RAT.png");
|
||||
}
|
||||
.combat-value.spellcasting {
|
||||
background-image: url("assets/DS4-SPC.png");
|
||||
}
|
||||
.combat-value.targetedSpellcasting {
|
||||
background-image: url("assets/DS4-TSC.png");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,3 +14,8 @@
|
|||
@mixin hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@mixin centered-content {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue