Files
fvtt-oath-hammer/less/rolls.less
LeRatierBretonnier b4211c121d
All checks were successful
Release Creation / build (release) Successful in 1m36s
Add luck option after roll, attributes above 6, fix miracle icon and grit bonus
2026-04-20 08:23:33 +02:00

162 lines
3.1 KiB
Plaintext

// ============================================================
// 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 {
display: flex;
align-items: center;
gap: 6px;
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-card-weapon-img {
width: 28px;
height: 28px;
object-fit: contain;
border: 1px solid @color-olive-faint;
border-radius: 3px;
flex-shrink: 0;
}
}
.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;
}
.roll-opposed {
background: fade(#3498db, 15%);
color: #1a6fa8;
}
}
// 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; }
}
}
// Post-roll luck button and result
.oh-luck-btn-row {
margin-top: 6px;
text-align: center;
}
.oh-post-luck-btn {
background: linear-gradient(135deg, #2d6a2d 0%, #4a8c4a 100%);
color: #e8d97a;
border: 1px solid #3a7a3a;
border-radius: 4px;
padding: 4px 12px;
font-size: 0.85em;
cursor: pointer;
letter-spacing: 0.03em;
transition: filter 0.15s;
&:hover {
filter: brightness(1.15);
}
}
.oh-luck-result {
display: flex;
align-items: center;
gap: 6px;
margin-top: 6px;
padding: 4px 8px;
background: fade(#2d6a2d, 15%);
border-left: 3px solid #4a8c4a;
border-radius: 0 4px 4px 0;
font-size: 0.85em;
color: #2d6a2d;
.oh-luck-result-icon { font-size: 1.1em; }
.oh-luck-dice {
display: flex;
gap: 3px;
flex-wrap: wrap;
margin-left: auto;
}
}