Fix limited sheet for Pj and Pnj

This commit is contained in:
Mandar
2020-12-24 21:25:53 +01:00
parent 607c7d9e6b
commit 3404ca0c8f
5 changed files with 76 additions and 55 deletions

File diff suppressed because one or more lines are too long

View File

@@ -137,47 +137,4 @@
margin: 0.5rem 0.25rem 0; margin: 0.5rem 0.25rem 0;
} }
} }
.limited {
h1 {
margin: 0.5rem 0;
}
img {
&.full {
flex: 0 0 content;
height: auto;
width: auto;
border: 0 none;
}
}
.sheet-header {
flex: none;
}
ul {
display: flex;
flex-wrap: wrap;
li {
flex: 50%;
padding: 0.25rem 0;
input {
width: 75%;
float: right;
}
&:nth-child(1) {
flex: calc(50% - 1rem);
margin-right: 1rem;
}
&:nth-child(3),
&:nth-child(4) {
flex: calc(50% - 5rem);
margin-right: 1rem;
}
&:nth-child(5) {
flex: auto;
input {
width: 2rem;
}
}
}
}
}
} }

View File

@@ -156,9 +156,22 @@
flex: 33%; flex: 33%;
&:nth-child(1), &:nth-child(1),
&:nth-child(2) { &:nth-child(2) {
flex: 50%; flex: calc(50% - 5rem);
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
} }
&:nth-child(3) {
flex: auto;
input {
width: 2rem;
}
}
&:nth-child(4),
&:nth-child(5) {
flex: 50%;
input {
font-size: 1rem;
}
}
} }
} }
} }
@@ -495,4 +508,55 @@
} }
} }
} }
&.actor,
&.npc {
.limited {
h1 {
margin: 0.5rem 0;
}
img {
&.full {
flex: 0 0 content;
height: auto;
width: auto;
border: 0 none;
}
}
.sheet-header {
flex: none;
height: auto;
}
ul {
display: flex;
flex-wrap: wrap;
li {
flex: 50%;
padding: 0.25rem 0;
input {
width: 75%;
float: right;
}
&:nth-child(1),
&:nth-child(2) {
flex: calc(50% - 5rem);
margin-right: 1rem;
}
&:nth-child(3) {
flex: auto;
input {
width: 2rem;
}
}
&:nth-child(4),
&:nth-child(5) {
flex: calc(50% - 1rem);
margin-right: 1rem;
input {
font-size: 1rem;
}
}
}
}
}
}
} }

View File

@@ -13,14 +13,14 @@
</li> </li>
<li> <li>
<label class="attribute-label"> <label class="attribute-label">
{{ localize 'l5r5e.school' }} {{ localize 'l5r5e.schoolrank' }}
<input type="text" name="data.identity.school" value="{{data.identity.school}}"/> <input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="0"/>
</label> </label>
</li> </li>
<li> <li>
<label class="attribute-label"> <label class="attribute-label">
{{ localize 'l5r5e.schoolrank' }} {{ localize 'l5r5e.school' }}
<input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="0"/> <input type="text" name="data.identity.school" value="{{data.identity.school}}"/>
</label> </label>
</li> </li>
<li> <li>

View File

@@ -17,6 +17,12 @@
<input type="text" name="data.identity.family" value="{{data.identity.family}}"/> <input type="text" name="data.identity.family" value="{{data.identity.family}}"/>
</label> </label>
</li> </li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.schoolrank' }}
<input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="0"/>
</label>
</li>
<li> <li>
<label class="attribute-label"> <label class="attribute-label">
{{ localize 'l5r5e.school' }} {{ localize 'l5r5e.school' }}
@@ -29,12 +35,6 @@
<input type="text" name="data.identity.roles" value="{{data.identity.roles}}"/> <input type="text" name="data.identity.roles" value="{{data.identity.roles}}"/>
</label> </label>
</li> </li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.schoolrank' }}
<input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="0"/>
</label>
</li>
</ul> </ul>
</div> </div>
</form> </form>