Update actor sheet

This commit is contained in:
2025-12-20 00:09:42 +01:00
parent 65dfb3ddff
commit 189b03ca91
24 changed files with 4669 additions and 1791 deletions
+447
View File
@@ -0,0 +1,447 @@
// Character Main Sheet V2 - Based on PNG character sheet design
.character-main-v2 {
.sheet-common();
padding: 0;
margin: 0;
.character-sheet-wrapper {
background-image: url("../assets/sheet/character-bg.png");
background-size: cover;
background-position: center;
padding: 8px 10px;
min-height: auto;
}
// Character Header with Banner
.character-header {
position: relative;
margin-bottom: 5px;
.character-name-banner {
background-image: url("../assets/sheet/banner-bg.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
input {
background: transparent;
border: none;
text-align: center;
font-family: "Cinzel", serif;
font-size: 24px;
font-weight: bold;
color: #2c2c2c;
width: 500px;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}
}
.character-toggle-controls {
position: absolute;
top: 10px;
right: 10px;
}
}
// Main Grid Layout
.character-main-grid {
display: grid;
grid-template-columns: 1fr 300px;
gap: 12px;
align-items: start;
}
// Left Column - Portrait, Attributes, HP
.character-left-column {
display: flex;
flex-direction: row;
gap: 12px;
align-items: flex-start;
.portrait-hp-column {
display: flex;
flex-direction: column;
gap: 12px;
width: 200px;
flex-shrink: 0;
}
.character-portrait {
width: 200px;
height: 200px;
border: 3px solid #6b6b6b;
border-radius: 8px;
overflow: hidden;
background: #d4d4d4;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
// HP Shields - below portrait, same width
.hp-shields-section {
width: 200px;
.hp-shields {
display: flex;
flex-direction: column;
gap: 6px;
.hp-item {
display: flex;
flex-direction: row;
align-items: center;
gap: 8px;
.hp-label {
font-family: "Cinzel", serif;
font-size: 12px;
font-weight: bold;
color: #2c2c2c;
text-transform: uppercase;
width: 55px;
flex-shrink: 0;
}
.hp-value {
input {
width: 40px;
height: 28px;
text-align: center;
font-size: 14px;
font-weight: bold;
background: rgba(255, 255, 255, 0.9);
border: 2px solid #6b6b6b;
border-radius: 4px;
}
}
.hp-separator {
font-family: "Cinzel", serif;
font-size: 14px;
font-weight: bold;
color: #2c2c2c;
}
.hp-max {
input {
width: 40px;
height: 28px;
text-align: center;
font-size: 14px;
font-weight: bold;
background: rgba(200, 220, 255, 0.5);
border: 2px solid #6b6b6b;
border-radius: 4px;
}
}
}
}
}
.character-attributes {
display: flex;
flex-direction: column;
gap: 6px;
flex: 1;
min-width: 0;
max-width: 280px;
.attribute-shield {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
gap: 8px;
padding: 6px 12px;
background: rgba(255, 255, 255, 0.3);
border: 2px solid #6b6b6b;
border-radius: 4px;
height: auto;
.attribute-label {
font-family: "Cinzel", serif;
font-size: 14px;
font-weight: bold;
color: #2c2c2c;
text-transform: uppercase;
margin: 0;
min-width: 40px;
a.rollable {
display: flex;
align-items: center;
gap: 4px;
color: #2c2c2c;
text-decoration: none;
cursor: pointer;
transition: all 0.2s;
i {
font-size: 12px;
color: #6b6b6b;
}
&:hover {
color: #000;
text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
i {
color: #2c2c2c;
}
}
}
}
.attribute-value {
input {
width: 45px;
height: 32px;
text-align: center;
font-size: 16px;
font-weight: bold;
background: rgba(255, 255, 255, 0.9);
border: 2px solid #6b6b6b;
border-radius: 4px;
}
}
.attribute-save {
margin-left: auto;
input {
width: 45px;
height: 32px;
text-align: center;
font-size: 14px;
font-weight: bold;
background: rgba(200, 220, 255, 0.5);
border: 2px solid #6b6b6b;
border-radius: 4px;
color: #2c2c2c;
}
}
}
}
}
// Right Column - Race, Classes
.character-right-column {
display: flex;
flex-direction: column;
gap: 15px;
.section-title {
font-family: "Cinzel", serif;
font-size: 14px;
font-weight: bold;
color: #2c2c2c;
text-transform: uppercase;
margin-bottom: 8px;
padding: 5px 10px;
background: rgba(255, 255, 255, 0.6);
border: 2px solid #6b6b6b;
border-radius: 4px;
text-align: center;
}
.race-section {
.race-box {
padding: 10px;
background: rgba(255, 255, 255, 0.5);
border: 3px solid #6b6b6b;
border-radius: 8px;
min-height: 60px;
.section-title {
font-family: "Cinzel", serif;
font-size: 12px;
font-weight: bold;
color: #2c2c2c;
text-transform: uppercase;
margin: 0 0 8px 0;
padding: 5px;
background: rgba(255, 255, 255, 0.6);
border: 2px solid #6b6b6b;
border-radius: 4px;
text-align: center;
}
.race-item {
display: flex;
align-items: center;
gap: 8px;
.item-img {
width: 36px;
height: 36px;
border: 2px solid #6b6b6b;
border-radius: 4px;
object-fit: cover;
cursor: pointer;
}
.race-name {
flex: 1;
font-family: "Cinzel", serif;
font-size: 12px;
font-weight: bold;
color: #2c2c2c;
text-align: center;
}
.controls {
display: flex;
gap: 6px;
a {
color: #6b6b6b;
cursor: pointer;
transition: color 0.2s;
&:hover {
color: #2c2c2c;
}
i {
font-size: 14px;
}
}
}
}
.no-race {
text-align: center;
font-family: "Crimson Text", serif;
font-size: 13px;
color: #6b6b6b;
font-style: italic;
padding: 10px;
}
input {
width: 100%;
background: transparent;
border: none;
font-family: "Cinzel", serif;
font-size: 14px;
text-align: center;
}
}
}
.classes-section {
display: flex;
flex-direction: column;
gap: 12px;
.class-box {
padding: 10px;
background: rgba(255, 255, 255, 0.5);
border: 3px solid #6b6b6b;
border-radius: 8px;
.class-label {
font-family: "Cinzel", serif;
font-size: 11px;
color: #6b6b6b;
text-align: center;
margin-bottom: 5px;
}
.class-content {
.class-item {
display: flex;
align-items: center;
gap: 8px;
.item-img {
width: 32px;
height: 32px;
border: 2px solid #6b6b6b;
border-radius: 4px;
object-fit: cover;
cursor: pointer;
}
.class-name {
flex: 1;
font-family: "Cinzel", serif;
font-size: 11px;
font-weight: bold;
color: #2c2c2c;
text-align: center;
}
.controls {
display: flex;
gap: 6px;
a {
color: #6b6b6b;
cursor: pointer;
transition: color 0.2s;
&:hover {
color: #2c2c2c;
}
i {
font-size: 12px;
}
}
}
}
.no-class {
text-align: center;
font-family: "Crimson Text", serif;
font-size: 11px;
color: #6b6b6b;
font-style: italic;
padding: 5px;
}
}
.class-input {
input {
width: 100%;
background: transparent;
border: none;
font-family: "Cinzel", serif;
font-size: 14px;
text-align: center;
}
}
}
}
.origin-section {
.origin-box {
padding: 15px;
background: rgba(255, 255, 255, 0.5);
border: 3px solid #6b6b6b;
border-radius: 8px;
min-height: 350px;
textarea {
width: 100%;
min-height: 320px;
background: transparent;
border: none;
font-family: "Crimson Text", serif;
font-size: 13px;
line-height: 1.6;
resize: vertical;
}
}
}
}
}
+99
View File
@@ -0,0 +1,99 @@
// Sub-attributes tab styling
.character-subattributes.tab {
.subattributes-content {
padding: 1rem;
.subattributes-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1rem;
}
.subattribute-item {
background: rgba(0, 0, 0, 0.1);
border: 1px solid var(--color-border-dark-secondary);
border-radius: 4px;
padding: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
.subattribute-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
}
.subattribute-name {
font-weight: bold;
font-size: 1.1em;
color: var(--color-text-dark-primary);
}
.subattribute-value {
input {
width: 3em;
text-align: center;
font-weight: bold;
font-size: 1.2em;
background: rgba(255, 255, 255, 0.1);
border: 1px solid var(--color-border-dark-tertiary);
border-radius: 3px;
padding: 0.25rem;
color: var(--color-text-dark-primary);
&:disabled {
opacity: 0.9;
cursor: default;
}
}
}
.subattribute-details {
display: flex;
flex-direction: column;
gap: 0.25rem;
font-size: 0.9em;
color: var(--color-text-dark-secondary);
}
.subattribute-parents {
font-style: italic;
.parent-char {
display: inline-block;
margin-right: 0.5rem;
.parent-name {
font-weight: 600;
color: var(--color-text-dark-primary);
}
.parent-value {
color: var(--color-text-dark-secondary);
}
}
}
.subattribute-description {
padding-top: 0.25rem;
border-top: 1px solid var(--color-border-dark-tertiary);
font-size: 0.85em;
line-height: 1.3;
}
}
}
}
// Responsive adjustments
@media (max-width: 768px) {
.character-subattributes.tab {
.subattributes-content {
.subattributes-list {
grid-template-columns: 1fr;
}
}
}
}
+168 -21
View File
@@ -263,52 +263,199 @@
}
.skills {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 4px;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
.skill {
display: flex;
align-items: center;
gap: 4px;
.item-img {
width: 24px;
height: 24px;
gap: 8px;
padding: 6px 10px;
background: rgba(255, 255, 255, 0.3);
border: 2px solid #6b6b6b;
border-radius: 6px;
transition: all 0.2s;
&:hover {
background: rgba(255, 255, 255, 0.5);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
&.is-core-skill {
background: rgba(255, 235, 180, 0.4);
border-color: #d4a017;
&:hover {
background: rgba(255, 235, 180, 0.6);
}
}
.item-img {
width: 32px;
height: 32px;
border: 2px solid #6b6b6b;
border-radius: 4px;
object-fit: cover;
flex-shrink: 0;
}
.name {
min-width: 12rem;
flex: 1;
min-width: 0;
a {
font-family: "Cinzel", serif;
font-size: 14px;
font-weight: 600;
color: #2c2c2c;
i {
margin-right: 6px;
color: #6b6b6b;
}
&:hover {
color: #000;
}
}
}
.score {
font-family: "Cinzel", serif;
font-size: 16px;
font-weight: bold;
color: #2c2c2c;
min-width: 50px;
text-align: center;
.advanced-icon {
color: #d4a017;
font-size: 18px;
margin-left: 4px;
}
}
.controls {
display: flex;
gap: 8px;
flex-shrink: 0;
a {
color: #6b6b6b;
font-size: 14px;
transition: color 0.2s;
&:hover {
color: #2c2c2c;
}
}
}
}
}
.racial-abilities {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 4px;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
.racial-ability {
display: flex;
align-items: center;
gap: 4px;
.item-img {
width: 24px;
height: 24px;
gap: 8px;
padding: 6px 10px;
background: rgba(200, 255, 200, 0.2);
border: 2px solid #6b9b6b;
border-radius: 6px;
transition: all 0.2s;
&:hover {
background: rgba(200, 255, 200, 0.4);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.item-img {
width: 32px;
height: 32px;
border: 2px solid #6b9b6b;
border-radius: 4px;
object-fit: cover;
flex-shrink: 0;
}
.name {
min-width: 12rem;
flex: 1;
min-width: 0;
font-family: "Cinzel", serif;
font-size: 14px;
font-weight: 600;
color: #2c2c2c;
}
.controls {
display: flex;
gap: 8px;
flex-shrink: 0;
a {
color: #6b9b6b;
font-size: 14px;
transition: color 0.2s;
&:hover {
color: #3c6b3c;
}
}
}
}
}
.vulnerabilities {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 4px;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
.vulnerability {
display: flex;
align-items: center;
gap: 4px;
.item-img {
width: 24px;
height: 24px;
gap: 8px;
padding: 6px 10px;
background: rgba(255, 200, 200, 0.2);
border: 2px solid #9b6b6b;
border-radius: 6px;
transition: all 0.2s;
&:hover {
background: rgba(255, 200, 200, 0.4);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.item-img {
width: 32px;
height: 32px;
border: 2px solid #9b6b6b;
border-radius: 4px;
object-fit: cover;
flex-shrink: 0;
}
.name {
min-width: 12rem;
flex: 1;
min-width: 0;
font-family: "Cinzel", serif;
font-size: 14px;
font-weight: 600;
color: #2c2c2c;
}
.controls {
display: flex;
gap: 8px;
flex-shrink: 0;
a {
color: #9b6b6b;
font-size: 14px;
transition: color 0.2s;
&:hover {
color: #6b3c3c;
}
}
}
}
}
+2
View File
@@ -4,6 +4,8 @@
.prismrpg {
@import "mixins.less";
@import "character.less";
@import "character-main-v2.less";
@import "character-subattributes.less";
@import "monster.less";
@import "skill.less";
@import "racial-ability.less";