Ver 0.24 - NPC page, bugfixes,

Gear weapon rolls,
This commit is contained in:
arcadianbel
2023-07-24 10:26:14 +10:00
parent 1bc8b15f4e
commit 102dc3cb97
2 changed files with 2107 additions and 426 deletions
+147 -6
View File
@@ -77,6 +77,14 @@ textarea.inputarea {
border-radius: 15px;
}
.sheet-npc {
display: flex;
flex-direction: column;
border: 1pt solid black;
background-color:cornsilk;
border-radius: 15px;
}
.background{
width: 100%;
display: flex;
@@ -211,8 +219,13 @@ textarea.inputarea {
margin-right: 0.5em;
}
.charsheet .ammo-box {
float: right;
}
.charsheet input.sheet-ammunition-show:checked + .ammo-box {
display: none;
}
div.infobox{
border: 1pt solid black;
@@ -224,7 +237,7 @@ div.infobox{
input[type=text].full {
padding: 0;
width:fit-content;
width: fit-content;
}
input[type=text].emcalc { /*set the width of the input to the number of ems specified by - style="--index: 1;" */
@@ -278,16 +291,25 @@ select.size{
/*Configure the tab buttons*/
.charsheet .sheet-character,
.charsheet .sheet-gear,
.charsheet .sheet-admin
{
.charsheet .sheet-admin,
.charsheet .sheet-npc {
display: none;
}
/* show the selected tab */
.charsheet .sheet-tabstoggle[value="character"]~div.sheet-character,
.charsheet .sheet-tabstoggle[value="gear"]~div.sheet-gear,
.charsheet .sheet-tabstoggle[value="admin"]~div.sheet-admin
{
.charsheet .sheet-tabstoggle[value="admin"]~div.sheet-admin,
.charsheet .sheet-tabstoggle[value="npc"]~div.sheet-npc
{
display: flex;
}
.charsheet .sheet-buttons-npc,
.charsheet .sheet-buttons-pc{
display: none;
}
.charsheet .sheet-buttonstoggle[value="pc"] ~.sheet-buttons-pc,
.charsheet .sheet-buttonstoggle[value="npc"]~.sheet-buttons-npc {
display: flex;
}
.sheet-posture-stationary,
@@ -307,6 +329,14 @@ input[value="topSpeed"].sheet-posture~.sheet-posture-topSpeed {
display: contents;
}
[value="pc"].sheet-type ~span.sheet-npc-show {
display: none;
}
[value="npc"].sheet-type ~span.sheet-npc-show {
display: contents;
}
.charsheet input.sheet-toggle-show:not(:checked) ~ div.sheet-body,
.charsheet input.sheet-toggle-hide:checked ~ div.sheet-body {
@@ -472,6 +502,8 @@ div[data-groupname=repeating_SECTIONNAME].repcontrol {
display:none;
}
*/
/* Diceroll template */
/* Custom Templates Smaller margins - remove these if you want the huge default left margin */
.sheet-rolltemplate-diceroll {
margin-left: -37px;
@@ -570,4 +602,113 @@ div[data-groupname=repeating_SECTIONNAME].repcontrol {
.sheet-rolltemplate-diceroll .sheet-hide {
display: none;
}
/* WeaponDiceroll template */
/* Custom Templates Smaller margins - remove these if you want the huge default left margin */
.sheet-rolltemplate-weapondiceroll {
margin-left: -37px;
}
.withoutavatars .sheet-rolltemplate-weapondiceroll {
margin-left: -7px;
}
.sheet-rolltemplate-weapondiceroll .sheet-container {
border: 1px solid;
/* by default, the border is the same color as the header. You can change this here, e.g. to black */
border-color: var(--header-bg-color);
}
/* Header formatting - title and subtitle */
.sheet-rolltemplate-weapondiceroll .sheet-header {
background-color: var(--header-bg-color);
/* change text-align to center to center the header text */
text-align: left;
color: var(--header-text-color);
padding: 5px;
}
.sheet-rolltemplate-weapondiceroll .sheet-title {
font-size: 1.1em;
}
.sheet-rolltemplate-weapondiceroll .sheet-subtitle {
font-size: .9em;
}
/* example colors */
.sheet-rolltemplate-weapondiceroll .sheet-container {
/* this is the default color */
--header-bg-color: rgba(112, 32, 130, 1);
--header-text-color: #FFF;
}
.sheet-rolltemplate-weapondiceroll .sheet-container.sheet-color-red {
--header-bg-color: #F00;
}
.sheet-rolltemplate-weapondiceroll .sheet-container.sheet-color-green {
--header-bg-color: #0F0;
--header-text-color: #000;
}
/* Allprops part */
.sheet-rolltemplate-weapondiceroll .sheet-content {
display: grid;
background: #FFF;
color: #000;
/* Header formatting - modify the column layout below */
grid-template-columns: auto auto;
/* Line height to match default roll template */
line-height: 1.4em;
}
/* diceroll part */
.sheet-rolltemplate-weapondiceroll .sheet-content>div {
padding: 5px;
}
/* Left column */
.sheet-rolltemplate-weapondiceroll .sheet-content .sheet-key {
font-weight: bold;
padding-right: 10px;
text-align: right;
}
/* Empty rule, use this if you want to change the right column
.sheet-rolltemplate-diceroll .sheet-value {
}
*/
/* Make even-numbered rows grey but not .inline*/
.sheet-rolltemplate-weapondiceroll .sheet-content :nth-child(4n+3),
.sheet-rolltemplate-weapondiceroll .sheet-content :nth-child(4n) {
background: #EEE;
}
/* Description field */
.sheet-rolltemplate-weapondiceroll .sheet-desc {
grid-column: span 2;
padding: 5px;
text-align: center;
background-color: #FFF;
color: #000;
}
.sheet-rolltemplate-weapondiceroll .sheet-hide {
display: none;
}
.sheet-rolltemplate-weapondiceroll .sheet-traits {
font-size: .9em;
padding: 5px;
text-align: left;
background-color: #EEE;
color: #000;
}
File diff suppressed because it is too large Load Diff