Files
fvtt-oath-hammer/less/rolls.less

118 lines
2.3 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; }
}
}