moving conjuring out to its own roll template to better interact with API script

This commit is contained in:
Brad Hornbeck
2021-09-19 21:50:50 -04:00
parent 1e4282b906
commit 9b01a6174a
2 changed files with 280 additions and 133 deletions
+111 -49
View File
@@ -521,6 +521,76 @@ input:checked+.slider:before {
color: black;
}
.magic-tabs {
display: grid;
grid-template-columns: auto auto auto auto auto auto auto auto auto;
}
.magic-tabs-spells,
.magic-tabs-totem,
.magic-tabs-initiate,
.magic-tabs-skills,
.magic-tabs-foci,
.magic-tabs-adept,
.magic-tabs-geas,
.magic-tabs-conjuring,
.magic-tabs-astral {
display: grid;
background-color: white;
border-bottom: 3px solid black;
text-align: center;
align-items: center;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}
.magic-tabs-switch[value="spells"]~button.magic-tabs-spells ,
.magic-tabs-switch[value="totem"]~button.magic-tabs-totem,
.magic-tabs-switch[value="initiate"]~button.magic-tabs-initiate,
.magic-tabs-switch[value="skills"]~button.magic-tabs-skills,
.magic-tabs-switch[value="foci"]~button.magic-tabs-foci,
.magic-tabs-switch[value="adept"]~button.magic-tabs-adept,
.magic-tabs-switch[value="geas"]~button.magic-tabs-geas,
.magic-tabs-switch[value="conjuring"]~button.magic-tabs-conjuring,
.magic-tabs-switch[value="astral"]~button.magic-tabs-astral {
background-color: rgba(192,192,192,.9);
font-weight: bold;
border-top: 3px solid black;
border-left: 3px solid black;
border-right: 3px solid black;
border-bottom: unset;
}
.sorcery-skills,
.spells-section,
.fetish-foci,
.totem,
.geas,
.adept-powers,
.conjuring,
.magicinitiate,
.astralattributes {
display: none;
}
.magic-tabs-switch[value="spells"]~div.spells-section,
.magic-tabs-switch[value="totem"]~div.totem,
.magic-tabs-switch[value="initiate"]~div.magicinitiate,
.magic-tabs-switch[value="skills"]~div.sorcery-skills,
.magic-tabs-switch[value="foci"]~div.fetish-foci,
.magic-tabs-switch[value="adept"]~div.adept-powers,
.magic-tabs-switch[value="geas"]~div.geas,
.magic-tabs-switch[value="conjuring"]~div.conjuring,
.magic-tabs-switch[value="astral"]~div.astralattributes {
display: block;
border-bottom: 3px solid black;
border-left: 3px solid black;
border-right: 3px solid black;
background-color: rgba(192,192,192,.9);
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
.sheet-tabstoggle[value="magic"]+.charsheet {
background-image: url("https://raw.githubusercontent.com/bahornbeck/img/master/images/nebula2.jpg");
}
@@ -783,6 +853,7 @@ min-width: 0;
grid-template-columns: 73px 1fr;
}
.sheet-rolltemplate-conjure div.sheet-conjure-resist-table,
.sheet-rolltemplate-spell div.sheet-spell-resist-table,
.sheet-rolltemplate-resistance div.sheet-spell-resist-table {
display: grid;
@@ -929,6 +1000,7 @@ min-width: 0;
.sheet-rolltemplate-vehicle div.sheet-rtcontainer,
.sheet-rolltemplate-matrix div.sheet-rtcontainer,
.sheet-rolltemplate-spell div.sheet-rtcontainer,
.sheet-rolltemplate-conjure div.sheet-rtcontainer,
.sheet-rolltemplate-init div.sheet-rtcontainer,
.sheet-rolltemplate-attribute div.sheet-rtcontainer,
.sheet-rolltemplate-explosive div.sheet-rtcontainer,
@@ -950,6 +1022,8 @@ min-width: 0;
color: white;
}
.sheet-rolltemplate-conjure div.sheet-rtheader,
.sheet-rolltemplate-spell div.sheet-rtheader {
border-bottom: 3px solid black;
background-color: olivedrab;
@@ -1003,12 +1077,14 @@ min-width: 0;
color: black;
}
.sheet-rolltemplate-spell div.sheet-conjure-resist-table:nth-child(odd),
.sheet-rolltemplate-spell div.sheet-spell-resist-table:nth-child(odd),
.sheet-rolltemplate-info div.sheet-rtrow:nth-child(odd),
.sheet-rolltemplate-item div.sheet-rtrow:nth-child(odd),
.sheet-rolltemplate-vehicle div.sheet-rtrow:nth-child(odd),
.sheet-rolltemplate-matrix div.sheet-rtrow:nth-child(odd),
.sheet-rolltemplate-spell div.sheet-rtrow:nth-child(odd),
.sheet-rolltemplate-conjure div.sheet-rtrow:nth-child(odd),
.sheet-rolltemplate-init div.sheet-rtrow:nth-child(odd),
.sheet-rolltemplate-attribute div.sheet-rtrow:nth-child(odd),
.sheet-rolltemplate-explosive div.sheet-rtrow:nth-child(odd),
@@ -1025,6 +1101,7 @@ min-width: 0;
font-size: 10px;
}
.sheet-rolltemplate-spell div.sheet-conjure-resist-table:nth-child(even),
.sheet-rolltemplate-spell div.sheet-spell-resist-table:nth-child(even),
.sheet-rolltemplate-item div.sheet-rtrow:nth-child(even),
.sheet-rolltemplate-info div.sheet-rtrow:nth-child(even),
@@ -1038,6 +1115,7 @@ min-width: 0;
.sheet-rolltemplate-attack div.sheet-rtrow:nth-child(even),
.sheet-rolltemplate-aoe div.sheet-rtrow:nth-child(even),
.sheet-rolltemplate-melee div.sheet-rtrow:nth-child(even),
.sheet-rolltemplate-conjure div.sheet-rtrow:nth-child(even),
.sheet-rolltemplate-resistance div.sheet-rtrow:nth-child(even),
.sheet-rolltemplate-spell div.sheet-rtrow:nth-child(even) {
background-color: lightgrey;
@@ -1053,6 +1131,7 @@ min-width: 0;
.sheet-rolltemplate-adept .sheet-numberspan,
.sheet-rolltemplate-spell .sheet-numberspan,
.sheet-rolltemplate-melee .sheet-numberspan,
.sheet-rolltemplate-conjure .sheet-numberspan,
.sheet-rolltemplate-aoe .sheet-numberspan,
.sheet-rolltemplate-resistance .sheet-numberspan,
.sheet-rolltemplate-attack .sheet-numberspan{
@@ -1076,6 +1155,7 @@ min-width: 0;
.sheet-rolltemplate-attack .inlinerollresult,
.sheet-rolltemplate-aoe .inlinerollresult,
.sheet-rolltemplate-melee .inlinerollresult,
.sheet-rolltemplate-conjure .inlinerollresult,
.sheet-rolltemplate-resistance .inlinerollresult,
.sheet-rolltemplate-spell .inlinerollresult {
display: inline-block;
@@ -1097,6 +1177,7 @@ min-width: 0;
.sheet-rolltemplate-attack .inlinerollresult.fullcrit,
.sheet-rolltemplate-aoe .inlinerollresult.fullcrit,
.sheet-rolltemplate-melee .inlinerollresult.fullcrit,
.sheet-rolltemplate-conjure .inlinerollresult.fullcrit,
.sheet-rolltemplate-resistance .inlinerollresult.fullcrit,
.sheet-rolltemplate-spell .inlinerollresult.fullcrit {
border: 2px solid #3FB315;
@@ -1114,6 +1195,7 @@ min-width: 0;
.sheet-rolltemplate-attack .inlinerollresult.fullfail,
.sheet-rolltemplate-aoe .inlinerollresult.fullfail,
.sheet-rolltemplate-melee .inlinerollresult.fullfail,
.sheet-rolltemplate-conjure .inlinerollresult.fullfail,
.sheet-rolltemplate-resistance .inlinerollresult.fullfail,
.sheet-rolltemplate-spell .inlinerollresult.fullfail {
border: 2px solid #B31515;
@@ -1131,6 +1213,7 @@ min-width: 0;
.sheet-rolltemplate-attack .inlinerollresult.importantroll,
.sheet-rolltemplate-aoe .inlinerollresult.importantroll,
.sheet-rolltemplate-melee .inlinerollresult.importantroll,
.sheet-rolltemplate-conjure .inlinerollresult.importantroll,
.sheet-rolltemplate-resistance .inlinerollresult.importantroll,
.sheet-rolltemplate-spell .inlinerollresult.importantroll {
border: 2px solid #4A57ED;
@@ -1339,13 +1422,6 @@ input[type="checkbox"].hidden-checkbox {
border-radius: 5px;
}
.astralattributes {
border: 1px solid #fff;
padding: 3px;
background-color: rgba(192,192,192,.9);
border-radius: 5px;
}
.astralspace {
display: grid;
vertical-align: middle;
@@ -1367,7 +1443,10 @@ input[type="checkbox"].hidden-checkbox {
display: grid;
grid-template-columns: 220px 220px;
}
.conjuring-table {
display: grid;
grid-template-columns: 120px 120px 120px 120px 120px 100px 100px 1fr;
}
.totem-table {
display: grid;
@@ -1558,6 +1637,12 @@ melee-table-row input[type="textarea"],
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}
.table-top-left-nc {
border: 2px solid #fff;
text-align: center;
vertical-align: middle;
border-top-left-radius: 10px;
}
.table-top-left {
background-color: rgba(192,192,192,.9);
@@ -1566,7 +1651,13 @@ melee-table-row input[type="textarea"],
vertical-align: middle;
border-top-left-radius: 10px;
}
.table-top-left-w {
background-color: white;
border: 2px solid black;
text-align: center;
vertical-align: middle;
border-top-left-radius: 10px;
}
.table-top-right {
background-color: rgba(192,192,192,.9);
border-top: 2px solid #fff;
@@ -1577,6 +1668,16 @@ melee-table-row input[type="textarea"],
border-top-right-radius: 10px;
}
.table-top-right-w {
background-color: white;
border-top: 2px solid black;
border-bottom: 2px solid black;
border-right: 2px solid black;
text-align: center;
vertical-align: middle;
border-top-right-radius: 10px;
}
.table-top-mid{
background-color: rgba(192,192,192,.9);
border-right: 2px solid #fff;
@@ -2465,21 +2566,6 @@ input.enable-fa:not(:checked)~span.show_fa_dice {
.vehicle-skills-hide,
.rc-deck-show,
.rc-deck-hide,
.foci-show,
.foci-hide,
.totem-show,
.totem-hide,
.magicinitiate-show,
.magicinitiate-hide,
.geas-show,
.geas-hide,
.adeptpowers-show,
.adeptpowers-hide,
.spells-show,
.spells-hide,
.astralattributes-show,
.astralattributes-hide,
.sorceryskills-show,
.sorceryskills-hide {
display: none;
}
@@ -2522,23 +2608,7 @@ input.enable-fa:not(:checked)~span.show_fa_dice {
.securitysheaf-switch[value="show"]~div.securitysheaf-hide,
.securitysheaf-switch[value="hide"]~div.securitysheaf-show,
.deck-skills-switch[value="show"]~div.deck-skills-hide,
.deck-skills-switch[value="hide"]~div.deck-skills-show,
.totem-switch[value="show"]~div.totem-hide,
.totem-switch[value="hide"]~div.totem-show,
.geas-switch[value="show"]~div.geas-hide,
.geas-switch[value="hide"]~div.geas-show,
.magicinitiate-switch[value="show"]~div.magicinitiate-hide,
.magicinitiate-switch[value="hide"]~div.magicinitiate-show,
.foci-switch[value="show"]~div.foci-hide,
.foci-switch[value="hide"]~div.foci-show,
.spells-switch[value="show"]~div.spells-hide,
.spells-switch[value="hide"]~div.spells-show,
.adeptpowers-switch[value="show"]~div.adeptpowers-hide,
.adeptpowers-switch[value="hide"]~div.adeptpowers-show,
.sorceryskills-switch[value="show"]~div.sorceryskills-hide,
.sorceryskills-switch[value="hide"]~div.sorceryskills-show,
.astralattributes-switch[value="show"]~div.astralattributes-hide,
.astralattributes-switch[value="hide"]~div.astralattributes-show {
.deck-skills-switch[value="hide"]~div.deck-skills-show {
display: grid;
grid-template-columns: auto 60px 1fr;
}
@@ -2558,14 +2628,6 @@ input.enable-fa:not(:checked)~span.show_fa_dice {
.deck-cyberdeck-switch[value="hide"]~div.deck-cyberdeck,
.securitysheaf-switch[value="hide"]~div.securitysheaf,
.combatskills-switch[value="hide"]~div.combat-skills,
.sorceryskills-switch[value="hide"]~div.sorcery-skills,
.spells-switch[value="hide"]~div.spells-section,
.astralattributes-switch[value="hide"]~div.astralattributes,
.totem-switch[value="hide"]~div.totem,
.geas-switch[value="hide"]~div.geas,
.foci-switch[value="hide"]~div.fetish-foci,
.magicinitiate-switch[value="hide"]~div.magicinitiate,
.adeptpowers-switch[value="hide"]~div.adept-powers,
.rc-deck-switch[value="hide"]~div.rc-deck,
.vehicle-skills-switch[value="hide"]~div.vehicle-skills {
display: none;