Update item for description

This commit is contained in:
Mandar
2020-12-24 17:48:06 +01:00
parent 0f1afcf740
commit 919657e1bc
15 changed files with 65 additions and 54 deletions

File diff suppressed because one or more lines are too long

View File

@@ -6,7 +6,8 @@ $white-light: rgba(255, 255, 255, 0.65);
$black: rgba(0, 0, 0, 1); $black: rgba(0, 0, 0, 1);
$black-light: rgba(0, 0, 0, 0.75); $black-light: rgba(0, 0, 0, 0.75);
$dark-red: rgba(25, 0, 0, 0.75); $dark-red: rgba(25, 0, 0, 0.75);
$red: rgba(255, 0, 0, 0.75); $red: rgba(255, 0, 0, 1);
$red-light: rgba(255, 0, 0, 0.75);
$orange: rgba(255, 100, 0, 0.75); $orange: rgba(255, 100, 0, 0.75);
$blue: rgba(0, 0, 255, 0.75); $blue: rgba(0, 0, 255, 0.75);
$green: rgba(0, 255, 0, 0.75); $green: rgba(0, 255, 0, 0.75);

View File

@@ -89,14 +89,13 @@
.ring-selection { .ring-selection {
&.ring-selected { &.ring-selected {
i { i {
text-shadow: 0px 2px 2px $red; text-shadow: 0px 1px 1px $red;
} }
strong { strong {
color: $red; color: $red-light;
text-decoration: underline;
} }
input { input {
border: 2px solid $red !important; border: 2px solid $red-light !important;
} }
} }
} }

View File

@@ -95,7 +95,7 @@ fieldset {
color: $l5r5e-label; color: $l5r5e-label;
} }
.editor { .editor {
height: calc(100% - 1.5rem); height: calc(100% - 1.25rem);
} }
} }

View File

@@ -22,7 +22,9 @@
.technique-edit, .technique-edit,
.technique-delete, .technique-delete,
.peculiarity-edit, .peculiarity-edit,
.peculiarity-delete { .peculiarity-delete,
.property-edit,
.property-delete {
line-height: 1rem; line-height: 1rem;
font-size: 0.75rem; font-size: 0.75rem;
flex: 0 0 1rem; flex: 0 0 1rem;
@@ -39,9 +41,11 @@
.technique-edit, .technique-edit,
.technique-delete, .technique-delete,
.peculiarity-edit, .peculiarity-edit,
.peculiarity-delete { .peculiarity-delete,
.property-edit,
.property-delete {
&:hover { &:hover {
text-shadow: 0 0 6px $orange; text-shadow: 0 0 3px $red;
} }
} }
} }
@@ -151,9 +155,14 @@
input[type="text"] { input[type="text"] {
width: 2rem; width: 2rem;
&.grip { &.grip {
width: 6rem; width: 12rem;
margin-bottom: 0.25rem;
} }
} }
input[name="data.zeni"] {
width: 5rem;
float: right;
}
fieldset { fieldset {
input[type="text"] { input[type="text"] {
float: right; float: right;
@@ -252,4 +261,21 @@
} }
} }
} }
p.item-description {
height: 0;
margin: 0;
padding: 0.25rem;
font-size: 0.75rem;
color: rgba(0, 0, 0, 0.75);
overflow: hidden;
border: 1px solid $l5r5e-title;
transition: height 0.25s ease-in;
}
&:hover {
p.item-description {
height: 6rem;
overflow-y: auto;
scrollbar-width: thin;
}
}
} }

View File

@@ -127,6 +127,9 @@
} }
} }
article { article {
.weapons-content {
flex: 1;
}
min-height: auto; min-height: auto;
display: flex; display: flex;
.items-content { .items-content {

View File

@@ -42,9 +42,9 @@
border: 2px solid $l5r5e-title; border: 2px solid $l5r5e-title;
color: $white-light; color: $white-light;
&:hover { &:hover {
border: 2px solid $red; border: 2px solid $red-light;
text-shadow: 0 0 6px $red; text-shadow: 0 0 3px $red;
box-shadow: 0 0 6px inset $red; box-shadow: 0 0 3px inset $red;
} }
} }
} }

View File

@@ -3,7 +3,7 @@
min-width: 600px; min-width: 600px;
label { label {
&:hover { &:hover {
text-shadow: 0 0 6px $orange; text-shadow: 0 0 3px $red;
} }
} }
&.actor { &.actor {
@@ -428,24 +428,6 @@
right: 0.25rem; right: 0.25rem;
} }
} }
.quick-rules {
height: 0;
margin: 0;
padding: 0;
font-size: 0.75rem;
color: rgba(0, 0, 0, 0.75);
overflow: hidden;
border: 1px solid $l5r5e-title;
transition: height 0.25s ease-in;
}
&:hover {
.quick-rules {
height: 6rem;
padding: 0.25rem;
overflow-y: auto;
scrollbar-width: thin;
}
}
} }
.stance-content, .stance-content,
.weapons-content { .weapons-content {
@@ -495,7 +477,7 @@
li { li {
flex: 0 0 1rem; flex: 0 0 1rem;
&:hover { &:hover {
color: $orange; color: $red-light;
} }
} }
} }

View File

@@ -8,7 +8,7 @@
<strong>{{ localize 'l5r5e.attributes.fatigue' }}</strong> <strong>{{ localize 'l5r5e.attributes.fatigue' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.fatigue.value" value="{{data.fatigue.value}}" data-dtype="Number" min="0" placeholder="0"/> <input class="centered-input select-on-focus" type="number" name="data.fatigue.value" value="{{data.fatigue.value}}" data-dtype="Number" min="0" placeholder="0"/>
</label> </label>
<p class="quick-rules"> {{ localize 'l5r5e.attributes.endurancetip' }}</p> <p class="item-description"> {{ localize 'l5r5e.attributes.endurancetip' }}</p>
</li> </li>
<li class="composure-content"> <li class="composure-content">
<label class="attribute-label"> <label class="attribute-label">
@@ -19,21 +19,21 @@
<strong>{{ localize 'l5r5e.attributes.strife' }}</strong> <strong>{{ localize 'l5r5e.attributes.strife' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.strife.value" value="{{data.strife.value}}" data-dtype="Number" min="0" placeholder="0"/> <input class="centered-input select-on-focus" type="number" name="data.strife.value" value="{{data.strife.value}}" data-dtype="Number" min="0" placeholder="0"/>
</label> </label>
<p class="quick-rules"> {{ localize 'l5r5e.attributes.composuretip' }}</p> <p class="item-description"> {{ localize 'l5r5e.attributes.composuretip' }}</p>
</li> </li>
<li class="focus-content"> <li class="focus-content">
<label class="attribute-label"> <label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.focus' }}</strong> <strong>{{ localize 'l5r5e.attributes.focus' }}</strong>
<input class="centered-input" type="text" name="data.focus" value="{{data.focus}}" data-dtype="Number" disabled/> <input class="centered-input" type="text" name="data.focus" value="{{data.focus}}" data-dtype="Number" disabled/>
</label> </label>
<p class="quick-rules"> {{ localize 'l5r5e.attributes.focustip' }}</p> <p class="item-description"> {{ localize 'l5r5e.attributes.focustip' }}</p>
</li> </li>
<li class="vigilante-content"> <li class="vigilante-content">
<label class="attribute-label"> <label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.vigilante' }}</strong> <strong>{{ localize 'l5r5e.attributes.vigilante' }}</strong>
<input class="centered-input" type="text" name="data.vigilante" value="{{data.vigilante}}" data-dtype="Number" disabled/> <input class="centered-input" type="text" name="data.vigilante" value="{{data.vigilante}}" data-dtype="Number" disabled/>
</label> </label>
<p class="quick-rules"> {{ localize 'l5r5e.attributes.vigilantetip' }}</p> <p class="item-description"> {{ localize 'l5r5e.attributes.vigilantetip' }}</p>
</li> </li>
<li class="void-content"> <li class="void-content">
<label class="attribute-label"> <label class="attribute-label">

View File

@@ -3,5 +3,5 @@
{{ localizeRing ringId }} {{ localizeRing ringId }}
<input id="stance_{{ringId}}" type="radio" name="data.stance" value="{{ringId}}" {{radioChecked ringId stance}}/> <input id="stance_{{ringId}}" type="radio" name="data.stance" value="{{ringId}}" {{radioChecked ringId stance}}/>
</label> </label>
<p class="quick-rules">{{ localizeStanceTip ringId }}</p> <p class="item-description">{{ localizeStanceTip ringId }}</p>
</li> </li>

View File

@@ -8,7 +8,7 @@
<strong>{{ localize 'l5r5e.attributes.fatigue' }}</strong> <strong>{{ localize 'l5r5e.attributes.fatigue' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.fatigue.value" value="{{data.fatigue.value}}" data-dtype="Number" min="0" placeholder="0"/> <input class="centered-input select-on-focus" type="number" name="data.fatigue.value" value="{{data.fatigue.value}}" data-dtype="Number" min="0" placeholder="0"/>
</label> </label>
<p class="quick-rules"> {{ localize 'l5r5e.attributes.endurancetip' }}</p> <p class="item-description"> {{ localize 'l5r5e.attributes.endurancetip' }}</p>
</li> </li>
<li class="composure-content"> <li class="composure-content">
<label class="attribute-label"> <label class="attribute-label">
@@ -19,21 +19,21 @@
<strong>{{ localize 'l5r5e.attributes.strife' }}</strong> <strong>{{ localize 'l5r5e.attributes.strife' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.strife.value" value="{{data.strife.value}}" data-dtype="Number" min="0" placeholder="0"/> <input class="centered-input select-on-focus" type="number" name="data.strife.value" value="{{data.strife.value}}" data-dtype="Number" min="0" placeholder="0"/>
</label> </label>
<p class="quick-rules"> {{ localize 'l5r5e.attributes.composuretip' }}</p> <p class="item-description"> {{ localize 'l5r5e.attributes.composuretip' }}</p>
</li> </li>
<li class="focus-content"> <li class="focus-content">
<label class="attribute-label"> <label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.focus' }}</strong> <strong>{{ localize 'l5r5e.attributes.focus' }}</strong>
<input class="centered-input" type="text" name="data.focus" value="{{data.focus}}" data-dtype="Number" disabled/> <input class="centered-input" type="text" name="data.focus" value="{{data.focus}}" data-dtype="Number" disabled/>
</label> </label>
<p class="quick-rules"> {{ localize 'l5r5e.attributes.focustip' }}</p> <p class="item-description"> {{ localize 'l5r5e.attributes.focustip' }}</p>
</li> </li>
<li class="vigilante-content"> <li class="vigilante-content">
<label class="attribute-label"> <label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.vigilante' }}</strong> <strong>{{ localize 'l5r5e.attributes.vigilante' }}</strong>
<input class="centered-input" type="text" name="data.vigilante" value="{{data.vigilante}}" data-dtype="Number" disabled/> <input class="centered-input" type="text" name="data.vigilante" value="{{data.vigilante}}" data-dtype="Number" disabled/>
</label> </label>
<p class="quick-rules"> {{ localize 'l5r5e.attributes.vigilantetip' }}</p> <p class="item-description"> {{ localize 'l5r5e.attributes.vigilantetip' }}</p>
</li> </li>
<li class="void-content"> <li class="void-content">
<label class="attribute-label"> <label class="attribute-label">

View File

@@ -3,5 +3,5 @@
{{ localizeRing ringId }} {{ localizeRing ringId }}
<input id="stance_{{ringId}}" type="radio" name="data.stance" value="{{ringId}}" {{radioChecked ringId stance}}/> <input id="stance_{{ringId}}" type="radio" name="data.stance" value="{{ringId}}" {{radioChecked ringId stance}}/>
</label> </label>
<p class="quick-rules">{{ localizeStanceTip ringId }}</p> <p class="item-description">{{ localizeStanceTip ringId }}</p>
</li> </li>

View File

@@ -12,5 +12,5 @@
<li>{{{ property.name }}}</li> <li>{{{ property.name }}}</li>
{{/each}} {{/each}}
</ul> </ul>
<div class="item-description">{{{ item.data.description }}}</div> <p class="item-description">{{{ item.data.description }}}</p>
</li> </li>

View File

@@ -1,11 +1,11 @@
<li class="item peculiarity flexcol"> <<li class="item peculiarity flexcol">
<ul class="item-header peculiarity-controls"> <ul class="item-header peculiarity-controls">
<li class="item-img"><img src="{{peculiarity.img}}" title="{{peculiarity.name}}" width="32px" height="32px"/></li> <li class="item-img"><img src="{{peculiarity.img}}" title="{{peculiarity.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{ peculiarity.name }}</li> <li class="item-name">{{ peculiarity.name }}</li>
{{#if editable}} {{#if editable}}
<li data-item-id="{{peculiarity._id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li> <li data-item-id="{{peculiarity._id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{peculiarity._id}}" class="item-control item-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li> <li data-item-id="{{peculiarity._id}}" class="item-control item-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
{{/if}} {{/if}}
</ul> </ul>
<div class="item-description">{{{ peculiarity.data.description }}}</div> <p class="item-description">{{{ peculiarity.data.description }}}</p>
</li> </li>

View File

@@ -1,9 +1,9 @@
<li class="property flexcol" data-property-id="{{item._id}}"> <li class="item property flexcol" data-property-id="{{item._id}}">
<ul class="property-header property-control"> <ul class="item-header property-control">
<li class="property-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li> <li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
<li class="property-name">{{ item.name }}</li> <li class="item-name">{{ item.name }}</li>
{{#if editable}} {{#if editable}}
<li class="property-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li> <li class="property-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
{{/if}} {{/if}}
</ul> </ul>
<div class="item-description">{{{ item.data.description }}}</div> <div class="item-description">{{{ item.data.description }}}</div>