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, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite build --watch", "build": "sass src/styles/M6.scss dist/M6.css --style=expanded --no-source-map",
"build": "vite build", "watch": "sass src/styles/M6.scss dist/M6.css --style=expanded --source-map --watch",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"lint": "eslint .", "lint": "eslint .",
"lint:fix": "eslint . --fix", "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 */ /** @inheritdoc */
static PARTS = { static PARTS = {
tabs: {
template: systemPath("templates/actor/nav.hbs")
},
header: { header: {
template: systemPath("templates/actor/header.hbs") template: systemPath("templates/actor/header.hbs")
}, },
stats: { stats: {
template: systemPath("templates/actor/stats.hbs") template: systemPath("templates/actor/stats.hbs")
}, },
tabs: {
template: "templates/generic/tab-navigation.hbs"
},
properties: { properties: {
template: systemPath("templates/shared/properties.hbs"), template: systemPath("templates/shared/properties.hbs"),
scrollable: [""] scrollable: [""]
@@ -111,6 +111,7 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
/** @inheritdoc */ /** @inheritdoc */
async _preparePartContext(partId, context) { async _preparePartContext(partId, context) {
console.warn(context);
switch (partId) { switch (partId) {
case "stats": case "stats":
context.fields = await this._getResources(); 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) } }); fieldSets.push({ outer: { field, value: foundry.utils.getProperty(source, path) } });
} }
} }
console.warn(fieldSets);
return fieldSets; return fieldSets;
} }
+81 -9
View File
@@ -4,9 +4,13 @@
--M6-background-white: #fdfeff; --M6-background-white: #fdfeff;
--M6-text-grey: #595d5f; --M6-text-grey: #595d5f;
--M6-text-brown: #be7742; --M6-text-brown: #be7742;
--mask-square: url("src/assets/svg/plain-square.svg");
} }
.application.sheet.M6 { .application {
background-color: var(--M6-background-grey); overflow: visible;
}
.application.sheet.M6.actor.character {
background-color: var(--M6-background-white);
color: var(--M6-text-grey); color: var(--M6-text-grey);
section { section {
@@ -14,9 +18,9 @@
margin-top: 8px; margin-top: 8px;
img { img {
position: absolute; position: absolute;
top: 8px; top: 24px;
left: 44%; left: calc(50% - 50px);
background-color: var(--M6-background-grey); background-color: var(--M6-background-white);
&:hover { &:hover {
cursor: pointer; cursor: pointer;
} }
@@ -27,6 +31,15 @@
border: none; border: none;
} }
} }
div {
padding: 8px;
background-color: var(--M6-background-grey);
}
}
&.window-content {
backdrop-filter: blur(0rem);
overflow: visible;
min-height: 0;
} }
} }
input { input {
@@ -37,6 +50,7 @@
max-width: 2rem; max-width: 2rem;
text-align: center; text-align: center;
margin-left: 0.5rem; margin-left: 0.5rem;
height: 24px;
} }
&.attribut { &.attribut {
max-width: 2rem; max-width: 2rem;
@@ -55,16 +69,73 @@
} }
} }
fieldset { fieldset {
background-color: var(--M6-background-brown); background-color: var(--M6-background-grey);
legend { legend {
color: var(--M6-text-brown); 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 { .sheet-header {
img { img {
border-radius: 0 0 50% 50%; border-radius: 0 0 50% 50%;
border: solid 16px var(--M6-background-grey); border: solid 8px var(--M6-background-grey);
border-top: none; border-top: none;
flex: 0 0 100px; flex: 0 0 100px;
object-fit: fill; object-fit: fill;
@@ -138,7 +209,7 @@
} }
.application.dialog { .application.dialog {
background-color: var(--M6-background-grey); background-color: var(--M6-background-white);
color: var(--M6-text-grey); color: var(--M6-text-grey);
section { section {
@@ -172,9 +243,10 @@
} }
} }
fieldset { fieldset {
background-color: var(--M6-background-brown); background-color: var(--M6-background-grey);
legend { legend {
color: var(--M6-text-brown); color: var(--M6-text-brown);
font-size: 20px;
} }
} }
i { 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": [ "authors": [
{ {
"name": "Byroks", "name": "Byroks",
"url": "https://git.byroks.com", "url": "https://git.byroks.de",
"flags": {} "flags": {}
} }
], ],
"esmodules": ["dist/system.mjs"], "esmodules": ["dist/system.mjs"],
"styles": ["dist/style.css", "M6.css"], "styles": ["dist/M6.css"],
"languages": [ "languages": [
{ {
"lang": "de", "lang": "de",
@@ -48,8 +48,8 @@
}, },
"flags": { "flags": {
"hotReload": { "hotReload": {
"extensions": ["css", "html", "hbs", "json"], "extensions": ["scss", "html", "hbs", "json"],
"paths": ["M6.css", "templates", "lang"] "paths": ["src/styles/M6.scss", "templates", "lang", "src"]
} }
} }
} }