Get the material items finished
This commit is contained in:
parent
310ac07c88
commit
83d0bad21f
8 changed files with 146 additions and 9 deletions
156
styles/sheets/actor/char-sheet/v2/pages/inventory.scss
Normal file
156
styles/sheets/actor/char-sheet/v2/pages/inventory.scss
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
@use "../../../../../mixins/material" as material;
|
||||
|
||||
.dotdungeon .actor--pc-v2 .active.inventory-page {
|
||||
padding-bottom: 50px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.dotdungeon .actor--pc-v2 .inventory-page .active.tab[data-tab="player"] {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
grid-template-rows: 1fr repeat(4, min-content);
|
||||
height: 100%;
|
||||
color: white;
|
||||
|
||||
.item-list {
|
||||
grid-row: 1 / -1;
|
||||
grid-column: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
|
||||
&__group {
|
||||
@include material.elevate(1);
|
||||
padding: 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.panel {
|
||||
padding: 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.bytes-panel {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr min-content 50px min-content;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
|
||||
label {
|
||||
justify-self: left;
|
||||
}
|
||||
|
||||
input {
|
||||
@include material.elevate(3);
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
text-align: center;
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
@include material.elevate(6);
|
||||
background: hsl( from currentColor / 50% ); // probably gonna need color-mix
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
border-width: 2px;
|
||||
border-color: currentColor;
|
||||
background: var(--elevation-8dp-bg);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.capacity-panel {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 30px min-content 30px;
|
||||
|
||||
.used, .total {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-panel {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: repeat(6, 1fr);
|
||||
gap: 8px;
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
&:nth-of-type(2n) {
|
||||
flex-direction: row-reverse;
|
||||
justify-content: right;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.item-list {
|
||||
.material-list {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.material {
|
||||
@include material.elevate(1);
|
||||
padding: 8px;
|
||||
gap: 8px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr min-content 50px min-content;
|
||||
align-items: center;
|
||||
border-radius: 4px;
|
||||
|
||||
&__label {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
justify-self: left;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
&__button {
|
||||
--size: 28px;
|
||||
@include material.elevate(2);
|
||||
transition: all 400ms ease-in-out;
|
||||
color: var(--inventory-material-color);
|
||||
border-width: 0;
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
|
||||
&:hover {
|
||||
@include material.elevate(4);
|
||||
color: var(--inventory-material-hover-color);
|
||||
}
|
||||
}
|
||||
|
||||
&__input {
|
||||
@include material.elevate(2);
|
||||
font-family: var(--input-font);
|
||||
text-align: center;
|
||||
border-radius: 4px;
|
||||
transition: all 400ms ease-in-out;
|
||||
color: var(--inventory-material-color);
|
||||
|
||||
&:hover {
|
||||
@include material.elevate(4);
|
||||
color: var(--inventory-material-hover-color);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
@include material.elevate(8);
|
||||
color: var(--inventory-material-focus-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
79
styles/sheets/actor/char-sheet/v2/pages/stats.scss
Normal file
79
styles/sheets/actor/char-sheet/v2/pages/stats.scss
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
.dotdungeon .actor--pc-v2 .active.stats-page {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: auto auto auto;
|
||||
|
||||
.stat {
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
select {
|
||||
height: 100%;
|
||||
outline: none;
|
||||
border: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__header {
|
||||
padding: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
color: var(--stat-divider-text-color);
|
||||
gap: 8px;
|
||||
> h2 {
|
||||
flex-grow: 1;
|
||||
color: var(--stat-header-text-color);
|
||||
}
|
||||
.dice-select {
|
||||
color: var(--stat-dice-select-text-color);
|
||||
option {
|
||||
background: var(--stat-dice-select-bg);
|
||||
}
|
||||
}
|
||||
.roll-stat {
|
||||
color: var(--stat-roll-button-text-color);
|
||||
}
|
||||
|
||||
&:not(:only-child) {
|
||||
border-bottom: 1px solid var(--stat-divider-color);
|
||||
}
|
||||
}
|
||||
|
||||
&__empty {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
&__skills {
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
padding: 8px;
|
||||
|
||||
.skill {
|
||||
&__label {
|
||||
text-align: end;
|
||||
justify-self: right;
|
||||
color: var(--skill-name-text-color);
|
||||
}
|
||||
&__training {
|
||||
color: var(--skill-training-select-text-color);
|
||||
option {
|
||||
background: var(--skill-training-select-bg);
|
||||
}
|
||||
}
|
||||
&__roll {
|
||||
margin-right: 25%;
|
||||
color: var(--skill-roll-button-text-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue