Add items to view character page.

This commit is contained in:
projectmoon 2021-01-24 14:32:56 +00:00
parent af28df7410
commit fe19a98829
1 changed files with 20 additions and 19 deletions

View File

@ -111,31 +111,31 @@
margin: 0; margin: 0;
} }
#merits { #merits, #items {
padding: 4px; padding: 4px;
}
#merit-list {
display: inline-flex; display: inline-flex;
flex-direction: column; flex-direction: column;
} }
.merit { #merit-list, #item-list {
/* margin: 0; display: inline-flex;
padding: 0; */ flex-direction: column;
}
.merit, .item {
display: flex; display: flex;
border: 1px solid gray; border: 1px solid gray;
margin-top: -1px; margin-top: -1px;
} }
.merit span { .merit span, .item span {
width: 3em; width: 3em;
text-align: left; text-align: left;
padding: 8px; padding: 8px;
margin: 0; margin: 0;
} }
.merit .merit-name { .merit .merit-name, .item .item-name {
width: 10em; width: 10em;
white-space: nowrap; white-space: nowrap;
overflow: auto; overflow: auto;
@ -153,16 +153,6 @@
background-color: lightgray; background-color: lightgray;
margin: 0; margin: 0;
} }
.merit .remove-merit {
max-width: 4em;
padding: 0;
padding: 3px;
padding-left: 6px;
padding-right:6px;
margin: 3px;
background-color: lightgray;
}
</style> </style>
<div> <div>
@ -262,5 +252,16 @@
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
<div id="items">
<h2>Items</h2>
<div id="item-list">
{% for item in sheet.items %}
<div class="item">
<span class="item-name">{{item.name}}</span>
</div>
{% endfor %}
</div>
</div>
</div> </div>
{% endblock content %} {% endblock content %}