Various fixes and changes based on tester feedback
This commit is contained in:
@@ -133,55 +133,72 @@
|
||||
}
|
||||
}
|
||||
|
||||
// ——— Options block ———
|
||||
// ——— Option rows — applies to all fieldsets in any roll dialog ———
|
||||
.roll-option-row {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
gap: 4px 8px;
|
||||
padding: 5px 0;
|
||||
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px solid fade(@color-olive, 10%);
|
||||
}
|
||||
|
||||
label {
|
||||
flex: 0 0 140px;
|
||||
font-size: @font-size-xs;
|
||||
color: @color-dark;
|
||||
white-space: nowrap;
|
||||
font-family: @font-body;
|
||||
}
|
||||
|
||||
select, input[type="text"], input[type="number"] {
|
||||
flex: 0 0 110px;
|
||||
padding: 3px 6px;
|
||||
border: 1px solid darken(@color-olive-faint, 10%);
|
||||
border-radius: 3px;
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
color: @color-dark;
|
||||
font-family: @font-body;
|
||||
font-size: @font-size-xs;
|
||||
}
|
||||
|
||||
.roll-option-hint {
|
||||
flex: 1 1 auto;
|
||||
font-size: calc(@font-size-xs * 0.85);
|
||||
color: @color-olive;
|
||||
font-style: italic;
|
||||
padding-left: 6px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
.roll-option-luck {
|
||||
label { color: @color-gold; font-weight: bold; }
|
||||
select { border-color: @color-gold; }
|
||||
.luck-icon { color: @color-gold; font-size: 0.8em; }
|
||||
}
|
||||
|
||||
.roll-option-check {
|
||||
input[type="checkbox"] {
|
||||
flex: 0 0 auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
accent-color: @color-blue;
|
||||
cursor: pointer;
|
||||
}
|
||||
label {
|
||||
cursor: pointer;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
}
|
||||
|
||||
// ——— Options block (legacy scope kept for skill roll dialog) ———
|
||||
.roll-options-block {
|
||||
.roll-option-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 4px 8px;
|
||||
padding: 5px 0;
|
||||
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px solid fade(@color-olive, 10%);
|
||||
}
|
||||
|
||||
label {
|
||||
flex: 1 1 120px;
|
||||
font-size: @font-size-xs;
|
||||
color: @color-dark;
|
||||
white-space: nowrap;
|
||||
font-family: @font-body;
|
||||
}
|
||||
|
||||
select {
|
||||
flex: 0 0 90px;
|
||||
padding: 3px 6px;
|
||||
border: 1px solid darken(@color-olive-faint, 10%);
|
||||
border-radius: 3px;
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
color: @color-dark;
|
||||
font-family: @font-body;
|
||||
font-size: @font-size-xs;
|
||||
}
|
||||
|
||||
.roll-option-hint {
|
||||
flex: 1 1 100%;
|
||||
font-size: calc(@font-size-xs * 0.85);
|
||||
color: @color-olive;
|
||||
font-style: italic;
|
||||
padding-left: 4px;
|
||||
white-space: normal;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
.roll-option-luck {
|
||||
label { color: @color-gold; font-weight: bold; }
|
||||
select { border-color: @color-gold; }
|
||||
.luck-icon { color: @color-gold; font-size: 0.8em; }
|
||||
}
|
||||
// inherits .roll-option-row styles from parent scope
|
||||
}
|
||||
|
||||
// ——— Visibility block ———
|
||||
@@ -390,19 +407,24 @@
|
||||
}
|
||||
|
||||
// Attack/damage buttons in weapon list
|
||||
.item-list--weapon .item-actions {
|
||||
gap: 8px;
|
||||
.item-list--weapon .item-entry .item-actions {
|
||||
gap: 14px;
|
||||
a[data-action="attackWeapon"] {
|
||||
color: @color-blue;
|
||||
font-size: 1.1em;
|
||||
.transition-opacity();
|
||||
}
|
||||
a[data-action="defendWeapon"] {
|
||||
color: @color-olive;
|
||||
font-size: 1.1em;
|
||||
.transition-opacity();
|
||||
}
|
||||
a[data-action="damageWeapon"] {
|
||||
color: #8b0000;
|
||||
font-size: 1.1em;
|
||||
.transition-opacity();
|
||||
}
|
||||
a[data-action="edit"] { margin-left: 6px; }
|
||||
a[data-action="edit"] { margin-left: 4px; }
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
@@ -550,3 +572,83 @@
|
||||
a[data-action="castMiracle"] .miracle-cast-icon { color: #5a3000; font-size: 1.05em; }
|
||||
a[data-action="edit"] { margin-left: 6px; }
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// DEFENSE / ARMOR DIALOG STYLES
|
||||
// ============================================================
|
||||
|
||||
.oh-defense-dialog,
|
||||
.oh-armor-dialog {
|
||||
.oh-trait-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 5px 10px;
|
||||
margin: 4px 0;
|
||||
background: fade(@color-blue, 8%);
|
||||
border: 1px solid fade(@color-blue, 25%);
|
||||
border-radius: 4px;
|
||||
font-size: 0.84em;
|
||||
color: darken(@color-blue, 10%);
|
||||
i { flex-shrink: 0; }
|
||||
}
|
||||
}
|
||||
|
||||
// Defense card in chat
|
||||
.oh-defense-card,
|
||||
.oh-armor-card {
|
||||
.oh-roll-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.oh-defense-icon {
|
||||
font-size: 1.1em;
|
||||
color: @color-blue;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.oh-card-weapon-img {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
object-fit: contain;
|
||||
border-radius: 3px;
|
||||
border: 1px solid @color-olive-faint;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Defense roll button in combat tab
|
||||
.defense-row {
|
||||
align-items: flex-end;
|
||||
.defense-roll-group {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
.defense-roll-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 10px;
|
||||
background: @color-blue;
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-sm;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
.transition-opacity();
|
||||
|
||||
i { font-size: 0.9em; }
|
||||
&:hover { opacity: 0.85; color: #fff; text-decoration: none; }
|
||||
}
|
||||
|
||||
// Armor roll icon in armor list
|
||||
.item-list--armor .item-actions {
|
||||
gap: 8px;
|
||||
a[data-action="rollArmorSave"] .armor-roll-icon {
|
||||
color: @color-blue;
|
||||
font-size: 1.05em;
|
||||
}
|
||||
a[data-action="edit"] { margin-left: 6px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user