Set up complete development environment with: - ESLint with Foundry VTT globals (game, CONFIG, Actor, etc.) - Prettier for consistent code formatting - Husky + lint-staged for pre-commit hooks - Quench test framework structure with sanity checks Documentation: - DEVELOPMENT.md with tooling decisions and rationale - README.md updated with development setup instructions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
183 lines
3.4 KiB
SCSS
183 lines
3.4 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%;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
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;
|
|
padding-right: $spacing-8;
|
|
}
|
|
|
|
// 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;
|
|
}
|
|
}
|