Add roll windows from actor sheet

This commit is contained in:
2026-03-15 23:20:32 +01:00
parent 82fddb0cb3
commit 49347370c7
57 changed files with 6372 additions and 184 deletions

100
less/rolls.less Normal file
View File

@@ -0,0 +1,100 @@
// ============================================================
// ROLL CARDS — Chat message styling for dice rolls
// ============================================================
.oh-roll-card {
font-family: @font-body;
border: 1px solid @color-olive;
border-radius: 4px;
padding: 6px 8px;
background: fade(#f5ead0, 40%);
.oh-roll-header {
font-family: @font-secondary;
font-size: @font-size-base;
font-weight: bold;
color: @color-dark;
margin-bottom: 4px;
border-bottom: 1px solid @color-olive-faint;
padding-bottom: 3px;
}
.oh-roll-info {
display: flex;
justify-content: space-between;
font-size: @font-size-xs;
color: @color-olive;
margin-bottom: 6px;
}
.oh-roll-dice {
display: flex;
flex-wrap: wrap;
gap: 3px;
margin-bottom: 6px;
.oh-die {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 3px;
font-weight: bold;
font-size: 13px;
border: 1px solid @color-olive;
}
.die-success {
background: #2ecc71;
color: #fff;
border-color: #27ae60;
}
.die-fail {
background: #ecf0f1;
color: #7f8c8d;
border-color: #bdc3c7;
}
}
.oh-roll-result {
display: flex;
justify-content: space-between;
align-items: center;
padding: 4px 6px;
border-radius: 3px;
font-weight: bold;
font-size: @font-size-sm;
}
.roll-success {
background: fade(#2ecc71, 20%);
color: #1e8449;
}
.roll-failure {
background: fade(#e74c3c, 15%);
color: #c0392b;
}
}
// Rollable rarity button on item sheets
.oathhammer {
.rarity-roll-btn {
display: inline-flex;
align-items: center;
gap: 3px;
cursor: pointer;
font-size: @font-size-xs;
color: @color-blue;
.transition-opacity();
&:hover {
color: @color-dark;
text-decoration: underline;
}
i { font-size: 0.85em; }
}
}