shit is visible

This commit is contained in:
Byroks committed 2026-10-16 18:05:58 +02:00
1 parent 2fa131d2c5
commit 19da492843
7 files changed
+112 -122

No files matched your search

+2 -2
View File
@@ -4,8 +4,8 @@
"private": true,
"type": "module",
"scripts": {
"dev": "vite build --watch",
"build": "vite build",
"build": "sass src/styles/M6.scss dist/M6.css --style=expanded --no-source-map",
"watch": "sass src/styles/M6.scss dist/M6.css --style=expanded --source-map --watch",
"typecheck": "tsc --noEmit",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
+2
View File
@@ -0,0 +1,2 @@
<!-- License: CC Attribution. Made by game-icons.net: https://game-icons.net/ -->
<svg width="512px" height="512px" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="#000" d="M23.05 23.05V488.9H488.9V23.05H23.05z"/></svg>

After

Width:  |  Height:  |  Size: 240 B

+4 -4
View File
@@ -54,15 +54,15 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
/** @inheritdoc */
static PARTS = {
tabs: {
template: systemPath("templates/actor/nav.hbs")
},
header: {
template: systemPath("templates/actor/header.hbs")
},
stats: {
template: systemPath("templates/actor/stats.hbs")
},
tabs: {
template: "templates/generic/tab-navigation.hbs"
},
properties: {
template: systemPath("templates/shared/properties.hbs"),
scrollable: [""]
@@ -111,6 +111,7 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
/** @inheritdoc */
async _preparePartContext(partId, context) {
console.warn(context);
switch (partId) {
case "stats":
context.fields = await this._getResources();
@@ -198,7 +199,6 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
fieldSets.push({ outer: { field, value: foundry.utils.getProperty(source, path) } });
}
}
console.warn(fieldSets);
return fieldSets;
}
+81 -9
View File
@@ -4,9 +4,13 @@
--M6-background-white: #fdfeff;
--M6-text-grey: #595d5f;
--M6-text-brown: #be7742;
--mask-square: url("src/assets/svg/plain-square.svg");
}
.application.sheet.M6 {
background-color: var(--M6-background-grey);
.application {
overflow: visible;
}
.application.sheet.M6.actor.character {
background-color: var(--M6-background-white);
color: var(--M6-text-grey);
section {
@@ -14,9 +18,9 @@
margin-top: 8px;
img {
position: absolute;
top: 8px;
left: 44%;
background-color: var(--M6-background-grey);
top: 24px;
left: calc(50% - 50px);
background-color: var(--M6-background-white);
&:hover {
cursor: pointer;
}
@@ -27,6 +31,15 @@
border: none;
}
}
div {
padding: 8px;
background-color: var(--M6-background-grey);
}
}
&.window-content {
backdrop-filter: blur(0rem);
overflow: visible;
min-height: 0;
}
}
input {
@@ -37,6 +50,7 @@
max-width: 2rem;
text-align: center;
margin-left: 0.5rem;
height: 24px;
}
&.attribut {
max-width: 2rem;
@@ -55,16 +69,73 @@
}
}
fieldset {
background-color: var(--M6-background-brown);
background-color: var(--M6-background-grey);
legend {
color: var(--M6-text-brown);
font-size: 24px;
}
gap: 0px;
}
.tabs {
background-color: var(--M6-background-grey);
.sheet-stack {
display: flex;
flex-direction: column;
align-items: center;
color: var(--M6-text-grey);
div {
.container {
position: relative;
text-align: center;
}
&.active {
width: 38px;
height: 36px;
text-shadow: 0 0 10px var(--M6-text-brown);
}
&.background {
position: absolute;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
mask: var(--mask-square) no-repeat center;
background-color: var(--M6-background-grey);
}
&.border {
position: absolute;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
background-color: var(--M6-background-grey);
mask: var(--mask-square) no-repeat center;
}
span {
&.value {
position: relative;
font-family: var(--cosmere-font-header);
font-weight: 600;
color: var(--M6-text-brown);
z-index: 1;
}
}
}
}
border: none;
position: absolute;
flex-direction: column;
align-items: flex-start;
gap: 0.625rem;
left: calc(100% + 3px);
top: 20%;
}
.sheet-header {
img {
border-radius: 0 0 50% 50%;
border: solid 16px var(--M6-background-grey);
border: solid 8px var(--M6-background-grey);
border-top: none;
flex: 0 0 100px;
object-fit: fill;
@@ -138,7 +209,7 @@
}
.application.dialog {
background-color: var(--M6-background-grey);
background-color: var(--M6-background-white);
color: var(--M6-text-grey);
section {
@@ -172,9 +243,10 @@
}
}
fieldset {
background-color: var(--M6-background-brown);
background-color: var(--M6-background-grey);
legend {
color: var(--M6-text-brown);
font-size: 20px;
}
}
i {
+19
View File
@@ -0,0 +1,19 @@
<nav class="tabs" data-application-part="navigation" style="">
{{#each tabs}}
<a
class="sheet-stack"
data-tab="{{id}}"
data-group="primary"
data-action="tab"
data-tooltip="{{localize label}}"
>
<div class="container">
<div class="background"></div>
<div class="border"></div>
<span class="value">
<i class="fa-solid fa-feather-pointed"></i>
</span>
</div>
</a>
{{/each}}
</nav>
-103
View File
@@ -1,103 +0,0 @@
.application.sheet.M6.actor.character {
background-color: red;
section {
> .sheet-header {
}
}
}
input {
color: green;
background-color: green;
}
.application.sheet.M6 {
max-height: 90%;
&.actor,
&.item {
.window-content {
padding-top: 0;
}
}
.sheet-header {
background-color: red;
color: red;
img {
border: none;
flex: 0 0 100px;
object-fit: contain;
}
input[name="name"] {
height: 2.5em;
font-size: 2rem;
}
}
.tab {
height: 100%;
padding-top: 10px;
}
.tab[data-tab="items"] {
ul {
list-style: none;
padding-left: 5px;
}
.itemHeader {
border-bottom: 1px solid var(--color-border-light-primary);
.type-label {
font-size: 20px;
}
.document-controls {
flex: 0 0 100px;
}
}
.item {
img {
border: none;
flex: 0 0 30px;
padding-right: 5px;
}
.document-controls {
flex: 0 0 50px;
}
}
}
.tab[data-tab="effects"] {
ul {
list-style: none;
padding-left: 5px;
margin-top: 0;
margin-bottom: 0;
}
.effects-header {
font-size: 16px;
border-bottom: 1px solid var(--color-border-light-primary);
.document-controls {
flex: 0 0 100px;
}
}
.effect {
.effect-label {
img {
border: none;
flex: 0 0 30px;
padding-right: 5px;
}
.effect-name {
line-height: 24px;
}
}
.effect-duration {
flex: 0 0 130px;
}
.document-controls {
flex: 0 0 80px;
}
}
.effect-label {
flex: 2;
}
}
}
+4 -4
View File
@@ -8,12 +8,12 @@
"authors": [
{
"name": "Byroks",
"url": "https://git.byroks.com",
"url": "https://git.byroks.de",
"flags": {}
}
],
"esmodules": ["dist/system.mjs"],
"styles": ["dist/style.css", "M6.css"],
"styles": ["dist/M6.css"],
"languages": [
{
"lang": "de",
@@ -48,8 +48,8 @@
},
"flags": {
"hotReload": {
"extensions": ["css", "html", "hbs", "json"],
"paths": ["M6.css", "templates", "lang"]
"extensions": ["scss", "html", "hbs", "json"],
"paths": ["src/styles/M6.scss", "templates", "lang", "src"]
}
}
}