vagabond-rpg-foundryvtt/styles/scss/components/_buttons.scss
Cal Corum 8e097c9b2d Implement character sheet foundation with ApplicationV2
Add actor sheet implementation using Foundry VTT v13 ApplicationV2 API:
- Base actor sheet class with tab navigation, drag-drop, scroll preservation
- Character sheet with header, main tab (stats, saves, skills, attacks)
- NPC sheet structure (templates only, styling pending)
- Resource bars with fill effect and backdrop pills for legibility
- Responsive layout using CSS Container Queries
- Fix for ApplicationV2 tab switching (cleanup stale parts)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-14 16:43:28 -06:00

134 lines
2.6 KiB
SCSS

// Vagabond RPG - Button Styles
// =============================
.vagabond {
// Primary button
.btn-primary {
@include button-primary;
}
// Secondary button
.btn-secondary {
@include button-secondary;
}
// Small button variant
.btn-sm {
padding: $spacing-1 $spacing-2;
font-size: $font-size-xs;
}
// Large button variant
.btn-lg {
padding: $spacing-3 $spacing-6;
font-size: $font-size-lg;
}
// Icon button (square, for icons only)
.btn-icon {
@include button-base;
@include flex-center;
width: 2rem;
height: 2rem;
padding: 0;
background-color: transparent;
border-color: transparent;
color: $color-text-primary;
&:hover:not(:disabled) {
background-color: $color-parchment-dark;
color: $color-accent-primary;
}
i {
font-size: $font-size-base;
}
}
// Small icon button (for +/- resource buttons)
.btn-icon-sm {
@include button-base;
@include flex-center;
width: 24px;
height: 24px;
padding: 0;
background-color: $color-parchment;
border: 1px solid $color-border;
color: $color-text-primary;
&:hover:not(:disabled) {
background-color: $color-parchment-dark;
border-color: $color-accent-primary;
color: $color-accent-primary;
}
i {
font-size: 10px;
color: inherit;
}
}
// Rollable button (for dice rolls)
.btn-roll {
@include button-base;
background-color: $color-parchment-light;
color: $color-text-primary;
border-color: $color-border;
&:hover:not(:disabled) {
background-color: $color-accent-highlight;
border-color: $color-accent-primary;
}
i {
margin-right: $spacing-2;
}
}
// Danger button
.btn-danger {
@include button-base;
background-color: $color-danger;
color: $color-text-inverse;
border-color: darken($color-danger, 10%);
&:hover:not(:disabled) {
background-color: darken($color-danger, 10%);
}
}
// Success button
.btn-success {
@include button-base;
background-color: $color-success;
color: $color-text-inverse;
border-color: darken($color-success, 10%);
&:hover:not(:disabled) {
background-color: darken($color-success, 10%);
}
}
// Button group
.btn-group {
display: inline-flex;
.btn-primary,
.btn-secondary {
border-radius: 0;
&:first-child {
border-radius: $radius-md 0 0 $radius-md;
}
&:last-child {
border-radius: 0 $radius-md $radius-md 0;
}
&:not(:last-child) {
border-right: none;
}
}
}
}