2021-06-26 22:02:00 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2022-01-21 03:22:17 +01:00
|
|
|
@use "../../utils/mixins";
|
|
|
|
@use "../../utils/variables";
|
2021-04-13 22:48:37 +02:00
|
|
|
|
|
|
|
.ds4-combat-value {
|
|
|
|
$size: 3.75rem;
|
|
|
|
|
|
|
|
display: grid;
|
|
|
|
place-items: center;
|
2021-07-12 01:00:50 +02:00
|
|
|
row-gap: 0.125em;
|
2021-04-13 22:48:37 +02:00
|
|
|
|
2022-02-14 03:25:05 +01:00
|
|
|
&__total {
|
2021-04-13 22:48:37 +02:00
|
|
|
$combat-values-icons-path: "#{variables.$official-icons-path}/combat-values";
|
|
|
|
@include mixins.centered-content;
|
|
|
|
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
|
|
|
font-size: 1.5em;
|
|
|
|
height: $size;
|
|
|
|
width: $size;
|
|
|
|
|
|
|
|
&--hitPoints {
|
|
|
|
background-image: url("#{$combat-values-icons-path}/hit-points.png");
|
|
|
|
}
|
|
|
|
&--defense {
|
|
|
|
background-image: url("#{$combat-values-icons-path}/defense.png");
|
|
|
|
}
|
|
|
|
&--initiative {
|
|
|
|
background-image: url("#{$combat-values-icons-path}/initiative.png");
|
|
|
|
}
|
|
|
|
&--movement {
|
|
|
|
background-image: url("#{$combat-values-icons-path}/movement-rate.png");
|
|
|
|
}
|
|
|
|
&--meleeAttack {
|
|
|
|
background-image: url("#{$combat-values-icons-path}/melee-attack.png");
|
|
|
|
}
|
|
|
|
&--rangedAttack {
|
|
|
|
background-image: url("#{$combat-values-icons-path}/ranged-attack.png");
|
|
|
|
}
|
|
|
|
&--spellcasting {
|
|
|
|
background-image: url("#{$combat-values-icons-path}/spellcasting.png");
|
|
|
|
}
|
|
|
|
&--targetedSpellcasting {
|
|
|
|
background-image: url("#{$combat-values-icons-path}/targeted-spellcasting.png");
|
|
|
|
}
|
2022-02-14 03:25:05 +01:00
|
|
|
&--mana {
|
|
|
|
background-image: url("#{$combat-values-icons-path}/mana.png");
|
|
|
|
}
|
2021-04-13 22:48:37 +02:00
|
|
|
}
|
|
|
|
|
2021-07-12 01:00:50 +02:00
|
|
|
&__label {
|
2022-01-21 03:22:17 +01:00
|
|
|
@include mixins.font-heading-upper;
|
2021-07-12 01:00:50 +02:00
|
|
|
font-size: 1.2em;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2021-04-13 22:48:37 +02:00
|
|
|
&__formula {
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
display: flex;
|
|
|
|
gap: 0.15em;
|
|
|
|
text-align: center;
|
|
|
|
width: $size;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__formula-base,
|
|
|
|
&__formula-modifier {
|
|
|
|
flex: 1 1 4em;
|
|
|
|
}
|
|
|
|
}
|