Fix CSS
Release Creation / build (release) Successful in 1m17s

This commit is contained in:
2026-06-02 19:27:09 +02:00
parent a09577f189
commit f363a85cc0
2 changed files with 951 additions and 1 deletions
+275 -1
View File
@@ -1,4 +1,226 @@
// Adventures with Emmy - Main LESS stylesheet
// Token Action HUD - Condition Buttons
// ============================================================
// Ensure consistent font in HUD
.tah-container,
.token-action-hud {
.awemmy {
font-family: @font-body;
}
}
// Condition buttons in Token Action HUD
.tah-group-conditions .tah-button,
.tah-group-conditions .tah-action {
min-width: 50px;
width: auto;
height: auto;
padding: 2px 4px;
font-size: 11px;
line-height: normal;
white-space: nowrap;
// Active state
&.active {
border-color: @color-secondary;
background: fade(@color-secondary, 15%);
}
}
// Wider buttons for longer condition names
.tah-group-conditions .tah-button[data-action-id*="penalty"],
.tah-group-conditions .tah-action[data-action-id*="penalty"] {
min-width: 70px;
}
// Ensure button text doesn't overflow
.tah-group-conditions .tah-button .action-name,
.tah-group-conditions .tah-action .action-name {
font-size: 11px;
text-overflow: ellipsis;
overflow: hidden;
}
// General button styling for HUD
.tah-button,
.tah-action {
display: inline-flex;
align-items: center;
justify-content: center;
}
// ============================================================
// Character Sheet - Condition Badges
// ============================================================
// Fix condition badge sizing to accommodate longer labels
.conditions-panel {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
padding: 0.4rem 0;
.condition-badge {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.2rem;
min-width: 60px; // Increased from fixed 54px to min-width
width: auto; // Allow expansion for longer labels
max-width: 80px; // Prevent excessive width
padding: 0.3rem 0.15rem;
border-radius: 4px;
border: 1px solid transparent;
cursor: pointer;
opacity: 0.35;
transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
&:hover {
opacity: 0.7;
transform: scale(1.05);
}
&.active {
opacity: 1;
border-color: @color-text;
background: rgba(0, 0, 0, 0.08);
}
img {
width: 32px;
height: 32px;
flex-shrink: 0;
}
.condition-label {
font-size: 0.7rem; // Slightly larger than 0.65rem
text-align: center;
line-height: 1.1;
color: @color-text;
word-break: normal;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
}
=======
// ============================================================
// Token Action HUD - Condition Buttons
// ============================================================
// Ensure consistent font in HUD
.tah-container,
.token-action-hud {
.awemmy {
font-family: @font-body;
}
}
// Condition buttons in Token Action HUD
.tah-group-conditions .tah-button,
.tah-group-conditions .tah-action {
min-width: 50px;
width: auto;
height: auto;
padding: 2px 4px;
font-size: 11px;
line-height: normal;
white-space: nowrap;
text-align: center;
// Active state
&.active {
border-color: @color-secondary;
background: fade(@color-secondary, 15%);
}
}
// Wider buttons for longer condition names
.tah-group-conditions .tah-button[data-action-id*="penalty"],
.tah-group-conditions .tah-button[data-action-id*="hampered"],
.tah-group-conditions .tah-button[data-action-id*="inhibited"],
.tah-group-conditions .tah-button[data-action-id*="quickened"],
.tah-group-conditions .tah-button[data-action-id*="vulnerable"],
.tah-group-conditions .tah-action[data-action-id*="penalty"],
.tah-group-conditions .tah-action[data-action-id*="hampered"],
.tah-group-conditions .tah-action[data-action-id*="inhibited"],
.tah-group-conditions .tah-action[data-action-id*="quickened"],
.tah-group-conditions .tah-action[data-action-id*="vulnerable"] {
min-width: 70px;
}
// Ensure button text doesn't overflow
.tah-group-conditions .tah-button .action-name,
.tah-group-conditions .tah-action .action-name {
font-size: 11px;
text-overflow: ellipsis;
overflow: hidden;
}
// General button styling for HUD
.tah-button,
.tah-action {
display: inline-flex;
align-items: center;
justify-content: center;
}
// ============================================================
// Character Sheet - Condition Badges
// ============================================================
// Fix condition badge sizing to accommodate longer labels
.conditions-panel {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
padding: 0.4rem 0;
.condition-badge {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.2rem;
min-width: 60px; // Increased from fixed 54px to min-width
width: auto; // Allow expansion for longer labels
max-width: 80px; // Prevent excessive width
padding: 0.3rem 0.15rem;
border-radius: 4px;
border: 1px solid transparent;
cursor: pointer;
opacity: 0.35;
transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
&:hover {
opacity: 0.7;
transform: scale(1.05);
}
&.active {
opacity: 1;
border-color: @color-text;
background: rgba(0, 0, 0, 0.08);
}
img {
width: 32px;
height: 32px;
flex-shrink: 0;
}
.condition-label {
font-size: 0.7rem; // Slightly larger than 0.65rem
text-align: center;
line-height: 1.1;
color: @color-text;
word-break: normal;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
}Adventures with Emmy - Main LESS stylesheet
// ============================================================
// Variables
@@ -1093,3 +1315,55 @@
padding: 0.5rem;
}
}
// ============================================================
// Token Action HUD - Condition Buttons
// ============================================================
// Ensure consistent font in HUD
.tah-container,
.token-action-hud {
.awemmy {
font-family: @font-body;
}
}
// Condition buttons in Token Action HUD
.tah-group-conditions .tah-button,
.tah-group-conditions .tah-action {
min-width: 50px;
width: auto;
height: auto;
padding: 2px 4px;
font-size: 11px;
line-height: normal;
white-space: nowrap;
// Active state
&.active {
border-color: @color-secondary;
background: fade(@color-secondary, 15%);
}
}
// Wider buttons for longer condition names
.tah-group-conditions .tah-button[data-action-id*="penalty"],
.tah-group-conditions .tah-action[data-action-id*="penalty"] {
min-width: 70px;
}
// Ensure button text doesn't overflow
.tah-group-conditions .tah-button .action-name,
.tah-group-conditions .tah-action .action-name {
font-size: 11px;
text-overflow: ellipsis;
overflow: hidden;
}
// General button styling for HUD
.tah-button,
.tah-action {
display: inline-flex;
align-items: center;
justify-content: center;
}