Phase 2.5: Skill Check System Implementation
Features:
- ApplicationV2-based roll dialogs with HandlebarsApplicationMixin
- Base VagabondRollDialog class for shared dialog functionality
- SkillCheckDialog for skill checks with auto-calculated difficulty
- Favor/Hinder system using Active Effects flags (simplified from schema)
- FavorHinderDebug panel for testing flags without actor sheets
- Auto-created development macros (Favor/Hinder Debug, Skill Check)
- Custom chat cards for skill roll results
Technical Changes:
- Removed favorHinder from character schema (now uses flags)
- Updated getNetFavorHinder() to use flag-based approach
- Returns { net, favorSources, hinderSources } for transparency
- Universal form styling fixes for Foundry dark theme compatibility
- Added Macro to ESLint globals
Flag Convention:
- flags.vagabond.favor.skills.<skillId>
- flags.vagabond.hinder.skills.<skillId>
- flags.vagabond.favor.attacks
- flags.vagabond.hinder.attacks
- flags.vagabond.favor.saves.<saveType>
- flags.vagabond.hinder.saves.<saveType>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
188 lines
3.7 KiB
SCSS
188 lines
3.7 KiB
SCSS
// Vagabond RPG - Form Styles
|
|
// ===========================
|
|
|
|
.vagabond {
|
|
// Text input
|
|
input[type="text"],
|
|
input[type="number"],
|
|
input[type="email"],
|
|
input[type="password"],
|
|
input[type="search"] {
|
|
@include input-base;
|
|
width: 100%;
|
|
}
|
|
|
|
// Number input (smaller for stats)
|
|
input[type="number"] {
|
|
text-align: center;
|
|
|
|
// Hide spinner buttons
|
|
&::-webkit-outer-spin-button,
|
|
&::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
// Textarea
|
|
textarea {
|
|
@include input-base;
|
|
width: 100%;
|
|
min-height: 100px;
|
|
resize: vertical;
|
|
}
|
|
|
|
// Select
|
|
select {
|
|
@include input-base;
|
|
width: 100%;
|
|
height: 2.5rem; // Fixed height for consistent visibility
|
|
padding: $spacing-2 $spacing-8 $spacing-2 $spacing-3;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-color: $color-parchment-light !important;
|
|
color: $color-text-primary !important;
|
|
font-size: $font-size-base;
|
|
line-height: 1.5;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c2416' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right $spacing-3 center;
|
|
}
|
|
|
|
// Checkbox
|
|
input[type="checkbox"] {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
accent-color: $color-accent-primary;
|
|
|
|
@include focus-visible;
|
|
}
|
|
|
|
// Checkbox with label
|
|
.checkbox-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: $spacing-2;
|
|
|
|
label {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
// Radio button
|
|
input[type="radio"] {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
accent-color: $color-accent-primary;
|
|
|
|
@include focus-visible;
|
|
}
|
|
|
|
// Form group (label + input)
|
|
.form-group {
|
|
margin-bottom: $spacing-4;
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: $spacing-1;
|
|
font-weight: $font-weight-medium;
|
|
color: $color-text-secondary;
|
|
}
|
|
|
|
&.inline {
|
|
@include flex-between;
|
|
|
|
label {
|
|
margin-bottom: 0;
|
|
margin-right: $spacing-2;
|
|
}
|
|
|
|
input,
|
|
select {
|
|
flex: 1;
|
|
max-width: 200px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Form row (multiple inputs side by side)
|
|
.form-row {
|
|
display: flex;
|
|
gap: $spacing-4;
|
|
|
|
.form-group {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
// Stat input (large centered number)
|
|
.stat-input {
|
|
@include stat-badge;
|
|
|
|
input {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
font-family: $font-family-header;
|
|
font-size: $font-size-3xl;
|
|
font-weight: $font-weight-bold;
|
|
text-align: center;
|
|
background: transparent;
|
|
border: none;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Resource input (current / max)
|
|
.resource-input {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: $spacing-1;
|
|
|
|
input {
|
|
width: 3rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.separator {
|
|
color: $color-text-muted;
|
|
}
|
|
}
|
|
|
|
// Inline editable field
|
|
.inline-edit {
|
|
padding: $spacing-1 $spacing-2;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: $radius-sm;
|
|
transition: all $transition-fast;
|
|
|
|
&:hover {
|
|
border-color: $color-border-light;
|
|
}
|
|
|
|
&:focus {
|
|
background: $color-parchment-light;
|
|
border-color: $color-accent-primary;
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
// Readonly display (looks like text, not input)
|
|
.readonly-value {
|
|
padding: $spacing-2 $spacing-3;
|
|
background-color: $color-parchment-dark;
|
|
border: 1px solid $color-border-light;
|
|
border-radius: $radius-md;
|
|
color: $color-text-secondary;
|
|
}
|
|
}
|