ds4/scss/components/actor/_combat_value.scss

74 lines
1.7 KiB
SCSS
Raw Permalink Normal View History

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 {
2023-07-10 22:23:13 +02:00
$size: 3.75rem;
2021-04-13 22:48:37 +02:00
2023-07-10 22:23:13 +02:00
display: grid;
place-items: center;
row-gap: 0.125em;
2021-04-13 22:48:37 +02:00
2023-07-10 22:23:13 +02:00
&__value {
$combat-values-icons-path: "#{variables.$official-icons-path}/combat-values";
@include mixins.centered-content;
2021-04-13 22:48:37 +02:00
2023-07-10 22:23:13 +02:00
background-position: center;
background-repeat: no-repeat;
background-size: contain;
font-size: 1.5em;
height: $size;
width: $size;
2021-04-13 22:48:37 +02:00
2023-07-10 22:23:13 +02:00
&--hitPoints {
background-image: url("#{$combat-values-icons-path}/hit-points.png");
2021-04-13 22:48:37 +02:00
}
2023-07-10 22:23:13 +02:00
&--defense {
background-image: url("#{$combat-values-icons-path}/defense.png");
}
2023-07-10 22:23:13 +02:00
&--initiative {
background-image: url("#{$combat-values-icons-path}/initiative.png");
2021-04-13 22:48:37 +02:00
}
2023-07-10 22:23:13 +02:00
&--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");
2021-04-13 22:48:37 +02:00
}
2023-07-10 22:23:13 +02:00
&--spellcasting {
background-image: url("#{$combat-values-icons-path}/spellcasting.png");
}
&--targetedSpellcasting {
background-image: url("#{$combat-values-icons-path}/targeted-spellcasting.png");
}
}
&__label {
@include mixins.font-heading-upper;
font-size: 1.2em;
white-space: nowrap;
}
&__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;
}
2021-04-13 22:48:37 +02:00
}