New Item liste style
This commit is contained in:
@@ -494,6 +494,31 @@
|
||||
padding: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
min-height: calc(100% - 3.25rem);
|
||||
fieldset {
|
||||
h3 {
|
||||
font-size: 1.25rem;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
line-height: 2rem;
|
||||
color: $l5r5e-bold;
|
||||
border-bottom: 1px solid;
|
||||
.item-control {
|
||||
&.item-add {
|
||||
float: right;
|
||||
font-size: 0.75rem;
|
||||
line-height: 0.75rem;
|
||||
border: 1px solid;
|
||||
padding: 0.25rem;
|
||||
margin: 0.25rem;
|
||||
color: $white;
|
||||
background: $l5r5e-bold;
|
||||
&:hover {
|
||||
opacity: 0.75;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.tab[data-tab] {
|
||||
&.active {
|
||||
display: flex;
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
{{#each data.splitItemsList as |cat type|}}
|
||||
<fieldset class="items-content">
|
||||
<legend>
|
||||
{{localize (localize 'l5r5e.{type}s.title' type=type) }}
|
||||
{{#if ../editable}}
|
||||
<a data-item-type="{{type}}" class="item-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
|
||||
{{/if}}
|
||||
</legend>
|
||||
<ul class="item-list">
|
||||
{{#each cat as |item id|}}
|
||||
{{> 'systems/l5r5e/templates/items/item/item-entry.html' item=item id=id editable=../../editable }}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
<h3>
|
||||
{{localize (localize 'l5r5e.{type}s.title' type=type) }}
|
||||
{{#if ../editable}}
|
||||
<a data-item-type="{{type}}" class="item-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
|
||||
{{/if}}
|
||||
</h3>
|
||||
<ul class="item-list">
|
||||
{{#each cat as |item id|}}
|
||||
{{> 'systems/l5r5e/templates/items/item/item-entry.html' item=item id=id editable=../../editable }}
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/each}}
|
||||
Reference in New Issue
Block a user