First PC sheet, WIP

This commit is contained in:
2025-12-20 17:20:01 +01:00
parent 189b03ca91
commit e75824cd20
19 changed files with 961 additions and 600 deletions
+60 -28
View File
@@ -5,24 +5,24 @@
margin: 0;
.character-sheet-wrapper {
background-image: url("../assets/sheet/character-bg.png");
background-image: url("../assets/ui/prism_rpg_background.webp");
background-size: cover;
background-position: center;
padding: 8px 10px;
padding: 2px 4px;
min-height: auto;
}
// Character Header with Banner
.character-header {
position: relative;
margin-bottom: 5px;
margin-bottom: 3px;
.character-name-banner {
background-image: url("../assets/sheet/banner-bg.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
height: 60px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
@@ -32,17 +32,18 @@
border: none;
text-align: center;
font-family: "Cinzel", serif;
font-size: 24px;
font-size: 20px;
font-weight: bold;
color: #2c2c2c;
width: 500px;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
padding: 2px 0;
}
}
.character-toggle-controls {
position: absolute;
top: 10px;
top: 6px;
right: 10px;
}
}
@@ -168,12 +169,14 @@
.attribute-label {
font-family: "Cinzel", serif;
font-size: 14px;
font-size: 11px;
font-weight: bold;
color: #2c2c2c;
text-transform: uppercase;
margin: 0;
min-width: 40px;
display: flex;
align-items: center;
a.rollable {
display: flex;
@@ -201,6 +204,9 @@
}
.attribute-value {
display: flex;
align-items: center;
input {
width: 45px;
height: 32px;
@@ -215,6 +221,22 @@
.attribute-save {
margin-left: auto;
display: flex;
align-items: center;
a.save-rollable {
display: contents;
cursor: pointer;
i {
margin-right: 6px;
}
&:hover input {
background: rgba(200, 220, 255, 0.8);
border-color: #4a4a4a;
}
}
input {
width: 45px;
@@ -226,6 +248,8 @@
border: 2px solid #6b6b6b;
border-radius: 4px;
color: #2c2c2c;
cursor: pointer;
transition: all 0.2s;
}
}
}
@@ -254,20 +278,28 @@
.race-section {
.race-box {
padding: 10px;
padding: 6px;
background: rgba(255, 255, 255, 0.5);
border: 3px solid #6b6b6b;
border-radius: 8px;
min-height: 60px;
border: 2px solid #6b6b6b;
border-radius: 6px;
min-height: 50px;
.race-label {
font-family: "Cinzel", serif;
font-size: 10px;
color: #6b6b6b;
text-align: center;
margin-bottom: 3px;
}
.section-title {
font-family: "Cinzel", serif;
font-size: 12px;
font-size: 11px;
font-weight: bold;
color: #2c2c2c;
text-transform: uppercase;
margin: 0 0 8px 0;
padding: 5px;
margin: 0 0 4px 0;
padding: 3px;
background: rgba(255, 255, 255, 0.6);
border: 2px solid #6b6b6b;
border-radius: 4px;
@@ -277,11 +309,11 @@
.race-item {
display: flex;
align-items: center;
gap: 8px;
gap: 6px;
.item-img {
width: 36px;
height: 36px;
width: 30px;
height: 30px;
border: 2px solid #6b6b6b;
border-radius: 4px;
object-fit: cover;
@@ -320,10 +352,10 @@
.no-race {
text-align: center;
font-family: "Crimson Text", serif;
font-size: 13px;
font-size: 11px;
color: #6b6b6b;
font-style: italic;
padding: 10px;
padding: 5px;
}
input {
@@ -340,31 +372,31 @@
.classes-section {
display: flex;
flex-direction: column;
gap: 12px;
gap: 8px;
.class-box {
padding: 10px;
padding: 6px;
background: rgba(255, 255, 255, 0.5);
border: 3px solid #6b6b6b;
border-radius: 8px;
border: 2px solid #6b6b6b;
border-radius: 6px;
.class-label {
font-family: "Cinzel", serif;
font-size: 11px;
font-size: 10px;
color: #6b6b6b;
text-align: center;
margin-bottom: 5px;
margin-bottom: 3px;
}
.class-content {
.class-item {
display: flex;
align-items: center;
gap: 8px;
gap: 6px;
.item-img {
width: 32px;
height: 32px;
width: 28px;
height: 28px;
border: 2px solid #6b6b6b;
border-radius: 4px;
object-fit: cover;
+37 -57
View File
@@ -6,82 +6,62 @@
.subattributes-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1rem;
grid-template-columns: repeat(4, 1fr);
gap: 0.5rem;
}
.subattribute-item {
background: rgba(0, 0, 0, 0.1);
border: 1px solid var(--color-border-dark-secondary);
border-radius: 4px;
padding: 0.75rem;
padding: 0.4rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
align-items: center;
gap: 0.15rem;
text-align: center;
cursor: pointer;
text-decoration: none;
.subattribute-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
gap: 0.3rem;
i.fa-dice-d20 {
font-size: 1em;
color: var(--color-text-dark-primary);
opacity: 0.7;
}
}
&:hover {
background: rgba(0, 0, 0, 0.2);
border-color: var(--color-text-light-primary);
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
.subattribute-header i.fa-dice-d20 {
opacity: 1;
color: var(--color-text-dark-primary);
}
}
.subattribute-name {
font-weight: bold;
font-size: 1.1em;
font-size: 0.75em;
color: var(--color-text-dark-primary);
line-height: 1.2;
}
.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;
font-size: 1em;
font-weight: bold;
color: var(--color-text-dark-primary);
min-width: 2em;
padding: 0.15rem 0.3rem;
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
}
}
}
@@ -92,7 +72,7 @@
.character-subattributes.tab {
.subattributes-content {
.subattributes-list {
grid-template-columns: 1fr;
grid-template-columns: repeat(3, 1fr);
}
}
}
+144 -2
View File
@@ -1,7 +1,107 @@
.character-content {
.sheet-common();
.character-sheet-common();
font-family: var(--font-primary);
font-size: calc(var(--font-size-standard) * 1);
color: var(--color-dark-1);
background-image: url("../assets/ui/prism_rpg_background.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
overflow: scroll;
nav.tabs {
background-image: url("../assets/ui/prism_rpg_background.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 2px 0;
}
nav.tabs [data-tab] {
color: #636060;
font-size: calc(var(--font-size-standard) * 1.1);
font-family: var(--font-secondary);
font-weight: bold;
padding: 3px 16px;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 4px;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
transition: all 0.2s ease;
cursor: pointer;
border: 2px solid transparent;
&:hover {
background-color: rgba(255, 255, 255, 0.7);
color: #1a1a1a;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
border-color: rgba(107, 107, 107, 0.3);
}
}
nav.tabs [data-tab].active {
color: #000000;
background-color: rgba(255, 255, 255, 0.85);
text-shadow: 1px 1px 3px rgba(255, 255, 255, 1);
border: 2px solid #6b6b6b;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
&:hover {
background-color: rgba(255, 255, 255, 0.95);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
transform: translateY(-2px);
border-color: #4a4a4a;
}
}
input:disabled,
select:disabled {
background-color: rgba(0, 0, 0, 0.2);
border-color: transparent;
color: var(--color-dark-3);
}
input,
select {
height: 1.5rem;
background-color: rgba(0, 0, 0, 0.1);
border-color: var(--color-dark-6);
color: var(--color-dark-2);
}
input[name="name"] {
height: 2.5rem;
margin-right: 4px;
font-family: var(--font-secondary);
font-size: calc(var(--font-size-standard) * 1.2);
font-weight: bold;
border: none;
}
fieldset {
margin-bottom: 4px;
border-radius: 4px;
}
.form-fields {
input,
select {
text-align: center;
font-size: calc(var(--font-size-standard) * 1);
}
select {
font-family: var(--font-secondary);
font-size: calc(var(--font-size-standard) * 1);
}
}
legend {
font-family: var(--font-secondary);
font-size: calc(var(--font-size-standard) * 1.2);
font-weight: bold;
letter-spacing: 1px;
}
.character-sheet-common();
}
.character-main {
@@ -223,6 +323,13 @@
}
.tab.character-biography .main-div {
background-image: url("../assets/ui/prism_rpg_background.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 8px 10px;
min-height: 100%;
.biodata {
display: grid;
grid-template-columns: repeat(4, 1fr);
@@ -253,6 +360,13 @@
}
.tab.character-skills .main-div {
background-image: url("../assets/ui/prism_rpg_background.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 8px 10px;
min-height: 100%;
display: grid;
grid-template-columns: 1fr;
legend {
@@ -462,6 +576,13 @@
}
.tab.character-equipment .main-div {
background-image: url("../assets/ui/prism_rpg_background.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 8px 10px;
min-height: 100%;
display: grid;
grid-template-columns: 1fr;
legend {
@@ -501,6 +622,13 @@
}
.tab.character-combat .main-div {
background-image: url("../assets/ui/prism_rpg_background.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 8px 10px;
min-height: 100%;
display: grid;
grid-template-columns: 1fr;
legend {
@@ -651,6 +779,13 @@
}
.tab.character-spells .main-div {
background-image: url("../assets/ui/prism_rpg_background.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 8px 10px;
min-height: 100%;
display: grid;
grid-template-columns: 1fr;
legend {
@@ -712,6 +847,13 @@
}
.tab.character-miracles .main-div {
background-image: url("../assets/ui/prism_rpg_background.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 8px 10px;
min-height: 100%;
display: grid;
grid-template-columns: 1fr;
legend {