DataModels + Appv2 migration : OK

This commit is contained in:
2026-02-28 21:00:06 +01:00
parent 8017bb207d
commit 1ffb8b08fc
119 changed files with 2268 additions and 384 deletions

View File

@@ -14,12 +14,13 @@
background-size: 190px 115px;
}
form {
.bol-actor-form {
.sidebar {
padding-top: 115px;
min-width: 250px;
width: 250px;
max-width: 250px;
overflow: hidden;
.profile-img {
cursor: pointer;
@@ -31,6 +32,12 @@
max-width: calc(250px - 10px);
margin-right: 10px;
}
.items-list {
width: calc(250px - 10px);
max-width: calc(250px - 10px);
margin-right: 10px;
}
}
.main {
@@ -42,33 +49,50 @@
&.vigor {
background-image: url("/systems/bol/ui/attributes/vigor.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: 64px 64px;
background-position: center 40%;
background-size: 100px 100px;
}
&.agility {
background-image: url("/systems/bol/ui/attributes/agility.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: 64px 64px;
background-position: center 40%;
background-size: 100px 100px;
}
&.mind {
background-image: url("/systems/bol/ui/attributes/mind.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: 64px 64px;
background-position: center 40%;
background-size: 100px 100px;
}
&.appeal {
background-image: url("/systems/bol/ui/attributes/appeal.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: 64px 64px;
background-position: center 40%;
background-size: 100px 100px;
}
.stat-value {
margin-top: -10px;
margin-top: -18px;
&.rounded {
background: transparent;
border: none;
box-shadow: none;
text-align: center;
line-height: 4rem;
}
}
}
.aptitude {
.stat-value {
&.rounded-border {
background: transparent;
text-align: center;
line-height: 4rem;
}
}
}
}
@@ -77,6 +101,16 @@
}
}
.resources-value {
text-align: center;
color: #4b4a44;
}
.inc-dec-btns-resource {
color: #8b0000;
&:hover { color: #4b4a44; }
}
.bol-footer {
height: 62px;
max-height: 62px;
@@ -97,7 +131,6 @@
height: 30px;
max-height: 30px;
min-height: 30px;
background-color: black;
}
.footer-right {
@@ -166,6 +199,7 @@
font-family: "Wolfsbane2Expanded", cursive;
font-size: 2rem;
font-variant: small-caps;
color: #4b4a44;
}
.rounded {

View File

@@ -21,7 +21,7 @@ body.system-bol img#logo {
overflow-y: hidden;
background: transparent;
form {
.bol-actor-form {
border: 10px solid transparent;
border-image: url("/systems/bol/ui/box-border-large.webp") 36 repeat;
border-image-outset: 1;
@@ -29,6 +29,8 @@ body.system-bol img#logo {
margin: 0;
padding: 0;
height: 100%;
position: relative;
width: 100%;
.sheet-header {
background-image: url("/systems/bol/ui/banner.webp");
@@ -56,23 +58,79 @@ body.system-bol img#logo {
justify-content: flex-start;
align-items: baseline;
.header-field-label {
margin-right: 5px;
.charname,
.itemname {
color: #4b4a44;
font-family: "Wolfsbane2Expanded", cursive;
font-size: 1.65rem;
background-color: #2a2a2a30;
border: 1px solid #4b4a44 !important;
border-radius: 0.5rem;
width: 100%;
margin-bottom: 4px;
}
.header-field-label {
margin-right: 5px;
font-size: 0.86rem;
}
.header-field-label.xp-sublabel {
font-size: 0.9rem;
color: #606060;
}
.charname,
.itemname,
.header-field-value {
color: #4b4a44;
font-family: 'Contrail One', cursive;
font-size: 1.5rem;
background-color: #EEE;
font-family: "Wolfsbane2Expanded", cursive;
font-size: 0.9rem;
background-color: #2a2a2a30;
border: 1px solid #4b4a44 !important;
border-radius: 0.5rem;
text-align: center;
}
}
}
.header-buttons {
align-self: flex-end;
padding-bottom: 10px;
.post-item {
flex: 0 0 auto;
height: 32px;
width: 32px;
line-height: 30px;
cursor: pointer;
background: rgba(0, 0, 0, 0.1);
border: 1px solid #999;
border-radius: 3px;
&:hover {
background: rgba(0, 0, 0, 0.2);
}
}
}
}
.wrap {
flex: 1;
min-height: 0;
align-items: stretch;
}
.bol-actor-sidebar {
align-self: flex-start;
}
.main {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
height: 100%;
overflow: hidden;
.tabs {
flex: 0 0 30px;
background-color: black;
@@ -93,17 +151,49 @@ body.system-bol img#logo {
}
.sheet-body {
flex: 1;
min-height: 0;
overflow: hidden;
.tab {
height: 95%;
height: 100%;
border: none;
overflow-y: auto;
display: none;
&.active {
display: block;
}
&.stats {
hr {
margin-top: 6px;
margin-bottom: 6px;
}
}
&.description {
.editor,
.editor-content {
.editor-content,
prose-mirror {
height: 100%;
color: #191813;
}
prose-mirror .editor-content,
prose-mirror p,
prose-mirror div,
prose-mirror span {
color: #191813 !important;
}
input[type="text"],
input[type="number"] {
background-color: #2a2a2a30;
border: 1px solid #4b4a44 !important;
border-radius: 0.5rem;
color: #4b4a44;
text-align: center;
font-size: 0.95rem;
margin-left: 6px;
}
}
}

View File

@@ -6,30 +6,248 @@
min-width: 460px;
min-height: 400px;
.window-content {
background: transparent !important;
color: #191813 !important;
padding: 10px;
overflow: hidden;
// Inner div — mirrors the AppV1 <form> with box-border-large decoration
.bol.sheet.item {
border: 10px solid transparent;
border-image: url("/systems/bol/ui/box-border-large.webp") 36 repeat;
border-image-outset: 1;
background: white !important;
color: #191813 !important;
margin: 0;
padding: 0;
height: 100%;
position: relative;
width: 100%;
display: flex;
flex-direction: column;
.wrap {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
.main {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
.sheet-body {
flex: 1;
min-height: 0;
overflow: hidden;
.tab {
display: none;
&.active {
display: block;
height: 100%;
overflow-y: auto;
}
&.properties {
padding: 5px 8px;
}
}
}
}
}
}
}
.window-content .bol.sheet.item .sheet-header {
background-image: url("/systems/bol/ui/banner.webp");
background-size: 330px 62px;
background-position: 100% -15px;
background-repeat: no-repeat;
height: 115px;
min-height: 115px;
display: flex;
align-items: flex-end;
padding-bottom: 10px;
img.profile-img {
cursor: pointer;
border: none;
background-color: lightgray;
box-shadow: 5px 5px 5px black;
width: 96px;
height: 96px;
min-width: 96px;
min-height: 96px;
max-width: 96px;
max-height: 96px;
margin-right: 10px;
object-fit: cover;
}
.header-buttons {
align-self: flex-end;
padding-bottom: 10px;
.post-item {
color: #4b4a44;
background: rgba(0, 0, 0, 0.1);
border: 1px solid #999;
border-radius: 3px;
height: 32px;
width: 32px;
line-height: 30px;
cursor: pointer;
&:hover {
color: #191813;
background: rgba(0, 0, 0, 0.2);
}
}
}
}
.window-content .bol.sheet.item .tabs {
height: 44px;
background-color: black;
display: flex;
flex-shrink: 0;
a.item {
line-height: 44px;
font-weight: bold;
font-family: "CCMeanwhile", cursive;
color: white;
font-size: 0.9em;
&.active {
text-decoration: underline;
text-shadow: none;
}
}
}
.window-content .bol.sheet.item .sheet-body {
.tab.description.active {
color: #191813;
display: block;
overflow: auto;
.editor,
.editor-content,
.prosemirror,
.prosemirror p,
.prosemirror div,
.prosemirror span,
.prosemirror h1,
.prosemirror h2,
.prosemirror h3,
.prosemirror h4,
.form-group:has(.prosemirror),
.form-group:has(.editor) {
color: #191813 !important;
}
}
.tab.properties {
label,
.form-group label,
select,
input[type="text"],
input[type="number"] {
color: #191813;
}
}
}
h1 input.itemname {
margin-top: 32px;
min-width: 24rem;
margin-top: 0;
min-width: 26.4rem;
font-family: "Wolfsbane2Expanded", cursive;
text-shadow: 3px 3px 5px #333;
}
// Normalize inputs and selects in item sheets
.window-content .bol.sheet.item {
.form-group {
display: flex;
flex-direction: row;
align-items: center;
margin: 3px 0;
label {
flex: 0 0 40%;
color: #191813;
font-weight: bold;
}
input[type="checkbox"] {
flex: 0 0 auto;
width: 16px;
height: 16px;
margin: 0;
position: static;
top: auto;
cursor: pointer;
}
input[type="text"],
input[type="number"],
select,
.form-fields {
flex: 1;
}
}
label.checkbox {
display: flex;
flex-direction: row;
align-items: center;
gap: 6px;
color: #191813;
> input[type="checkbox"] {
position: static;
top: auto;
margin: 0;
flex: 0 0 auto;
}
}
input[type="text"],
input[type="number"],
input[type="text"]:hover,
input[type="number"]:hover,
input[type="text"]:focus,
input[type="number"]:focus,
select {
color: #191813;
background-color: #f0efe8;
border: 1px solid #999;
border-radius: 2px;
padding: 1px 4px;
}
select option {
background-color: #f0efe8;
color: #191813;
}
}
.item-properties {
flex: 0 0 150px;
margin: 5px 5px 5px 0;
padding-right: 5px;
border-right: 1px groove #eeede0;
.form-group {
margin: 0;
label {
line-height: 20px;
}
}
margin: 5px 0;
padding-bottom: 5px;
border-bottom: 1px groove #eeede0;
.properties-list {
list-style: none;
margin: 0;
padding: 0;
display: block;
li {
margin: 3px 0;