Daggerheart-fvtt/scss/components/_items.scss

154 lines
2.8 KiB
SCSS

// Section Header
.items-header {
height: 28px;
margin: 2px 0;
padding: 0;
align-items: center;
background: rgba(0, 0, 0, 0.05);
border: $border-groove;
font-weight: bold;
> * {
font-size: 14px;
text-align: center;
}
.item-name {
font-weight: bold;
padding-left: 5px;
text-align: left;
display: flex;
// font-size: 16px;
}
}
/* ----------------------------------------- */
/* Items Lists */
/* ----------------------------------------- */
.items-list {
list-style: none;
margin: 0;
padding: 0;
overflow-y: auto;
scrollbar-width: thin;
color: $c-tan;
// Child lists
.item-list {
list-style: none;
margin: 0;
padding: 0;
}
// Item Name
.item-name {
flex: 6;
margin: 0;
overflow: hidden;
font-size: 13px;
text-align: left;
align-items: center;
display: flex;
h3,
h4 {
margin: 0;
white-space: nowrap;
overflow-x: hidden;
}
}
// Control Buttons
.item-controls {
display: flex;
flex: 0 0 auto;
justify-content: flex-end;
a {
font-size: 12px;
text-align: center;
margin: 0 6px;
}
}
.item-equipped {
cursor: default;
caret-color: transparent;
align-items: center;
text-align: center;
}
.item-equipped > input {
appearance: none;
font-family: "Font Awesome 5 Free";
font-size: 21px;
cursor: pointer;
&::before {
content: "\f0e9";
font-weight: 400;
color: green;
}
&:checked::before {
content: "\f0e9";
font-weight: 900;
color: darkgreen;
}
}
// Individual Item
.item {
align-items: center;
padding: 0 2px; // to align with the header border
border-bottom: 1px solid $c-faint;
&:last-child {
border-bottom: none;
}
.item-name {
color: $c-dark;
.item-image {
flex: 0 0 30px;
height: 30px;
background-size: 30px;
border: none;
margin-right: 5px;
}
}
}
.item-prop {
text-align: center;
border-left: 1px solid #c9c7b8;
border-right: 1px solid #c9c7b8;
font-size: 12px;
}
// Section Header
.items-header {
height: 28px;
margin: 2px 0;
padding: 0;
align-items: center;
background: rgba(0, 0, 0, 0.05);
border: $border-groove;
font-weight: bold;
> * {
font-size: 12px;
text-align: center;
}
.items-header-name {
padding-left: 5px;
text-align: left;
// font-size: 16px;
}
.items-header-equipped {
padding-left: 5px;
text-align: left;
// font-size: 16px;
}
}
}
/* Example style for Candelafvtt (can be removed if not needed) */
.item-formula {
flex: 0 0 200px;
padding: 0 8px;
}