Workable system, firt step

This commit is contained in:
2026-01-02 20:30:29 +01:00
parent 70d1720176
commit 8a27cef9a4
69 changed files with 6081 additions and 1767 deletions
+290 -116
View File
@@ -6,11 +6,17 @@
.sheet-tabs {
background-color: var(--color-light-1);
font-family: var(--font-title);
a {
color: var(--color-sheet-nav);
font-size: 0.9rem;
}
}
.character-main {
/*background-color: var(--color-light-1);*/
display: flex;
justify-content: center;
.character-pc {
display: flex;
@@ -18,7 +24,7 @@
flex: 1;
.character-left {
min-width: 180px;
min-width: 220px;
display: flex;
flex-direction: column;
@@ -62,15 +68,9 @@
.character-right {
display: flex;
flex-direction: column;
gap: 5px;
gap: 2px;
.character-definition {
.character-definition-pronouns {
input {
min-width: 21.2rem;
max-width: 21.2rem;
}
}
.form-group {
display: flex;
align-items: center;
@@ -97,6 +97,32 @@
margin-right: 1rem;
margin-bottom: auto;
}
.item-controls {
display: flex;
align-items: center;
gap: 0.5rem;
flex: 1;
.item-name {
flex: 1;
min-width: 0;
}
.control {
flex-shrink: 0;
cursor: pointer;
opacity: 0.7;
transition: opacity 0.2s;
&:hover {
opacity: 1;
}
i {
font-size: 0.9rem;
}
}
}
}
.character-name {
display: flex;
@@ -113,40 +139,146 @@
}
.character-pc-play {
min-width: 500px;
min-width: 660px;
}
.character-pc-edit {
min-width: 500px;
min-width: 660px;
}
.character-stats {
/*background-color: var(--color-light-1);*/
display: flex;
flex-direction: column;
gap: 5px;
gap: 2px;
flex: 1;
.stats-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.2rem;
}
.character-stat {
display: flex;
align-items: center;
.icon-stat {
width: 24px;
height: 24px;
margin-right: 4px;
justify-content: space-between;
gap: 0.2rem;
padding: 0.1rem 0.2rem;
background: rgba(0, 0, 0, 0.1);
border-radius: 0.25rem;
.stat-label {
flex: 1;
min-width: 0;
&.rollable:hover,
&.rollable:focus {
text-shadow: 0 0 8px var(--color-shadow-primary);
cursor: pointer;
}
i {
margin-right: 0.25rem;
}
}
.rollable:hover,
.rollable:focus {
text-shadow: 0 0 8px var(--color-shadow-primary);
cursor: pointer;
.stat-values {
display: flex;
align-items: center;
gap: 0.25rem;
flex-shrink: 0;
input {
width: 3rem;
text-align: center;
}
.stat-value {
width: 3rem;
text-align: center;
display: inline-block;
}
.separator {
font-weight: bold;
color: var(--color-text-dark-secondary);
}
}
.rollable {
min-width: 3.5rem;
max-width: 3.5rem;
}
}
.character-resistances {
display: flex;
flex-direction: column;
gap: 2px;
flex: 1;
.resistances-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.2rem;
}
.resistance-stat {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.2rem;
padding: 0.1rem 0.2rem;
background: rgba(0, 0, 0, 0.1);
border-radius: 0.25rem;
.stat-label {
flex: 1;
min-width: 0;
}
input {
min-width: 2.5rem;
max-width: 2.5rem;
.stat-values {
display: flex;
align-items: center;
gap: 0.2rem;
flex-shrink: 0;
input {
width: 3rem;
text-align: center;
}
.stat-value {
width: 3rem;
text-align: center;
display: inline-block;
}
.resistance-control {
cursor: pointer;
opacity: 0.8;
transition: all 0.2s ease;
padding: 0.15rem 0.35rem;
background: rgba(0, 0, 0, 0.1);
border-radius: 3px;
color: var(--color-text-dark-primary);
&:hover {
opacity: 1;
background: rgba(0, 100, 200, 0.2);
transform: scale(1.1);
}
&:active {
transform: scale(0.95);
}
i {
font-size: 0.7rem;
}
}
.separator {
font-weight: bold;
color: var(--color-text-dark-secondary);
}
}
}
}
@@ -160,16 +292,145 @@
}
}
.tab.character-status .main-div {
.tab.character-competences .main-div {
/*background-color: var(--color-light-1);*/
display: grid;
grid-template-columns: 1fr;
gap: 8px;
legend {
a {
font-size: calc(var(--font-size-standard) * 1.4);
padding-left: 5px;
}
}
.competences-group {
margin-bottom: 12px;
background: rgba(0, 0, 0, 0.03);
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 4px;
padding: 8px;
.competences-type-header {
font-weight: bold;
font-size: calc(var(--font-size-standard) * 1.1);
color: var(--color-text-dark-primary);
margin-bottom: 8px;
padding: 4px 8px;
border-left: 3px solid var(--color-border-dark-primary);
}
}
.competences {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
.competence {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 6px;
background: rgba(255, 255, 255, 0.6);
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 3px;
transition: all 0.2s ease;
&:hover {
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.item-img {
width: 28px;
height: 28px;
border-radius: 3px;
flex-shrink: 0;
}
.name {
flex: 1;
min-width: 0;
font-weight: 500;
a {
color: var(--color-text-dark-primary);
text-decoration: none;
cursor: pointer;
&:hover {
color: var(--color-text-hyperlink);
text-decoration: underline;
}
}
}
.carte {
font-size: 0.85rem;
padding: 2px 6px;
background: rgba(0, 0, 0, 0.08);
border-radius: 3px;
white-space: nowrap;
}
.niveau {
font-size: 0.85rem;
padding: 2px 6px;
background: rgba(0, 100, 200, 0.1);
color: var(--color-text-dark-primary);
border-radius: 3px;
white-space: nowrap;
font-weight: 500;
}
.controls {
display: flex;
gap: 4px;
font-size: 0.85rem;
flex-shrink: 0;
a {
padding: 2px 4px;
color: var(--color-text-dark-secondary);
cursor: pointer;
transition: color 0.2s ease;
&:hover {
color: var(--color-text-dark-primary);
}
}
}
}
}
.add-competence-section {
text-align: center;
padding: 12px;
.add-competence-button {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
background: rgba(0, 100, 200, 0.1);
border: 1px solid rgba(0, 100, 200, 0.3);
border-radius: 4px;
color: var(--color-text-dark-primary);
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
&:hover {
background: rgba(0, 100, 200, 0.2);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
i {
font-size: 1rem;
}
}
}
.mortality {
display: flex;
align-items: center;
@@ -227,53 +488,9 @@
}
}
}
.perks {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 4px;
.perk {
display: flex;
align-items: center;
gap: 4px;
margin-left: 4px;
min-width: 20rem;
max-width: 20rem;
.rollable:hover,
.rollable:focus {
text-shadow: 0 0 8px var(--color-shadow-primary);
cursor: pointer;
}
.controls {
font-size: 0.7rem;
min-width: 1.8rem;
max-width: 1.8rem;
}
.flavor {
min-width: 24rem;
max-width: 24rem;
}
.role {
min-width: 5rem;
max-width: 5rem;
}
.level {
min-width: 4rem;
max-width: 4rem;
}
.name {
min-width: 10rem;
max-width: 10rem;
}
.item-img {
width: 24px;
height: 24px;
margin: 4px 0 0 0;
}
}
}
}
.tab.character-maleficas .main-div {
.tab.character-sortileges .main-div {
/*background-color: var(--color-light-1);*/
display: grid;
grid-template-columns: 1fr;
@@ -284,7 +501,7 @@
}
}
.maleficas {
.sortileges {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4px;
@@ -322,49 +539,6 @@
}
}
}
.rituals {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 4px;
.ritual {
display: flex;
align-items: center;
gap: 4px;
min-width: 14rem;
max-width: 14rem;
.controls {
font-size: 0.7rem;
min-width: 1.8rem;
max-width: 1.8rem;
}
.ingredients {
min-width: 24rem;
max-width: 24rem;
}
.name {
min-width: 12rem;
max-width: 12rem;
}
.difficulty {
min-width: 2rem;
max-width: 2rem;
}
.threshold {
min-width: 2rem;
max-width: 2rem;
}
.limit {
min-width: 2rem;
max-width: 2rem;
}
.item-img {
width: 24px;
height: 24px;
margin: 4px 0 0 0;
}
}
}
}
.tab.character-equipment .main-div {