Add the ability to create custom items

This commit is contained in:
Oliver-Akins 2024-02-04 22:05:44 -07:00
parent 23dd021df6
commit 83039c6144
9 changed files with 118 additions and 4 deletions

View file

@ -4,6 +4,7 @@
border: 2px solid black;
background: none;
box-shadow: none;
height: unset;
&.left { text-align: left; }
&.center { text-align: center; }
@ -19,6 +20,10 @@
flex-direction: row;
align-items: center;
transition: all ease-in-out 50ms;
border: 2px solid black;
border-radius: 4px;
gap: 4px;
padding: 4px;
&:focus-within {
transform: scale(102%);
@ -39,6 +44,10 @@
display: flex;
flex-direction: column;
transition: all ease-in-out 50ms;
border: 2px solid black;
border-radius: 4px;
gap: 4px;
padding: 4px;
&:focus-within {
transform: scale(102%);

View file

@ -17,6 +17,7 @@
@use "./sheets/actor/mvp.scss";
@use "./sheets/actor/mob/mob.scss";
@use "./sheets/actor/sync/basic.scss";
@use "./sheets/items/custom.scss";
@use "./sheets/items/aspect.scss";
@use "./sheets/items/spell.scss";
@use "./sheets/items/pet.scss";

View file

@ -0,0 +1,16 @@
.item--custom {
padding: 8px;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: repeat(3, min-content) 1fr;
grid-template-areas:
"name name"
". ."
"usage usage"
"description description";
gap: 8px;
.name { grid-area: name; }
.usage { grid-area: usage; }
.description { grid-area: description; }
}