
Hello, I'm creating a Roll Template but I have an incomprehensible problem: The template has a header and a body, and the header css style works, but not the body's... In fact, everything works except the body styling (and the tooltip thing, at the end of this post) Here's he code, I use Legacy Sanitization: <rolltemplate class="sheet-rolltemplate-test">
<div class="sheet-template-header">
{{name}} rolls for
</div>
<div class="sheet-template-body">
{{skill}} ({{char}})
<div class="sheet-template-results">
<div class="sheet-template-total">{{computed::roll3}}</div>
<h4>{{roll1}} {{roll2}}</h4>
</div>
<div class="sheet-template-gimikku">
<h5>gimikku</h5>
{{gimikku}}
</div>
</div>
</rolltemplate> .sheet-rolltemplate-test .sheet-template-body{
text-align:center;
background-color: white;
border: 1px solid gray;
width:98%;
}
.sheet-rolltemplate-test .sheet-template-header {
border: 1px solid black;
background-color: gray;
color: white;
text-align:left;
width:98%;
padding:4px;
}
.sheet-rolltemplate-test .sheet-template-results {
text-align:center;
padding:5px;
}
.sheet-rolltemplate-test .sheet-template-total {
margin:4px;
}
.sheet-rolltemplate-test .sheet-template-gimikku {
text-align:center;
padding:4px;
background: rgb(245,245,245);
}
.sheet-rolltemplate-test .sheet-template-results .sheet-template-total .inlinerollresult {
background-color: transparent;
padding-left: 0px;
margin-left: -3px;
font-size: 3em;
border: none;
}
.sheet-rolltemplate-test .sheet-template-results .inlinerollresult {
background: rgb(245,245,245);
border:none;
border-radius: 4px;
}
.sheet-rolltemplate-test .sheet-template-results .inlinerollresult.fullfail,
.sheet-rolltemplate-test .sheet-template-results .inlinerollresult.critfail {
color:#7f8688;
} As you can see, the body class does not work. (the attributes skillname, skill_char and custom_gimikku do not exist yet on the sheet on which I'm testing the template, so it's normal that they don't display) Am I doing something wrong? Then, there's the tooltip thing (the last line of the CSS) I'm trying to get the critfails in the tooltip to display in gray rather than red (like it was dropped) , the tooltip appears when hovering over an inline roll result. But I can't seem to make it work... (the inline roll box itself works fine, displaying crit fails (4's to be precise) in gray just fine) I used Oosh' post ( Blue Dice on /r Rolls and Inline Tooltips ) as reference, but I does not change the color of the crits dispayed in the tooltip... Do you have any idea? Thank You