Add ul li style for editor + Adjuste stance + marge on sheets and img

This commit is contained in:
Mandar
2021-01-02 01:33:17 +01:00
parent 999d4b0738
commit 78fde2cdd9
6 changed files with 142 additions and 85 deletions

File diff suppressed because one or more lines are too long

View File

@@ -166,3 +166,23 @@ sub,
sup {
color: $l5r5e-black;
}
.sheet {
nav {
&.sheet-tabs {
font-size: 0.75rem;
}
}
}
.editor-content,
.item-description {
ul {
margin: 0.5rem 0;
li {
list-style-type: initial;
margin: 0.5rem 0 0.5rem 1.5rem;
padding: 0;
}
}
}

View File

@@ -93,9 +93,9 @@
&.weapon {
.sheet-header {
img {
flex: 0 0 75px;
height: 75px;
width: 75px;
flex: 0 0 90px;
height: 90px;
width: 90px;
background: rgba(255, 255, 255, 0.25);
}
}
@@ -189,7 +189,7 @@
flex: 0 0 calc(33% - 0.5rem);
}
.cursus {
flex: 1;
flex: 0 0 calc(19% - 0.5rem);
line-height: 0.75rem;
text-align: right;
margin: 0 0.25rem;
@@ -205,7 +205,7 @@
article {
&.attributes {
.cursus {
flex: 1;
flex: 0 0 calc(20% - 0.5rem);
line-height: 0.75rem;
text-align: right;
margin: 0 0.25rem;
@@ -308,4 +308,24 @@
}
}
}
.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;
}
}
}
}

View File

@@ -6,9 +6,9 @@
}
}
img {
flex: 0 0 75px;
height: 75px;
width: 75px;
flex: 0 0 90px;
height: 90px;
width: 90px;
.full {
flex: 0 0 content;
height: auto;
@@ -23,12 +23,12 @@
.identity-wrapper {
flex: 1 1 100%;
h1 {
flex: 0 0 calc(100% - 75px - 1.25rem);
margin: 0 0 1rem 1rem;
margin: 0 0.25rem 1rem 1rem;
}
.identity-list {
flex: 0 0 100%;
display: flex;
margin: 0.25rem;
margin-bottom: 0.5rem;
li {
flex: 1;
@@ -36,18 +36,22 @@
display: flex;
select {
width: 100%;
background: transparent;
background: $l5r5e-white;
border: 0 none;
text-transform: capitalize;
color: $l5r5e-bold;
font-family: $font-primary;
font-weight: bold;
font-size: 1rem;
letter-spacing: 0.15rem;
}
i,
input {
font-size: 1.25rem;
height: 1.5rem;
line-height: 1.5rem;
width: 4rem;
float: left;
margin: 0 1rem;
width: 7.25rem;
margin: auto;
text-align: center;
}
}

View File

@@ -80,8 +80,8 @@
input {
flex: 0 0 100%;
font-size: 3rem;
height: 4rem;
margin: 0.5rem 0 0;
height: 5rem;
margin: 0;
width: 100%;
text-align: right;
color: $l5r5e-red;
@@ -173,32 +173,56 @@
display: flex;
position: initial;
flex-wrap: wrap;
flex: 0 0 calc(100% - 150px - 1.05rem);
flex: 0 0 calc(100% - 150px);
label {
display: flex;
color: $l5r5e-label;
text-transform: uppercase;
font-size: 0.75rem;
line-height: 2rem;
input {
flex: 1;
font-size: 1.25rem;
height: 1.75rem;
margin: 0 1rem 0 0.5rem;
padding: 0 0.25rem 0.25rem;
}
}
.identity-content {
flex: 0 0 100%;
display: flex;
flex-wrap: wrap;
margin: 0.5rem 0 0.5rem 1rem;
margin: 0;
padding-top: 0.25rem;
padding-left: 0.5rem;
li {
flex: 33%;
&:nth-child(1),
&:nth-child(2) {
flex: calc(50% - 5rem);
margin: 0 0 0.5rem;
flex: calc(50% - 3rem);
margin: 0 0 0.25rem;
}
&:nth-child(3) {
flex: auto;
input {
width: 2rem;
width: 1rem;
padding: 0;
margin-right: 0;
}
}
&:nth-child(4),
&:nth-child(5) {
flex: 50%;
flex: 60%;
input {
font-size: 1rem;
}
}
&:nth-child(5) {
flex: 40%;
input {
margin-right: 0;
}
}
}
}
}
@@ -385,17 +409,6 @@
}
}
}
.identity-wrapper label {
display: flex;
color: $l5r5e-label;
text-transform: uppercase;
font-size: 0.75rem;
line-height: 2rem;
input {
flex: 1;
margin: 0 1rem 0 0.5rem;
}
}
}
article {
background: $l5r5e-white;
@@ -407,6 +420,10 @@
display: flex;
}
}
.narrative-content,
.narrative-note {
flex: 0 0 calc(50% - 0.5rem);
}
.techniques-wrapper {
.checklist {
display: flex;
@@ -441,8 +458,8 @@
}
input {
margin: 0.25rem 0 0 0;
height: auto;
width: auto;
height: 0.65rem;
width: 0.65rem;
}
}
}

View File

@@ -1,52 +1,48 @@
<ul class="narrative-content">
<li>
<label class="attribute-label">{{ localize 'l5r5e.social.ninjo' }}</label>
<input type="text" name="data.social_standing.ninjo" value="{{data.social.ninjo}}"/>
</li>
<li>
<label class="attribute-label">{{ localize 'l5r5e.social.giri' }}</label>
<input type="text" name="data.social_standing.giri" value="{{data.social.giri}}"/>
</li>
<li>
<label class="attribute-label">{{ localize 'l5r5e.social.titles' }}</label>
<input type="text" name="data.social_standing.titles" value="{{data.social.titles}}"/>
</li>
<li>
<fieldset>
<legend class="text-block-header">
{{ localize 'l5r5e.social.advantages' }}
{{#if editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond '["distinction","passion"]' 'includes' item.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../editable }}
{{/ifCond}}
{{/each}}
</ul>
</fieldset>
</li>
<li>
<fieldset>
<legend class="text-block-header">
{{ localize 'l5r5e.social.disadvantages' }}
{{#if editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond '["adversity","anxiety"]' 'includes' item.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../editable }}
{{/ifCond}}
{{/each}}
</ul>
</fieldset>
</li>
</ul>
<fieldset>
<div class="narrative-content">
<fieldset>
<legend class="text-block-header">{{ localize 'l5r5e.social.title' }}</legend>
<label class="attribute-label">{{ localize 'l5r5e.social.ninjo' }}
<input type="text" name="data.social_standing.ninjo" value="{{data.social.ninjo}}"/>
</label>
<label class="attribute-label">{{ localize 'l5r5e.social.giri' }}
<input type="text" name="data.social_standing.giri" value="{{data.social.giri}}"/>
</label>
<label class="attribute-label">{{ localize 'l5r5e.social.titles' }}
<input type="text" name="data.social_standing.titles" value="{{data.social.titles}}"/>
</label>
</fieldset>
<fieldset>
<legend class="text-block-header">
{{ localize 'l5r5e.social.advantages' }}
{{#if editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond '["distinction","passion"]' 'includes' item.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../editable }}
{{/ifCond}}
{{/each}}
</ul>
</fieldset>
<fieldset>
<legend class="text-block-header">
{{ localize 'l5r5e.social.disadvantages' }}
{{#if editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond '["adversity","anxiety"]' 'includes' item.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../editable }}
{{/ifCond}}
{{/each}}
</ul>
</fieldset>
</div>
<fieldset class="narrative-note">
<legend class="text-block-header">{{ localize 'l5r5e.notes' }}</legend>
{{ editor content=data.notes.value target="data.notes.value" button=true editable=editable }}
</fieldset>