css fixes after merging 4th tree PR

This commit is contained in:
Joshua Seigler 2025-06-14 04:36:36 -04:00
parent 9a78d65357
commit 66b0bd0877
3 changed files with 6 additions and 5 deletions

View file

@ -86,7 +86,6 @@
.augment {
background-color: var(--themeColor);
z-index: 0;
}
.augment:first-child {
@ -169,7 +168,7 @@
position: absolute;
bottom: 100%;
width: 20rem;
transform: translateX(calc((1 - var(--treeindex)) * 40%));
transform: translateX(calc((0.5 - var(--treeindex) / 3) * 80%));
}
.actionSkill:hover .description {

View file

@ -60,8 +60,10 @@ export default class VaultHunter extends Component {
const trees =
Object.keys(this.state.skills).map((treeName, treeIndex) => {
return (
<div class={`${style.tree} ${[style.green, style.blue, style.red, style.purple][treeIndex]}`}>
<style>{`.${style.tree}:nth-child(${treeIndex + 1}) { --invested: ${this.state.invested[treeIndex]}; --treeindex: ${treeIndex};}`}</style>
<div
class={`${style.tree} ${[style.green, style.blue, style.red, style.purple][treeIndex]}`}
style={`--invested: ${this.state.invested[treeIndex]}; --treeindex: ${treeIndex};`}
>
<h2 class={style.treeName}>{ treeName }</h2>
<div class={style.skills}>
{ Object.keys(this.state.skills[treeName]).map((tier, tierIndex) =>

View file

@ -5,7 +5,7 @@
--transition-duration: 300ms;
--font-header: sans-serif;
--font-list: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
font-size: 1.5vw;
font-size: 1.3vw;
}
@media screen and (min-width: 189vh) {