Files
l5rx-chiaroscuro/system/styles/scss/items.scss
Vlyan 5449d4a4de Pass for number and focus on click
Fix on base-sheet for npc and school
2021-01-07 18:09:22 +01:00

335 lines
8.2 KiB
SCSS

// Item List
.item-list {
flex: 100%;
.item {
.item-header {
display: flex;
.item-img {
flex: 0 0 32px;
padding-right: 0.25rem;
img {
border: 1px solid rgba(0, 0, 0, 0.1);
}
}
.item-name {
flex: 1 1 auto;
font-size: 1rem;
line-height: 1rem;
color: $l5r5e-bold;
}
.item-edit,
.item-delete,
.technique-edit,
.technique-delete,
.peculiarity-edit,
.peculiarity-delete,
.property-edit,
.property-delete {
line-height: 1rem;
font-size: 0.75rem;
flex: 0 0 1rem;
padding: 0 0.1rem;
}
.icon-stat-container {
line-height: 1rem;
font-size: 0.75rem;
padding: 0 0.25rem;
color: $black-light;
}
.item-edit,
.item-delete,
.technique-edit,
.technique-delete,
.peculiarity-edit,
.peculiarity-delete,
.property-edit,
.property-delete {
&:hover {
text-shadow: 0 0 3px $red;
}
}
}
.item-properties {
display: flex;
flex-direction: row;
> li {
margin: 0.25rem 0.1rem;
padding: 0.1rem 0.5rem;
background-color: $l5r5e-white;
border: 1px solid $white-light;
border-radius: 1rem;
width: auto;
font-size: 0.75rem;
color: $black-light;
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
}
}
p {
font-size: 0.85rem;
margin: 0;
padding: 0 0.5rem;
max-width: 100%;
&:first-child {
padding-top: 0.5rem;
}
&:last-child {
padding-bottom: 0.5rem;
}
}
}
}
// Advancement Sheet, Armor Sheet, Item Sheet, Peculiarity Sheet, Property Sheet, Technique Sheet, Weapon Sheet
&.advancement,
&.armor,
&.item,
&.peculiarity,
&.property,
&.technique,
&.weapon {
.sheet-header {
img {
flex: 0 0 90px;
height: 90px;
width: 90px;
background: rgba(255, 255, 255, 0.25);
}
}
fieldset {
input[name="data.effects"] {
text-align: left;
}
}
article {
display: flex;
flex-wrap: wrap;
min-height: auto;
label {
color: $l5r5e-label;
margin: 0.25rem;
line-height: 1.5rem;
}
&.attributes {
.advancement_type,
.advancement_skill,
select[name="data.skill"],
select[name="data.ring"],
select[name="data.peculiarity_type"],
select[name="data.technique_type"] {
flex: 0 0 calc(40% - 0.5rem);
margin: 0.25rem;
}
.attribute-value,
.attribute,
.value {
flex: 1 1 auto;
margin: 0.5rem 0.25rem 0.25rem;
}
select[name="data.advancement_type"],
select[name="data.skill"] {
text-transform: capitalize;
}
.type,
.properties {
flex: 0 0 calc(50% - 0.5rem);
margin: 0.25rem;
}
.equipped {
flex: 100%;
margin: 0;
text-align: right;
}
input[type="text"],
input[type="number"] {
width: 2rem;
&.grip {
width: 12rem;
margin-bottom: 0.25rem;
}
}
input[name="data.zeni"] {
width: 5rem;
float: right;
}
fieldset {
input[type="text"],
input[type="number"] {
float: right;
}
}
.attribute {
&.full {
flex: 100%;
input {
float: right;
width: 70%;
}
}
}
}
&.infos {
display: flex;
.reference {
flex: 0 0 calc(100% - 0.5rem);
input[name="data.book_reference"] {
float: right;
width: 70%;
}
}
}
}
}
&.advancement {
article {
&.attributes {
.attribute-value,
.attribute,
.value {
flex: 0 0 calc(33% - 0.5rem);
}
.cursus {
flex: 0 0 calc(19% - 0.5rem);
line-height: 0.75rem;
text-align: right;
margin: 0 0.25rem;
input {
margin-top: 0.25rem;
}
}
}
}
}
&.peculiarity,
&.technique {
article {
&.attributes {
.cursus {
flex: 0 0 calc(20% - 0.5rem);
line-height: 0.75rem;
text-align: right;
margin: 0 0.25rem;
input {
margin-top: 0.25rem;
}
}
}
}
}
&.item {
article {
&.attributes {
.properties {
flex: 100%;
}
}
}
}
&.property {
.sheet-header {
img {
flex: 0 0 75px;
height: 75px;
width: 75px;
background: rgba(255, 255, 255, 0.25);
}
}
article {
min-height: calc(100% - 5rem);
}
}
&.weapon {
article {
&.attributes {
.attribute-value,
.stats {
flex: 0 0 calc(50% - 0.5rem);
margin: 0.25rem;
}
.value {
flex: 0 0 calc(25% - 0.5rem);
}
.category,
.skillType {
flex: 0 0 calc(50% - 0.5rem);
input,
.attribute-dtype {
width: 100%;
margin: 0.25rem;
}
}
}
}
}
.item-list {
> li {
.item-description {
flex: unset;
height: 0;
margin: 0;
padding: 0;
font-size: 0.75rem;
color: rgba(0, 0, 0, 0.75);
overflow: hidden;
background: rgba(0, 0, 0, 0.05);
border: 0 none;
transition: height 0.25s ease-in;
}
div.item-description {
padding: 0;
&:hover,
&:active {
padding: 0;
}
}
.toggle-active {
height: 6rem;
overflow-y: auto;
scrollbar-width: thin;
border: 1px solid $l5r5e-title;
}
p {
&.toggle-active {
padding: 0.25rem;
}
}
&:hover,
&:active {
.item-description {
height: 6rem;
overflow-y: auto;
scrollbar-width: thin;
border: 1px solid $l5r5e-title;
}
p {
.item-description {
padding: 0.25rem;
}
}
}
}
.stance-content {
.item-description {
display: none;
height: auto;
}
.toggle-active {
display: block;
height: auto;
border: 0 none;
}
&:hover {
.item-description {
height: auto;
border: 0 none;
}
.toggle-active {
display: block;
}
}
}
}