Un peu de repeatable
Les repeatables sont la (kindof) et un peu de CSS. Les jets ne sont pas corrects dans la plupars des cas
This commit is contained in:
parent
cf713cddf6
commit
c868dedae4
|
|
@ -2,30 +2,34 @@
|
|||
<div class="sheet-content">
|
||||
<div class="sheet-center">
|
||||
<input type="text" class="sheet-bigname" name="attr_character_name" placeholder="Nom"/><br>
|
||||
<input type="text" class="sheet-mediumname" name="att-character_race" placeholder="race"/>
|
||||
<input type="text" class="sheet-mediumname" name="att-character_race" placeholder="Race"/>
|
||||
</div>
|
||||
<br>
|
||||
<table class="sheet-center sheet-black">
|
||||
<tr>
|
||||
<td>Points :</td>
|
||||
<td><h3 class="sheet-center">Points de compétence :</h3></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="number" class="sheet-trait" name="attr_Character_points-spent" value="0"/> utilisés</td>
|
||||
<td><input type="number" class="sheet-trait" name="attr_Character_points-spent" value="0"/> Utilisés</td>
|
||||
<td rowspan="2">
|
||||
<select class="sheet-dice_select sheet-dice" name="attr_dice">
|
||||
<option value="4">d4</option>
|
||||
<option value="6">d6</option>
|
||||
<option value="8">d8</option>
|
||||
<option value="10" selected>d10</option>
|
||||
<option value="12">d12</option>
|
||||
<option value="20">d20</option>
|
||||
<option value="30">d30</option>
|
||||
<option value="100">d100</option>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="number" class="sheet-trait" name="attr_Character_points-unspent" value="0"/> restants</td>
|
||||
<td><input type="number" class="sheet-trait" name="attr_Character_points-unspent" value="0"/> Restants</td>
|
||||
</tr>
|
||||
</table>
|
||||
<select class="sheet-skill_select sheet-dice" name="attr_dice">
|
||||
<option value="4">d4</option>
|
||||
<option value="6">d6</option>
|
||||
<option value="8">d8</option>
|
||||
<option value="10" selected>d10</option>
|
||||
<option value="12">d12</option>
|
||||
<option value="20">d20</option>
|
||||
<option value="30">d30</option>
|
||||
<option value="100">d100</option>
|
||||
|
||||
</select>
|
||||
</table>
|
||||
|
||||
|
||||
<div class='sheet-3colrow'>
|
||||
<div class='sheet-col'>
|
||||
|
|
@ -114,6 +118,11 @@
|
|||
<tr>
|
||||
<td><h3>Points de Fatigue</h3></td>
|
||||
<td><input type="number" class="sheet-trait" name="attr_trait_base-Endurance_Points" value="0"/></td>
|
||||
<td><input type="number" class="sheet-trait" disabled="true" name="attr_trait_base-Max_Life_Points" value="@{base-Force}*4"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h3>Etat</h3></td>
|
||||
<td colspan="2"><div class="sheet-status-wounded">Blessures aggravés</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
@ -121,117 +130,60 @@
|
|||
<br/>
|
||||
<!--TAB 1 -->
|
||||
<input type="radio" name="attr_tab" class="sheet-tab sheet-tab1" value="1" title="Compétences" checked="checked" /><span></span>
|
||||
<input type="radio" name="attr_tab" class="sheet-tab sheet-tab2" value="2" title="Combat" /><span></span>
|
||||
<input type="radio" name="attr_tab" class="sheet-tab sheet-tab3" value="3" title="Magie" /><span></span>
|
||||
<input type="radio" name="attr_tab" class="sheet-tab sheet-tab2" value="2" title="Magie" /><span></span>
|
||||
<input type="radio" name="attr_tab" class="sheet-tab sheet-tab3" value="3" title="Combat" /><span></span>
|
||||
<div class="sheet-tab-content sheet-tab1">
|
||||
<div class='sheet-col'>
|
||||
<h3>Skills</h3>
|
||||
<fieldset class="repeating_skills">
|
||||
<select name="attr_dtype" class="dtype">
|
||||
<option value="d4">d4</option>
|
||||
<option value="d6">d6</option>
|
||||
<option value="d8">d8</option>
|
||||
<option value="d10">d10</option>
|
||||
<option value="d12">d12</option>
|
||||
</select>
|
||||
<input type="text" name="attr_skillname" />
|
||||
</fieldset>
|
||||
<h2>COMPETENCES</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td><h4>Roll</h4></td>
|
||||
<td><h4>Skill</h4></td>
|
||||
<td><h4>Rating</h4></td>
|
||||
<th><h4>Attribute</h4></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button type='roll' class="sheet-skillbutton" value="/e rolls @{Skill-1} [[(@{Skill_rating-1}) + @{Skill_attribute_select-1} + 1d10]]"></button></td>
|
||||
<td><input type="text" class="sheet-textbox" name="attr_Skill-1"/></td>
|
||||
<td><input type="number" class="sheet-numberbox" name="attr_Skill_rating-1"/></td>
|
||||
<td><select class="sheet-skill_select" name="attr_Skill_attribute_select-1">
|
||||
<option value="@{base-Force} + @{mod-Force}">Str</option>
|
||||
<option value="@{base-Agilite} + @{mod-Agilite}">Dex</option>
|
||||
<option value="@{base-Perception} + @{mod-Perception}">Con</option>
|
||||
<option value="@{base-Intelligence} + @{mod-Intelligence}">Int</option>
|
||||
<option value="@{base-Perception} + @{mod-Perception}">Per</option>
|
||||
<option value="@{base-Willpower} + @{mod-Willpower}">Will</option></select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button type='roll' class="sheet-skillbutton" value="/e rolls @{Skill-2} [[(@{Skill_rating-2}) + @{Skill_attribute_select-2} + 1d10]]"></button></td>
|
||||
<td><input type="text" class="sheet-textbox" name="attr_Skill-2"/></td>
|
||||
<td><input type="number" class="sheet-numberbox" name="attr_Skill_rating-2"/></td>
|
||||
<td><select class="sheet-skill_select" name="attr_Skill_attribute_select-2"/>
|
||||
<option value="@{base-Force} + @{mod-Force}">Str</option>
|
||||
<option value="@{base-Agilite} + @{mod-Agilite}">Dex</option>
|
||||
<option value="@{base-Perception} + @{mod-Perception}">Con</option>
|
||||
<option value="@{base-Intelligence} + @{mod-Intelligence}">Int</option>
|
||||
<option value="@{base-Perception} + @{mod-Perception}">Per</option>
|
||||
<option value="@{base-Willpower} + @{mod-Willpower}">Will</option>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button type='roll' class="sheet-skillbutton" value="/e rolls @{Skill-3} [[(@{Skill_rating-3}) + @{Skill_attribute_select-3} + 1d10]]"></button></td>
|
||||
<td><input type="text" class="sheet-textbox" name="attr_Skill-3"/></td>
|
||||
<td><input type="number" class="sheet-numberbox" name="attr_Skill_rating-3"/></td>
|
||||
<td><select class="sheet-skill_select" name="attr_Skill_attribute_select-3"/>
|
||||
<option value="@{base-Force} + @{mod-Force}">Str</option>
|
||||
<option value="@{base-Agilite} + @{mod-Agilite}">Dex</option>
|
||||
<option value="@{base-Perception} + @{mod-Perception}">Con</option>
|
||||
<option value="@{base-Intelligence} + @{mod-Intelligence}">Int</option>
|
||||
<option value="@{base-Perception} + @{mod-Perception}">Per</option>
|
||||
<option value="@{base-Willpower} + @{mod-Willpower}">Will</option>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h3>Compétences générales</h3>
|
||||
<fieldset class="repeating_general_skills">
|
||||
<input class="sheet-skill_name" type="text" name="attr_skillname" />
|
||||
<input type="number" name="attr_skillcost" />
|
||||
<input type="number" min="0" max="10" name="attr_skilllevel" />
|
||||
<select class="sheet-skill_select" name="attr_Skill_attribute_select">
|
||||
<option value="@{base-Force} + @{mod-Force}">For</option>
|
||||
<option value="@{base-Agilite} + @{mod-Agilite}">Agi</option>
|
||||
<option value="@{base-Perception} + @{mod-Perception}">Per</option>
|
||||
<option value="@{base-Charisme} + @{mod-Charisme}">Cha</option>
|
||||
<option value="@{base-Intelligence} + @{mod-Intelligence}">Int</option>
|
||||
<option value="@{base-Perception} + @{mod-Perception}">Per</option>
|
||||
<option value="@{base-Volonte} + @{mod-Volonte}">Vol</option>
|
||||
<option value="@{base-Psyche} + @{mod-Psyche}">Psy</option>
|
||||
<option value="@{base-Chance} + @{mod-Chance}">Chn</option>
|
||||
</select>
|
||||
<button type='roll' class="sheet-skillbutton" value="/e rolls @{Skill-1} [[(@{Skill_rating-1}) + @{Skill_attribute_select-1} - 1d10]]"></button>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--TAB 2 -->
|
||||
<div class="sheet-tab-content sheet-tab2">
|
||||
<h3>Skills</h3>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
<div class='sheet-2colrow'>
|
||||
<div class='sheet-col'>
|
||||
<table>
|
||||
<tr>
|
||||
<td><h4>Power</h4></td>
|
||||
<td><h4>Rating</h4></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" class="sheet-textbox" name="attr_Power-1"/></td>
|
||||
<td><input type="number" class="sheet-numberbox" name="attr_Power_level-1"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" class="sheet-textbox" name="attr_Power-2"/></td>
|
||||
<td><input type="number" class="sheet-numberbox" name="attr_Power_level-2"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" class="sheet-textbox" name="attr_Power-3"/></td>
|
||||
<td><input type="number" class="sheet-numberbox" name="attr_Power_level-3"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" class="sheet-textbox" name="attr_Power-4"/></td>
|
||||
<td><input type="number" class="sheet-numberbox" name="attr_Power_level-4"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" class="sheet-textbox" name="attr_Power-5"/></td>
|
||||
<td><input type="number" class="sheet-numberbox" name="attr_Power_level-5"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class='sheet-col'>
|
||||
<h3>Compétences magiques</h3>
|
||||
<fieldset class="repeating_magic_skills">
|
||||
<input class="sheet-skill_name" type="text" name="attr_skillname" />
|
||||
<input type="number" name="attr_skillcost" />
|
||||
<input type="number" min="0" max="10" name="attr_skilllevel" />
|
||||
<select class="sheet-skill_select" name="attr_Skill_attribute_select">
|
||||
<option value="@{base-Force} + @{mod-Force}">For</option>
|
||||
<option value="@{base-Agilite} + @{mod-Agilite}">Agi</option>
|
||||
<option value="@{base-Perception} + @{mod-Perception}">Per</option>
|
||||
<option value="@{base-Charisme} + @{mod-Charisme}">Cha</option>
|
||||
<option value="@{base-Intelligence} + @{mod-Intelligence}">Int</option>
|
||||
<option value="@{base-Perception} + @{mod-Perception}">Per</option>
|
||||
<option value="@{base-Volonte} + @{mod-Volonte}">Vol</option>
|
||||
<option value="@{base-Psyche} + @{mod-Psyche}">Psy</option>
|
||||
<option value="@{base-Chance} + @{mod-Chance}">Chn</option>
|
||||
</select>
|
||||
<button type='roll' class="sheet-skillbutton" value="/e rolls @{Skill-1} [[(@{Skill_rating-1}) + @{Skill_attribute_select-1} - 1d10]]"></button>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--TAB 3 -->
|
||||
<div class="sheet-tab-content sheet-tab3">
|
||||
<h3>Combat</h3>
|
||||
<br>
|
||||
<h4><button type='roll' class="sheet-Initiative_roll" value="/e rolls Initiative [[@{base-Agilite} + @{mod-Agilite} + @{mod-Initiative} + 1d10 &{tracker}]]">Initiative</button>
|
||||
<input type="number" class="sheet-numberbox" name="attr_mod-Initiative" value="0"/> Modifier</h4>
|
||||
<br>
|
||||
<h3>Weapons</h3>
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
|||
43
style.css
43
style.css
|
|
@ -1,33 +1,3 @@
|
|||
input[type="number"] {
|
||||
width: 50%;
|
||||
background-color: #aebaaf;
|
||||
}
|
||||
|
||||
.sheet-content {
|
||||
background-color: #aebaaf;
|
||||
margin: auto;
|
||||
border: 1px solid black;
|
||||
width: 50%;
|
||||
padding: 2%;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
td {
|
||||
/*border: 1px solid black;*/
|
||||
|
||||
}
|
||||
|
||||
.sheet-dice {
|
||||
font-size: 3em;
|
||||
}
|
||||
|
||||
.sheet-dice>option {
|
||||
font-size: 0.4em;
|
||||
}
|
||||
|
||||
div.sheet-tab-content { display: none; }
|
||||
input.sheet-tab1:checked ~ div.sheet-tab1,
|
||||
input.sheet-tab2:checked ~ div.sheet-tab2,
|
||||
|
|
@ -107,7 +77,20 @@ input.sheet-small_tab:checked::before{
|
|||
border-radius:.5em;
|
||||
}
|
||||
|
||||
input.sheet-skill_name{
|
||||
width:400px;
|
||||
}
|
||||
|
||||
div.sheet-tab-content{
|
||||
border-top-color: #000;
|
||||
margin: 2px 0 0 0;
|
||||
}
|
||||
|
||||
select.sheet-skill_select{
|
||||
width:55px;
|
||||
margin-bottom:-1px;
|
||||
}
|
||||
select.sheet-dice_select{
|
||||
width:85px;
|
||||
margin-bottom:-1px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue