Added nowrap on level label

This commit is contained in:
WBHarry 2025-06-24 15:59:12 +02:00
parent 970de74929
commit 376dba91bb
2 changed files with 160 additions and 153 deletions

View file

@ -3469,6 +3469,9 @@ div.daggerheart.views.multiclass {
.application.sheet.daggerheart.actor.dh-style.character .character-header-sheet .name-row input[type='text']:hover { .application.sheet.daggerheart.actor.dh-style.character .character-header-sheet .name-row input[type='text']:hover {
outline: 2px solid light-dark(#222, #f3c267); outline: 2px solid light-dark(#222, #f3c267);
} }
.application.sheet.daggerheart.actor.dh-style.character .character-header-sheet .name-row .level-div {
white-space: nowrap;
}
.application.sheet.daggerheart.actor.dh-style.character .character-header-sheet .character-details { .application.sheet.daggerheart.actor.dh-style.character .character-header-sheet .character-details {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View file

@ -1,153 +1,157 @@
@import '../../utils/colors.less'; @import '../../utils/colors.less';
@import '../../utils/fonts.less'; @import '../../utils/fonts.less';
.application.sheet.daggerheart.actor.dh-style.character { .application.sheet.daggerheart.actor.dh-style.character {
.character-header-sheet { .character-header-sheet {
padding: 0 15px; padding: 0 15px;
padding-top: 36px; padding-top: 36px;
width: 100%; width: 100%;
.name-row { .name-row {
display: flex; display: flex;
gap: 20px; gap: 20px;
align-items: baseline; align-items: baseline;
justify-content: space-between; justify-content: space-between;
padding: 0; padding: 0;
padding-top: 5px; padding-top: 5px;
input[type='text'] { input[type='text'] {
font-size: 32px; font-size: 32px;
height: 42px; height: 42px;
width: 380px; width: 380px;
text-align: start; text-align: start;
border: 1px solid transparent; border: 1px solid transparent;
outline: 2px solid transparent; outline: 2px solid transparent;
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover { &:hover {
outline: 2px solid light-dark(@dark, @golden); outline: 2px solid light-dark(@dark, @golden);
} }
} }
}
.level-div {
.character-details { white-space: nowrap;
display: flex; }
justify-content: space-between; }
padding: 5px 0;
margin-bottom: 10px; .character-details {
font-size: 12px; display: flex;
color: light-dark(@dark-blue, @golden); justify-content: space-between;
padding: 5px 0;
span { margin-bottom: 10px;
padding: 3px; font-size: 12px;
border-radius: 3px; color: light-dark(@dark-blue, @golden);
transition: all 0.3s ease;
cursor: pointer; span {
padding: 3px;
&:hover { border-radius: 3px;
background: light-dark(@dark-blue-40, @golden-40); transition: all 0.3s ease;
} cursor: pointer;
&.dot { &:hover {
background: transparent; background: light-dark(@dark-blue-40, @golden-40);
cursor: default; }
}
} &.dot {
} background: transparent;
cursor: default;
.character-row { }
display: flex; }
gap: 20px; }
align-items: center;
justify-content: space-between; .character-row {
padding: 0; display: flex;
margin-bottom: 15px; gap: 20px;
align-items: center;
.hope-section, justify-content: space-between;
.threshold-section { padding: 0;
position: relative; margin-bottom: 15px;
display: flex;
gap: 10px; .hope-section,
background-color: light-dark(transparent, @dark-blue); .threshold-section {
color: light-dark(@dark-blue, @golden); position: relative;
padding: 5px 10px; display: flex;
border: 1px solid light-dark(@dark-blue, @golden); gap: 10px;
border-radius: 6px; background-color: light-dark(transparent, @dark-blue);
align-items: center; color: light-dark(@dark-blue, @golden);
width: fit-content; padding: 5px 10px;
height: 30px; border: 1px solid light-dark(@dark-blue, @golden);
border-radius: 6px;
h4 { align-items: center;
font-size: 14px; width: fit-content;
font-weight: bold; height: 30px;
text-transform: uppercase;
color: light-dark(@dark-blue, @golden); h4 {
font-size: 14px;
&.threshold-value { font-weight: bold;
color: light-dark(@dark, @beige); text-transform: uppercase;
} color: light-dark(@dark-blue, @golden);
}
&.threshold-value {
.threshold-legend { color: light-dark(@dark, @beige);
position: absolute; }
bottom: -21px; }
color: light-dark(@golden, @dark-blue);
background-color: light-dark(@dark-blue, @golden); .threshold-legend {
padding: 3px; position: absolute;
justify-self: anchor-center; bottom: -21px;
border-radius: 0 0 3px 3px; color: light-dark(@golden, @dark-blue);
text-transform: capitalize; background-color: light-dark(@dark-blue, @golden);
} padding: 3px;
justify-self: anchor-center;
.hope-value { border-radius: 0 0 3px 3px;
display: flex; text-transform: capitalize;
cursor: pointer; }
}
} .hope-value {
} display: flex;
cursor: pointer;
.character-traits { }
display: flex; }
justify-content: space-between; }
padding: 0;
margin-bottom: 15px; .character-traits {
display: flex;
.trait { justify-content: space-between;
height: 60px; padding: 0;
width: 60px; margin-bottom: 15px;
background: url(../assets/svg/trait-shield.svg) no-repeat;
.trait {
cursor: pointer; height: 60px;
width: 60px;
.theme-light & { background: url(../assets/svg/trait-shield.svg) no-repeat;
background: url('../assets/svg/trait-shield-light.svg') no-repeat;
} cursor: pointer;
.trait-name { .theme-light & {
display: flex; background: url('../assets/svg/trait-shield-light.svg') no-repeat;
align-items: center; }
padding-top: 5px;
color: light-dark(@dark-blue, @golden); .trait-name {
font-size: 14px; display: flex;
font-weight: 600; align-items: center;
align-items: center; padding-top: 5px;
justify-content: center; color: light-dark(@dark-blue, @golden);
gap: 3px; font-size: 14px;
font-weight: 600;
i { align-items: center;
line-height: 17px; justify-content: center;
font-size: 10px; gap: 3px;
}
} i {
line-height: 17px;
.trait-value { font-size: 10px;
font-family: @font-body; }
font-style: normal; }
font-weight: 400;
font-size: 20px; .trait-value {
text-align: center; font-family: @font-body;
} font-style: normal;
} font-weight: 400;
} font-size: 20px;
} text-align: center;
} }
}
}
}
}