Avancement feuille de personnage

Avancement feuille d'items
Ajout des données JSON pour génération des compendiums.
This commit is contained in:
ZigmundKreud
2021-11-07 20:23:02 +01:00
parent 2c8d040881
commit 5d40642726
51 changed files with 3799 additions and 736 deletions

View File

@@ -1,6 +1,7 @@
@import "flex";
@import "forms";
@import "typography";
@import "global/flex";
@import "global/forms";
@import "global/typography";
@import "global/item-list";
@logo-width: 190px;
@logo-height: 115px;
@@ -14,336 +15,16 @@
.bol {
&.sheet {
@import 'components/common';
&.actor {
.window-content {
background-color: white;
background-image: url("/systems/bol/ui/logo.webp");
background-repeat: no-repeat;
background-size: @logo-width @logo-height;
height: 100%;
padding: 5px;
overflow-y: hidden;
form {
height: 100%;
.sheet-header {
//background-color: red;
background-image: url("/systems/bol/ui/banner.webp");
background-repeat: no-repeat;
background-size: @deco-width @deco-height;
background-position-y: -15px;
background-position-x: right;
//padding-left: @logo-width;
//padding-top: @deco-height;
height: @logo-height;
min-height: @logo-height;
max-height: @logo-height;
overflow: hidden;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items:flex-end;
padding-bottom: 10px;
.header-field {
//background-color: pink;
//border:1px solid black;
.header-field-group {
overflow: hidden;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items:baseline;
.header-field-label {
margin-right: 5px;
}
.charname,
.header-field-value{
color: @colorOlive;
font-family: 'Contrail One', cursive;
font-size: 1.5rem;
background-color: #EEE;
}
//.charname {
////color: @colorOlive;
//font-family: Wolfsbane2Expanded;
//height: 50px;
//padding: 0px;
//margin: -10px 0 10px 0;
//color: @colorOlive;
//font-family: Wolfsbane2Expanded;
//font-family: 'Contrail One', cursive;
//font-size: 1.5rem;
//background-color: #EEE;
//width: 100%;
//height: 100%;
//margin: 0;
//}
}
}
}
.sidebar {
//background-color: green;
//background-color: red;
padding-top: @logo-height;
min-width: @sidebar-width;
width: @sidebar-width;
max-width: @sidebar-width;
.profile-img {
cursor: pointer;
border: none;
background-color: #EEE;
height: auto;
width: calc(@sidebar-width - 10px);
min-width: calc(@sidebar-width - 10px);
max-width: calc(@sidebar-width - 10px);
margin-right: 10px;
}
}
.main {
//background-color: blue;
//background-image: url("/systems/bol/ui/border.webp");
//background-repeat: no-repeat;
////background-size: 40px 40px;
//background-position: top left;
/* Sheet Tabs */
.tabs {
flex: 0 0 40px;
background-color: black;
.item {
line-height: 40px;
font-weight: bold;
font-family: CCMeanwhile;
color: white;
font-size: 14px;
}
.item.active {
text-decoration: underline;
text-shadow: none;
}
}
.sheet-body {
overflow: hidden;
.tab {
height: 100%;
overflow-y: auto;
/* Items List */
.items-list {
list-style: none;
margin: 7px 0;
padding: 0;
overflow-y: auto;
.item {
min-height: 30px;
line-height: 24px;
padding: 3px 0 3px 3px;
border-bottom: 1px solid #BBB;
align-items: stretch;
img {
flex: 0 0 30px;
margin-right: 5px;
}
.item-image {
margin: 0;
}
.item-name {
margin: 0;
}
.item-controls {
flex: 0 0 36px;
}
.item-buttons {
display: flex;
flex-wrap: wrap;
flex-direction: row;
align-items: center;
flex: 2;
justify-content: flex-start;
}
.item-button {
line-height: 1;
font-size: 11px;
flex: none;
width: auto;
}
}
.item-header {
//background-color: black;
//color: white;
font-family: CCMeanwhile;
//font-size: 1.2rem;
//.item-image {
// font-family: Wolfsbane2;
// font-size: 1.5rem;
//}
}
}
.attribute {
&.vigor {
background-image: url("/systems/bol/ui/attributes/vigor.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: @attributes-width @attributes-height;
}
&.agility {
background-image: url("/systems/bol/ui/attributes/agility.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: @attributes-width @attributes-height;
}
&.mind {
background-image: url("/systems/bol/ui/attributes/mind.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: @attributes-width @attributes-height;
}
&.appeal {
background-image: url("/systems/bol/ui/attributes/appeal.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: @attributes-width @attributes-height;
}
.stat-value {
margin-top:-10px;
}
}
&.description {
.editor, .editor-content {
background-color: red;
height: 100%;
}
}
}
}
}
}
}
.stat-value {
font-size: 1.5rem;
font-weight: bold;
color: darkred;
}
.stat-roll {
font-size: 1.5rem;
}
.header-field-label,
.stat-label {
font-weight: bold;
font-family: Wolfsbane2Expanded;
font-size: 2rem;
font-variant: small-caps;
}
.rounded {
//border : 2px solid black;
border-radius: 100px;
width: 4rem;
height: 4rem;
}
.rounded-border {
border: 3px solid @colorOlive;
border-radius: 100px;
width: 4rem;
height: 4rem;
}
.half-rounded {
border-radius: 100px 100px 0px 0px;
width: 4rem;
height: 4rem;
}
.half-rounded-border {
border-radius: 100px 100px 0px 0px;
border: 3px solid @colorOlive;
width: 4rem;
height: 4rem;
}
.bol-footer {
height: @deco-height;
max-height: @deco-height;
min-height: @deco-height;
.footer-left {
img {
border: none;
height: @deco-height;
max-height: @deco-height;
min-height: @deco-height;
transform: scaleX(-1);
}
}
.footer-center {
margin-top: 20px;
margin-left: calc(-@deco-width * 2);
margin-right: calc(-@deco-width * 2);
height: @footer-height;
max-height: @footer-height;
min-height: @footer-height;
background-color: black;
}
.footer-right {
text-align: right;
img {
border: none;
height: @deco-height;
max-height: @deco-height;
min-height: @deco-height;
}
}
}
min-width: 760px;
@import 'components/actor';
min-width: 820px;
min-height: 700px;
max-height: 700px;
height: 700px;
}
&.item {
.window-content {
form {
height: 100%;
}
}
@import 'components/item';
//background-color: white;
min-width: 460px;
min-height: 400px;
}

View File

@@ -0,0 +1,156 @@
.window-content {
background-image: url("/systems/bol/ui/logo.webp");
background-repeat: no-repeat;
background-size: @logo-width @logo-height;
form {
.sidebar {
//background-color: green;
//background-color: red;
padding-top: @logo-height;
min-width: @sidebar-width;
width: @sidebar-width;
max-width: @sidebar-width;
.profile-img {
cursor: pointer;
border: none;
background-color: #EEE;
height: auto;
width: calc(@sidebar-width - 10px);
min-width: calc(@sidebar-width - 10px);
max-width: calc(@sidebar-width - 10px);
margin-right: 10px;
}
}
.main {
.sheet-body {
overflow: hidden;
.tab {
height: 100%;
overflow-y: auto;
.attribute {
&.vigor {
background-image: url("/systems/bol/ui/attributes/vigor.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: @attributes-width @attributes-height;
}
&.agility {
background-image: url("/systems/bol/ui/attributes/agility.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: @attributes-width @attributes-height;
}
&.mind {
background-image: url("/systems/bol/ui/attributes/mind.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: @attributes-width @attributes-height;
}
&.appeal {
background-image: url("/systems/bol/ui/attributes/appeal.webp");
background-repeat: no-repeat;
background-position: center center;
background-size: @attributes-width @attributes-height;
}
.stat-value {
margin-top: -10px;
}
}
}
}
}
}
}
.bol-footer {
height: @deco-height;
max-height: @deco-height;
min-height: @deco-height;
.footer-left {
img {
border: none;
height: @deco-height;
max-height: @deco-height;
min-height: @deco-height;
transform: scaleX(-1);
}
}
.footer-center {
margin-top: 20px;
margin-left: calc(-@deco-width * 2);
margin-right: calc(-@deco-width * 2);
height: @footer-height;
max-height: @footer-height;
min-height: @footer-height;
background-color: black;
}
.footer-right {
text-align: right;
img {
border: none;
height: @deco-height;
max-height: @deco-height;
min-height: @deco-height;
}
}
}
.stat-max {
font-size: 1rem;
font-weight: bold;
color: @colorOlive;
}
.stat-value {
font-size: 1.5rem;
font-weight: bold;
color: darkred;
}
.stat-roll {
font-size: 1.5rem;
}
.header-field-label,
.stat-label {
font-weight: bold;
font-family: @font-tertiary;
font-size: 2rem;
font-variant: small-caps;
}
.rounded {
border-radius: 100px;
width: 4rem;
height: 4rem;
}
.rounded-border {
border: 3px solid @colorOlive;
border-radius: 100px;
width: 4rem;
height: 4rem;
}
.half-rounded {
border-radius: 100px 100px 0px 0px;
width: 4rem;
height: 4rem;
}
.half-rounded-border {
border-radius: 100px 100px 0px 0px;
border: 3px solid @colorOlive;
width: 4rem;
height: 4rem;
}

View File

@@ -0,0 +1,90 @@
.window-content {
background: white;
height: 100%;
padding: 5px;
overflow-y: hidden;
form {
height: 100%;
.sheet-header {
//background-color: red;
background-image: url("/systems/bol/ui/banner.webp");
background-repeat: no-repeat;
background-size: @deco-width @deco-height;
background-position-y: -15px;
background-position-x: right;
height: @logo-height;
min-height: @logo-height;
max-height: @logo-height;
overflow: hidden;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: flex-end;
padding-bottom: 10px;
.header-field {
.header-field-group {
overflow: hidden;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: baseline;
.header-field-label {
margin-right: 5px;
}
.charname,
.itemname,
.header-field-value {
color: @colorOlive;
font-family: @font-secondary;
font-size: 1.5rem;
background-color: #EEE;
}
}
}
}
.main {
/* Sheet Tabs */
.tabs {
flex: 0 0 40px;
background-color: black;
.item {
line-height: 40px;
font-weight: bold;
font-family: @font-handwrite;
color: white;
font-size: 14px;
}
.item.active {
text-decoration: underline;
text-shadow: none;
}
}
.sheet-body {
overflow: hidden;
.tab {
height: 100%;
overflow-y: auto;
/* Items List */
&.description {
.editor, .editor-content {
height: 100%;
}
}
}
}
}
}
}

View File

View File

@@ -0,0 +1,61 @@
/* Items List */
.items-list {
list-style: none;
margin: 7px 0;
padding: 0;
overflow-y: auto;
.item-header {
font-family: @font-handwrite;
}
.item {
min-height: 30px;
line-height: 24px;
padding: 3px 0 3px 3px;
border-bottom: 1px solid #BBB;
align-items: stretch;
.item-image {
flex: 0 0 30px;
margin-right: 5px;
img {
margin: 0;
border: none;
}
}
.item-name {
margin: 0;
}
.item-controls-1 {
flex: 0 0 18px;
}
.item-controls,
.item-controls-2 {
flex: 0 0 36px;
}
.item-controls-3 {
flex: 0 0 54px;
}
.item-control {
color: @colorOlive;
}
//.item-buttons {
// display: flex;
// flex-wrap: wrap;
// flex-direction: row;
// align-items: center;
// flex: 2;
// justify-content: flex-start;
//}
//.item-button {
// line-height: 1;
// font-size: 11px;
// flex: none;
// width: auto;
//}
}
}

View File

@@ -3,16 +3,6 @@
/* ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Contrail+One&display=swap');
//@font-face {
// font-family: "ImaginaryForces";
// src: url('../fonts/iforces.ttf');
//}
//@font-face {
// font-family: "OPTIFantastiK";
// src: url('../fonts/OPTIFantastiK.otf');
//}
@font-face {
font-family: "CCMeanwhile";
src: url('../fonts/ccmeanwhile-regular.ttf');
@@ -36,7 +26,7 @@
/* ----------------------------------------- */
@font-primary: 'Signika', sans-serif;
@font-secondary: 'MyriadPro', sans-serif;
@font-tertiary: "Modesto Condensed", "Palatino Linotype", serif;
@font-charname: "PermanentMarker", cursive;
@font-handwrite: "ChN1Regular", cursive;
@font-secondary: 'Contrail One', cursive;
@font-tertiary: "Wolfsbane2Expanded", serif;
@font-charname: "Wolfsbane2Expanded", cursive;
@font-handwrite: "CCMeanwhile", cursive;