From 4fcb16dee083a9823d83668660a81f127470325b Mon Sep 17 00:00:00 2001 From: miscoined Date: Sun, 7 Jul 2024 02:45:57 +1000 Subject: [PATCH 01/13] fix: Fix stringifier incorrectly matching some links The previous regex would match the following: ``` abilityMods: [4, 2, 3, -3, 1, -1] resistances: "[Some Link](note.md)" ``` So that that the first group (the link text) would match: ``` 4, 2, 3, -3, 1, -1]\n resistances: "[Some Link ``` and the second group (the path) would match: ``` note.md ``` This commit changes the regex so that it doesn't falsely match in these cases and instead just matches the actual markdown link. --- src/parser/stringifier.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/stringifier.ts b/src/parser/stringifier.ts index 31d1e3d..e614a04 100644 --- a/src/parser/stringifier.ts +++ b/src/parser/stringifier.ts @@ -32,11 +32,11 @@ export class LinkStringifier { */ static transformSource(source: string) { return source - .replace(/\[\[([\s\S]+?)\]\]/g, (_, $1) => + .replace(/\[\[([^]]+?)\]\]/g, (_, $1) => LinkStringifier.replaceWikiLink($1) ) .replace( - /\[([\s\S]*?)\]\(([\s\S]+?)\)/g, + /\[([^]]*?)\]\(([^)]+?)\)/g, (_, alias: string, path: string) => LinkStringifier.replaceMarkdownLink(path, alias) ); From 41277c014aa23357197f52993af41df6b9732774 Mon Sep 17 00:00:00 2001 From: miscoined Date: Thu, 11 Jul 2024 00:57:08 +1000 Subject: [PATCH 02/13] feat: Add new Pathfinder 2e Creature layout (#436) pf2e.css generated from the Fantasy-Statblocks-CSS-Development repo --- src/layouts/index.ts | 3 +- .../Pathfinder 2e Creature Layout.json | 1 + src/layouts/pathfinder 2e/pf2e.ts | 462 +++ src/layouts/pathfinder 2e/xCSS/pf2e.css | 2803 ++++++++++++++--- 4 files changed, 2801 insertions(+), 468 deletions(-) create mode 100644 src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json diff --git a/src/layouts/index.ts b/src/layouts/index.ts index c455115..4e77e0a 100644 --- a/src/layouts/index.ts +++ b/src/layouts/index.ts @@ -1,6 +1,6 @@ import { Layout5e } from "./basic 5e/basic5e"; import { LayoutFateCore } from "./fate core/fateCore"; -import { LayoutPF2e } from "./pathfinder 2e/pf2e"; +import { LayoutPF2e, LayoutPF2eCreature } from "./pathfinder 2e/pf2e"; import { Layout13thAgeMonster} from "./13th age/monster/13th-age-monster"; import { LayoutBnBBestiary } from "./BnB/bestiary/bnb-bestiary"; import { LayoutBnBFamiliar } from "./BnB/familiar/bnb-familiar"; @@ -16,6 +16,7 @@ export const DefaultLayouts = [ Layout5e, LayoutFateCore, LayoutPF2e, + LayoutPF2eCreature, Layout13thAgeMonster, LayoutBnBBestiary, LayoutBnBFamiliar diff --git a/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json b/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json new file mode 100644 index 0000000..fe5967a --- /dev/null +++ b/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json @@ -0,0 +1 @@ +{"blocks":[{"type":"inline","id":"e9b8483aeafa","properties":[],"nested":[{"type":"property","id":"2b596a6919fb","properties":["name"],"fallback":"-","markdown":true,"dice":false,"conditioned":true,"display":" "},{"type":"inline","id":"499aea6a9aca","properties":[],"nested":[{"type":"action","id":"8a6a7a499b78","icon":"sword","callback":"try { InitiativeTracker.newEncounter({roll: true, creatures: [monster]}); } catch(e) {}"},{"type":"action","id":"fbea380b09b9","icon":"plus-with-circle","callback":"try { InitiativeTracker.addCreatures([monster]); } catch(e) {}"}]},{"type":"property","id":"98389a48f808","properties":["level"],"fallback":"-","display":" ","conditioned":true,"markdown":true,"dice":false}],"hasRule":true},{"type":"group","id":"4b3a6809a938","properties":[],"nested":[{"type":"property","id":"0979a989583a","properties":["traits"],"fallback":"-","callback":"if (!monster.traits) return \"\";\nvar s = \"\"\nif (monster.rarity) {\n s += `- ${monster.rarity}\\n`\n}\nif (monster.alignment) {\n s += `- ${monster.alignment}\\n`\n}\nif (monster.size) {\n s += `- ${monster.size}\\n`\n}\nfor (const text of monster.traits) {\n s += `- ${text}\\n`\n}\nreturn s;","conditioned":true,"display":""}],"hasRule":true,"cls":"pf2e-traits"},{"type":"group","id":"5999ea79ca3b","properties":[],"nested":[{"type":"inline","id":"881859197838","properties":[],"nested":[{"type":"property","id":"4ad9f92ab8f8","properties":["modifier"],"fallback":"-","display":"Perception","conditioned":false,"dice":false,"diceCallback":"return [\"+\" + property, \" (\", { text: \"1d20+\" + property }, \")\"]"},{"type":"property","id":"8bd82998dadb","properties":["senses"],"fallback":"-","conditioned":true,"display":""}],"cls":"oneline","conditioned":true},{"type":"property","id":"ba28f9384918","properties":["languages"],"fallback":"-","display":"Language","conditioned":true,"markdown":true},{"type":"inline","id":"db1a38ebcb6b","properties":[],"nested":[{"type":"saves","id":"6a2b78099b0b","properties":["skills"],"fallback":"-","display":"Skills","conditioned":true,"dice":true},{"type":"property","id":"2b987aead8ab","properties":["skillsNote"],"fallback":"-","conditioned":true,"display":""}],"heading":"","cls":"oneline","conditioned":true},{"type":"table","id":"b82b0a1a9969","properties":["abilityMods"],"headers":["Str","Dex","Con","Int","Wis","Cha"],"calculate":false,"fallback":"-","conditioned":true,"dice":false},{"type":"property","id":"1b6a98ba4888","properties":["items"],"fallback":"-","display":"Items","conditioned":true},{"type":"traits","id":"e96ba9d8a80a","properties":["abilities_top"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"heading":" ","hasRule":false}],"hasRule":true},{"type":"group","id":"faaa08993a98","properties":[],"nested":[{"type":"inline","id":"3a5ab84a2b89","properties":[],"nested":[{"type":"inline","id":"cb6a7809aa2b","properties":[],"nested":[{"type":"property","id":"6b0b0bda0a7a","properties":["ac"],"fallback":"-","display":"AC"},{"type":"property","id":"0908aaab3b1b","properties":["acNote"],"fallback":"-","conditioned":true,"display":""}],"cls":"withnote","conditioned":true},{"type":"saves","id":"9999386a58ea","properties":["saves"],"fallback":"-","dice":true,"display":"","conditioned":true},{"type":"property","id":"69aa5a7b196a","properties":["savesNote"],"fallback":"-","display":"","conditioned":true}],"cls":"oneline","conditioned":true},{"type":"inline","id":"ea29d9ea5aa8","properties":[],"nested":[{"type":"inline","id":"39584be95ae9","properties":[],"nested":[{"type":"property","id":"bb6989092939","properties":["hp"],"fallback":"-","display":"HP"},{"type":"property","id":"b9fa1a89c8d9","properties":["hpNote"],"fallback":"-","doNotAddClass":false,"conditioned":true,"display":""}],"cls":"withnote","conditioned":true},{"type":"property","id":"4bbaa9380a9b","properties":["hardness"],"fallback":"-","display":"Hardness","conditioned":true},{"type":"property","id":"0a8ac8d96bba","properties":["immunities"],"fallback":"-","conditioned":true,"display":"Immunities"},{"type":"property","id":"8b7a3b89fa59","properties":["resistances"],"fallback":"-","conditioned":true,"display":"Resistances"},{"type":"property","id":"78689b6b6b79","properties":["weaknesses"],"fallback":"-","conditioned":true,"display":"Weaknesses"}],"cls":"oneline","conditioned":true},{"type":"traits","id":"ca2bf968987b","properties":["abilities_mid"],"fallback":"-","heading":"","conditioned":true,"dice":true,"markdown":true,"hasRule":false}],"hasRule":true},{"type":"group","id":"cbeabaf93b58","properties":[],"nested":[{"type":"property","id":"0b4809ba0b29","properties":["speed"],"fallback":"-","display":"Speed","conditioned":true,"markdown":true,"dice":false},{"type":"traits","id":"882bc9aa0898","properties":["attacks"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"headingProp":false,"heading":"","callback":"var s = property.bonus < 0 ? \"-\" : \"+\";\ns += Math.abs(property.bonus);\nif (property.desc) {\n s += \" \" + property.desc\n}\nif (property.damage) {\n s += \", __Damage__ \" + property.damage\n}\nreturn s"},{"type":"traits","id":"faeafb7b6b1b","properties":["spellcasting"],"fallback":"-","conditioned":true,"dice":true,"callback":"const stats = [];\nif (property.dc) {\n stats.push(`DC ${property.dc}`)\n}\nif (property.attack) {\n const sign = property.attack < 0 ? \"-\" : \"+\";\n stats.push(`attack ${sign}${Math.abs(property.attack)}`)\n}\n\nconst s = [];\nif (stats) s.push(stats.join(\", \"));\nif (property.desc) s.push(property.desc)\n\nreturn s.join(\"; \")"},{"type":"traits","id":"aacb399a3b58","properties":["abilities_bot"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"hasRule":false}],"hasRule":true},{"type":"text","id":"1b195a894b58","properties":["token"],"text":null,"fallback":"","heading":"Show to Players","conditioned":true,"markdown":true},{"type":"image","id":"1bba89582b29","properties":["token"],"fallback":"","conditioned":true,"hasRule":true},{"type":"property","id":"88e97a485b79","properties":["sourcebook"],"fallback":"-","conditioned":true,"markdown":true,"dice":false,"display":" Source:"}],"name":"Pathfinder 2e Creature Layout","id":"29280b089ad8","diceParsing":[{"regex":"(\\s|^)(\\d+d\\d+(?:\\s*[+-]\\s*\\d+)?)(\\W|$)","parser":"const [, before, text, after] = matches;\nreturn [before + text, \" (\", { text }, \")\", after];","id":"4a79397b896a","desc":"1d6+10"},{"regex":"(^|\\s)([+-]\\d+)(\\W|$)(?!status|bonus)","parser":"let [, before, bonus, after] = matches;\nreturn [\n before + bonus,\n \" (\", { text: \"1d20\" + bonus }, \")\",\n after\n];","id":"8bb8fbbb0869","desc":"+15"}]} \ No newline at end of file diff --git a/src/layouts/pathfinder 2e/pf2e.ts b/src/layouts/pathfinder 2e/pf2e.ts index 10fba92..c7bc9de 100644 --- a/src/layouts/pathfinder 2e/pf2e.ts +++ b/src/layouts/pathfinder 2e/pf2e.ts @@ -471,3 +471,465 @@ export const LayoutPF2e: DefaultLayout = { } ] }; + +export const LayoutPF2eCreature: DefaultLayout = { + blocks: [ + { + type: "inline", + id: "e9b8483aeafa", + properties: [], + nested: [ + { + type: "property", + id: "2b596a6919fb", + properties: [ + "name" + ], + fallback: "-", + markdown: true, + dice: false, + conditioned: true, + display: " " + }, + { + type: "inline", + id: "499aea6a9aca", + properties: [], + nested: [ + { + type: "action", + id: "8a6a7a499b78", + icon: "sword", + callback: "try { InitiativeTracker.newEncounter({roll: true, creatures: [monster]}); } catch(e) {}" + }, + { + type: "action", + id: "fbea380b09b9", + icon: "plus-with-circle", + callback: "try { InitiativeTracker.addCreatures([monster]); } catch(e) {}" + } + ] + }, + { + type: "property", + id: "98389a48f808", + properties: [ + "level" + ], + fallback: "-", + display: " ", + conditioned: true, + markdown: true, + dice: false + } + ], + hasRule: true + }, + { + type: "group", + id: "4b3a6809a938", + properties: [], + nested: [ + { + type: "property", + id: "0979a989583a", + properties: [ + "traits" + ], + fallback: "-", + callback: "if (!monster.traits) return \"\";\nvar s = \"\"\nif (monster.rarity) {\n s += `- ${monster.rarity}\\n`\n}\nif (monster.alignment) {\n s += `- ${monster.alignment}\\n`\n}\nif (monster.size) {\n s += `- ${monster.size}\\n`\n}\nfor (const text of monster.traits) {\n s += `- ${text}\\n`\n}\nreturn s;", + conditioned: true, + display: "" + } + ], + hasRule: true, + cls: "pf2e-traits" + }, + { + type: "group", + id: "5999ea79ca3b", + properties: [], + nested: [ + { + type: "inline", + id: "881859197838", + properties: [], + nested: [ + { + type: "property", + id: "4ad9f92ab8f8", + properties: [ + "modifier" + ], + fallback: "-", + display: "Perception", + conditioned: false, + dice: false, + diceCallback: "return [\"+\" + property, \" (\", { text: \"1d20+\" + property }, \")\"]" + }, + { + type: "property", + id: "8bd82998dadb", + properties: [ + "senses" + ], + fallback: "-", + conditioned: true, + display: "" + } + ], + cls: "oneline", + conditioned: true + }, + { + type: "property", + id: "ba28f9384918", + properties: [ + "languages" + ], + fallback: "-", + display: "Language", + conditioned: true, + markdown: true + }, + { + type: "inline", + id: "db1a38ebcb6b", + properties: [], + nested: [ + { + type: "saves", + id: "6a2b78099b0b", + properties: [ + "skills" + ], + fallback: "-", + display: "Skills", + conditioned: true, + dice: true + }, + { + type: "property", + id: "2b987aead8ab", + properties: [ + "skillsNote" + ], + fallback: "-", + conditioned: true, + display: "" + } + ], + heading: "", + cls: "oneline", + conditioned: true + }, + { + type: "table", + id: "b82b0a1a9969", + properties: [ + "abilityMods" + ], + headers: [ + "Str", + "Dex", + "Con", + "Int", + "Wis", + "Cha" + ], + calculate: false, + fallback: "-", + conditioned: true, + dice: false + }, + { + type: "property", + id: "1b6a98ba4888", + properties: [ + "items" + ], + fallback: "-", + display: "Items", + conditioned: true + }, + { + type: "traits", + id: "e96ba9d8a80a", + properties: [ + "abilities_top" + ], + fallback: "-", + conditioned: true, + dice: true, + markdown: true, + heading: " ", + hasRule: false + } + ], + hasRule: true + }, + { + type: "group", + id: "faaa08993a98", + properties: [], + nested: [ + { + type: "inline", + id: "3a5ab84a2b89", + properties: [], + nested: [ + { + type: "inline", + id: "cb6a7809aa2b", + properties: [], + nested: [ + { + type: "property", + id: "6b0b0bda0a7a", + properties: [ + "ac" + ], + fallback: "-", + display: "AC" + }, + { + type: "property", + id: "0908aaab3b1b", + properties: [ + "acNote" + ], + fallback: "-", + conditioned: true, + display: "" + } + ], + cls: "withnote", + conditioned: true + }, + { + type: "saves", + id: "9999386a58ea", + properties: [ + "saves" + ], + fallback: "-", + dice: true, + display: "", + conditioned: true + }, + { + type: "property", + id: "69aa5a7b196a", + properties: [ + "savesNote" + ], + fallback: "-", + display: "", + conditioned: true + } + ], + cls: "oneline", + conditioned: true + }, + { + type: "inline", + id: "ea29d9ea5aa8", + properties: [], + nested: [ + { + type: "inline", + id: "39584be95ae9", + properties: [], + nested: [ + { + type: "property", + id: "bb6989092939", + properties: [ + "hp" + ], + fallback: "-", + display: "HP" + }, + { + type: "property", + id: "b9fa1a89c8d9", + properties: [ + "hpNote" + ], + fallback: "-", + doNotAddClass: false, + conditioned: true, + display: "" + } + ], + cls: "withnote", + conditioned: true + }, + { + type: "property", + id: "4bbaa9380a9b", + properties: [ + "hardness" + ], + fallback: "-", + display: "Hardness", + conditioned: true + }, + { + type: "property", + id: "0a8ac8d96bba", + properties: [ + "immunities" + ], + fallback: "-", + conditioned: true, + display: "Immunities" + }, + { + type: "property", + id: "8b7a3b89fa59", + properties: [ + "resistances" + ], + fallback: "-", + conditioned: true, + display: "Resistances" + }, + { + type: "property", + id: "78689b6b6b79", + properties: [ + "weaknesses" + ], + fallback: "-", + conditioned: true, + display: "Weaknesses" + } + ], + cls: "oneline", + conditioned: true + }, + { + type: "traits", + id: "ca2bf968987b", + properties: [ + "abilities_mid" + ], + fallback: "-", + heading: "", + conditioned: true, + dice: true, + markdown: true, + hasRule: false + } + ], + hasRule: true + }, + { + type: "group", + id: "cbeabaf93b58", + properties: [], + nested: [ + { + type: "property", + id: "0b4809ba0b29", + properties: [ + "speed" + ], + fallback: "-", + display: "Speed", + conditioned: true, + markdown: true, + dice: false + }, + { + type: "traits", + id: "882bc9aa0898", + properties: [ + "attacks" + ], + fallback: "-", + conditioned: true, + dice: true, + markdown: true, + headingProp: false, + heading: "", + callback: "var s = property.bonus < 0 ? \"-\" : \"+\";\ns += Math.abs(property.bonus);\nif (property.desc) {\n s += \" \" + property.desc\n}\nif (property.damage) {\n s += \", __Damage__ \" + property.damage\n}\nreturn s" + }, + { + type: "traits", + id: "faeafb7b6b1b", + properties: [ + "spellcasting" + ], + fallback: "-", + conditioned: true, + dice: true + }, + { + type: "traits", + id: "aacb399a3b58", + properties: [ + "abilities_bot" + ], + fallback: "-", + conditioned: true, + dice: true, + markdown: true, + hasRule: false + } + ], + hasRule: true + }, + { + type: "text", + id: "1b195a894b58", + properties: [ + "token" + ], + text: null, + fallback: "", + heading: "Show to Players", + conditioned: true, + markdown: true + }, + { + type: "image", + id: "1bba89582b29", + properties: [ + "token" + ], + fallback: "", + conditioned: true, + hasRule: true + }, + { + type: "property", + id: "88e97a485b79", + properties: [ + "sourcebook" + ], + fallback: "-", + conditioned: true, + markdown: true, + dice: false, + display: " Source:" + } + ], + name: "Pathfinder 2e Creature Layout", + id: "b8ab3ae89a0a", + diceParsing: [ + { + regex: "(\\s|^)(\\d+d\\d+(?:\\s*[+-]\\s*\\d+)?)(\\W|$)", + parser: "const [, before, text, after] = matches;\nreturn [before + text, \" (\", { text }, \")\", after];", + id: "4a79397b896a", + desc: "1d6+10" + }, + { + regex: "(^|\\s)([+-]\\d+)(\\W|$)(?!status|bonus)", + parser: "let [, before, bonus, after] = matches;\nreturn [\n before + bonus,\n \" (\", { text: \"1d20\" + bonus }, \")\",\n after\n];", + id: "8bb8fbbb0869", + desc: "+15" + } + ] +} \ No newline at end of file diff --git a/src/layouts/pathfinder 2e/xCSS/pf2e.css b/src/layouts/pathfinder 2e/xCSS/pf2e.css index caa1f6f..7a57df7 100644 --- a/src/layouts/pathfinder 2e/xCSS/pf2e.css +++ b/src/layouts/pathfinder 2e/xCSS/pf2e.css @@ -1,58 +1,19 @@ -@charset "UTF-8"; /*! Pathfinder TTRPG General Statblock Layout CSS -version: 1.5.0 +version: 1.6.1 by: Moritz Jung (https://github.com/mProjectsCode) and Sigrunixia repo: https://github.com/mProjectsCode/obsidian-pathfinder2e-statblocks This file was generated from SCSS. -Looking for `!important`? Check for Rare_0X, and Trait_0X. That is the only spots they are used in this file. -*/ -/* -Pathfinder Glyphs Only and any associated classes to call those Glyphs -*/ -@font-face { - font-family: "Pathfinder"; - src: url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8xOUgAAAC8AAAAYGNtYXBWj1fJAAABHAAAAHRnYXNwAAAAEAAAAZAAAAAIZ2x5ZlORXq8AAAGYAAACYGhlYWQnahodAAAD+AAAADZoaGVhDDUIawAABDAAAAAkaG10eCWQAIcAAARUAAAAKGxvY2ECvAH8AAAEfAAAABZtYXhwAA8APwAABJQAAAAgbmFtZQQfBa8AAAS0AAAC63Bvc3QAAwAAAAAHoAAAACAAAwTLAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABAAAAIAAAAAAAAAAAAAAAAABAAAArUwPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAWAAAABIAEAADAAIAAQAgADArMis7Kz0rU//9//8AAAAAACAAMCsyKzorPStT//3//wAB/+P/1NTT1MzUy9S2AAMAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAgAoACIEHwNXADcAPAAAASYnJicmJyYHBgcGBwYHBgc2NzY3Njc2NzYXFhcWFxYXFgcGBwYHBgcGBwYnFhcWNzY3Njc2NzYBBSc3AQQdFzs8VFNlZWpLQUEzMyQkERUdHSMkKSouVVFRQ0QwMBISEBEsK0RDVRwcGxs/REVFalRUNjYVFPyNAeltOP5MAkdHOTklJQ0ODwsYGCIiKyovGhYXEhINDQcMCwsdHi4uOTo3Ny0uISAMBAECAQ4DAwoPKSg5OEVE/opnldf++wAAAAMAIP/BBmADvwAFAAkADwAACQEHCQEXAQcXNyUBBxcHFwQa/gH2AQj++Pb+vLe3twTS/kDZ6OjZAcAB//f++P749wK2t7e3CAHA2Ojo2QAAAgAC/8AD/gPAAAUACQAACQEHCQEXAQcXNwP+/gD3AQn+9/f+u7e3twHAAgD3/vf+9/cCt7e3twAEAC3/wAhzA8AABQALAA8AFQAACQEHCQEXCQEHFwcXAQcXNyUBBxcHFwQp/gD3AQn+9/cGSv6Yr7u7r/nZt7e3BNz+P9rp6doBwAIA9/73/vf3AgoBaK66u64CFre3twgBwdno6dkAAAMAEP/ABBADwAAEAAkADwAACQQBNxcHJwEnNyc3AQIU/fwB/QID/gT+uG1tbW0BN3H79XwBZwPA/fr+BgIDAf3+EG1tbW3+hHH79nz+mQAAAQAAAAEZmgtZ1jpfDzz1AAsEAAAAAADf694DAAAAAN/r3gMAAP/ACHMDwAAAAAgAAgAAAAAAAAABAAADwP/AAAAIoAAAAAAIcwABAAAAAAAAAAAAAAAAAAAACgQAAAAAAAAAAAAAAAIAAAAEAAAABFAAKAaAACAEAAACCKAALQQgABAAAAAAAAoAFAAeACgAkAC4ANQBCAEwAAAAAQAAAAoAPQAEAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAABIA3gABAAAAAAABAAoAAAABAAAAAAACAAcB2gABAAAAAAADAAoBngABAAAAAAAEAAoB7wABAAAAAAAFAAsBfQABAAAAAAAGAAoBvAABAAAAAAAKADYA2wABAAAAAAANABcAHgABAAAAAAAOACgAYwADAAEECQABABQACgADAAEECQACAA4B4QADAAEECQADABQBqAADAAEECQAEABQB+QADAAEECQAFABYBiAADAAEECQAGABQBxgADAAEECQAKAGwBEQADAAEECQANAC4ANQADAAEECQAOAFAAi1BhdGhmaW5kZXIAUABhAHQAaABmAGkAbgBkAGUAclBhaXpvIENvbW11bml0eSBMaWNlbnNlAFAAYQBpAHoAbwAgAEMAbwBtAG0AdQBuAGkAdAB5ACAATABpAGMAZQBuAHMAZWh0dHBzOi8vcGFpem8uY29tL2NvbW11bml0eS9jb21tdW5pdHl1c2UAaAB0AHQAcABzADoALwAvAHAAYQBpAHoAbwAuAGMAbwBtAC8AYwBvAG0AbQB1AG4AaQB0AHkALwBjAG8AbQBtAHUAbgBpAHQAeQB1AHMAZVBhdGhmaW5kZXIgMmUgQWN0aW9uIEdseXBocwpGb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBQAGEAdABoAGYAaQBuAGQAZQByACAAMgBlACAAQQBjAHQAaQBvAG4AIABHAGwAeQBwAGgAcwAKAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALlZlcnNpb24gMS4xAFYAZQByAHMAaQBvAG4AIAAxAC4AMVBhdGhmaW5kZXIAUABhAHQAaABmAGkAbgBkAGUAclBhdGhmaW5kZXIAUABhAHQAaABmAGkAbgBkAGUAclJlZ3VsYXIAUgBlAGcAdQBsAGEAclBhdGhmaW5kZXIAUABhAHQAaABmAGkAbgBkAGUAcgAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==") format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -[class^=glyph-], -[class*=" glyph-"] { - /* use !important to prevent issues with browser extensions that change fonts */ - font-family: "Pathfinder", serif !important; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - /* Better Font Rendering =========== */ - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.glyph-1action:before { - content: "⬻"; -} - -.glyph-2actions:before { - content: "⬺"; -} - -.glyph-3actions:before { - content: "⬽"; -} - -.glyph-free:before { - content: "⭓"; -} - -.glyph-reaction:before { - content: "⬲"; -} +Looking for `!important`? +- Check for: +Rare_0X +Trait_0X +Popover +That is the only spots they are used in this file. +*/ /*! /* @settings name: Pathfinder 2e Statblocks @@ -115,6 +76,20 @@ settings: - label: Kingmaker value: pathfinder-2e-influence-layout-theme-kingmaker + - + id: layout-theme-item + title: Item Statblock Theme + description: The theme of the item statblock + type: class-select + allowEmpty: false + default: pathfinder-2e-item-layout-theme-default + options: + - + label: Default + value: pathfinder-2e-item-layout-theme-default + - + label: Kingmaker + value: pathfinder-2e-item-layout-theme-kingmaker - id: layout-theme-misc title: Misc Statblock Theme @@ -129,6 +104,20 @@ settings: - label: Kingmaker value: pathfinder-2e-misc-layout-theme-kingmaker + - + id: layout-theme-plane + title: Plane Statblock Theme + description: The theme of the plane statblock + type: class-select + allowEmpty: false + default: pathfinder-2e-plane-layout-theme-default + options: + - + label: Default + value: pathfinder-2e-plane-layout-theme-default + - + label: Kingmaker + value: pathfinder-2e-plane-layout-theme-kingmaker - id: layout-theme-quest title: Quest Statblock Theme @@ -167,7 +156,15 @@ body.basic-pathfinder-2e-layout-theme-default .statblock.basic-pathfinder-2e-lay --statblock-color-size: rgb(75, 122, 92); --statblock-color-trait: rgb(86, 12, 6); } - +body.pathfinder-2e-creature-layout-theme-default .statblock.pathfinder-2e-creature-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(89, 98, 143); + --statblock-color-size: rgb(75, 122, 92); + --statblock-color-trait: rgb(86, 12, 6); +} body.pathfinder-2e-action-layout-theme-default .statblock.pathfinder-2e-action-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -177,7 +174,6 @@ body.pathfinder-2e-action-layout-theme-default .statblock.pathfinder-2e-action-l --statblock-color-size: rgb(75, 122, 92); --statblock-color-trait: rgb(86, 12, 6); } - body.pathfinder-2e-hazard-layout-theme-default .statblock.pathfinder-2e-hazard-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -187,7 +183,6 @@ body.pathfinder-2e-hazard-layout-theme-default .statblock.pathfinder-2e-hazard-l --statblock-color-size: rgb(75, 122, 92); --statblock-color-trait: rgb(86, 12, 6); } - body.pathfinder-2e-influence-layout-theme-default .statblock.pathfinder-2e-influence-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -197,7 +192,15 @@ body.pathfinder-2e-influence-layout-theme-default .statblock.pathfinder-2e-influ --statblock-color-size: rgb(75, 122, 92); --statblock-color-trait: rgb(86, 12, 6); } - +body.pathfinder-2e-item-layout-theme-default .statblock.pathfinder-2e-item-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(89, 98, 143); + --statblock-color-size: rgb(75, 122, 92); + --statblock-color-trait: rgb(86, 12, 6); +} body.pathfinder-2e-misc-layout-theme-default .statblock.pathfinder-2e-misc-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -207,7 +210,15 @@ body.pathfinder-2e-misc-layout-theme-default .statblock.pathfinder-2e-misc-layou --statblock-color-size: rgb(75, 122, 92); --statblock-color-trait: rgb(86, 12, 6); } - +body.pathfinder-2e-plane-layout-theme-default .statblock.pathfinder-2e-plane-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(89, 98, 143); + --statblock-color-size: rgb(75, 122, 92); + --statblock-color-trait: rgb(86, 12, 6); +} body.pathfinder-2e-quest-layout-theme-default .statblock.pathfinder-2e-quest-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -217,7 +228,6 @@ body.pathfinder-2e-quest-layout-theme-default .statblock.pathfinder-2e-quest-lay --statblock-color-size: rgb(75, 122, 92); --statblock-color-trait: rgb(86, 12, 6); } - body.pathfinder-2e-settlement-layout-theme-default .statblock.pathfinder-2e-settlement-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -227,7 +237,15 @@ body.pathfinder-2e-settlement-layout-theme-default .statblock.pathfinder-2e-sett --statblock-color-size: rgb(75, 122, 92); --statblock-color-trait: rgb(86, 12, 6); } - +body.pathfinder-2e-affliction-layout-theme-default .statblock.pathfinder-2e-affliction-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(89, 98, 143); + --statblock-color-size: rgb(75, 122, 92); + --statblock-color-trait: rgb(86, 12, 6); +} body.basic-pathfinder-2e-layout-theme-kingmaker .statblock.basic-pathfinder-2e-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -237,7 +255,15 @@ body.basic-pathfinder-2e-layout-theme-kingmaker .statblock.basic-pathfinder-2e-l --statblock-color-size: rgb(25, 66, 26); --statblock-color-trait: rgb(125, 143, 63); } - +body.pathfinder-2e-creature-layout-theme-kingmaker .statblock.pathfinder-2e-creature-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(97, 129, 157); + --statblock-color-size: rgb(25, 66, 26); + --statblock-color-trait: rgb(125, 143, 63); +} body.pathfinder-2e-action-layout-theme-kingmaker .statblock.pathfinder-2e-action-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -247,7 +273,6 @@ body.pathfinder-2e-action-layout-theme-kingmaker .statblock.pathfinder-2e-action --statblock-color-size: rgb(25, 66, 26); --statblock-color-trait: rgb(125, 143, 63); } - body.pathfinder-2e-hazard-layout-theme-kingmaker .statblock.pathfinder-2e-hazard-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -257,7 +282,6 @@ body.pathfinder-2e-hazard-layout-theme-kingmaker .statblock.pathfinder-2e-hazard --statblock-color-size: rgb(25, 66, 26); --statblock-color-trait: rgb(125, 143, 63); } - body.pathfinder-2e-influence-layout-theme-kingmaker .statblock.pathfinder-2e-influence-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -267,7 +291,15 @@ body.pathfinder-2e-influence-layout-theme-kingmaker .statblock.pathfinder-2e-inf --statblock-color-size: rgb(25, 66, 26); --statblock-color-trait: rgb(125, 143, 63); } - +body.pathfinder-2e-item-layout-theme-kingmaker .statblock.pathfinder-2e-item-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(97, 129, 157); + --statblock-color-size: rgb(25, 66, 26); + --statblock-color-trait: rgb(125, 143, 63); +} body.pathfinder-2e-misc-layout-theme-kingmaker .statblock.pathfinder-2e-misc-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -277,7 +309,15 @@ body.pathfinder-2e-misc-layout-theme-kingmaker .statblock.pathfinder-2e-misc-lay --statblock-color-size: rgb(25, 66, 26); --statblock-color-trait: rgb(125, 143, 63); } - +body.pathfinder-2e-plane-layout-theme-kingmaker .statblock.pathfinder-2e-plane-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(97, 129, 157); + --statblock-color-size: rgb(25, 66, 26); + --statblock-color-trait: rgb(125, 143, 63); +} body.pathfinder-2e-quest-layout-theme-kingmaker .statblock.pathfinder-2e-quest-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -287,7 +327,6 @@ body.pathfinder-2e-quest-layout-theme-kingmaker .statblock.pathfinder-2e-quest-l --statblock-color-size: rgb(25, 66, 26); --statblock-color-trait: rgb(125, 143, 63); } - body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-settlement-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -297,7 +336,54 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-color-size: rgb(25, 66, 26); --statblock-color-trait: rgb(125, 143, 63); } - +body.pathfinder-2e-affliction-layout-theme-kingmaker .statblock.pathfinder-2e-affliction-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(97, 129, 157); + --statblock-color-size: rgb(25, 66, 26); + --statblock-color-trait: rgb(125, 143, 63); +} +@font-face { + font-family: "Pathfinder-Actions"; + src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAANAIAAAwBQRkZUTaBf/YkAAAkkAAAAHEdERUYAJQAAAAAJDAAAABhPUy8yDzE5wAAAAVgAAABgY21hcIUPLFwAAAHcAAABcGdhc3AAAAAQAAAJBAAAAAhnbHlmv0sljgAAA2AAAAIwaGVhZCgbkG4AAADcAAAANmhoZWEMNQhqAAABFAAAACRobXR4IOUAhwAAAbgAAAAkbG9jYQGoAlQAAANMAAAAFG1heHAADgA/AAABOAAAACBuYW1l5gKtSAAABZAAAAMGcG9zdJP9aoAAAAiYAAAAbAABAAAAARmaJrDlgl8PPPUACwQAAAAAAN/r3gMAAAAA4J1UVAAA/8AIcwPAAAAACAACAAAAAAAAAAEAAAPA/8AAAAigAAAAAAhzAAEAAAAAAAAAAAAAAAAAAAAJAAEAAAAJAD0ABAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAwVCAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABAAAAIAAAAAAAAAAAAAAAAABAAAArUwPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAEEAAAAAAAAAAFVAAAAAAAABFAAKAaAACAEAAACCKAALQQgABAAAAADAAAAAwAAABwAAQAAAAAAagADAAEAAAAcAAQATgAAAAwACAACAAQAASsyKz0rU//9//8AAAAAKzIrOitT//3//wAA1NIAANS1AAAAAQAMAAAADAAAABAAAAABAAMABQAGAAAABwAAAAABBgAAAQMAAAAAAAABAgAAAAIAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAIABAAeACgALwA8AEYAAEAAAAAAAAAAAACAAA5AgABAAAAAAAAAAAAAgAAOQIAAgAoACIEMwNlADcAPAAAASYnJicmJyYHBgcGBwYHBgc2NzY3Njc2NzYXFhcWFxYXFgcGBwYHBgcGBwYnFhcWNzY3Njc2NzYBBSc3AQQdFzs8VFNlZWpLQUEzMyQkERUdHSMkKSouVVFRQ0QwMBISEBEsK0RDVRwcGxs/REVFalRUNjYVFPyNAeltOP5MAkdHOTklJQ0ODwsYGCIiKyovGhYXEhINDQcMCwsdHi4uOTo3Ny0uISAMBAECAQ4DAwoPKSg5OEVE/opnldf++wAAAAMAIP/BBmADvwAFAAkADwAACQEHCQEXAQcXNyUBBxcHFwQa/gH2AQj++Pb+vLe3twTS/kDZ6OjZAcAB//f++P749wK2t7e3CAHA2Ojo2QAAAgAC/8AD/gPAAAUACQAACQEHCQEXAQcXNwP+/gD3AQn+9/f+u7e3twHAAgD3/vf+9/cCt7e3twAEAC3/wAhzA8AABQALAA8AFQAACQEHCQEXCQEHFwcXAQcXNyUBBxcHFwQp/gD3AQn+9/cGSv6Yr7u7r/nZt7e3BNz+P9rp6doBwAIA9/73/vf3AgoBaK66u64CFre3twgBwdno6dkAAAMAEP/ABBADwAAEAAkADwAACQU3FwcnASc3JzcBAhT9/AH9AgP+BP64bW1tbQE3cfv1fAFnA8D9+v4GAgMB/f4QbW1tbf6Ecfv2fP6ZAAAAAAASAN4AAQAAAAAAAQAKABYAAQAAAAAAAgAHADEAAQAAAAAAAwAKAE8AAQAAAAAABAAKAHAAAQAAAAAABQALAJMAAQAAAAAABgAKALUAAQAAAAAACgA2AS4AAQAAAAAADQAXAZUAAQAAAAAADgAoAf8AAwABBAkAAQAUAAAAAwABBAkAAgAOACEAAwABBAkAAwAUADkAAwABBAkABAAUAFoAAwABBAkABQAWAHsAAwABBAkABgAUAJ8AAwABBAkACgBsAMAAAwABBAkADQAuAWUAAwABBAkADgBQAa0AUABhAHQAaABmAGkAbgBkAGUAcgAAUGF0aGZpbmRlcgAAUgBlAGcAdQBsAGEAcgAAUmVndWxhcgAAUABhAHQAaABmAGkAbgBkAGUAcgAAUGF0aGZpbmRlcgAAUABhAHQAaABmAGkAbgBkAGUAcgAAUGF0aGZpbmRlcgAAVgBlAHIAcwBpAG8AbgAgADEALgAxAABWZXJzaW9uIDEuMQAAUABhAHQAaABmAGkAbgBkAGUAcgAAUGF0aGZpbmRlcgAAUABhAHQAaABmAGkAbgBkAGUAcgAgADIAZQAgAEEAYwB0AGkAbwBuACAARwBsAHkAcABoAHMACgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAFBhdGhmaW5kZXIgMmUgQWN0aW9uIEdseXBocwpGb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgAAUABhAGkAegBvACAAQwBvAG0AbQB1AG4AaQB0AHkAIABMAGkAYwBlAG4AcwBlAABQYWl6byBDb21tdW5pdHkgTGljZW5zZQAAaAB0AHQAcABzADoALwAvAHAAYQBpAHoAbwAuAGMAbwBtAC8AYwBvAG0AbQB1AG4AaQB0AHkALwBjAG8AbQBtAHUAbgBpAHQAeQB1AHMAZQAAaHR0cHM6Ly9wYWl6by5jb20vY29tbXVuaXR5L2NvbW11bml0eXVzZQAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAECAAIBAwEEAQUBBgEHAQgHdW5pMDAwMAd1bmkwMDAxB3VuaTJCMzIHdW5pMkIzQQd1bmkyQjNCB3VuaTJCM0QHdW5pMkI1MwABAAH//wAPAAEAAAAMAAAAEAAAAAIAAAAEAAAAAgAAAAAAAQAAAADf1ssxAAAAAN/r3gMAAAAA4J1UVA==) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; + unicode-range: + U+2B32, + U+2B3A, + U+2B3B, + U+2B3D, + U+2B53; +} +[class^=glyph-], +[class*=" glyph-"] { + font-family: "Pathfinder-Actions", serif !important; + font-style: 400; + font-weight: 400; + font-variant: 400; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.glyph-1action:before { + content: "\2b3b"; +} +.glyph-2actions:before { + content: "\2b3a"; +} +.glyph-3actions:before { + content: "\2b3d"; +} +.glyph-free:before { + content: "\2b53"; +} +.glyph-reaction:before { + content: "\2b32"; +} .statblock.basic-pathfinder-2e-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -326,13 +412,109 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-box-shadow-blur: 1.5em; --statblock-font-color: rgb(51, 51, 51); --statblock-font-weight: 400; - --statblock-content-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-content-font-size: 13px; - --statblock-heading-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; + --statblock-heading-font-color: rgb(51, 51, 51); + --statblock-heading-font-size: 1.35em; + --statblock-heading-font-variant: small-caps; + --statblock-heading-font-weight: 700; + --statblock-heading-line-height: 1; + --statblock-property-line-height: 1.33em; + --statblock-property-font-color: rgb(51, 51, 51); + --statblock-property-name-font-color: rgb(51, 51, 51); + --statblock-property-name-font-weight: bold; + --statblock-section-heading-border-size: 1px; + --statblock-section-heading-border-color: transparent; + --statblock-section-heading-font-color: rgb(51, 51, 51); + --statblock-section-heading-font-size: 1.33em; + --statblock-section-heading-font-variant: small-caps; + --statblock-section-heading-font-weight: 400; + --statblock-saves-line-height: 1.33em; + --statblock-spells-font-style: italic; + --statblock-table-header-font-weight: bold; + --statblock-column-width: 400px; + --statblock-traits-gap: 2px; +} +.statblock.pathfinder-2e-creature-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(89, 98, 143); + --statblock-color-size: rgb(75, 122, 92); + --statblock-color-trait: rgb(86, 12, 6); + --statblock-primary-color: rgb(51, 51, 51); + --statblock-rule-color: rgb(51, 51, 51); + --statblock-background-color: rgb(246, 244, 242); + --statblock-bar-color: rgb(51, 51, 51); + --statblock-bar-border-size: 1px; + --statblock-bar-border-color: rgb(51, 51, 51); + --statblock-image-width: 75px; + --statblock-image-height: 75px; + --statblock-image-border-size: 2px; + --statblock-image-border-color: rgb(51, 51, 51); + --statblock-header-image-height: 22px; + --statblock-header-image-padding: 0 0 2px 0; + --statblock-border-size: 1px; + --statblock-border-color: rgb(51, 51, 51); + --statblock-box-shadow-color: none; + --statblock-box-shadow-x-offset: 0; + --statblock-box-shadow-y-offset: 0; + --statblock-box-shadow-blur: 1.5em; + --statblock-font-color: rgb(51, 51, 51); + --statblock-font-weight: 400; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; + --statblock-content-font-size: 13px; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-heading-font-color: rgb(51, 51, 51); --statblock-heading-font-size: 1.35em; --statblock-heading-font-variant: small-caps; @@ -354,7 +536,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-column-width: 400px; --statblock-traits-gap: 2px; } - .statblock.pathfinder-2e-action-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -383,13 +564,33 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-box-shadow-blur: 1.5em; --statblock-font-color: rgb(51, 51, 51); --statblock-font-weight: 400; - --statblock-content-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-content-font-size: 13px; - --statblock-heading-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-heading-font-color: rgb(51, 51, 51); --statblock-heading-font-size: 1.35em; --statblock-heading-font-variant: small-caps; @@ -411,7 +612,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-column-width: 400px; --statblock-traits-gap: 2px; } - .statblock.pathfinder-2e-hazard-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -440,13 +640,33 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-box-shadow-blur: 1.5em; --statblock-font-color: rgb(51, 51, 51); --statblock-font-weight: 400; - --statblock-content-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-content-font-size: 13px; - --statblock-heading-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-heading-font-color: rgb(51, 51, 51); --statblock-heading-font-size: 1.35em; --statblock-heading-font-variant: small-caps; @@ -468,7 +688,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-column-width: 400px; --statblock-traits-gap: 2px; } - .statblock.pathfinder-2e-influence-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -497,13 +716,109 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-box-shadow-blur: 1.5em; --statblock-font-color: rgb(51, 51, 51); --statblock-font-weight: 400; - --statblock-content-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-content-font-size: 13px; - --statblock-heading-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; + --statblock-heading-font-color: rgb(51, 51, 51); + --statblock-heading-font-size: 1.35em; + --statblock-heading-font-variant: small-caps; + --statblock-heading-font-weight: 700; + --statblock-heading-line-height: 1; + --statblock-property-line-height: 1.33em; + --statblock-property-font-color: rgb(51, 51, 51); + --statblock-property-name-font-color: rgb(51, 51, 51); + --statblock-property-name-font-weight: bold; + --statblock-section-heading-border-size: 1px; + --statblock-section-heading-border-color: transparent; + --statblock-section-heading-font-color: rgb(51, 51, 51); + --statblock-section-heading-font-size: 1.33em; + --statblock-section-heading-font-variant: small-caps; + --statblock-section-heading-font-weight: 400; + --statblock-saves-line-height: 1.33em; + --statblock-spells-font-style: italic; + --statblock-table-header-font-weight: bold; + --statblock-column-width: 400px; + --statblock-traits-gap: 2px; +} +.statblock.pathfinder-2e-item-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(89, 98, 143); + --statblock-color-size: rgb(75, 122, 92); + --statblock-color-trait: rgb(86, 12, 6); + --statblock-primary-color: rgb(51, 51, 51); + --statblock-rule-color: rgb(51, 51, 51); + --statblock-background-color: rgb(246, 244, 242); + --statblock-bar-color: rgb(51, 51, 51); + --statblock-bar-border-size: 1px; + --statblock-bar-border-color: rgb(51, 51, 51); + --statblock-image-width: 75px; + --statblock-image-height: 75px; + --statblock-image-border-size: 2px; + --statblock-image-border-color: rgb(51, 51, 51); + --statblock-header-image-height: 22px; + --statblock-header-image-padding: 0 0 2px 0; + --statblock-border-size: 1px; + --statblock-border-color: rgb(51, 51, 51); + --statblock-box-shadow-color: none; + --statblock-box-shadow-x-offset: 0; + --statblock-box-shadow-y-offset: 0; + --statblock-box-shadow-blur: 1.5em; + --statblock-font-color: rgb(51, 51, 51); + --statblock-font-weight: 400; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; + --statblock-content-font-size: 13px; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-heading-font-color: rgb(51, 51, 51); --statblock-heading-font-size: 1.35em; --statblock-heading-font-variant: small-caps; @@ -525,7 +840,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-column-width: 400px; --statblock-traits-gap: 2px; } - .statblock.pathfinder-2e-misc-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); @@ -554,13 +868,33 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-box-shadow-blur: 1.5em; --statblock-font-color: rgb(51, 51, 51); --statblock-font-weight: 400; - --statblock-content-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-content-font-size: 13px; - --statblock-heading-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-heading-font-color: rgb(51, 51, 51); --statblock-heading-font-size: 1.35em; --statblock-heading-font-variant: small-caps; @@ -582,8 +916,7 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-column-width: 400px; --statblock-traits-gap: 2px; } - -.statblock.pathfinder-2e-quest-layout { +.statblock.pathfinder-2e-plane-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); --statblock-color-rare: rgb(11, 37, 96); @@ -611,13 +944,33 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-box-shadow-blur: 1.5em; --statblock-font-color: rgb(51, 51, 51); --statblock-font-weight: 400; - --statblock-content-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-content-font-size: 13px; - --statblock-heading-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-heading-font-color: rgb(51, 51, 51); --statblock-heading-font-size: 1.35em; --statblock-heading-font-variant: small-caps; @@ -639,8 +992,7 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-column-width: 400px; --statblock-traits-gap: 2px; } - -.statblock.pathfinder-2e-settlement-layout { +.statblock.pathfinder-2e-quest-layout { --statblock-color-common: rgb(54, 69, 79); --statblock-color-uncommon: rgb(143, 85, 66); --statblock-color-rare: rgb(11, 37, 96); @@ -668,13 +1020,185 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-box-shadow-blur: 1.5em; --statblock-font-color: rgb(51, 51, 51); --statblock-font-weight: 400; - --statblock-content-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-content-font-size: 13px; - --statblock-heading-font: system-ui, "Pathfinder", -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; + --statblock-heading-font-color: rgb(51, 51, 51); + --statblock-heading-font-size: 1.35em; + --statblock-heading-font-variant: small-caps; + --statblock-heading-font-weight: 700; + --statblock-heading-line-height: 1; + --statblock-property-line-height: 1.33em; + --statblock-property-font-color: rgb(51, 51, 51); + --statblock-property-name-font-color: rgb(51, 51, 51); + --statblock-property-name-font-weight: bold; + --statblock-section-heading-border-size: 1px; + --statblock-section-heading-border-color: transparent; + --statblock-section-heading-font-color: rgb(51, 51, 51); + --statblock-section-heading-font-size: 1.33em; + --statblock-section-heading-font-variant: small-caps; + --statblock-section-heading-font-weight: 400; + --statblock-saves-line-height: 1.33em; + --statblock-spells-font-style: italic; + --statblock-table-header-font-weight: bold; + --statblock-column-width: 400px; + --statblock-traits-gap: 2px; +} +.statblock.pathfinder-2e-settlement-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(89, 98, 143); + --statblock-color-size: rgb(75, 122, 92); + --statblock-color-trait: rgb(86, 12, 6); + --statblock-primary-color: rgb(51, 51, 51); + --statblock-rule-color: rgb(51, 51, 51); + --statblock-background-color: rgb(246, 244, 242); + --statblock-bar-color: rgb(51, 51, 51); + --statblock-bar-border-size: 1px; + --statblock-bar-border-color: rgb(51, 51, 51); + --statblock-image-width: 75px; + --statblock-image-height: 75px; + --statblock-image-border-size: 2px; + --statblock-image-border-color: rgb(51, 51, 51); + --statblock-header-image-height: 22px; + --statblock-header-image-padding: 0 0 2px 0; + --statblock-border-size: 1px; + --statblock-border-color: rgb(51, 51, 51); + --statblock-box-shadow-color: none; + --statblock-box-shadow-x-offset: 0; + --statblock-box-shadow-y-offset: 0; + --statblock-box-shadow-blur: 1.5em; + --statblock-font-color: rgb(51, 51, 51); + --statblock-font-weight: 400; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; + --statblock-content-font-size: 13px; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; + --statblock-heading-font-color: rgb(51, 51, 51); + --statblock-heading-font-size: 1.35em; + --statblock-heading-font-variant: small-caps; + --statblock-heading-font-weight: 700; + --statblock-heading-line-height: 1; + --statblock-property-line-height: 1.33em; + --statblock-property-font-color: rgb(51, 51, 51); + --statblock-property-name-font-color: rgb(51, 51, 51); + --statblock-property-name-font-weight: bold; + --statblock-section-heading-border-size: 1px; + --statblock-section-heading-border-color: transparent; + --statblock-section-heading-font-color: rgb(51, 51, 51); + --statblock-section-heading-font-size: 1.33em; + --statblock-section-heading-font-variant: small-caps; + --statblock-section-heading-font-weight: 400; + --statblock-saves-line-height: 1.33em; + --statblock-spells-font-style: italic; + --statblock-table-header-font-weight: bold; + --statblock-column-width: 400px; + --statblock-traits-gap: 2px; +} +.statblock.pathfinder-2e-affliction-layout { + --statblock-color-common: rgb(54, 69, 79); + --statblock-color-uncommon: rgb(143, 85, 66); + --statblock-color-rare: rgb(11, 37, 96); + --statblock-color-unique: rgb(77, 27, 106); + --statblock-color-alignment: rgb(89, 98, 143); + --statblock-color-size: rgb(75, 122, 92); + --statblock-color-trait: rgb(86, 12, 6); + --statblock-primary-color: rgb(51, 51, 51); + --statblock-rule-color: rgb(51, 51, 51); + --statblock-background-color: rgb(246, 244, 242); + --statblock-bar-color: rgb(51, 51, 51); + --statblock-bar-border-size: 1px; + --statblock-bar-border-color: rgb(51, 51, 51); + --statblock-image-width: 75px; + --statblock-image-height: 75px; + --statblock-image-border-size: 2px; + --statblock-image-border-color: rgb(51, 51, 51); + --statblock-header-image-height: 22px; + --statblock-header-image-padding: 0 0 2px 0; + --statblock-border-size: 1px; + --statblock-border-color: rgb(51, 51, 51); + --statblock-box-shadow-color: none; + --statblock-box-shadow-x-offset: 0; + --statblock-box-shadow-y-offset: 0; + --statblock-box-shadow-blur: 1.5em; + --statblock-font-color: rgb(51, 51, 51); + --statblock-font-weight: 400; + --statblock-content-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; + --statblock-content-font-size: 13px; + --statblock-heading-font: + "Pathfinder-Actions", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; --statblock-heading-font-color: rgb(51, 51, 51); --statblock-heading-font-size: 1.35em; --statblock-heading-font-variant: small-caps; @@ -696,7 +1220,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se --statblock-column-width: 400px; --statblock-traits-gap: 2px; } - .statblock.basic-pathfinder-2e-layout .statblock-content { background-color: var(--statblock-background-color); border: var(--statblock-border-size) var(--statblock-border-color) solid; @@ -729,48 +1252,118 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.basic-pathfinder-2e-layout .statblock-content > .column { width: var(--statblock-column-width); - /* Hazard Block Specific */ +} +.statblock.basic-pathfinder-2e-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { + margin-left: 1em; +} +.statblock.basic-pathfinder-2e-layout .statblock-content > .column > .property-container > .line > .property-name { + margin-left: -1em; +} +.statblock.basic-pathfinder-2e-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { + margin-left: 1em; +} +.statblock.basic-pathfinder-2e-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { + margin-left: -1em; } .statblock.basic-pathfinder-2e-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { - margin-block: 0.25rem; + margin-block: 0.25em; } .statblock.basic-pathfinder-2e-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { margin-bottom: 0; } -.statblock.basic-pathfinder-2e-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line.name) { +.statblock.basic-pathfinder-2e-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { + margin-block: 0.25em; +} +.statblock.basic-pathfinder-2e-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { + margin-top: 0; +} +.statblock.basic-pathfinder-2e-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, .rare_02, .rare_03, .rare_04, .alignment, .size, .xp, .kingdom_xp, .trait_01, .trait_02, .trait_03, .trait_04, .trait_05, .trait_06, .trait_07) { + row-gap: var(--statblock-traits-gap); + margin-bottom: 0.5em; +} +.statblock.pathfinder-2e-creature-layout .statblock-content { + background-color: var(--statblock-background-color); + border: var(--statblock-border-size) var(--statblock-border-color) solid; + box-shadow: none; + color: var(--statblock-property-font-color); + display: flex; + font-family: var(--statblock-content-font); + font-size: var(--statblock-content-font-size); + margin: 0.5em 2px; + padding: 0.5em; + gap: 1rem; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .statblock-item-container.statblock-trait-prop .property.attacks > .property-name { + font-weight: normal; + font-style: normal; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .inline-container.oneline { + display: block; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .inline-container.oneline *:not(.dice-roller) { + display: inline; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .inline-container.oneline > .statblock-inline-item:not(:first-child) .property-name { + margin-right: 0; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .inline-container.oneline > .statblock-inline-item:not(:first-child) .property-name::before { + content: "; "; + font-weight: normal; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .inline-container.withnote * { + display: inline; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .inline-container.withnote > .statblock-inline-item:not(:first-child) .property-name { + display: none; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .callout { + mix-blend-mode: normal; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .statblock-detached { + position: absolute; + top: -9999px; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .statblock-item-container { margin: 0; + padding: 0; } -.statblock.basic-pathfinder-2e-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line:has(.property-name)) { +.statblock.pathfinder-2e-creature-layout .statblock-content .statblock-item-inline { + align-content: flex-start; + align-items: baseline; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: flex-start; + margin: 0; + padding: 0; +} +.statblock.pathfinder-2e-creature-layout .statblock-content > .column { + width: var(--statblock-column-width); +} +.statblock.pathfinder-2e-creature-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { margin-left: 1em; } -.statblock.basic-pathfinder-2e-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line) .property-name { +.statblock.pathfinder-2e-creature-layout .statblock-content > .column > .property-container > .line > .property-name { margin-left: -1em; } -.statblock.basic-pathfinder-2e-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { - margin-block: 0.25rem; +.statblock.pathfinder-2e-creature-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { + margin-left: 1em; } -.statblock.basic-pathfinder-2e-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { - margin-top: 0; +.statblock.pathfinder-2e-creature-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { + margin-left: -1em; } -.statblock.basic-pathfinder-2e-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, -.rare_02, -.rare_03, -.rare_04, -.alignment, -.size, -.xp, -.kingdom_xp, -.trait_01, -.trait_02, -.trait_03, -.trait_04, -.trait_05, -.trait_06, -.trait_07) { - row-gap: var(--statblock-traits-gap); - margin-top: 0.5em; +.statblock.pathfinder-2e-creature-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-creature-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { + margin-bottom: 0; +} +.statblock.pathfinder-2e-creature-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-creature-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { + margin-top: 0; } - .statblock.pathfinder-2e-action-layout .statblock-content { background-color: var(--statblock-background-color); border: var(--statblock-border-size) var(--statblock-border-color) solid; @@ -803,48 +1396,35 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-action-layout .statblock-content > .column { width: var(--statblock-column-width); - /* Hazard Block Specific */ -} -.statblock.pathfinder-2e-action-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { - margin-block: 0.25rem; } -.statblock.pathfinder-2e-action-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { - margin-bottom: 0; +.statblock.pathfinder-2e-action-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { + margin-left: 1em; } -.statblock.pathfinder-2e-action-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line.name) { - margin: 0; +.statblock.pathfinder-2e-action-layout .statblock-content > .column > .property-container > .line > .property-name { + margin-left: -1em; } -.statblock.pathfinder-2e-action-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line:has(.property-name)) { +.statblock.pathfinder-2e-action-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { margin-left: 1em; } -.statblock.pathfinder-2e-action-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line) .property-name { +.statblock.pathfinder-2e-action-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { margin-left: -1em; } +.statblock.pathfinder-2e-action-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-action-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { + margin-bottom: 0; +} .statblock.pathfinder-2e-action-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { - margin-block: 0.25rem; + margin-block: 0.25em; } .statblock.pathfinder-2e-action-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { margin-top: 0; } -.statblock.pathfinder-2e-action-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, -.rare_02, -.rare_03, -.rare_04, -.alignment, -.size, -.xp, -.kingdom_xp, -.trait_01, -.trait_02, -.trait_03, -.trait_04, -.trait_05, -.trait_06, -.trait_07) { +.statblock.pathfinder-2e-action-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, .rare_02, .rare_03, .rare_04, .alignment, .size, .xp, .kingdom_xp, .trait_01, .trait_02, .trait_03, .trait_04, .trait_05, .trait_06, .trait_07) { row-gap: var(--statblock-traits-gap); margin-bottom: 0.5em; } - .statblock.pathfinder-2e-hazard-layout .statblock-content { background-color: var(--statblock-background-color); border: var(--statblock-border-size) var(--statblock-border-color) solid; @@ -877,51 +1457,38 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-hazard-layout .statblock-content > .column { width: var(--statblock-column-width); - /* Hazard Block Specific */ } -.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { - margin-block: 0.25rem; -} -.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { - margin-bottom: 0; +.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { + margin-left: 1em; } -.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line.name) { - margin: 0; +.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > .property-container > .line > .property-name { + margin-left: -1em; } -.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line:has(.property-name)) { +.statblock.pathfinder-2e-hazard-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { margin-left: 1em; } -.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line) .property-name { +.statblock.pathfinder-2e-hazard-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { margin-left: -1em; } +.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { + margin-bottom: 0; +} .statblock.pathfinder-2e-hazard-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { - margin-block: 0.25rem; + margin-block: 0.25em; } .statblock.pathfinder-2e-hazard-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { margin-top: 0; } -.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, -.rare_02, -.rare_03, -.rare_04, -.alignment, -.size, -.xp, -.kingdom_xp, -.trait_01, -.trait_02, -.trait_03, -.trait_04, -.trait_05, -.trait_06, -.trait_07) { +.statblock.pathfinder-2e-hazard-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, .rare_02, .rare_03, .rare_04, .alignment, .size, .xp, .kingdom_xp, .trait_01, .trait_02, .trait_03, .trait_04, .trait_05, .trait_06, .trait_07) { row-gap: var(--statblock-traits-gap); margin-bottom: 0.5em; } .statblock.pathfinder-2e-hazard-layout .statblock-content > .column > .statblock-item-container:has(.effect) { margin-left: 1em; } - .statblock.pathfinder-2e-influence-layout .statblock-content { background-color: var(--statblock-background-color); border: var(--statblock-border-size) var(--statblock-border-color) solid; @@ -954,48 +1521,96 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-influence-layout .statblock-content > .column { width: var(--statblock-column-width); - /* Hazard Block Specific */ +} +.statblock.pathfinder-2e-influence-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { + margin-left: 1em; +} +.statblock.pathfinder-2e-influence-layout .statblock-content > .column > .property-container > .line > .property-name { + margin-left: -1em; +} +.statblock.pathfinder-2e-influence-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { + margin-left: 1em; +} +.statblock.pathfinder-2e-influence-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { + margin-left: -1em; } .statblock.pathfinder-2e-influence-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { - margin-block: 0.25rem; + margin-block: 0.25em; } .statblock.pathfinder-2e-influence-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { margin-bottom: 0; } -.statblock.pathfinder-2e-influence-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line.name) { +.statblock.pathfinder-2e-influence-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-influence-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { + margin-top: 0; +} +.statblock.pathfinder-2e-influence-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, .rare_02, .rare_03, .rare_04, .alignment, .size, .xp, .kingdom_xp, .trait_01, .trait_02, .trait_03, .trait_04, .trait_05, .trait_06, .trait_07) { + row-gap: var(--statblock-traits-gap); + margin-bottom: 0.5em; +} +.statblock.pathfinder-2e-item-layout .statblock-content { + background-color: var(--statblock-background-color); + border: var(--statblock-border-size) var(--statblock-border-color) solid; + box-shadow: none; + color: var(--statblock-property-font-color); + display: flex; + font-family: var(--statblock-content-font); + font-size: var(--statblock-content-font-size); + margin: 0.5em 2px; + padding: 0.5em; + gap: 1rem; +} +.statblock.pathfinder-2e-item-layout .statblock-content .statblock-detached { + position: absolute; + top: -9999px; +} +.statblock.pathfinder-2e-item-layout .statblock-content .statblock-item-container { margin: 0; + padding: 0; } -.statblock.pathfinder-2e-influence-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line:has(.property-name)) { +.statblock.pathfinder-2e-item-layout .statblock-content .statblock-item-inline { + align-content: flex-start; + align-items: baseline; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: flex-start; + margin: 0; + padding: 0; +} +.statblock.pathfinder-2e-item-layout .statblock-content > .column { + width: var(--statblock-column-width); +} +.statblock.pathfinder-2e-item-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { margin-left: 1em; } -.statblock.pathfinder-2e-influence-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line) .property-name { +.statblock.pathfinder-2e-item-layout .statblock-content > .column > .property-container > .line > .property-name { margin-left: -1em; } -.statblock.pathfinder-2e-influence-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { - margin-block: 0.25rem; +.statblock.pathfinder-2e-item-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { + margin-left: 1em; } -.statblock.pathfinder-2e-influence-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { +.statblock.pathfinder-2e-item-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { + margin-left: -1em; +} +.statblock.pathfinder-2e-item-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-item-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { + margin-bottom: 0; +} +.statblock.pathfinder-2e-item-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-item-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { margin-top: 0; } -.statblock.pathfinder-2e-influence-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, -.rare_02, -.rare_03, -.rare_04, -.alignment, -.size, -.xp, -.kingdom_xp, -.trait_01, -.trait_02, -.trait_03, -.trait_04, -.trait_05, -.trait_06, -.trait_07) { +.statblock.pathfinder-2e-item-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, .rare_02, .rare_03, .rare_04, .alignment, .size, .xp, .kingdom_xp, .trait_01, .trait_02, .trait_03, .trait_04, .trait_05, .trait_06, .trait_07) { row-gap: var(--statblock-traits-gap); margin-bottom: 0.5em; } - .statblock.pathfinder-2e-misc-layout .statblock-content { background-color: var(--statblock-background-color); border: var(--statblock-border-size) var(--statblock-border-color) solid; @@ -1008,15 +1623,76 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se padding: 0.5em; gap: 1rem; } -.statblock.pathfinder-2e-misc-layout .statblock-content .statblock-detached { +.statblock.pathfinder-2e-misc-layout .statblock-content .statblock-detached { + position: absolute; + top: -9999px; +} +.statblock.pathfinder-2e-misc-layout .statblock-content .statblock-item-container { + margin: 0; + padding: 0; +} +.statblock.pathfinder-2e-misc-layout .statblock-content .statblock-item-inline { + align-content: flex-start; + align-items: baseline; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: flex-start; + margin: 0; + padding: 0; +} +.statblock.pathfinder-2e-misc-layout .statblock-content > .column { + width: var(--statblock-column-width); +} +.statblock.pathfinder-2e-misc-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { + margin-left: 1em; +} +.statblock.pathfinder-2e-misc-layout .statblock-content > .column > .property-container > .line > .property-name { + margin-left: -1em; +} +.statblock.pathfinder-2e-misc-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { + margin-left: 1em; +} +.statblock.pathfinder-2e-misc-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { + margin-left: -1em; +} +.statblock.pathfinder-2e-misc-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-misc-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { + margin-bottom: 0; +} +.statblock.pathfinder-2e-misc-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-misc-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { + margin-top: 0; +} +.statblock.pathfinder-2e-misc-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, .rare_02, .rare_03, .rare_04, .alignment, .size, .xp, .kingdom_xp, .trait_01, .trait_02, .trait_03, .trait_04, .trait_05, .trait_06, .trait_07) { + row-gap: var(--statblock-traits-gap); + margin-bottom: 0.5em; +} +.statblock.pathfinder-2e-plane-layout .statblock-content { + background-color: var(--statblock-background-color); + border: var(--statblock-border-size) var(--statblock-border-color) solid; + box-shadow: none; + color: var(--statblock-property-font-color); + display: flex; + font-family: var(--statblock-content-font); + font-size: var(--statblock-content-font-size); + margin: 0.5em 2px; + padding: 0.5em; + gap: 1rem; +} +.statblock.pathfinder-2e-plane-layout .statblock-content .statblock-detached { position: absolute; top: -9999px; } -.statblock.pathfinder-2e-misc-layout .statblock-content .statblock-item-container { +.statblock.pathfinder-2e-plane-layout .statblock-content .statblock-item-container { margin: 0; padding: 0; } -.statblock.pathfinder-2e-misc-layout .statblock-content .statblock-item-inline { +.statblock.pathfinder-2e-plane-layout .statblock-content .statblock-item-inline { align-content: flex-start; align-items: baseline; display: flex; @@ -1026,50 +1702,37 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se margin: 0; padding: 0; } -.statblock.pathfinder-2e-misc-layout .statblock-content > .column { +.statblock.pathfinder-2e-plane-layout .statblock-content > .column { width: var(--statblock-column-width); - /* Hazard Block Specific */ } -.statblock.pathfinder-2e-misc-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { - margin-block: 0.25rem; -} -.statblock.pathfinder-2e-misc-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { - margin-bottom: 0; +.statblock.pathfinder-2e-plane-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { + margin-left: 1em; } -.statblock.pathfinder-2e-misc-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line.name) { - margin: 0; +.statblock.pathfinder-2e-plane-layout .statblock-content > .column > .property-container > .line > .property-name { + margin-left: -1em; } -.statblock.pathfinder-2e-misc-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line:has(.property-name)) { +.statblock.pathfinder-2e-plane-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { margin-left: 1em; } -.statblock.pathfinder-2e-misc-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line) .property-name { +.statblock.pathfinder-2e-plane-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { margin-left: -1em; } -.statblock.pathfinder-2e-misc-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { - margin-block: 0.25rem; +.statblock.pathfinder-2e-plane-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { + margin-block: 0.25em; } -.statblock.pathfinder-2e-misc-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { +.statblock.pathfinder-2e-plane-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { + margin-bottom: 0; +} +.statblock.pathfinder-2e-plane-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-plane-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { margin-top: 0; } -.statblock.pathfinder-2e-misc-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, -.rare_02, -.rare_03, -.rare_04, -.alignment, -.size, -.xp, -.kingdom_xp, -.trait_01, -.trait_02, -.trait_03, -.trait_04, -.trait_05, -.trait_06, -.trait_07) { +.statblock.pathfinder-2e-plane-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, .rare_02, .rare_03, .rare_04, .alignment, .size, .xp, .kingdom_xp, .trait_01, .trait_02, .trait_03, .trait_04, .trait_05, .trait_06, .trait_07) { row-gap: var(--statblock-traits-gap); margin-bottom: 0.5em; } - .statblock.pathfinder-2e-quest-layout .statblock-content { background-color: var(--statblock-background-color); border: var(--statblock-border-size) var(--statblock-border-color) solid; @@ -1102,48 +1765,35 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-quest-layout .statblock-content > .column { width: var(--statblock-column-width); - /* Hazard Block Specific */ -} -.statblock.pathfinder-2e-quest-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { - margin-block: 0.25rem; } -.statblock.pathfinder-2e-quest-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { - margin-bottom: 0; +.statblock.pathfinder-2e-quest-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { + margin-left: 1em; } -.statblock.pathfinder-2e-quest-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line.name) { - margin: 0; +.statblock.pathfinder-2e-quest-layout .statblock-content > .column > .property-container > .line > .property-name { + margin-left: -1em; } -.statblock.pathfinder-2e-quest-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line:has(.property-name)) { +.statblock.pathfinder-2e-quest-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { margin-left: 1em; } -.statblock.pathfinder-2e-quest-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line) .property-name { +.statblock.pathfinder-2e-quest-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { margin-left: -1em; } +.statblock.pathfinder-2e-quest-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-quest-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { + margin-bottom: 0; +} .statblock.pathfinder-2e-quest-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { - margin-block: 0.25rem; + margin-block: 0.25em; } .statblock.pathfinder-2e-quest-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { margin-top: 0; } -.statblock.pathfinder-2e-quest-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, -.rare_02, -.rare_03, -.rare_04, -.alignment, -.size, -.xp, -.kingdom_xp, -.trait_01, -.trait_02, -.trait_03, -.trait_04, -.trait_05, -.trait_06, -.trait_07) { +.statblock.pathfinder-2e-quest-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, .rare_02, .rare_03, .rare_04, .alignment, .size, .xp, .kingdom_xp, .trait_01, .trait_02, .trait_03, .trait_04, .trait_05, .trait_06, .trait_07) { row-gap: var(--statblock-traits-gap); margin-bottom: 0.5em; } - .statblock.pathfinder-2e-settlement-layout .statblock-content { background-color: var(--statblock-background-color); border: var(--statblock-border-size) var(--statblock-border-color) solid; @@ -1176,48 +1826,96 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-settlement-layout .statblock-content > .column { width: var(--statblock-column-width); - /* Hazard Block Specific */ +} +.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { + margin-left: 1em; +} +.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > .property-container > .line > .property-name { + margin-left: -1em; +} +.statblock.pathfinder-2e-settlement-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { + margin-left: 1em; +} +.statblock.pathfinder-2e-settlement-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { + margin-left: -1em; } .statblock.pathfinder-2e-settlement-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { - margin-block: 0.25rem; + margin-block: 0.25em; } .statblock.pathfinder-2e-settlement-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { margin-bottom: 0; } -.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line.name) { +.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { + margin-top: 0; +} +.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, .rare_02, .rare_03, .rare_04, .alignment, .size, .xp, .kingdom_xp, .trait_01, .trait_02, .trait_03, .trait_04, .trait_05, .trait_06, .trait_07) { + row-gap: var(--statblock-traits-gap); + margin-bottom: 0.5em; +} +.statblock.pathfinder-2e-affliction-layout .statblock-content { + background-color: var(--statblock-background-color); + border: var(--statblock-border-size) var(--statblock-border-color) solid; + box-shadow: none; + color: var(--statblock-property-font-color); + display: flex; + font-family: var(--statblock-content-font); + font-size: var(--statblock-content-font-size); + margin: 0.5em 2px; + padding: 0.5em; + gap: 1rem; +} +.statblock.pathfinder-2e-affliction-layout .statblock-content .statblock-detached { + position: absolute; + top: -9999px; +} +.statblock.pathfinder-2e-affliction-layout .statblock-content .statblock-item-container { + margin: 0; + padding: 0; +} +.statblock.pathfinder-2e-affliction-layout .statblock-content .statblock-item-inline { + align-content: flex-start; + align-items: baseline; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: flex-start; margin: 0; + padding: 0; +} +.statblock.pathfinder-2e-affliction-layout .statblock-content > .column { + width: var(--statblock-column-width); } -.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line:has(.property-name)) { +.statblock.pathfinder-2e-affliction-layout .statblock-content > .column > .property-container > .line:has(> .property-name) { margin-left: 1em; } -.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline) > :is(.property, .line) .property-name { +.statblock.pathfinder-2e-affliction-layout .statblock-content > .column > .property-container > .line > .property-name { margin-left: -1em; } -.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { - margin-block: 0.25rem; +.statblock.pathfinder-2e-affliction-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property:has(> .property-name) { + margin-left: 1em; } -.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { +.statblock.pathfinder-2e-affliction-layout .statblock-content > .column .traits-container > .statblock-trait-prop > .property > .property-name { + margin-left: -1em; +} +.statblock.pathfinder-2e-affliction-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-affliction-layout .statblock-content > .column > :is(.statblock-item-container, .statblock-item-inline):has(.line, .property):last-child { + margin-bottom: 0; +} +.statblock.pathfinder-2e-affliction-layout .statblock-content > .column > .statblock-item-container:has(.tapered-rule) { + margin-block: 0.25em; +} +.statblock.pathfinder-2e-affliction-layout .statblock-content > .column > .statblock-item-inline:has(.name) + .statblock-item-container:has(.tapered-rule) { margin-top: 0; } -.statblock.pathfinder-2e-settlement-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, -.rare_02, -.rare_03, -.rare_04, -.alignment, -.size, -.xp, -.kingdom_xp, -.trait_01, -.trait_02, -.trait_03, -.trait_04, -.trait_05, -.trait_06, -.trait_07) { +.statblock.pathfinder-2e-affliction-layout .statblock-content > .column > .statblock-item-inline:has(.rare_01, .rare_02, .rare_03, .rare_04, .alignment, .size, .xp, .kingdom_xp, .trait_01, .trait_02, .trait_03, .trait_04, .trait_05, .trait_06, .trait_07) { row-gap: var(--statblock-traits-gap); margin-bottom: 0.5em; } - .statblock.basic-pathfinder-2e-layout .bar { height: 1px; background: rgb(51, 51, 51); @@ -1233,7 +1931,21 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se clip-path: unset !important; -webkit-clip-path: unset; } - +.statblock.pathfinder-2e-creature-layout .bar { + height: 1px; + background: rgb(51, 51, 51); + border: 1px solid rgb(51, 51, 51); + z-index: 1; + width: fit-content; +} +.statblock.pathfinder-2e-creature-layout div.tapered-rule { + width: auto; + margin: 0; + height: 1px; + background: rgb(51, 51, 51); + clip-path: unset !important; + -webkit-clip-path: unset; +} .statblock.pathfinder-2e-action-layout .bar { height: 1px; background: rgb(51, 51, 51); @@ -1249,7 +1961,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se clip-path: unset !important; -webkit-clip-path: unset; } - .statblock.pathfinder-2e-hazard-layout .bar { height: 1px; background: rgb(51, 51, 51); @@ -1265,7 +1976,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se clip-path: unset !important; -webkit-clip-path: unset; } - .statblock.pathfinder-2e-influence-layout .bar { height: 1px; background: rgb(51, 51, 51); @@ -1281,7 +1991,21 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se clip-path: unset !important; -webkit-clip-path: unset; } - +.statblock.pathfinder-2e-item-layout .bar { + height: 1px; + background: rgb(51, 51, 51); + border: 1px solid rgb(51, 51, 51); + z-index: 1; + width: fit-content; +} +.statblock.pathfinder-2e-item-layout div.tapered-rule { + width: auto; + margin: 0; + height: 1px; + background: rgb(51, 51, 51); + clip-path: unset !important; + -webkit-clip-path: unset; +} .statblock.pathfinder-2e-misc-layout .bar { height: 1px; background: rgb(51, 51, 51); @@ -1297,7 +2021,21 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se clip-path: unset !important; -webkit-clip-path: unset; } - +.statblock.pathfinder-2e-plane-layout .bar { + height: 1px; + background: rgb(51, 51, 51); + border: 1px solid rgb(51, 51, 51); + z-index: 1; + width: fit-content; +} +.statblock.pathfinder-2e-plane-layout div.tapered-rule { + width: auto; + margin: 0; + height: 1px; + background: rgb(51, 51, 51); + clip-path: unset !important; + -webkit-clip-path: unset; +} .statblock.pathfinder-2e-quest-layout .bar { height: 1px; background: rgb(51, 51, 51); @@ -1313,7 +2051,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se clip-path: unset !important; -webkit-clip-path: unset; } - .statblock.pathfinder-2e-settlement-layout .bar { height: 1px; background: rgb(51, 51, 51); @@ -1329,7 +2066,21 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se clip-path: unset !important; -webkit-clip-path: unset; } - +.statblock.pathfinder-2e-affliction-layout .bar { + height: 1px; + background: rgb(51, 51, 51); + border: 1px solid rgb(51, 51, 51); + z-index: 1; + width: fit-content; +} +.statblock.pathfinder-2e-affliction-layout div.tapered-rule { + width: auto; + margin: 0; + height: 1px; + background: rgb(51, 51, 51); + clip-path: unset !important; + -webkit-clip-path: unset; +} .statblock.basic-pathfinder-2e-layout .flex-container { align-items: center; display: flex; @@ -1371,7 +2122,47 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se font-size: 1.25em; color: var(--statblock-section-heading-font-color); } - +.statblock.pathfinder-2e-creature-layout .flex-container { + align-items: center; + display: flex; + justify-content: space-between; +} +.statblock.pathfinder-2e-creature-layout .heading { + align-items: center; + color: var(--statblock-heading-font-color); + display: flex; + font-family: var(--statblock-heading-font); + font-size: 1.35em; + font-variant: small-caps; + font-weight: 700; + justify-content: space-between; + letter-spacing: 1px; + line-height: 1; + margin: 0; +} +.statblock.pathfinder-2e-creature-layout .section-header { + border: none; + color: var(--statblock-section-heading-font-color); + font-size: var(--statblock-section-heading-font-size); + font-variant: var(--statblock-section-heading-font-variant); + font-weight: var(--statblock-section-heading-font-weight); + letter-spacing: 1px; + margin-bottom: 0.3em; +} +.statblock.pathfinder-2e-creature-layout h3.section-header { + display: none; +} +.statblock.pathfinder-2e-creature-layout h3, +.statblock.pathfinder-2e-creature-layout .markdown-rendered h3, +.statblock.pathfinder-2e-creature-layout .HyperMD-header-3, +.statblock.pathfinder-2e-creature-layout .inline-title[data-level="3"], +.statblock.pathfinder-2e-creature-layout .HyperMD-list-line .cm-header-3 { + font-variant: petite-caps; + letter-spacing: 1px; + line-height: 1; + font-size: 1.25em; + color: var(--statblock-section-heading-font-color); +} .statblock.pathfinder-2e-action-layout .flex-container { align-items: center; display: flex; @@ -1413,13 +2204,94 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se font-size: 1.25em; color: var(--statblock-section-heading-font-color); } - -.statblock.pathfinder-2e-hazard-layout .flex-container { +.statblock.pathfinder-2e-hazard-layout .flex-container { + align-items: center; + display: flex; + justify-content: space-between; +} +.statblock.pathfinder-2e-hazard-layout .heading { + align-items: center; + color: var(--statblock-heading-font-color); + display: flex; + font-family: var(--statblock-heading-font); + font-size: 1.35em; + font-variant: small-caps; + font-weight: 700; + justify-content: space-between; + letter-spacing: 1px; + line-height: 1; + margin: 0; +} +.statblock.pathfinder-2e-hazard-layout .section-header { + border: none; + color: var(--statblock-section-heading-font-color); + font-size: var(--statblock-section-heading-font-size); + font-variant: var(--statblock-section-heading-font-variant); + font-weight: var(--statblock-section-heading-font-weight); + letter-spacing: 1px; + margin-bottom: 0.3em; +} +.statblock.pathfinder-2e-hazard-layout h3.section-header { + display: none; +} +.statblock.pathfinder-2e-hazard-layout h3, +.statblock.pathfinder-2e-hazard-layout .markdown-rendered h3, +.statblock.pathfinder-2e-hazard-layout .HyperMD-header-3, +.statblock.pathfinder-2e-hazard-layout .inline-title[data-level="3"], +.statblock.pathfinder-2e-hazard-layout .HyperMD-list-line .cm-header-3 { + font-variant: petite-caps; + letter-spacing: 1px; + line-height: 1; + font-size: 1.25em; + color: var(--statblock-section-heading-font-color); +} +.statblock.pathfinder-2e-influence-layout .flex-container { + align-items: center; + display: flex; + justify-content: space-between; +} +.statblock.pathfinder-2e-influence-layout .heading { + align-items: center; + color: var(--statblock-heading-font-color); + display: flex; + font-family: var(--statblock-heading-font); + font-size: 1.35em; + font-variant: small-caps; + font-weight: 700; + justify-content: space-between; + letter-spacing: 1px; + line-height: 1; + margin: 0; +} +.statblock.pathfinder-2e-influence-layout .section-header { + border: none; + color: var(--statblock-section-heading-font-color); + font-size: var(--statblock-section-heading-font-size); + font-variant: var(--statblock-section-heading-font-variant); + font-weight: var(--statblock-section-heading-font-weight); + letter-spacing: 1px; + margin-bottom: 0.3em; +} +.statblock.pathfinder-2e-influence-layout h3.section-header { + display: none; +} +.statblock.pathfinder-2e-influence-layout h3, +.statblock.pathfinder-2e-influence-layout .markdown-rendered h3, +.statblock.pathfinder-2e-influence-layout .HyperMD-header-3, +.statblock.pathfinder-2e-influence-layout .inline-title[data-level="3"], +.statblock.pathfinder-2e-influence-layout .HyperMD-list-line .cm-header-3 { + font-variant: petite-caps; + letter-spacing: 1px; + line-height: 1; + font-size: 1.25em; + color: var(--statblock-section-heading-font-color); +} +.statblock.pathfinder-2e-item-layout .flex-container { align-items: center; display: flex; justify-content: space-between; } -.statblock.pathfinder-2e-hazard-layout .heading { +.statblock.pathfinder-2e-item-layout .heading { align-items: center; color: var(--statblock-heading-font-color); display: flex; @@ -1432,7 +2304,7 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se line-height: 1; margin: 0; } -.statblock.pathfinder-2e-hazard-layout .section-header { +.statblock.pathfinder-2e-item-layout .section-header { border: none; color: var(--statblock-section-heading-font-color); font-size: var(--statblock-section-heading-font-size); @@ -1441,27 +2313,26 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se letter-spacing: 1px; margin-bottom: 0.3em; } -.statblock.pathfinder-2e-hazard-layout h3.section-header { +.statblock.pathfinder-2e-item-layout h3.section-header { display: none; } -.statblock.pathfinder-2e-hazard-layout h3, -.statblock.pathfinder-2e-hazard-layout .markdown-rendered h3, -.statblock.pathfinder-2e-hazard-layout .HyperMD-header-3, -.statblock.pathfinder-2e-hazard-layout .inline-title[data-level="3"], -.statblock.pathfinder-2e-hazard-layout .HyperMD-list-line .cm-header-3 { +.statblock.pathfinder-2e-item-layout h3, +.statblock.pathfinder-2e-item-layout .markdown-rendered h3, +.statblock.pathfinder-2e-item-layout .HyperMD-header-3, +.statblock.pathfinder-2e-item-layout .inline-title[data-level="3"], +.statblock.pathfinder-2e-item-layout .HyperMD-list-line .cm-header-3 { font-variant: petite-caps; letter-spacing: 1px; line-height: 1; font-size: 1.25em; color: var(--statblock-section-heading-font-color); } - -.statblock.pathfinder-2e-influence-layout .flex-container { +.statblock.pathfinder-2e-misc-layout .flex-container { align-items: center; display: flex; justify-content: space-between; } -.statblock.pathfinder-2e-influence-layout .heading { +.statblock.pathfinder-2e-misc-layout .heading { align-items: center; color: var(--statblock-heading-font-color); display: flex; @@ -1474,7 +2345,7 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se line-height: 1; margin: 0; } -.statblock.pathfinder-2e-influence-layout .section-header { +.statblock.pathfinder-2e-misc-layout .section-header { border: none; color: var(--statblock-section-heading-font-color); font-size: var(--statblock-section-heading-font-size); @@ -1483,27 +2354,26 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se letter-spacing: 1px; margin-bottom: 0.3em; } -.statblock.pathfinder-2e-influence-layout h3.section-header { +.statblock.pathfinder-2e-misc-layout h3.section-header { display: none; } -.statblock.pathfinder-2e-influence-layout h3, -.statblock.pathfinder-2e-influence-layout .markdown-rendered h3, -.statblock.pathfinder-2e-influence-layout .HyperMD-header-3, -.statblock.pathfinder-2e-influence-layout .inline-title[data-level="3"], -.statblock.pathfinder-2e-influence-layout .HyperMD-list-line .cm-header-3 { +.statblock.pathfinder-2e-misc-layout h3, +.statblock.pathfinder-2e-misc-layout .markdown-rendered h3, +.statblock.pathfinder-2e-misc-layout .HyperMD-header-3, +.statblock.pathfinder-2e-misc-layout .inline-title[data-level="3"], +.statblock.pathfinder-2e-misc-layout .HyperMD-list-line .cm-header-3 { font-variant: petite-caps; letter-spacing: 1px; line-height: 1; font-size: 1.25em; color: var(--statblock-section-heading-font-color); } - -.statblock.pathfinder-2e-misc-layout .flex-container { +.statblock.pathfinder-2e-plane-layout .flex-container { align-items: center; display: flex; justify-content: space-between; } -.statblock.pathfinder-2e-misc-layout .heading { +.statblock.pathfinder-2e-plane-layout .heading { align-items: center; color: var(--statblock-heading-font-color); display: flex; @@ -1516,7 +2386,7 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se line-height: 1; margin: 0; } -.statblock.pathfinder-2e-misc-layout .section-header { +.statblock.pathfinder-2e-plane-layout .section-header { border: none; color: var(--statblock-section-heading-font-color); font-size: var(--statblock-section-heading-font-size); @@ -1525,21 +2395,20 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se letter-spacing: 1px; margin-bottom: 0.3em; } -.statblock.pathfinder-2e-misc-layout h3.section-header { +.statblock.pathfinder-2e-plane-layout h3.section-header { display: none; } -.statblock.pathfinder-2e-misc-layout h3, -.statblock.pathfinder-2e-misc-layout .markdown-rendered h3, -.statblock.pathfinder-2e-misc-layout .HyperMD-header-3, -.statblock.pathfinder-2e-misc-layout .inline-title[data-level="3"], -.statblock.pathfinder-2e-misc-layout .HyperMD-list-line .cm-header-3 { +.statblock.pathfinder-2e-plane-layout h3, +.statblock.pathfinder-2e-plane-layout .markdown-rendered h3, +.statblock.pathfinder-2e-plane-layout .HyperMD-header-3, +.statblock.pathfinder-2e-plane-layout .inline-title[data-level="3"], +.statblock.pathfinder-2e-plane-layout .HyperMD-list-line .cm-header-3 { font-variant: petite-caps; letter-spacing: 1px; line-height: 1; font-size: 1.25em; color: var(--statblock-section-heading-font-color); } - .statblock.pathfinder-2e-quest-layout .flex-container { align-items: center; display: flex; @@ -1581,7 +2450,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se font-size: 1.25em; color: var(--statblock-section-heading-font-color); } - .statblock.pathfinder-2e-settlement-layout .flex-container { align-items: center; display: flex; @@ -1623,7 +2491,47 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se font-size: 1.25em; color: var(--statblock-section-heading-font-color); } - +.statblock.pathfinder-2e-affliction-layout .flex-container { + align-items: center; + display: flex; + justify-content: space-between; +} +.statblock.pathfinder-2e-affliction-layout .heading { + align-items: center; + color: var(--statblock-heading-font-color); + display: flex; + font-family: var(--statblock-heading-font); + font-size: 1.35em; + font-variant: small-caps; + font-weight: 700; + justify-content: space-between; + letter-spacing: 1px; + line-height: 1; + margin: 0; +} +.statblock.pathfinder-2e-affliction-layout .section-header { + border: none; + color: var(--statblock-section-heading-font-color); + font-size: var(--statblock-section-heading-font-size); + font-variant: var(--statblock-section-heading-font-variant); + font-weight: var(--statblock-section-heading-font-weight); + letter-spacing: 1px; + margin-bottom: 0.3em; +} +.statblock.pathfinder-2e-affliction-layout h3.section-header { + display: none; +} +.statblock.pathfinder-2e-affliction-layout h3, +.statblock.pathfinder-2e-affliction-layout .markdown-rendered h3, +.statblock.pathfinder-2e-affliction-layout .HyperMD-header-3, +.statblock.pathfinder-2e-affliction-layout .inline-title[data-level="3"], +.statblock.pathfinder-2e-affliction-layout .HyperMD-list-line .cm-header-3 { + font-variant: petite-caps; + letter-spacing: 1px; + line-height: 1; + font-size: 1.25em; + color: var(--statblock-section-heading-font-color); +} .statblock.basic-pathfinder-2e-layout a, .statblock.basic-pathfinder-2e-layout a:-webkit-any-link, .statblock.basic-pathfinder-2e-layout a.internal-link { @@ -1641,17 +2549,17 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.basic-pathfinder-2e-layout em, .statblock.basic-pathfinder-2e-layout .cm-em { font-style: italic; +} +:not(.property-name) .statblock.basic-pathfinder-2e-layout i, +:not(.property-name) .statblock.basic-pathfinder-2e-layout em, +:not(.property-name) .statblock.basic-pathfinder-2e-layout .cm-em { color: rgb(77, 27, 105); font-weight: 500; } .statblock.basic-pathfinder-2e-layout ul { - /* Corrects the UL/LI Coloration */ display: block; list-style-type: disc; - margin-block-start: 1em; - margin-block-end: 1em; - margin-inline-start: 0; - margin-inline-end: 0; + margin: 0 0.5em; padding-inline-start: 40px; } .statblock.basic-pathfinder-2e-layout .markdown-rendered ul, @@ -1685,7 +2593,66 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se text-align: start; text-align-last: start; } - +.statblock.pathfinder-2e-creature-layout a, +.statblock.pathfinder-2e-creature-layout a:-webkit-any-link, +.statblock.pathfinder-2e-creature-layout a.internal-link { + color: rgb(61, 102, 142); + text-decoration: underline; +} +.statblock.pathfinder-2e-creature-layout b, +.statblock.pathfinder-2e-creature-layout strong, +.statblock.pathfinder-2e-creature-layout .cm-strong { + font-weight: var(--statblock-property-name-font-weight); + color: var(--statblock-property-name-font-color); +} +.statblock.pathfinder-2e-creature-layout i, +.statblock.pathfinder-2e-creature-layout em, +.statblock.pathfinder-2e-creature-layout .cm-em { + font-style: italic; +} +:not(.property-name) .statblock.pathfinder-2e-creature-layout i, +:not(.property-name) .statblock.pathfinder-2e-creature-layout em, +:not(.property-name) .statblock.pathfinder-2e-creature-layout .cm-em { + color: rgb(77, 27, 105); + font-weight: 500; +} +.statblock.pathfinder-2e-creature-layout ul { + display: block; + list-style-type: disc; + margin: 0 0.5em; + padding-inline-start: 40px; +} +.statblock.pathfinder-2e-creature-layout .markdown-rendered ul, +.statblock.pathfinder-2e-creature-layout .markdown-rendered ol { + padding-inline-start: 2em; +} +.statblock.pathfinder-2e-creature-layout li { + color: var(--statblock-content-font); + display: list-item; + text-align: -webkit-match-parent; +} +.statblock.pathfinder-2e-creature-layout .markdown-source-view ol > li, +.statblock.pathfinder-2e-creature-layout .markdown-source-view ul > li, +.statblock.pathfinder-2e-creature-layout .markdown-preview-view ol > li, +.statblock.pathfinder-2e-creature-layout .markdown-preview-view ul > li, +.statblock.pathfinder-2e-creature-layout .markdown-rendered ul > li, +.statblock.pathfinder-2e-creature-layout .mod-cm6 .HyperMD-list-line.cm-line { + padding-top: 0; + padding-bottom: 0; +} +.statblock.pathfinder-2e-creature-layout ol > li::marker, +.statblock.pathfinder-2e-creature-layout ul > li::marker, +.statblock.pathfinder-2e-creature-layout .cm-s-obsidian .cm-formatting-list { + color: var(--statblock-property-name-font-color); +} +.statblock.pathfinder-2e-creature-layout ::marker { + unicode-bidi: isolate; + font-variant-numeric: tabular-nums; + text-transform: none; + text-indent: 0; + text-align: start; + text-align-last: start; +} .statblock.pathfinder-2e-action-layout a, .statblock.pathfinder-2e-action-layout a:-webkit-any-link, .statblock.pathfinder-2e-action-layout a.internal-link { @@ -1703,17 +2670,17 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-action-layout em, .statblock.pathfinder-2e-action-layout .cm-em { font-style: italic; +} +:not(.property-name) .statblock.pathfinder-2e-action-layout i, +:not(.property-name) .statblock.pathfinder-2e-action-layout em, +:not(.property-name) .statblock.pathfinder-2e-action-layout .cm-em { color: rgb(77, 27, 105); font-weight: 500; } .statblock.pathfinder-2e-action-layout ul { - /* Corrects the UL/LI Coloration */ display: block; list-style-type: disc; - margin-block-start: 1em; - margin-block-end: 1em; - margin-inline-start: 0; - margin-inline-end: 0; + margin: 0 0.5em; padding-inline-start: 40px; } .statblock.pathfinder-2e-action-layout .markdown-rendered ul, @@ -1747,7 +2714,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se text-align: start; text-align-last: start; } - .statblock.pathfinder-2e-hazard-layout a, .statblock.pathfinder-2e-hazard-layout a:-webkit-any-link, .statblock.pathfinder-2e-hazard-layout a.internal-link { @@ -1765,17 +2731,17 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-hazard-layout em, .statblock.pathfinder-2e-hazard-layout .cm-em { font-style: italic; +} +:not(.property-name) .statblock.pathfinder-2e-hazard-layout i, +:not(.property-name) .statblock.pathfinder-2e-hazard-layout em, +:not(.property-name) .statblock.pathfinder-2e-hazard-layout .cm-em { color: rgb(77, 27, 105); font-weight: 500; } .statblock.pathfinder-2e-hazard-layout ul { - /* Corrects the UL/LI Coloration */ display: block; list-style-type: disc; - margin-block-start: 1em; - margin-block-end: 1em; - margin-inline-start: 0; - margin-inline-end: 0; + margin: 0 0.5em; padding-inline-start: 40px; } .statblock.pathfinder-2e-hazard-layout .markdown-rendered ul, @@ -1809,7 +2775,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se text-align: start; text-align-last: start; } - .statblock.pathfinder-2e-influence-layout a, .statblock.pathfinder-2e-influence-layout a:-webkit-any-link, .statblock.pathfinder-2e-influence-layout a.internal-link { @@ -1827,17 +2792,17 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-influence-layout em, .statblock.pathfinder-2e-influence-layout .cm-em { font-style: italic; +} +:not(.property-name) .statblock.pathfinder-2e-influence-layout i, +:not(.property-name) .statblock.pathfinder-2e-influence-layout em, +:not(.property-name) .statblock.pathfinder-2e-influence-layout .cm-em { color: rgb(77, 27, 105); font-weight: 500; } .statblock.pathfinder-2e-influence-layout ul { - /* Corrects the UL/LI Coloration */ display: block; list-style-type: disc; - margin-block-start: 1em; - margin-block-end: 1em; - margin-inline-start: 0; - margin-inline-end: 0; + margin: 0 0.5em; padding-inline-start: 40px; } .statblock.pathfinder-2e-influence-layout .markdown-rendered ul, @@ -1871,7 +2836,67 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se text-align: start; text-align-last: start; } - +.statblock.pathfinder-2e-item-layout a, +.statblock.pathfinder-2e-item-layout a:-webkit-any-link, +.statblock.pathfinder-2e-item-layout a.internal-link { + color: rgb(61, 102, 142); + font-weight: var(--statblock-property-name-font-weight); + text-decoration: none; +} +.statblock.pathfinder-2e-item-layout b, +.statblock.pathfinder-2e-item-layout strong, +.statblock.pathfinder-2e-item-layout .cm-strong { + font-weight: var(--statblock-property-name-font-weight); + color: var(--statblock-property-name-font-color); +} +.statblock.pathfinder-2e-item-layout i, +.statblock.pathfinder-2e-item-layout em, +.statblock.pathfinder-2e-item-layout .cm-em { + font-style: italic; +} +:not(.property-name) .statblock.pathfinder-2e-item-layout i, +:not(.property-name) .statblock.pathfinder-2e-item-layout em, +:not(.property-name) .statblock.pathfinder-2e-item-layout .cm-em { + color: rgb(77, 27, 105); + font-weight: 500; +} +.statblock.pathfinder-2e-item-layout ul { + display: block; + list-style-type: disc; + margin: 0 0.5em; + padding-inline-start: 40px; +} +.statblock.pathfinder-2e-item-layout .markdown-rendered ul, +.statblock.pathfinder-2e-item-layout .markdown-rendered ol { + padding-inline-start: 2em; +} +.statblock.pathfinder-2e-item-layout li { + color: var(--statblock-content-font); + display: list-item; + text-align: -webkit-match-parent; +} +.statblock.pathfinder-2e-item-layout .markdown-source-view ol > li, +.statblock.pathfinder-2e-item-layout .markdown-source-view ul > li, +.statblock.pathfinder-2e-item-layout .markdown-preview-view ol > li, +.statblock.pathfinder-2e-item-layout .markdown-preview-view ul > li, +.statblock.pathfinder-2e-item-layout .markdown-rendered ul > li, +.statblock.pathfinder-2e-item-layout .mod-cm6 .HyperMD-list-line.cm-line { + padding-top: 0; + padding-bottom: 0; +} +.statblock.pathfinder-2e-item-layout ol > li::marker, +.statblock.pathfinder-2e-item-layout ul > li::marker, +.statblock.pathfinder-2e-item-layout .cm-s-obsidian .cm-formatting-list { + color: var(--statblock-property-name-font-color); +} +.statblock.pathfinder-2e-item-layout ::marker { + unicode-bidi: isolate; + font-variant-numeric: tabular-nums; + text-transform: none; + text-indent: 0; + text-align: start; + text-align-last: start; +} .statblock.pathfinder-2e-misc-layout a, .statblock.pathfinder-2e-misc-layout a:-webkit-any-link, .statblock.pathfinder-2e-misc-layout a.internal-link { @@ -1889,17 +2914,17 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-misc-layout em, .statblock.pathfinder-2e-misc-layout .cm-em { font-style: italic; +} +:not(.property-name) .statblock.pathfinder-2e-misc-layout i, +:not(.property-name) .statblock.pathfinder-2e-misc-layout em, +:not(.property-name) .statblock.pathfinder-2e-misc-layout .cm-em { color: rgb(77, 27, 105); font-weight: 500; } .statblock.pathfinder-2e-misc-layout ul { - /* Corrects the UL/LI Coloration */ display: block; list-style-type: disc; - margin-block-start: 1em; - margin-block-end: 1em; - margin-inline-start: 0; - margin-inline-end: 0; + margin: 0 0.5em; padding-inline-start: 40px; } .statblock.pathfinder-2e-misc-layout .markdown-rendered ul, @@ -1933,7 +2958,67 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se text-align: start; text-align-last: start; } - +.statblock.pathfinder-2e-plane-layout a, +.statblock.pathfinder-2e-plane-layout a:-webkit-any-link, +.statblock.pathfinder-2e-plane-layout a.internal-link { + color: rgb(61, 102, 142); + font-weight: var(--statblock-property-name-font-weight); + text-decoration: none; +} +.statblock.pathfinder-2e-plane-layout b, +.statblock.pathfinder-2e-plane-layout strong, +.statblock.pathfinder-2e-plane-layout .cm-strong { + font-weight: var(--statblock-property-name-font-weight); + color: var(--statblock-property-name-font-color); +} +.statblock.pathfinder-2e-plane-layout i, +.statblock.pathfinder-2e-plane-layout em, +.statblock.pathfinder-2e-plane-layout .cm-em { + font-style: italic; +} +:not(.property-name) .statblock.pathfinder-2e-plane-layout i, +:not(.property-name) .statblock.pathfinder-2e-plane-layout em, +:not(.property-name) .statblock.pathfinder-2e-plane-layout .cm-em { + color: rgb(77, 27, 105); + font-weight: 500; +} +.statblock.pathfinder-2e-plane-layout ul { + display: block; + list-style-type: disc; + margin: 0 0.5em; + padding-inline-start: 40px; +} +.statblock.pathfinder-2e-plane-layout .markdown-rendered ul, +.statblock.pathfinder-2e-plane-layout .markdown-rendered ol { + padding-inline-start: 2em; +} +.statblock.pathfinder-2e-plane-layout li { + color: var(--statblock-content-font); + display: list-item; + text-align: -webkit-match-parent; +} +.statblock.pathfinder-2e-plane-layout .markdown-source-view ol > li, +.statblock.pathfinder-2e-plane-layout .markdown-source-view ul > li, +.statblock.pathfinder-2e-plane-layout .markdown-preview-view ol > li, +.statblock.pathfinder-2e-plane-layout .markdown-preview-view ul > li, +.statblock.pathfinder-2e-plane-layout .markdown-rendered ul > li, +.statblock.pathfinder-2e-plane-layout .mod-cm6 .HyperMD-list-line.cm-line { + padding-top: 0; + padding-bottom: 0; +} +.statblock.pathfinder-2e-plane-layout ol > li::marker, +.statblock.pathfinder-2e-plane-layout ul > li::marker, +.statblock.pathfinder-2e-plane-layout .cm-s-obsidian .cm-formatting-list { + color: var(--statblock-property-name-font-color); +} +.statblock.pathfinder-2e-plane-layout ::marker { + unicode-bidi: isolate; + font-variant-numeric: tabular-nums; + text-transform: none; + text-indent: 0; + text-align: start; + text-align-last: start; +} .statblock.pathfinder-2e-quest-layout a, .statblock.pathfinder-2e-quest-layout a:-webkit-any-link, .statblock.pathfinder-2e-quest-layout a.internal-link { @@ -1951,17 +3036,17 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-quest-layout em, .statblock.pathfinder-2e-quest-layout .cm-em { font-style: italic; +} +:not(.property-name) .statblock.pathfinder-2e-quest-layout i, +:not(.property-name) .statblock.pathfinder-2e-quest-layout em, +:not(.property-name) .statblock.pathfinder-2e-quest-layout .cm-em { color: rgb(77, 27, 105); font-weight: 500; } .statblock.pathfinder-2e-quest-layout ul { - /* Corrects the UL/LI Coloration */ display: block; list-style-type: disc; - margin-block-start: 1em; - margin-block-end: 1em; - margin-inline-start: 0; - margin-inline-end: 0; + margin: 0 0.5em; padding-inline-start: 40px; } .statblock.pathfinder-2e-quest-layout .markdown-rendered ul, @@ -1995,7 +3080,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se text-align: start; text-align-last: start; } - .statblock.pathfinder-2e-settlement-layout a, .statblock.pathfinder-2e-settlement-layout a:-webkit-any-link, .statblock.pathfinder-2e-settlement-layout a.internal-link { @@ -2013,17 +3097,17 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-settlement-layout em, .statblock.pathfinder-2e-settlement-layout .cm-em { font-style: italic; +} +:not(.property-name) .statblock.pathfinder-2e-settlement-layout i, +:not(.property-name) .statblock.pathfinder-2e-settlement-layout em, +:not(.property-name) .statblock.pathfinder-2e-settlement-layout .cm-em { color: rgb(77, 27, 105); font-weight: 500; } .statblock.pathfinder-2e-settlement-layout ul { - /* Corrects the UL/LI Coloration */ display: block; list-style-type: disc; - margin-block-start: 1em; - margin-block-end: 1em; - margin-inline-start: 0; - margin-inline-end: 0; + margin: 0 0.5em; padding-inline-start: 40px; } .statblock.pathfinder-2e-settlement-layout .markdown-rendered ul, @@ -2057,7 +3141,67 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se text-align: start; text-align-last: start; } - +.statblock.pathfinder-2e-affliction-layout a, +.statblock.pathfinder-2e-affliction-layout a:-webkit-any-link, +.statblock.pathfinder-2e-affliction-layout a.internal-link { + color: rgb(61, 102, 142); + font-weight: var(--statblock-property-name-font-weight); + text-decoration: none; +} +.statblock.pathfinder-2e-affliction-layout b, +.statblock.pathfinder-2e-affliction-layout strong, +.statblock.pathfinder-2e-affliction-layout .cm-strong { + font-weight: var(--statblock-property-name-font-weight); + color: var(--statblock-property-name-font-color); +} +.statblock.pathfinder-2e-affliction-layout i, +.statblock.pathfinder-2e-affliction-layout em, +.statblock.pathfinder-2e-affliction-layout .cm-em { + font-style: italic; +} +:not(.property-name) .statblock.pathfinder-2e-affliction-layout i, +:not(.property-name) .statblock.pathfinder-2e-affliction-layout em, +:not(.property-name) .statblock.pathfinder-2e-affliction-layout .cm-em { + color: rgb(77, 27, 105); + font-weight: 500; +} +.statblock.pathfinder-2e-affliction-layout ul { + display: block; + list-style-type: disc; + margin: 0 0.5em; + padding-inline-start: 40px; +} +.statblock.pathfinder-2e-affliction-layout .markdown-rendered ul, +.statblock.pathfinder-2e-affliction-layout .markdown-rendered ol { + padding-inline-start: 2em; +} +.statblock.pathfinder-2e-affliction-layout li { + color: var(--statblock-content-font); + display: list-item; + text-align: -webkit-match-parent; +} +.statblock.pathfinder-2e-affliction-layout .markdown-source-view ol > li, +.statblock.pathfinder-2e-affliction-layout .markdown-source-view ul > li, +.statblock.pathfinder-2e-affliction-layout .markdown-preview-view ol > li, +.statblock.pathfinder-2e-affliction-layout .markdown-preview-view ul > li, +.statblock.pathfinder-2e-affliction-layout .markdown-rendered ul > li, +.statblock.pathfinder-2e-affliction-layout .mod-cm6 .HyperMD-list-line.cm-line { + padding-top: 0; + padding-bottom: 0; +} +.statblock.pathfinder-2e-affliction-layout ol > li::marker, +.statblock.pathfinder-2e-affliction-layout ul > li::marker, +.statblock.pathfinder-2e-affliction-layout .cm-s-obsidian .cm-formatting-list { + color: var(--statblock-property-name-font-color); +} +.statblock.pathfinder-2e-affliction-layout ::marker { + unicode-bidi: isolate; + font-variant-numeric: tabular-nums; + text-transform: none; + text-indent: 0; + text-align: start; + text-align-last: start; +} .statblock.basic-pathfinder-2e-layout .line { line-height: var(--statblock-property-line-height); display: block; @@ -2066,12 +3210,34 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.basic-pathfinder-2e-layout .statblock-rendered-text-content { color: var(--statblock-property-name-font-color); font-weight: var(--statblock-property-name-font-weight); + font-style: normal; } .statblock.basic-pathfinder-2e-layout .statblock-markdown, .statblock.basic-pathfinder-2e-layout .property { line-height: var(--statblock-property-line-height); } - +.statblock.basic-pathfinder-2e-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} +.statblock.pathfinder-2e-creature-layout .line { + line-height: var(--statblock-property-line-height); + display: block; + color: var(--statblock-property-font-color); +} +.statblock.pathfinder-2e-creature-layout .statblock-rendered-text-content { + color: var(--statblock-property-name-font-color); + font-weight: var(--statblock-property-name-font-weight); + font-style: normal; +} +.statblock.pathfinder-2e-creature-layout .statblock-markdown, +.statblock.pathfinder-2e-creature-layout .property { + line-height: var(--statblock-property-line-height); +} +.statblock.pathfinder-2e-creature-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} .statblock.pathfinder-2e-action-layout .line { line-height: var(--statblock-property-line-height); display: block; @@ -2080,12 +3246,16 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-action-layout .statblock-rendered-text-content { color: var(--statblock-property-name-font-color); font-weight: var(--statblock-property-name-font-weight); + font-style: normal; } .statblock.pathfinder-2e-action-layout .statblock-markdown, .statblock.pathfinder-2e-action-layout .property { line-height: var(--statblock-property-line-height); } - +.statblock.pathfinder-2e-action-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} .statblock.pathfinder-2e-hazard-layout .line { line-height: var(--statblock-property-line-height); display: block; @@ -2094,26 +3264,52 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-hazard-layout .statblock-rendered-text-content { color: var(--statblock-property-name-font-color); font-weight: var(--statblock-property-name-font-weight); + font-style: normal; } .statblock.pathfinder-2e-hazard-layout .statblock-markdown, .statblock.pathfinder-2e-hazard-layout .property { line-height: var(--statblock-property-line-height); } - -.statblock.pathfinder-2e-influence-layout .line { +.statblock.pathfinder-2e-hazard-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} +.statblock.pathfinder-2e-influence-layout .line { + line-height: var(--statblock-property-line-height); + display: block; + color: var(--statblock-property-font-color); +} +.statblock.pathfinder-2e-influence-layout .statblock-rendered-text-content { + color: var(--statblock-property-name-font-color); + font-weight: var(--statblock-property-name-font-weight); + font-style: normal; +} +.statblock.pathfinder-2e-influence-layout .statblock-markdown, +.statblock.pathfinder-2e-influence-layout .property { + line-height: var(--statblock-property-line-height); +} +.statblock.pathfinder-2e-influence-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} +.statblock.pathfinder-2e-item-layout .line { line-height: var(--statblock-property-line-height); display: block; color: var(--statblock-property-font-color); } -.statblock.pathfinder-2e-influence-layout .statblock-rendered-text-content { +.statblock.pathfinder-2e-item-layout .statblock-rendered-text-content { color: var(--statblock-property-name-font-color); font-weight: var(--statblock-property-name-font-weight); + font-style: normal; } -.statblock.pathfinder-2e-influence-layout .statblock-markdown, -.statblock.pathfinder-2e-influence-layout .property { +.statblock.pathfinder-2e-item-layout .statblock-markdown, +.statblock.pathfinder-2e-item-layout .property { line-height: var(--statblock-property-line-height); } - +.statblock.pathfinder-2e-item-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} .statblock.pathfinder-2e-misc-layout .line { line-height: var(--statblock-property-line-height); display: block; @@ -2122,12 +3318,34 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-misc-layout .statblock-rendered-text-content { color: var(--statblock-property-name-font-color); font-weight: var(--statblock-property-name-font-weight); + font-style: normal; } .statblock.pathfinder-2e-misc-layout .statblock-markdown, .statblock.pathfinder-2e-misc-layout .property { line-height: var(--statblock-property-line-height); } - +.statblock.pathfinder-2e-misc-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} +.statblock.pathfinder-2e-plane-layout .line { + line-height: var(--statblock-property-line-height); + display: block; + color: var(--statblock-property-font-color); +} +.statblock.pathfinder-2e-plane-layout .statblock-rendered-text-content { + color: var(--statblock-property-name-font-color); + font-weight: var(--statblock-property-name-font-weight); + font-style: normal; +} +.statblock.pathfinder-2e-plane-layout .statblock-markdown, +.statblock.pathfinder-2e-plane-layout .property { + line-height: var(--statblock-property-line-height); +} +.statblock.pathfinder-2e-plane-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} .statblock.pathfinder-2e-quest-layout .line { line-height: var(--statblock-property-line-height); display: block; @@ -2136,12 +3354,16 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-quest-layout .statblock-rendered-text-content { color: var(--statblock-property-name-font-color); font-weight: var(--statblock-property-name-font-weight); + font-style: normal; } .statblock.pathfinder-2e-quest-layout .statblock-markdown, .statblock.pathfinder-2e-quest-layout .property { line-height: var(--statblock-property-line-height); } - +.statblock.pathfinder-2e-quest-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} .statblock.pathfinder-2e-settlement-layout .line { line-height: var(--statblock-property-line-height); display: block; @@ -2150,14 +3372,38 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-settlement-layout .statblock-rendered-text-content { color: var(--statblock-property-name-font-color); font-weight: var(--statblock-property-name-font-weight); + font-style: normal; } .statblock.pathfinder-2e-settlement-layout .statblock-markdown, .statblock.pathfinder-2e-settlement-layout .property { line-height: var(--statblock-property-line-height); } - +.statblock.pathfinder-2e-settlement-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} +.statblock.pathfinder-2e-affliction-layout .line { + line-height: var(--statblock-property-line-height); + display: block; + color: var(--statblock-property-font-color); +} +.statblock.pathfinder-2e-affliction-layout .statblock-rendered-text-content { + color: var(--statblock-property-name-font-color); + font-weight: var(--statblock-property-name-font-weight); + font-style: normal; +} +.statblock.pathfinder-2e-affliction-layout .statblock-markdown, +.statblock.pathfinder-2e-affliction-layout .property { + line-height: var(--statblock-property-line-height); +} +.statblock.pathfinder-2e-affliction-layout .property-name strong > em { + color: var(--active-traits-name-font-color); + font-weight: var(--statblock-traits-name-font-weight); +} +.statblock.pathfinder-2e-creature-layout .property-name { + margin-right: 0; +} .statblock.basic-pathfinder-2e-layout .statblock-item-inline:has(.statblock-inline-item .name) { - /* Formatting of the statblock heading */ display: flex; flex-direction: row; margin-inline: 0.25em; @@ -2186,9 +3432,36 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se max-width: unset; padding: var(--statblock-header-image-padding); } - +.statblock.pathfinder-2e-creature-layout .statblock-item-inline:has(.statblock-inline-item .name) { + display: flex; + flex-direction: row; + margin-inline: 0.25em; + gap: 0.25em; + align-items: center; +} +.statblock.pathfinder-2e-creature-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container:has(.name) { + flex: 1; +} +.statblock.pathfinder-2e-creature-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .name p, +.statblock.pathfinder-2e-creature-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .level p { + align-self: flex-start; + font-size: 1.3em; + font-weight: 900; + line-height: 1.5em; + text-transform: uppercase; +} +.statblock.pathfinder-2e-creature-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .name span.property-name, +.statblock.pathfinder-2e-creature-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .level span.property-name { + display: none; +} +.statblock.pathfinder-2e-creature-layout .statblock-item-inline:has(.statblock-inline-item .name) .pathfinder-2e-quest-icon { + display: block; + height: var(--statblock-header-image-height); + width: unset; + max-width: unset; + padding: var(--statblock-header-image-padding); +} .statblock.pathfinder-2e-action-layout .statblock-item-inline:has(.statblock-inline-item .name) { - /* Formatting of the statblock heading */ display: flex; flex-direction: row; margin-inline: 0.25em; @@ -2217,9 +3490,7 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se max-width: unset; padding: var(--statblock-header-image-padding); } - .statblock.pathfinder-2e-hazard-layout .statblock-item-inline:has(.statblock-inline-item .name) { - /* Formatting of the statblock heading */ display: flex; flex-direction: row; margin-inline: 0.25em; @@ -2248,9 +3519,7 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se max-width: unset; padding: var(--statblock-header-image-padding); } - .statblock.pathfinder-2e-influence-layout .statblock-item-inline:has(.statblock-inline-item .name) { - /* Formatting of the statblock heading */ display: flex; flex-direction: row; margin-inline: 0.25em; @@ -2279,9 +3548,36 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se max-width: unset; padding: var(--statblock-header-image-padding); } - +.statblock.pathfinder-2e-item-layout .statblock-item-inline:has(.statblock-inline-item .name) { + display: flex; + flex-direction: row; + margin-inline: 0.25em; + gap: 0.25em; + align-items: center; +} +.statblock.pathfinder-2e-item-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container:has(.name) { + flex: 1; +} +.statblock.pathfinder-2e-item-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .name p, +.statblock.pathfinder-2e-item-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .level p { + align-self: flex-start; + font-size: 1.3em; + font-weight: 900; + line-height: 1.5em; + text-transform: uppercase; +} +.statblock.pathfinder-2e-item-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .name span.property-name, +.statblock.pathfinder-2e-item-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .level span.property-name { + display: none; +} +.statblock.pathfinder-2e-item-layout .statblock-item-inline:has(.statblock-inline-item .name) .pathfinder-2e-quest-icon { + display: block; + height: var(--statblock-header-image-height); + width: unset; + max-width: unset; + padding: var(--statblock-header-image-padding); +} .statblock.pathfinder-2e-misc-layout .statblock-item-inline:has(.statblock-inline-item .name) { - /* Formatting of the statblock heading */ display: flex; flex-direction: row; margin-inline: 0.25em; @@ -2310,9 +3606,36 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se max-width: unset; padding: var(--statblock-header-image-padding); } - +.statblock.pathfinder-2e-plane-layout .statblock-item-inline:has(.statblock-inline-item .name) { + display: flex; + flex-direction: row; + margin-inline: 0.25em; + gap: 0.25em; + align-items: center; +} +.statblock.pathfinder-2e-plane-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container:has(.name) { + flex: 1; +} +.statblock.pathfinder-2e-plane-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .name p, +.statblock.pathfinder-2e-plane-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .level p { + align-self: flex-start; + font-size: 1.3em; + font-weight: 900; + line-height: 1.5em; + text-transform: uppercase; +} +.statblock.pathfinder-2e-plane-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .name span.property-name, +.statblock.pathfinder-2e-plane-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .level span.property-name { + display: none; +} +.statblock.pathfinder-2e-plane-layout .statblock-item-inline:has(.statblock-inline-item .name) .pathfinder-2e-quest-icon { + display: block; + height: var(--statblock-header-image-height); + width: unset; + max-width: unset; + padding: var(--statblock-header-image-padding); +} .statblock.pathfinder-2e-quest-layout .statblock-item-inline:has(.statblock-inline-item .name) { - /* Formatting of the statblock heading */ display: flex; flex-direction: row; margin-inline: 0.25em; @@ -2341,9 +3664,7 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se max-width: unset; padding: var(--statblock-header-image-padding); } - .statblock.pathfinder-2e-settlement-layout .statblock-item-inline:has(.statblock-inline-item .name) { - /* Formatting of the statblock heading */ display: flex; flex-direction: row; margin-inline: 0.25em; @@ -2372,7 +3693,35 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se max-width: unset; padding: var(--statblock-header-image-padding); } - +.statblock.pathfinder-2e-affliction-layout .statblock-item-inline:has(.statblock-inline-item .name) { + display: flex; + flex-direction: row; + margin-inline: 0.25em; + gap: 0.25em; + align-items: center; +} +.statblock.pathfinder-2e-affliction-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container:has(.name) { + flex: 1; +} +.statblock.pathfinder-2e-affliction-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .name p, +.statblock.pathfinder-2e-affliction-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .level p { + align-self: flex-start; + font-size: 1.3em; + font-weight: 900; + line-height: 1.5em; + text-transform: uppercase; +} +.statblock.pathfinder-2e-affliction-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .name span.property-name, +.statblock.pathfinder-2e-affliction-layout .statblock-item-inline:has(.statblock-inline-item .name) .statblock-inline-item.property-container .level span.property-name { + display: none; +} +.statblock.pathfinder-2e-affliction-layout .statblock-item-inline:has(.statblock-inline-item .name) .pathfinder-2e-quest-icon { + display: block; + height: var(--statblock-header-image-height); + width: unset; + max-width: unset; + padding: var(--statblock-header-image-padding); +} .statblock.basic-pathfinder-2e-layout img { display: inline; position: relative; @@ -2408,7 +3757,41 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.basic-pathfinder-2e-layout .statblock-inline-item .image .pointer { cursor: pointer; } - +.statblock.pathfinder-2e-creature-layout img { + display: inline; + position: relative; + border: none; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-creature-layout .image-container { + text-align: center; +} +.statblock.pathfinder-2e-creature-layout .token > a { + display: inline; +} +.statblock.pathfinder-2e-creature-layout .image { + width: var(--statblock-image-width); + height: var(--statblock-image-height); + display: inline; + max-height: fit-content; + max-width: fit-content; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-creature-layout .statblock-inline-item .image { + width: fit-content; + height: fit-content; +} +.statblock.pathfinder-2e-creature-layout .statblock-inline-item .image img { + border: none; + display: inline; + position: relative; + align-self: center; + object-fit: contain; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-creature-layout .statblock-inline-item .image .pointer { + cursor: pointer; +} .statblock.pathfinder-2e-action-layout img { display: inline; position: relative; @@ -2444,7 +3827,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-action-layout .statblock-inline-item .image .pointer { cursor: pointer; } - .statblock.pathfinder-2e-hazard-layout img { display: inline; position: relative; @@ -2480,7 +3862,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-hazard-layout .statblock-inline-item .image .pointer { cursor: pointer; } - .statblock.pathfinder-2e-influence-layout img { display: inline; position: relative; @@ -2516,7 +3897,41 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-influence-layout .statblock-inline-item .image .pointer { cursor: pointer; } - +.statblock.pathfinder-2e-item-layout img { + display: inline; + position: relative; + border: none; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-item-layout .image-container { + text-align: center; +} +.statblock.pathfinder-2e-item-layout .token > a { + display: inline; +} +.statblock.pathfinder-2e-item-layout .image { + width: var(--statblock-image-width); + height: var(--statblock-image-height); + display: inline; + max-height: fit-content; + max-width: fit-content; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-item-layout .statblock-inline-item .image { + width: fit-content; + height: fit-content; +} +.statblock.pathfinder-2e-item-layout .statblock-inline-item .image img { + border: none; + display: inline; + position: relative; + align-self: center; + object-fit: contain; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-item-layout .statblock-inline-item .image .pointer { + cursor: pointer; +} .statblock.pathfinder-2e-misc-layout img { display: inline; position: relative; @@ -2552,7 +3967,41 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-misc-layout .statblock-inline-item .image .pointer { cursor: pointer; } - +.statblock.pathfinder-2e-plane-layout img { + display: inline; + position: relative; + border: none; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-plane-layout .image-container { + text-align: center; +} +.statblock.pathfinder-2e-plane-layout .token > a { + display: inline; +} +.statblock.pathfinder-2e-plane-layout .image { + width: var(--statblock-image-width); + height: var(--statblock-image-height); + display: inline; + max-height: fit-content; + max-width: fit-content; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-plane-layout .statblock-inline-item .image { + width: fit-content; + height: fit-content; +} +.statblock.pathfinder-2e-plane-layout .statblock-inline-item .image img { + border: none; + display: inline; + position: relative; + align-self: center; + object-fit: contain; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-plane-layout .statblock-inline-item .image .pointer { + cursor: pointer; +} .statblock.pathfinder-2e-quest-layout img { display: inline; position: relative; @@ -2588,7 +4037,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-quest-layout .statblock-inline-item .image .pointer { cursor: pointer; } - .statblock.pathfinder-2e-settlement-layout img { display: inline; position: relative; @@ -2609,11 +4057,46 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se max-width: fit-content; transform: rotateY(180deg); } -.statblock.pathfinder-2e-settlement-layout .statblock-inline-item .image { +.statblock.pathfinder-2e-settlement-layout .statblock-inline-item .image { + width: fit-content; + height: fit-content; +} +.statblock.pathfinder-2e-settlement-layout .statblock-inline-item .image img { + border: none; + display: inline; + position: relative; + align-self: center; + object-fit: contain; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-settlement-layout .statblock-inline-item .image .pointer { + cursor: pointer; +} +.statblock.pathfinder-2e-affliction-layout img { + display: inline; + position: relative; + border: none; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-affliction-layout .image-container { + text-align: center; +} +.statblock.pathfinder-2e-affliction-layout .token > a { + display: inline; +} +.statblock.pathfinder-2e-affliction-layout .image { + width: var(--statblock-image-width); + height: var(--statblock-image-height); + display: inline; + max-height: fit-content; + max-width: fit-content; + transform: rotateY(180deg); +} +.statblock.pathfinder-2e-affliction-layout .statblock-inline-item .image { width: fit-content; height: fit-content; } -.statblock.pathfinder-2e-settlement-layout .statblock-inline-item .image img { +.statblock.pathfinder-2e-affliction-layout .statblock-inline-item .image img { border: none; display: inline; position: relative; @@ -2621,10 +4104,9 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se object-fit: contain; transform: rotateY(180deg); } -.statblock.pathfinder-2e-settlement-layout .statblock-inline-item .image .pointer { +.statblock.pathfinder-2e-affliction-layout .statblock-inline-item .image .pointer { cursor: pointer; } - .statblock.basic-pathfinder-2e-layout .traits { margin: 0 0.25em 0 0; display: inline; @@ -2633,19 +4115,15 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.basic-pathfinder-2e-layout .rare_01 { background-color: var(--statblock-color-common) !important; - /* common */ } .statblock.basic-pathfinder-2e-layout .rare_02 { background-color: var(--statblock-color-uncommon) !important; - /* uncommon */ } .statblock.basic-pathfinder-2e-layout .rare_03 { background-color: var(--statblock-color-rare) !important; - /* rare */ } .statblock.basic-pathfinder-2e-layout .rare_04 { background-color: var(--statblock-color-unique) !important; - /* unique */ } .statblock.basic-pathfinder-2e-layout .alignment { background-color: var(--statblock-color-alignment) !important; @@ -2707,7 +4185,91 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.basic-pathfinder-2e-layout .trait_07 span.property-name { display: none; } - +.statblock.pathfinder-2e-creature-layout .traits { + margin: 0 0.25em 0 0; + display: inline; + font-weight: 900 !important; + font-style: normal !important; +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container { + margin: 0; +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container > .line.traits { + margin: 0; + display: block; +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container .property-name { + display: none; +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container ul { + row-gap: var(--statblock-traits-gap); + display: flex; + flex-flow: row wrap; + place-content: start; + justify-content: flex-start; + padding: 0; + margin: 0; + list-style: none; +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li { + display: block; + background-color: var(--statblock-color-trait); + margin: 0 var(--statblock-traits-gap) 0 0; + color: rgb(255, 255, 255) !important; + font-size: 12px; + font-style: normal !important; + font-weight: 900 !important; + letter-spacing: 0.01em; + min-width: 4em; + text-align: center; + text-transform: uppercase; + padding: 0; +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li:not(:has(> .alignment, > .rarity, > .size)), +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li > span:is(.alignment, .rarity, .size) { + padding: 0.4em 1.1em 0.2em; + line-height: var(--statblock-property-line-height); +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li > span:is(.alignment, .rarity, .size) { + width: 100%; + height: 100%; + display: block; +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li::before { + display: none; +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li strong, +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li i, +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li em, +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li b { + color: rgb(255, 255, 255); +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li a, +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li a:-webkit-any-link, +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li a.internal-link { + color: rgb(255, 255, 255); + text-decoration: none; + text-transform: uppercase; + font-style: normal; +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li > .common { + background-color: var(--statblock-color-common); +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li > .uncommon { + background-color: var(--statblock-color-uncommon); +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li > .rare { + background-color: var(--statblock-color-rare); +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li > .unique { + background-color: var(--statblock-color-unique); +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li > .alignment { + background-color: var(--statblock-color-alignment); +} +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container li > .size { + background-color: var(--statblock-color-size); +} .statblock.pathfinder-2e-action-layout .traits { margin: 0 0.25em 0 0; display: inline; @@ -2716,19 +4278,15 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-action-layout .rare_01 { background-color: var(--statblock-color-common) !important; - /* common */ } .statblock.pathfinder-2e-action-layout .rare_02 { background-color: var(--statblock-color-uncommon) !important; - /* uncommon */ } .statblock.pathfinder-2e-action-layout .rare_03 { background-color: var(--statblock-color-rare) !important; - /* rare */ } .statblock.pathfinder-2e-action-layout .rare_04 { background-color: var(--statblock-color-unique) !important; - /* unique */ } .statblock.pathfinder-2e-action-layout .alignment { background-color: var(--statblock-color-alignment) !important; @@ -2790,7 +4348,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-action-layout .trait_07 span.property-name { display: none; } - .statblock.pathfinder-2e-hazard-layout .traits { margin: 0 0.25em 0 0; display: inline; @@ -2799,19 +4356,15 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-hazard-layout .rare_01 { background-color: var(--statblock-color-common) !important; - /* common */ } .statblock.pathfinder-2e-hazard-layout .rare_02 { background-color: var(--statblock-color-uncommon) !important; - /* uncommon */ } .statblock.pathfinder-2e-hazard-layout .rare_03 { background-color: var(--statblock-color-rare) !important; - /* rare */ } .statblock.pathfinder-2e-hazard-layout .rare_04 { background-color: var(--statblock-color-unique) !important; - /* unique */ } .statblock.pathfinder-2e-hazard-layout .alignment { background-color: var(--statblock-color-alignment) !important; @@ -2873,7 +4426,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-hazard-layout .trait_07 span.property-name { display: none; } - .statblock.pathfinder-2e-influence-layout .traits { margin: 0 0.25em 0 0; display: inline; @@ -2882,19 +4434,15 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-influence-layout .rare_01 { background-color: var(--statblock-color-common) !important; - /* common */ } .statblock.pathfinder-2e-influence-layout .rare_02 { background-color: var(--statblock-color-uncommon) !important; - /* uncommon */ } .statblock.pathfinder-2e-influence-layout .rare_03 { background-color: var(--statblock-color-rare) !important; - /* rare */ } .statblock.pathfinder-2e-influence-layout .rare_04 { background-color: var(--statblock-color-unique) !important; - /* unique */ } .statblock.pathfinder-2e-influence-layout .alignment { background-color: var(--statblock-color-alignment) !important; @@ -2956,7 +4504,84 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-influence-layout .trait_07 span.property-name { display: none; } - +.statblock.pathfinder-2e-item-layout .traits { + margin: 0 0.25em 0 0; + display: inline; + font-weight: 900 !important; + font-style: normal !important; +} +.statblock.pathfinder-2e-item-layout .rare_01 { + background-color: var(--statblock-color-common) !important; +} +.statblock.pathfinder-2e-item-layout .rare_02 { + background-color: var(--statblock-color-uncommon) !important; +} +.statblock.pathfinder-2e-item-layout .rare_03 { + background-color: var(--statblock-color-rare) !important; +} +.statblock.pathfinder-2e-item-layout .rare_04 { + background-color: var(--statblock-color-unique) !important; +} +.statblock.pathfinder-2e-item-layout .alignment { + background-color: var(--statblock-color-alignment) !important; +} +.statblock.pathfinder-2e-item-layout .size { + background-color: var(--statblock-color-size) !important; +} +.statblock.pathfinder-2e-item-layout .xp, +.statblock.pathfinder-2e-item-layout .kingdom_xp, +.statblock.pathfinder-2e-item-layout .trait_01, +.statblock.pathfinder-2e-item-layout .trait_02, +.statblock.pathfinder-2e-item-layout .trait_03, +.statblock.pathfinder-2e-item-layout .trait_04, +.statblock.pathfinder-2e-item-layout .trait_05, +.statblock.pathfinder-2e-item-layout .trait_06, +.statblock.pathfinder-2e-item-layout .trait_07 { + background-color: var(--statblock-color-trait) !important; +} +.statblock.pathfinder-2e-item-layout .rare_01, +.statblock.pathfinder-2e-item-layout .rare_02, +.statblock.pathfinder-2e-item-layout .rare_03, +.statblock.pathfinder-2e-item-layout .rare_04, +.statblock.pathfinder-2e-item-layout .alignment, +.statblock.pathfinder-2e-item-layout .size, +.statblock.pathfinder-2e-item-layout .xp, +.statblock.pathfinder-2e-item-layout .kingdom_xp, +.statblock.pathfinder-2e-item-layout .trait_01, +.statblock.pathfinder-2e-item-layout .trait_02, +.statblock.pathfinder-2e-item-layout .trait_03, +.statblock.pathfinder-2e-item-layout .trait_04, +.statblock.pathfinder-2e-item-layout .trait_05, +.statblock.pathfinder-2e-item-layout .trait_06, +.statblock.pathfinder-2e-item-layout .trait_07 { + color: rgb(255, 255, 255) !important; + font-size: 12px; + font-style: normal !important; + font-weight: 900 !important; + letter-spacing: 0.01em; + min-width: 4em; + margin: 0 var(--statblock-traits-gap) 0 0; + padding: 0.4em 1.1em 0.2em; + text-align: center; + text-transform: uppercase; +} +.statblock.pathfinder-2e-item-layout .rare_01 span.property-name, +.statblock.pathfinder-2e-item-layout .rare_02 span.property-name, +.statblock.pathfinder-2e-item-layout .rare_03 span.property-name, +.statblock.pathfinder-2e-item-layout .rare_04 span.property-name, +.statblock.pathfinder-2e-item-layout .alignment span.property-name, +.statblock.pathfinder-2e-item-layout .size span.property-name, +.statblock.pathfinder-2e-item-layout .xp span.property-name, +.statblock.pathfinder-2e-item-layout .kingdom_xp span.property-name, +.statblock.pathfinder-2e-item-layout .trait_01 span.property-name, +.statblock.pathfinder-2e-item-layout .trait_02 span.property-name, +.statblock.pathfinder-2e-item-layout .trait_03 span.property-name, +.statblock.pathfinder-2e-item-layout .trait_04 span.property-name, +.statblock.pathfinder-2e-item-layout .trait_05 span.property-name, +.statblock.pathfinder-2e-item-layout .trait_06 span.property-name, +.statblock.pathfinder-2e-item-layout .trait_07 span.property-name { + display: none; +} .statblock.pathfinder-2e-misc-layout .traits { margin: 0 0.25em 0 0; display: inline; @@ -2965,19 +4590,15 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-misc-layout .rare_01 { background-color: var(--statblock-color-common) !important; - /* common */ } .statblock.pathfinder-2e-misc-layout .rare_02 { background-color: var(--statblock-color-uncommon) !important; - /* uncommon */ } .statblock.pathfinder-2e-misc-layout .rare_03 { background-color: var(--statblock-color-rare) !important; - /* rare */ } .statblock.pathfinder-2e-misc-layout .rare_04 { background-color: var(--statblock-color-unique) !important; - /* unique */ } .statblock.pathfinder-2e-misc-layout .alignment { background-color: var(--statblock-color-alignment) !important; @@ -3039,7 +4660,84 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-misc-layout .trait_07 span.property-name { display: none; } - +.statblock.pathfinder-2e-plane-layout .traits { + margin: 0 0.25em 0 0; + display: inline; + font-weight: 900 !important; + font-style: normal !important; +} +.statblock.pathfinder-2e-plane-layout .rare_01 { + background-color: var(--statblock-color-common) !important; +} +.statblock.pathfinder-2e-plane-layout .rare_02 { + background-color: var(--statblock-color-uncommon) !important; +} +.statblock.pathfinder-2e-plane-layout .rare_03 { + background-color: var(--statblock-color-rare) !important; +} +.statblock.pathfinder-2e-plane-layout .rare_04 { + background-color: var(--statblock-color-unique) !important; +} +.statblock.pathfinder-2e-plane-layout .alignment { + background-color: var(--statblock-color-alignment) !important; +} +.statblock.pathfinder-2e-plane-layout .size { + background-color: var(--statblock-color-size) !important; +} +.statblock.pathfinder-2e-plane-layout .xp, +.statblock.pathfinder-2e-plane-layout .kingdom_xp, +.statblock.pathfinder-2e-plane-layout .trait_01, +.statblock.pathfinder-2e-plane-layout .trait_02, +.statblock.pathfinder-2e-plane-layout .trait_03, +.statblock.pathfinder-2e-plane-layout .trait_04, +.statblock.pathfinder-2e-plane-layout .trait_05, +.statblock.pathfinder-2e-plane-layout .trait_06, +.statblock.pathfinder-2e-plane-layout .trait_07 { + background-color: var(--statblock-color-trait) !important; +} +.statblock.pathfinder-2e-plane-layout .rare_01, +.statblock.pathfinder-2e-plane-layout .rare_02, +.statblock.pathfinder-2e-plane-layout .rare_03, +.statblock.pathfinder-2e-plane-layout .rare_04, +.statblock.pathfinder-2e-plane-layout .alignment, +.statblock.pathfinder-2e-plane-layout .size, +.statblock.pathfinder-2e-plane-layout .xp, +.statblock.pathfinder-2e-plane-layout .kingdom_xp, +.statblock.pathfinder-2e-plane-layout .trait_01, +.statblock.pathfinder-2e-plane-layout .trait_02, +.statblock.pathfinder-2e-plane-layout .trait_03, +.statblock.pathfinder-2e-plane-layout .trait_04, +.statblock.pathfinder-2e-plane-layout .trait_05, +.statblock.pathfinder-2e-plane-layout .trait_06, +.statblock.pathfinder-2e-plane-layout .trait_07 { + color: rgb(255, 255, 255) !important; + font-size: 12px; + font-style: normal !important; + font-weight: 900 !important; + letter-spacing: 0.01em; + min-width: 4em; + margin: 0 var(--statblock-traits-gap) 0 0; + padding: 0.4em 1.1em 0.2em; + text-align: center; + text-transform: uppercase; +} +.statblock.pathfinder-2e-plane-layout .rare_01 span.property-name, +.statblock.pathfinder-2e-plane-layout .rare_02 span.property-name, +.statblock.pathfinder-2e-plane-layout .rare_03 span.property-name, +.statblock.pathfinder-2e-plane-layout .rare_04 span.property-name, +.statblock.pathfinder-2e-plane-layout .alignment span.property-name, +.statblock.pathfinder-2e-plane-layout .size span.property-name, +.statblock.pathfinder-2e-plane-layout .xp span.property-name, +.statblock.pathfinder-2e-plane-layout .kingdom_xp span.property-name, +.statblock.pathfinder-2e-plane-layout .trait_01 span.property-name, +.statblock.pathfinder-2e-plane-layout .trait_02 span.property-name, +.statblock.pathfinder-2e-plane-layout .trait_03 span.property-name, +.statblock.pathfinder-2e-plane-layout .trait_04 span.property-name, +.statblock.pathfinder-2e-plane-layout .trait_05 span.property-name, +.statblock.pathfinder-2e-plane-layout .trait_06 span.property-name, +.statblock.pathfinder-2e-plane-layout .trait_07 span.property-name { + display: none; +} .statblock.pathfinder-2e-quest-layout .traits { margin: 0 0.25em 0 0; display: inline; @@ -3048,19 +4746,15 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-quest-layout .rare_01 { background-color: var(--statblock-color-common) !important; - /* common */ } .statblock.pathfinder-2e-quest-layout .rare_02 { background-color: var(--statblock-color-uncommon) !important; - /* uncommon */ } .statblock.pathfinder-2e-quest-layout .rare_03 { background-color: var(--statblock-color-rare) !important; - /* rare */ } .statblock.pathfinder-2e-quest-layout .rare_04 { background-color: var(--statblock-color-unique) !important; - /* unique */ } .statblock.pathfinder-2e-quest-layout .alignment { background-color: var(--statblock-color-alignment) !important; @@ -3122,7 +4816,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-quest-layout .trait_07 span.property-name { display: none; } - .statblock.pathfinder-2e-settlement-layout .traits { margin: 0 0.25em 0 0; display: inline; @@ -3131,19 +4824,15 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se } .statblock.pathfinder-2e-settlement-layout .rare_01 { background-color: var(--statblock-color-common) !important; - /* common */ } .statblock.pathfinder-2e-settlement-layout .rare_02 { background-color: var(--statblock-color-uncommon) !important; - /* uncommon */ } .statblock.pathfinder-2e-settlement-layout .rare_03 { background-color: var(--statblock-color-rare) !important; - /* rare */ } .statblock.pathfinder-2e-settlement-layout .rare_04 { background-color: var(--statblock-color-unique) !important; - /* unique */ } .statblock.pathfinder-2e-settlement-layout .alignment { background-color: var(--statblock-color-alignment) !important; @@ -3205,56 +4894,150 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se .statblock.pathfinder-2e-settlement-layout .trait_07 span.property-name { display: none; } - +.statblock.pathfinder-2e-affliction-layout .traits { + margin: 0 0.25em 0 0; + display: inline; + font-weight: 900 !important; + font-style: normal !important; +} +.statblock.pathfinder-2e-affliction-layout .rare_01 { + background-color: var(--statblock-color-common) !important; +} +.statblock.pathfinder-2e-affliction-layout .rare_02 { + background-color: var(--statblock-color-uncommon) !important; +} +.statblock.pathfinder-2e-affliction-layout .rare_03 { + background-color: var(--statblock-color-rare) !important; +} +.statblock.pathfinder-2e-affliction-layout .rare_04 { + background-color: var(--statblock-color-unique) !important; +} +.statblock.pathfinder-2e-affliction-layout .alignment { + background-color: var(--statblock-color-alignment) !important; +} +.statblock.pathfinder-2e-affliction-layout .size { + background-color: var(--statblock-color-size) !important; +} +.statblock.pathfinder-2e-affliction-layout .xp, +.statblock.pathfinder-2e-affliction-layout .kingdom_xp, +.statblock.pathfinder-2e-affliction-layout .trait_01, +.statblock.pathfinder-2e-affliction-layout .trait_02, +.statblock.pathfinder-2e-affliction-layout .trait_03, +.statblock.pathfinder-2e-affliction-layout .trait_04, +.statblock.pathfinder-2e-affliction-layout .trait_05, +.statblock.pathfinder-2e-affliction-layout .trait_06, +.statblock.pathfinder-2e-affliction-layout .trait_07 { + background-color: var(--statblock-color-trait) !important; +} +.statblock.pathfinder-2e-affliction-layout .rare_01, +.statblock.pathfinder-2e-affliction-layout .rare_02, +.statblock.pathfinder-2e-affliction-layout .rare_03, +.statblock.pathfinder-2e-affliction-layout .rare_04, +.statblock.pathfinder-2e-affliction-layout .alignment, +.statblock.pathfinder-2e-affliction-layout .size, +.statblock.pathfinder-2e-affliction-layout .xp, +.statblock.pathfinder-2e-affliction-layout .kingdom_xp, +.statblock.pathfinder-2e-affliction-layout .trait_01, +.statblock.pathfinder-2e-affliction-layout .trait_02, +.statblock.pathfinder-2e-affliction-layout .trait_03, +.statblock.pathfinder-2e-affliction-layout .trait_04, +.statblock.pathfinder-2e-affliction-layout .trait_05, +.statblock.pathfinder-2e-affliction-layout .trait_06, +.statblock.pathfinder-2e-affliction-layout .trait_07 { + color: rgb(255, 255, 255) !important; + font-size: 12px; + font-style: normal !important; + font-weight: 900 !important; + letter-spacing: 0.01em; + min-width: 4em; + margin: 0 var(--statblock-traits-gap) 0 0; + padding: 0.4em 1.1em 0.2em; + text-align: center; + text-transform: uppercase; +} +.statblock.pathfinder-2e-affliction-layout .rare_01 span.property-name, +.statblock.pathfinder-2e-affliction-layout .rare_02 span.property-name, +.statblock.pathfinder-2e-affliction-layout .rare_03 span.property-name, +.statblock.pathfinder-2e-affliction-layout .rare_04 span.property-name, +.statblock.pathfinder-2e-affliction-layout .alignment span.property-name, +.statblock.pathfinder-2e-affliction-layout .size span.property-name, +.statblock.pathfinder-2e-affliction-layout .xp span.property-name, +.statblock.pathfinder-2e-affliction-layout .kingdom_xp span.property-name, +.statblock.pathfinder-2e-affliction-layout .trait_01 span.property-name, +.statblock.pathfinder-2e-affliction-layout .trait_02 span.property-name, +.statblock.pathfinder-2e-affliction-layout .trait_03 span.property-name, +.statblock.pathfinder-2e-affliction-layout .trait_04 span.property-name, +.statblock.pathfinder-2e-affliction-layout .trait_05 span.property-name, +.statblock.pathfinder-2e-affliction-layout .trait_06 span.property-name, +.statblock.pathfinder-2e-affliction-layout .trait_07 span.property-name { + display: none; +} .statblock.basic-pathfinder-2e-layout .dice-roller-result { font-weight: var(--statblock-font-weight); } .statblock.basic-pathfinder-2e-layout .roller-result { font-weight: var(--statblock-font-weight); } - +.statblock.pathfinder-2e-creature-layout .dice-roller-result { + font-weight: var(--statblock-font-weight); +} +.statblock.pathfinder-2e-creature-layout .roller-result { + font-weight: var(--statblock-font-weight); +} .statblock.pathfinder-2e-action-layout .dice-roller-result { font-weight: var(--statblock-font-weight); } .statblock.pathfinder-2e-action-layout .roller-result { font-weight: var(--statblock-font-weight); } - .statblock.pathfinder-2e-hazard-layout .dice-roller-result { font-weight: var(--statblock-font-weight); } .statblock.pathfinder-2e-hazard-layout .roller-result { font-weight: var(--statblock-font-weight); } - .statblock.pathfinder-2e-influence-layout .dice-roller-result { font-weight: var(--statblock-font-weight); } .statblock.pathfinder-2e-influence-layout .roller-result { font-weight: var(--statblock-font-weight); } - +.statblock.pathfinder-2e-item-layout .dice-roller-result { + font-weight: var(--statblock-font-weight); +} +.statblock.pathfinder-2e-item-layout .roller-result { + font-weight: var(--statblock-font-weight); +} .statblock.pathfinder-2e-misc-layout .dice-roller-result { font-weight: var(--statblock-font-weight); } .statblock.pathfinder-2e-misc-layout .roller-result { font-weight: var(--statblock-font-weight); } - +.statblock.pathfinder-2e-plane-layout .dice-roller-result { + font-weight: var(--statblock-font-weight); +} +.statblock.pathfinder-2e-plane-layout .roller-result { + font-weight: var(--statblock-font-weight); +} .statblock.pathfinder-2e-quest-layout .dice-roller-result { font-weight: var(--statblock-font-weight); } .statblock.pathfinder-2e-quest-layout .roller-result { font-weight: var(--statblock-font-weight); } - .statblock.pathfinder-2e-settlement-layout .dice-roller-result { font-weight: var(--statblock-font-weight); } .statblock.pathfinder-2e-settlement-layout .roller-result { font-weight: var(--statblock-font-weight); } - +.statblock.pathfinder-2e-affliction-layout .dice-roller-result { + font-weight: var(--statblock-font-weight); +} +.statblock.pathfinder-2e-affliction-layout .roller-result { + font-weight: var(--statblock-font-weight); +} @media screen and (max-width: 400px) { .statblock.basic-pathfinder-2e-layout .statblock-content > :global(.column) { width: 75vw; @@ -3278,7 +5061,29 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se align-items: center; flex-flow: column nowrap; } - +@media screen and (max-width: 400px) { + .statblock.pathfinder-2e-creature-layout .statblock-content > :global(.column) { + width: 75vw; + } +} +.statblock.pathfinder-2e-creature-layout .spell-line .spells { + font-style: var(--statblock-spells-font-style); +} +.statblock.pathfinder-2e-creature-layout .statblock-table-header { + font-weight: var(--statblock-table-header-font-weight); +} +.statblock.pathfinder-2e-creature-layout .table { + display: flex; + justify-content: space-evenly; + align-items: center; + flex-wrap: wrap; +} +.statblock.pathfinder-2e-creature-layout .table-item { + display: flex; + justify-content: center; + align-items: center; + flex-flow: column nowrap; +} @media screen and (max-width: 400px) { .statblock.pathfinder-2e-action-layout .statblock-content > :global(.column) { width: 75vw; @@ -3302,7 +5107,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se align-items: center; flex-flow: column nowrap; } - @media screen and (max-width: 400px) { .statblock.pathfinder-2e-hazard-layout .statblock-content > :global(.column) { width: 75vw; @@ -3326,7 +5130,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se align-items: center; flex-flow: column nowrap; } - @media screen and (max-width: 400px) { .statblock.pathfinder-2e-influence-layout .statblock-content > :global(.column) { width: 75vw; @@ -3350,7 +5153,29 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se align-items: center; flex-flow: column nowrap; } - +@media screen and (max-width: 400px) { + .statblock.pathfinder-2e-item-layout .statblock-content > :global(.column) { + width: 75vw; + } +} +.statblock.pathfinder-2e-item-layout .spell-line .spells { + font-style: var(--statblock-spells-font-style); +} +.statblock.pathfinder-2e-item-layout .statblock-table-header { + font-weight: var(--statblock-table-header-font-weight); +} +.statblock.pathfinder-2e-item-layout .table { + display: flex; + justify-content: space-evenly; + align-items: center; + flex-wrap: wrap; +} +.statblock.pathfinder-2e-item-layout .table-item { + display: flex; + justify-content: center; + align-items: center; + flex-flow: column nowrap; +} @media screen and (max-width: 400px) { .statblock.pathfinder-2e-misc-layout .statblock-content > :global(.column) { width: 75vw; @@ -3374,7 +5199,29 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se align-items: center; flex-flow: column nowrap; } - +@media screen and (max-width: 400px) { + .statblock.pathfinder-2e-plane-layout .statblock-content > :global(.column) { + width: 75vw; + } +} +.statblock.pathfinder-2e-plane-layout .spell-line .spells { + font-style: var(--statblock-spells-font-style); +} +.statblock.pathfinder-2e-plane-layout .statblock-table-header { + font-weight: var(--statblock-table-header-font-weight); +} +.statblock.pathfinder-2e-plane-layout .table { + display: flex; + justify-content: space-evenly; + align-items: center; + flex-wrap: wrap; +} +.statblock.pathfinder-2e-plane-layout .table-item { + display: flex; + justify-content: center; + align-items: center; + flex-flow: column nowrap; +} @media screen and (max-width: 400px) { .statblock.pathfinder-2e-quest-layout .statblock-content > :global(.column) { width: 75vw; @@ -3398,7 +5245,6 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se align-items: center; flex-flow: column nowrap; } - @media screen and (max-width: 400px) { .statblock.pathfinder-2e-settlement-layout .statblock-content > :global(.column) { width: 75vw; @@ -3422,3 +5268,26 @@ body.pathfinder-2e-settlement-layout-theme-kingmaker .statblock.pathfinder-2e-se align-items: center; flex-flow: column nowrap; } +@media screen and (max-width: 400px) { + .statblock.pathfinder-2e-affliction-layout .statblock-content > :global(.column) { + width: 75vw; + } +} +.statblock.pathfinder-2e-affliction-layout .spell-line .spells { + font-style: var(--statblock-spells-font-style); +} +.statblock.pathfinder-2e-affliction-layout .statblock-table-header { + font-weight: var(--statblock-table-header-font-weight); +} +.statblock.pathfinder-2e-affliction-layout .table { + display: flex; + justify-content: space-evenly; + align-items: center; + flex-wrap: wrap; +} +.statblock.pathfinder-2e-affliction-layout .table-item { + display: flex; + justify-content: center; + align-items: center; + flex-flow: column nowrap; +} From 993432b50321b5f19d89c1ef10c4ebabde67a524 Mon Sep 17 00:00:00 2001 From: miscoined Date: Wed, 17 Jul 2024 09:58:53 +1000 Subject: [PATCH 03/13] chore: Remove unused StatblockPF2e As far as I can tell this is never used anywhere and doesn't appear to have contents relevant to PF2e. --- src/layouts/pathfinder 2e/pf2e.ts | 118 +----------------------------- 1 file changed, 1 insertion(+), 117 deletions(-) diff --git a/src/layouts/pathfinder 2e/pf2e.ts b/src/layouts/pathfinder 2e/pf2e.ts index c7bc9de..1ec45a1 100644 --- a/src/layouts/pathfinder 2e/pf2e.ts +++ b/src/layouts/pathfinder 2e/pf2e.ts @@ -1,122 +1,6 @@ //@ts-nocheck import { nanoid } from "src/util/util"; -import type { DefaultLayout, Layout, StatblockItem } from "../layout.types"; -export const StatblockPF2e: StatblockItem[] = [ - { - type: "inline", - id: nanoid(), - properties: [], - hasRule: true, - nested: [ - { - type: "group", - id: nanoid(), - properties: [ - "name", - "description", - "aspects", - "temporaryAspects" - ], - nested: [ - { - type: "heading", - id: nanoid(), - properties: ["name"], - conditioned: true, - size: 1 - }, - { - type: "text", - id: nanoid(), - properties: ["description"], - conditioned: true, - markdown: true, - text: null, - dice: false - }, - { - type: "text", - id: nanoid(), - properties: ["aspects"], - markdown: true, - text: null, - dice: false, - conditioned: true, - heading: "Aspects" - }, - { - type: "text", - id: nanoid(), - properties: ["temporaryAspects"], - markdown: true, - text: null, - dice: false, - conditioned: true, - heading: "Temporary Aspects" - } - ], - conditioned: true - }, - { - type: "image", - id: nanoid(), - properties: ["image"], - conditioned: true - } - ] - }, - { - type: "table", - id: nanoid(), - properties: ["stress"], - headers: ["Physical", "Mental"], - calculate: false, - hasRule: true, - conditioned: true - }, - { - type: "traits", - id: nanoid(), - properties: ["consequences"], - conditioned: true, - heading: "Consequences" - }, - { - type: "traits", - id: nanoid(), - properties: ["skills"], - conditioned: true, - hasRule: false, - heading: "Skills" - }, - { - type: "traits", - id: nanoid(), - properties: ["stunts"], - markdown: true, - dice: false, - conditioned: true, - heading: "Stunts" - }, - { - type: "traits", - id: nanoid(), - properties: ["items"], - heading: "Items", - conditioned: true, - markdown: true, - dice: false - }, - { - type: "traits", - id: nanoid(), - properties: ["extras"], - heading: "Extras", - conditioned: true, - markdown: true, - dice: false - } -]; +import type { DefaultLayout, Layout } from "../layout.types"; export const LayoutPF2e: DefaultLayout = { blocks: [ From dda44a8ca79fd7ef45127848d92ffb3cf21d7533 Mon Sep 17 00:00:00 2001 From: miscoined Date: Wed, 17 Jul 2024 10:51:28 +1000 Subject: [PATCH 04/13] feat: Pass the plugin object to IfThen layout blocks This allows conditional blocks to do things like check plugin settings and whether other plugins are enabled. In particular, this allows layouts to only show encounter buttons when the Initiative Tracker plugin is enabled. --- src/settings/layout/blocks/ui/IfElseConditions.svelte | 7 ++++++- src/view/ui/ColumnContainer.svelte | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/settings/layout/blocks/ui/IfElseConditions.svelte b/src/settings/layout/blocks/ui/IfElseConditions.svelte index 98de85e..5da4475 100644 --- a/src/settings/layout/blocks/ui/IfElseConditions.svelte +++ b/src/settings/layout/blocks/ui/IfElseConditions.svelte @@ -44,7 +44,12 @@ monster parameter, which can be used to access properties of the - monster being rendered. + monster being rendered, and the + + plugin + + parameter, which is a reference to the Fantasy Statblocks + plugin and can be used for accessing app and plugin settings.

diff --git a/src/view/ui/ColumnContainer.svelte b/src/view/ui/ColumnContainer.svelte index 845a90a..c0eb958 100644 --- a/src/view/ui/ColumnContainer.svelte +++ b/src/view/ui/ColumnContainer.svelte @@ -191,8 +191,8 @@ const funct = (frame.contentWindow as any).Function; let parsed: boolean = false; try { - const func = new funct("monster", condition); - parsed = func.call(undefined, monster) ?? false; + const func = new funct("monster", "plugin", condition); + parsed = func.call(undefined, monster, plugin) ?? false; } catch (e) { console.error(e); continue; From 2f131f5b333ab268a6471dd8c7ca513cc97b1cd7 Mon Sep 17 00:00:00 2001 From: miscoined Date: Wed, 17 Jul 2024 23:27:26 +1000 Subject: [PATCH 05/13] feat: Allow Saves layout blocks to be CSS styled Separates out the name and value into their own HTML elements rather than just rendered text so that we can style individual portions with CSS. This change has no visible effects - existing statblocks should look exactly the same. --- src/view/ui/Saves.svelte | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/view/ui/Saves.svelte b/src/view/ui/Saves.svelte index a95448f..362edbb 100644 --- a/src/view/ui/Saves.svelte +++ b/src/view/ui/Saves.svelte @@ -23,12 +23,11 @@ if (!key) return null; const value = Object.values(ability)[0]; if (typeof value == "string" && isNaN(Number(value))) - return `${toTitleCase(key)} ${value}`; + return [toTitleCase(key), value]; if (!value || isNaN(Number(value))) return null; - return `${toTitleCase(key)} ${getMod(value as number)}`; + return [toTitleCase(key), getMod(value as number)]; }) - .filter((m) => m) - .join(", "); + .filter((m) => m);
@@ -37,7 +36,16 @@ >{item.display ?? toTitleCase(item.properties[0])}
- + {#each saves as [name, value]} +
+
+ +
+
+ +
+
+ {/each}
@@ -59,4 +67,12 @@ display: inline; margin: 0; } + .save-entry, + .save-name, + .save-value { + display: inline; + } + .save-entry:not(:last-child) .save-value::after { + content: ", "; + } From e2673519c5775cde7ea68c8cd3093e2067edf3c5 Mon Sep 17 00:00:00 2001 From: miscoined Date: Thu, 18 Jul 2024 00:54:15 +1000 Subject: [PATCH 06/13] feat: Use CSS to add modifier parens for the Table block This is instead of adding them to the text content itself. This allows layout authors to customize the appearance with CSS. --- src/view/ui/Table.svelte | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/view/ui/Table.svelte b/src/view/ui/Table.svelte index 123f848..a9e8354 100644 --- a/src/view/ui/Table.svelte +++ b/src/view/ui/Table.svelte @@ -23,7 +23,7 @@ const customMod = new Function("stat", "monster", func); mod = customMod(stat, monster); } - return `(${mod >= 0 ? "+" : "-"}${Math.abs(mod)})`; + return `${mod >= 0 ? "+" : "-"}${Math.abs(mod)}`; } let values: any[] = monster[item.properties[0]] as any[]; @@ -58,7 +58,7 @@ {#if item.calculate} - + {getMod(value)} {/if} @@ -84,4 +84,10 @@ align-items: center; flex-flow: column nowrap; } + .calculated-modifier::before { + content: "("; + } + .calculated-modifier::after { + content: ")"; + } From 065d69f549a584fa2201a612c56dbf4af3f942f3 Mon Sep 17 00:00:00 2001 From: miscoined Date: Thu, 18 Jul 2024 01:22:26 +1000 Subject: [PATCH 07/13] feat: Add property-dependant CSS class for Table layout blocks --- src/settings/layout/blocks/ui/block.ts | 11 +++++++++++ src/view/ui/Table.svelte | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/settings/layout/blocks/ui/block.ts b/src/settings/layout/blocks/ui/block.ts index 4bea71d..e32f0f9 100644 --- a/src/settings/layout/blocks/ui/block.ts +++ b/src/settings/layout/blocks/ui/block.ts @@ -926,6 +926,17 @@ class TableModal extends BasicModal { this.block.calculate = v; }); }); + new Setting(el) + .setName("Do Not Add Property as CSS Class") + .setDesc( + "Disable this to prevent adding the property to the containing HTML element as a CSS class. This can be used to avoid collisions with native Obsidian CSS." + ) + .addToggle((t) => { + t.setValue(this.block.doNotAddClass).onChange((v) => { + this.block.doNotAddClass = v; + this.display(); + }); + }); } } class TraitsModal extends MarkdownEnabledModal { diff --git a/src/view/ui/Table.svelte b/src/view/ui/Table.svelte index a9e8354..7f9ff9f 100644 --- a/src/view/ui/Table.svelte +++ b/src/view/ui/Table.svelte @@ -1,7 +1,7 @@ -
+
{#each [...valueMap.entries()].slice(0, headers.length) as [index, values]}
{headers[index]} From 3569d41a867c7b52da02c588297bca27aced2a92 Mon Sep 17 00:00:00 2001 From: miscoined Date: Thu, 18 Jul 2024 01:35:19 +1000 Subject: [PATCH 08/13] fix: Refine the PF2e creature layout Thank you to MostTornBrain for valuable feedback! Most of this comes from there :) - Fix traits only showing when the trait property was present (even if alignment, size, or rarity was present) - Add sign (+/-) to perception modifier - Move Weaknesses before Resistances to match book layout - Don't show Initiative Tracker encounter buttons if Initiative Tracker isn't enabled - Show the initiative tracker view when the encounter buttons are pressed, to match the functionality of encounter buttons in the actual encounter blocks - Bold save names - Add sign (+/-) to ability modifiers --- .../Pathfinder 2e Creature Layout.json | 2 +- src/layouts/pathfinder 2e/pf2e.ts | 80 ++++++++++++------- src/layouts/pathfinder 2e/xCSS/pf2e.css | 12 ++- 3 files changed, 62 insertions(+), 32 deletions(-) diff --git a/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json b/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json index fe5967a..b4695f4 100644 --- a/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json +++ b/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json @@ -1 +1 @@ -{"blocks":[{"type":"inline","id":"e9b8483aeafa","properties":[],"nested":[{"type":"property","id":"2b596a6919fb","properties":["name"],"fallback":"-","markdown":true,"dice":false,"conditioned":true,"display":" "},{"type":"inline","id":"499aea6a9aca","properties":[],"nested":[{"type":"action","id":"8a6a7a499b78","icon":"sword","callback":"try { InitiativeTracker.newEncounter({roll: true, creatures: [monster]}); } catch(e) {}"},{"type":"action","id":"fbea380b09b9","icon":"plus-with-circle","callback":"try { InitiativeTracker.addCreatures([monster]); } catch(e) {}"}]},{"type":"property","id":"98389a48f808","properties":["level"],"fallback":"-","display":" ","conditioned":true,"markdown":true,"dice":false}],"hasRule":true},{"type":"group","id":"4b3a6809a938","properties":[],"nested":[{"type":"property","id":"0979a989583a","properties":["traits"],"fallback":"-","callback":"if (!monster.traits) return \"\";\nvar s = \"\"\nif (monster.rarity) {\n s += `- ${monster.rarity}\\n`\n}\nif (monster.alignment) {\n s += `- ${monster.alignment}\\n`\n}\nif (monster.size) {\n s += `- ${monster.size}\\n`\n}\nfor (const text of monster.traits) {\n s += `- ${text}\\n`\n}\nreturn s;","conditioned":true,"display":""}],"hasRule":true,"cls":"pf2e-traits"},{"type":"group","id":"5999ea79ca3b","properties":[],"nested":[{"type":"inline","id":"881859197838","properties":[],"nested":[{"type":"property","id":"4ad9f92ab8f8","properties":["modifier"],"fallback":"-","display":"Perception","conditioned":false,"dice":false,"diceCallback":"return [\"+\" + property, \" (\", { text: \"1d20+\" + property }, \")\"]"},{"type":"property","id":"8bd82998dadb","properties":["senses"],"fallback":"-","conditioned":true,"display":""}],"cls":"oneline","conditioned":true},{"type":"property","id":"ba28f9384918","properties":["languages"],"fallback":"-","display":"Language","conditioned":true,"markdown":true},{"type":"inline","id":"db1a38ebcb6b","properties":[],"nested":[{"type":"saves","id":"6a2b78099b0b","properties":["skills"],"fallback":"-","display":"Skills","conditioned":true,"dice":true},{"type":"property","id":"2b987aead8ab","properties":["skillsNote"],"fallback":"-","conditioned":true,"display":""}],"heading":"","cls":"oneline","conditioned":true},{"type":"table","id":"b82b0a1a9969","properties":["abilityMods"],"headers":["Str","Dex","Con","Int","Wis","Cha"],"calculate":false,"fallback":"-","conditioned":true,"dice":false},{"type":"property","id":"1b6a98ba4888","properties":["items"],"fallback":"-","display":"Items","conditioned":true},{"type":"traits","id":"e96ba9d8a80a","properties":["abilities_top"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"heading":" ","hasRule":false}],"hasRule":true},{"type":"group","id":"faaa08993a98","properties":[],"nested":[{"type":"inline","id":"3a5ab84a2b89","properties":[],"nested":[{"type":"inline","id":"cb6a7809aa2b","properties":[],"nested":[{"type":"property","id":"6b0b0bda0a7a","properties":["ac"],"fallback":"-","display":"AC"},{"type":"property","id":"0908aaab3b1b","properties":["acNote"],"fallback":"-","conditioned":true,"display":""}],"cls":"withnote","conditioned":true},{"type":"saves","id":"9999386a58ea","properties":["saves"],"fallback":"-","dice":true,"display":"","conditioned":true},{"type":"property","id":"69aa5a7b196a","properties":["savesNote"],"fallback":"-","display":"","conditioned":true}],"cls":"oneline","conditioned":true},{"type":"inline","id":"ea29d9ea5aa8","properties":[],"nested":[{"type":"inline","id":"39584be95ae9","properties":[],"nested":[{"type":"property","id":"bb6989092939","properties":["hp"],"fallback":"-","display":"HP"},{"type":"property","id":"b9fa1a89c8d9","properties":["hpNote"],"fallback":"-","doNotAddClass":false,"conditioned":true,"display":""}],"cls":"withnote","conditioned":true},{"type":"property","id":"4bbaa9380a9b","properties":["hardness"],"fallback":"-","display":"Hardness","conditioned":true},{"type":"property","id":"0a8ac8d96bba","properties":["immunities"],"fallback":"-","conditioned":true,"display":"Immunities"},{"type":"property","id":"8b7a3b89fa59","properties":["resistances"],"fallback":"-","conditioned":true,"display":"Resistances"},{"type":"property","id":"78689b6b6b79","properties":["weaknesses"],"fallback":"-","conditioned":true,"display":"Weaknesses"}],"cls":"oneline","conditioned":true},{"type":"traits","id":"ca2bf968987b","properties":["abilities_mid"],"fallback":"-","heading":"","conditioned":true,"dice":true,"markdown":true,"hasRule":false}],"hasRule":true},{"type":"group","id":"cbeabaf93b58","properties":[],"nested":[{"type":"property","id":"0b4809ba0b29","properties":["speed"],"fallback":"-","display":"Speed","conditioned":true,"markdown":true,"dice":false},{"type":"traits","id":"882bc9aa0898","properties":["attacks"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"headingProp":false,"heading":"","callback":"var s = property.bonus < 0 ? \"-\" : \"+\";\ns += Math.abs(property.bonus);\nif (property.desc) {\n s += \" \" + property.desc\n}\nif (property.damage) {\n s += \", __Damage__ \" + property.damage\n}\nreturn s"},{"type":"traits","id":"faeafb7b6b1b","properties":["spellcasting"],"fallback":"-","conditioned":true,"dice":true,"callback":"const stats = [];\nif (property.dc) {\n stats.push(`DC ${property.dc}`)\n}\nif (property.attack) {\n const sign = property.attack < 0 ? \"-\" : \"+\";\n stats.push(`attack ${sign}${Math.abs(property.attack)}`)\n}\n\nconst s = [];\nif (stats) s.push(stats.join(\", \"));\nif (property.desc) s.push(property.desc)\n\nreturn s.join(\"; \")"},{"type":"traits","id":"aacb399a3b58","properties":["abilities_bot"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"hasRule":false}],"hasRule":true},{"type":"text","id":"1b195a894b58","properties":["token"],"text":null,"fallback":"","heading":"Show to Players","conditioned":true,"markdown":true},{"type":"image","id":"1bba89582b29","properties":["token"],"fallback":"","conditioned":true,"hasRule":true},{"type":"property","id":"88e97a485b79","properties":["sourcebook"],"fallback":"-","conditioned":true,"markdown":true,"dice":false,"display":" Source:"}],"name":"Pathfinder 2e Creature Layout","id":"29280b089ad8","diceParsing":[{"regex":"(\\s|^)(\\d+d\\d+(?:\\s*[+-]\\s*\\d+)?)(\\W|$)","parser":"const [, before, text, after] = matches;\nreturn [before + text, \" (\", { text }, \")\", after];","id":"4a79397b896a","desc":"1d6+10"},{"regex":"(^|\\s)([+-]\\d+)(\\W|$)(?!status|bonus)","parser":"let [, before, bonus, after] = matches;\nreturn [\n before + bonus,\n \" (\", { text: \"1d20\" + bonus }, \")\",\n after\n];","id":"8bb8fbbb0869","desc":"+15"}]} \ No newline at end of file +{"blocks":[{"type":"inline","id":"e9b8483aeafa","properties":[],"nested":[{"type":"property","id":"2b596a6919fb","properties":["name"],"fallback":"-","markdown":true,"dice":false,"conditioned":true,"display":" "},{"type":"ifelse","id":"badbdb298988","conditions":[{"nested":[{"type":"group","id":"990a4a988ae8","properties":[],"nested":[{"type":"inline","id":"499aea6a9aca","properties":[],"nested":[{"type":"action","id":"8a6a7a499b78","icon":"sword","callback":"(async() => {\n if (!InitiativeTracker.plugin.view) {\n await InitiativeTracker.plugin.addTrackerView();\n }\n InitiativeTracker.newEncounter({\n roll: true,\n creatures: [monster]\n });\n if (InitiativeTracker.plugin.view) {\n InitiativeTracker.plugin\n .app\n .workspace\n .revealLeaf(InitiativeTracker.plugin.view.leaf);\n }\n})();"},{"type":"action","id":"fbea380b09b9","icon":"plus-with-circle","callback":"(async() => {\n if (!InitiativeTracker.plugin.view) {\n await InitiativeTracker.plugin.addTrackerView();\n }\n InitiativeTracker.addCreatures([monster]);\n if (InitiativeTracker.plugin.view) {\n InitiativeTracker.plugin\n .app\n .workspace\n .revealLeaf(InitiativeTracker.plugin.view.leaf);\n }\n})();"}]}]}],"condition":"return plugin.app.plugins.enabledPlugins.has(\"initiative-tracker\");\n"}]},{"type":"property","id":"98389a48f808","properties":["level"],"fallback":"-","display":" ","conditioned":true,"markdown":true,"dice":false}],"hasRule":true},{"type":"group","id":"4b3a6809a938","properties":[],"nested":[{"type":"property","id":"0979a989583a","properties":[],"fallback":"-","callback":"const traits = []\nif (monster.rarity && monster.rarity.toLowerCase() !== \"common\") {\n traits.push(`${monster.rarity}`);\n}\n\nif (monster.alignment) {\n traits.push(`${monster.alignment}`);\n}\nif (monster.size) {\n traits.push(`${monster.size}`);\n}\n\nif (monster.traits) {\n traits.push(...monster.traits);\n}\n\nreturn traits ? (\"- \" + traits.join(\"\\n- \")) : \"\";","conditioned":true,"display":""}],"hasRule":true,"cls":"pf2e-traits"},{"type":"group","id":"5999ea79ca3b","properties":[],"nested":[{"type":"inline","id":"881859197838","properties":[],"nested":[{"type":"property","id":"4ad9f92ab8f8","properties":["modifier"],"fallback":"-","display":"Perception","conditioned":false,"dice":false,"diceCallback":"const num = (property < 0 ? \"-\" : \"+\") + Math.abs(property);\nreturn [num, \" (\", { text: \"1d20\"+num }, \")\"];","callback":"return (monster.modifier < 0 ? \"-\" : \"+\") + Math.abs(monster.modifier);"},{"type":"property","id":"8bd82998dadb","properties":["senses"],"fallback":"-","conditioned":true,"display":""}],"cls":"oneline","conditioned":true},{"type":"property","id":"ba28f9384918","properties":["languages"],"fallback":"-","display":"Language","conditioned":true,"markdown":true},{"type":"inline","id":"db1a38ebcb6b","properties":[],"nested":[{"type":"saves","id":"6a2b78099b0b","properties":["skills"],"fallback":"-","display":"Skills","conditioned":true,"dice":true},{"type":"property","id":"2b987aead8ab","properties":["skillsNote"],"fallback":"-","conditioned":true,"display":""}],"heading":"","cls":"oneline","conditioned":true},{"type":"table","id":"b82b0a1a9969","properties":["abilityMods"],"headers":["Str","Dex","Con","Int","Wis","Cha"],"calculate":true,"fallback":"-","conditioned":true,"dice":false,"modifier":"stat","doNotAddClass":false},{"type":"property","id":"1b6a98ba4888","properties":["items"],"fallback":"-","display":"Items","conditioned":true},{"type":"traits","id":"e96ba9d8a80a","properties":["abilities_top"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"heading":" ","hasRule":false}],"hasRule":true},{"type":"group","id":"faaa08993a98","properties":[],"nested":[{"type":"inline","id":"3a5ab84a2b89","properties":[],"nested":[{"type":"inline","id":"cb6a7809aa2b","properties":[],"nested":[{"type":"property","id":"6b0b0bda0a7a","properties":["ac"],"fallback":"-","display":"AC"},{"type":"property","id":"0908aaab3b1b","properties":["acNote"],"fallback":"-","conditioned":true,"display":""}],"cls":"withnote","conditioned":true},{"type":"saves","id":"9999386a58ea","properties":["saves"],"fallback":"-","dice":true,"display":"","conditioned":true},{"type":"property","id":"69aa5a7b196a","properties":["savesNote"],"fallback":"-","display":"","conditioned":true}],"cls":"oneline ac-saves","conditioned":true},{"type":"inline","id":"ea29d9ea5aa8","properties":[],"nested":[{"type":"inline","id":"39584be95ae9","properties":[],"nested":[{"type":"property","id":"bb6989092939","properties":["hp"],"fallback":"-","display":"HP"},{"type":"property","id":"b9fa1a89c8d9","properties":["hpNote"],"fallback":"-","doNotAddClass":false,"conditioned":true,"display":""}],"cls":"withnote","conditioned":true},{"type":"property","id":"4bbaa9380a9b","properties":["hardness"],"fallback":"-","display":"Hardness","conditioned":true},{"type":"property","id":"0a8ac8d96bba","properties":["immunities"],"fallback":"-","conditioned":true,"display":"Immunities"},{"type":"property","id":"78689b6b6b79","properties":["weaknesses"],"fallback":"-","conditioned":true,"display":"Weaknesses"},{"type":"property","id":"8b7a3b89fa59","properties":["resistances"],"fallback":"-","conditioned":true,"display":"Resistances"}],"cls":"oneline","conditioned":true},{"type":"traits","id":"ca2bf968987b","properties":["abilities_mid"],"fallback":"-","heading":"","conditioned":true,"dice":true,"markdown":true,"hasRule":false}],"hasRule":true},{"type":"group","id":"cbeabaf93b58","properties":[],"nested":[{"type":"property","id":"0b4809ba0b29","properties":["speed"],"fallback":"-","display":"Speed","conditioned":true,"markdown":true,"dice":false},{"type":"traits","id":"882bc9aa0898","properties":["attacks"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"headingProp":false,"heading":"","callback":"var s = property.bonus < 0 ? \"-\" : \"+\";\ns += Math.abs(property.bonus);\nif (property.desc) {\n s += \" \" + property.desc\n}\nif (property.damage) {\n s += \", __Damage__ \" + property.damage\n}\nreturn s"},{"type":"traits","id":"faeafb7b6b1b","properties":["spellcasting"],"fallback":"-","conditioned":true,"dice":true},{"type":"traits","id":"aacb399a3b58","properties":["abilities_bot"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"hasRule":false}],"hasRule":true},{"type":"text","id":"1b195a894b58","properties":["token"],"text":null,"fallback":"","heading":"Show to Players","conditioned":true,"markdown":true},{"type":"image","id":"1bba89582b29","properties":["token"],"fallback":"","conditioned":true,"hasRule":true},{"type":"property","id":"88e97a485b79","properties":["sourcebook"],"fallback":"-","conditioned":true,"markdown":true,"dice":false,"display":" Source:"}],"name":"Pathfinder 2e Creature Layout","id":"b8ab3ae89a0a","diceParsing":[{"regex":"(\\s|^)(\\d+d\\d+(?:\\s*[+-]\\s*\\d+)?)(\\W|$)","parser":"const [, before, text, after] = matches;\nreturn [before + text, \" (\", { text }, \")\", after];","id":"4a79397b896a","desc":"1d6+10"},{"regex":"(^|\\s)([+-]\\d+)(\\W|$)(?!status|bonus)","parser":"let [, before, bonus, after] = matches;\nreturn [\n before + bonus,\n \" (\", { text: \"1d20\" + bonus }, \")\",\n after\n];","id":"8bb8fbbb0869","desc":"+15"}],"edited":true} \ No newline at end of file diff --git a/src/layouts/pathfinder 2e/pf2e.ts b/src/layouts/pathfinder 2e/pf2e.ts index 1ec45a1..09ace84 100644 --- a/src/layouts/pathfinder 2e/pf2e.ts +++ b/src/layouts/pathfinder 2e/pf2e.ts @@ -376,21 +376,39 @@ export const LayoutPF2eCreature: DefaultLayout = { display: " " }, { - type: "inline", - id: "499aea6a9aca", - properties: [], - nested: [ - { - type: "action", - id: "8a6a7a499b78", - icon: "sword", - callback: "try { InitiativeTracker.newEncounter({roll: true, creatures: [monster]}); } catch(e) {}" - }, + type: "ifelse", + id: "badbdb298988", + conditions: [ { - type: "action", - id: "fbea380b09b9", - icon: "plus-with-circle", - callback: "try { InitiativeTracker.addCreatures([monster]); } catch(e) {}" + nested: [ + { + type: "group", + id: "990a4a988ae8", + properties: [], + nested: [ + { + type: "inline", + id: "499aea6a9aca", + properties: [], + nested: [ + { + type: "action", + id: "8a6a7a499b78", + icon: "sword", + callback: "(async() => {\n if (!InitiativeTracker.plugin.view) {\n await InitiativeTracker.plugin.addTrackerView();\n }\n InitiativeTracker.newEncounter({\n roll: true,\n creatures: [monster]\n });\n if (InitiativeTracker.plugin.view) {\n InitiativeTracker.plugin\n .app\n .workspace\n .revealLeaf(InitiativeTracker.plugin.view.leaf);\n }\n})();" + }, + { + type: "action", + id: "fbea380b09b9", + icon: "plus-with-circle", + callback: "(async() => {\n if (!InitiativeTracker.plugin.view) {\n await InitiativeTracker.plugin.addTrackerView();\n }\n InitiativeTracker.addCreatures([monster]);\n if (InitiativeTracker.plugin.view) {\n InitiativeTracker.plugin\n .app\n .workspace\n .revealLeaf(InitiativeTracker.plugin.view.leaf);\n }\n})();" + } + ] + } + ] + } + ], + condition: "return plugin.app.plugins.enabledPlugins.has(\"initiative-tracker\");\n" } ] }, @@ -417,11 +435,9 @@ export const LayoutPF2eCreature: DefaultLayout = { { type: "property", id: "0979a989583a", - properties: [ - "traits" - ], + properties: [], fallback: "-", - callback: "if (!monster.traits) return \"\";\nvar s = \"\"\nif (monster.rarity) {\n s += `- ${monster.rarity}\\n`\n}\nif (monster.alignment) {\n s += `- ${monster.alignment}\\n`\n}\nif (monster.size) {\n s += `- ${monster.size}\\n`\n}\nfor (const text of monster.traits) {\n s += `- ${text}\\n`\n}\nreturn s;", + callback: "const traits = []\nif (monster.rarity && monster.rarity.toLowerCase() !== \"common\") {\n traits.push(`${monster.rarity}`);\n}\n\nif (monster.alignment) {\n traits.push(`${monster.alignment}`);\n}\nif (monster.size) {\n traits.push(`${monster.size}`);\n}\n\nif (monster.traits) {\n traits.push(...monster.traits);\n}\n\nreturn traits ? (\"- \" + traits.join(\"\\n- \")) : \"\";", conditioned: true, display: "" } @@ -449,7 +465,8 @@ export const LayoutPF2eCreature: DefaultLayout = { display: "Perception", conditioned: false, dice: false, - diceCallback: "return [\"+\" + property, \" (\", { text: \"1d20+\" + property }, \")\"]" + diceCallback: "const num = (property < 0 ? \"-\" : \"+\") + Math.abs(property);\nreturn [num, \" (\", { text: \"1d20\"+num }, \")\"];", + callback: "return (monster.modifier < 0 ? \"-\" : \"+\") + Math.abs(monster.modifier);" }, { type: "property", @@ -521,10 +538,12 @@ export const LayoutPF2eCreature: DefaultLayout = { "Wis", "Cha" ], - calculate: false, + calculate: true, fallback: "-", conditioned: true, - dice: false + dice: false, + modifier: "stat", + doNotAddClass: false }, { type: "property", @@ -612,7 +631,7 @@ export const LayoutPF2eCreature: DefaultLayout = { conditioned: true } ], - cls: "oneline", + cls: "oneline ac-saves", conditioned: true }, { @@ -671,23 +690,23 @@ export const LayoutPF2eCreature: DefaultLayout = { }, { type: "property", - id: "8b7a3b89fa59", + id: "78689b6b6b79", properties: [ - "resistances" + "weaknesses" ], fallback: "-", conditioned: true, - display: "Resistances" + display: "Weaknesses" }, { type: "property", - id: "78689b6b6b79", + id: "8b7a3b89fa59", properties: [ - "weaknesses" + "resistances" ], fallback: "-", conditioned: true, - display: "Weaknesses" + display: "Resistances" } ], cls: "oneline", @@ -815,5 +834,6 @@ export const LayoutPF2eCreature: DefaultLayout = { id: "8bb8fbbb0869", desc: "+15" } - ] -} \ No newline at end of file + ], + edited: true +} diff --git a/src/layouts/pathfinder 2e/xCSS/pf2e.css b/src/layouts/pathfinder 2e/xCSS/pf2e.css index 7a57df7..b5eb219 100644 --- a/src/layouts/pathfinder 2e/xCSS/pf2e.css +++ b/src/layouts/pathfinder 2e/xCSS/pf2e.css @@ -1297,6 +1297,13 @@ body.pathfinder-2e-affliction-layout-theme-kingmaker .statblock.pathfinder-2e-af font-weight: normal; font-style: normal; } +.statblock.pathfinder-2e-creature-layout .statblock-content .statblock-table.abilitymods .statblock-markdown { + display: none; +} +.statblock.pathfinder-2e-creature-layout .statblock-content .statblock-table.abilitymods .calculated-modifier::before, +.statblock.pathfinder-2e-creature-layout .statblock-content .statblock-table.abilitymods .calculated-modifier::after { + content: ""; +} .statblock.pathfinder-2e-creature-layout .statblock-content .inline-container.oneline { display: block; } @@ -3403,6 +3410,9 @@ body.pathfinder-2e-affliction-layout-theme-kingmaker .statblock.pathfinder-2e-af .statblock.pathfinder-2e-creature-layout .property-name { margin-right: 0; } +.statblock.pathfinder-2e-creature-layout .ac-saves .save-name { + font-weight: var(--statblock-property-name-font-weight); +} .statblock.basic-pathfinder-2e-layout .statblock-item-inline:has(.statblock-inline-item .name) { display: flex; flex-direction: row; @@ -4194,7 +4204,7 @@ body.pathfinder-2e-affliction-layout-theme-kingmaker .statblock.pathfinder-2e-af .statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container { margin: 0; } -.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container > .line.traits { +.statblock.pathfinder-2e-creature-layout .pf2e-traits.statblock-item-container.property-container > .line:has(.property-name) { margin: 0; display: block; } From 8c9333abce9809a83c01e212016df19117b4e31c Mon Sep 17 00:00:00 2001 From: miscoined Date: Thu, 18 Jul 2024 02:06:38 +1000 Subject: [PATCH 09/13] docs: Improve settings doc for Trait block callbacks --- src/settings/layout/blocks/ui/block.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/layout/blocks/ui/block.ts b/src/settings/layout/blocks/ui/block.ts index e32f0f9..31e281d 100644 --- a/src/settings/layout/blocks/ui/block.ts +++ b/src/settings/layout/blocks/ui/block.ts @@ -1003,7 +1003,7 @@ class TraitsModal extends MarkdownEnabledModal { .setDesc( createFragment((e) => { e.createSpan({ - text: "The block will run the callback and use the returned string as the property." + text: "The block will run the callback on each trait and use the returned string as the trait description." }); e.createEl("br"); e.createSpan({ From 5bdd1236067c0b6f2f6b74a2fd7dad914b779867 Mon Sep 17 00:00:00 2001 From: miscoined Date: Thu, 18 Jul 2024 20:14:06 +1000 Subject: [PATCH 10/13] feat: Add callbacks for Saves layout blocks --- src/layouts/layout.types.ts | 1 + src/settings/layout/blocks/ui/block.ts | 42 ++++++++++++++++++++++++++ src/view/ui/Saves.svelte | 18 +++++++++++ 3 files changed, 61 insertions(+) diff --git a/src/layouts/layout.types.ts b/src/layouts/layout.types.ts index 958e683..a094d67 100644 --- a/src/layouts/layout.types.ts +++ b/src/layouts/layout.types.ts @@ -97,6 +97,7 @@ type PropertyProps = { }; type SavesProps = { type: "saves"; + callback?: string; display?: string; }; type SpellsProps = { diff --git a/src/settings/layout/blocks/ui/block.ts b/src/settings/layout/blocks/ui/block.ts index 31e281d..a65357d 100644 --- a/src/settings/layout/blocks/ui/block.ts +++ b/src/settings/layout/blocks/ui/block.ts @@ -773,6 +773,48 @@ class SavesModal extends MarkdownEnabledModal { ); }); } + buildAdvanced(el: HTMLDivElement): void { + super.buildAdvanced(el); + new Setting(el) + .setHeading() + .setName("Callback") + .setDesc( + createFragment((e) => { + e.createSpan({ + text: "The block will run the callback on each save object and use the returned object as the save." + }); + e.createEl("br"); + e.createSpan({ + text: "The callback will receive the " + }); + e.createEl("code", { text: "monster" }); + e.createSpan({ text: " and " }); + e.createEl("code", { text: "property" }); + e.createSpan({ + text: " parameters. The callback should return an object with a single key and value. For example: " + }); + + e.createEl("code", { text: "return {\"fort\": property.fortitude}" }); + e.createEl("br"); + e.createEl("strong", { + text: "Please Note: This will not run if a dice callback is provided." + }); + }) + ); + + const component = new TextAreaComponent(el).setValue( + this.block.callback + ); + component.inputEl.addClass("statblock-textarea"); + this.editor = editorFromTextArea( + component.inputEl, + EditorView.updateListener.of((update) => { + if (update.docChanged) { + this.block.callback = update.state.doc.toString(); + } + }) + ); + } } class SpellsModal extends MarkdownEnabledModal { buildProperties(el: HTMLDivElement): void { diff --git a/src/view/ui/Saves.svelte b/src/view/ui/Saves.svelte index 362edbb..0f1f8da 100644 --- a/src/view/ui/Saves.svelte +++ b/src/view/ui/Saves.svelte @@ -1,5 +1,6 @@
-
+
{item.display ?? toTitleCase(item.properties[0])}
{#each saves as [name, value]} -
+
From d91dade62afd41056bb0964b8cbf50f0eda647d9 Mon Sep 17 00:00:00 2001 From: miscoined Date: Fri, 19 Jul 2024 03:11:22 +1000 Subject: [PATCH 12/13] feat: Add more structured data entry for skills and saves --- .../Pathfinder 2e Creature Layout.json | 2 +- src/layouts/pathfinder 2e/pf2e.ts | 52 +++++-------------- src/layouts/pathfinder 2e/xCSS/pf2e.css | 8 ++- 3 files changed, 20 insertions(+), 42 deletions(-) diff --git a/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json b/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json index b4695f4..828faf2 100644 --- a/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json +++ b/src/layouts/pathfinder 2e/Pathfinder 2e Creature Layout.json @@ -1 +1 @@ -{"blocks":[{"type":"inline","id":"e9b8483aeafa","properties":[],"nested":[{"type":"property","id":"2b596a6919fb","properties":["name"],"fallback":"-","markdown":true,"dice":false,"conditioned":true,"display":" "},{"type":"ifelse","id":"badbdb298988","conditions":[{"nested":[{"type":"group","id":"990a4a988ae8","properties":[],"nested":[{"type":"inline","id":"499aea6a9aca","properties":[],"nested":[{"type":"action","id":"8a6a7a499b78","icon":"sword","callback":"(async() => {\n if (!InitiativeTracker.plugin.view) {\n await InitiativeTracker.plugin.addTrackerView();\n }\n InitiativeTracker.newEncounter({\n roll: true,\n creatures: [monster]\n });\n if (InitiativeTracker.plugin.view) {\n InitiativeTracker.plugin\n .app\n .workspace\n .revealLeaf(InitiativeTracker.plugin.view.leaf);\n }\n})();"},{"type":"action","id":"fbea380b09b9","icon":"plus-with-circle","callback":"(async() => {\n if (!InitiativeTracker.plugin.view) {\n await InitiativeTracker.plugin.addTrackerView();\n }\n InitiativeTracker.addCreatures([monster]);\n if (InitiativeTracker.plugin.view) {\n InitiativeTracker.plugin\n .app\n .workspace\n .revealLeaf(InitiativeTracker.plugin.view.leaf);\n }\n})();"}]}]}],"condition":"return plugin.app.plugins.enabledPlugins.has(\"initiative-tracker\");\n"}]},{"type":"property","id":"98389a48f808","properties":["level"],"fallback":"-","display":" ","conditioned":true,"markdown":true,"dice":false}],"hasRule":true},{"type":"group","id":"4b3a6809a938","properties":[],"nested":[{"type":"property","id":"0979a989583a","properties":[],"fallback":"-","callback":"const traits = []\nif (monster.rarity && monster.rarity.toLowerCase() !== \"common\") {\n traits.push(`${monster.rarity}`);\n}\n\nif (monster.alignment) {\n traits.push(`${monster.alignment}`);\n}\nif (monster.size) {\n traits.push(`${monster.size}`);\n}\n\nif (monster.traits) {\n traits.push(...monster.traits);\n}\n\nreturn traits ? (\"- \" + traits.join(\"\\n- \")) : \"\";","conditioned":true,"display":""}],"hasRule":true,"cls":"pf2e-traits"},{"type":"group","id":"5999ea79ca3b","properties":[],"nested":[{"type":"inline","id":"881859197838","properties":[],"nested":[{"type":"property","id":"4ad9f92ab8f8","properties":["modifier"],"fallback":"-","display":"Perception","conditioned":false,"dice":false,"diceCallback":"const num = (property < 0 ? \"-\" : \"+\") + Math.abs(property);\nreturn [num, \" (\", { text: \"1d20\"+num }, \")\"];","callback":"return (monster.modifier < 0 ? \"-\" : \"+\") + Math.abs(monster.modifier);"},{"type":"property","id":"8bd82998dadb","properties":["senses"],"fallback":"-","conditioned":true,"display":""}],"cls":"oneline","conditioned":true},{"type":"property","id":"ba28f9384918","properties":["languages"],"fallback":"-","display":"Language","conditioned":true,"markdown":true},{"type":"inline","id":"db1a38ebcb6b","properties":[],"nested":[{"type":"saves","id":"6a2b78099b0b","properties":["skills"],"fallback":"-","display":"Skills","conditioned":true,"dice":true},{"type":"property","id":"2b987aead8ab","properties":["skillsNote"],"fallback":"-","conditioned":true,"display":""}],"heading":"","cls":"oneline","conditioned":true},{"type":"table","id":"b82b0a1a9969","properties":["abilityMods"],"headers":["Str","Dex","Con","Int","Wis","Cha"],"calculate":true,"fallback":"-","conditioned":true,"dice":false,"modifier":"stat","doNotAddClass":false},{"type":"property","id":"1b6a98ba4888","properties":["items"],"fallback":"-","display":"Items","conditioned":true},{"type":"traits","id":"e96ba9d8a80a","properties":["abilities_top"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"heading":" ","hasRule":false}],"hasRule":true},{"type":"group","id":"faaa08993a98","properties":[],"nested":[{"type":"inline","id":"3a5ab84a2b89","properties":[],"nested":[{"type":"inline","id":"cb6a7809aa2b","properties":[],"nested":[{"type":"property","id":"6b0b0bda0a7a","properties":["ac"],"fallback":"-","display":"AC"},{"type":"property","id":"0908aaab3b1b","properties":["acNote"],"fallback":"-","conditioned":true,"display":""}],"cls":"withnote","conditioned":true},{"type":"saves","id":"9999386a58ea","properties":["saves"],"fallback":"-","dice":true,"display":"","conditioned":true},{"type":"property","id":"69aa5a7b196a","properties":["savesNote"],"fallback":"-","display":"","conditioned":true}],"cls":"oneline ac-saves","conditioned":true},{"type":"inline","id":"ea29d9ea5aa8","properties":[],"nested":[{"type":"inline","id":"39584be95ae9","properties":[],"nested":[{"type":"property","id":"bb6989092939","properties":["hp"],"fallback":"-","display":"HP"},{"type":"property","id":"b9fa1a89c8d9","properties":["hpNote"],"fallback":"-","doNotAddClass":false,"conditioned":true,"display":""}],"cls":"withnote","conditioned":true},{"type":"property","id":"4bbaa9380a9b","properties":["hardness"],"fallback":"-","display":"Hardness","conditioned":true},{"type":"property","id":"0a8ac8d96bba","properties":["immunities"],"fallback":"-","conditioned":true,"display":"Immunities"},{"type":"property","id":"78689b6b6b79","properties":["weaknesses"],"fallback":"-","conditioned":true,"display":"Weaknesses"},{"type":"property","id":"8b7a3b89fa59","properties":["resistances"],"fallback":"-","conditioned":true,"display":"Resistances"}],"cls":"oneline","conditioned":true},{"type":"traits","id":"ca2bf968987b","properties":["abilities_mid"],"fallback":"-","heading":"","conditioned":true,"dice":true,"markdown":true,"hasRule":false}],"hasRule":true},{"type":"group","id":"cbeabaf93b58","properties":[],"nested":[{"type":"property","id":"0b4809ba0b29","properties":["speed"],"fallback":"-","display":"Speed","conditioned":true,"markdown":true,"dice":false},{"type":"traits","id":"882bc9aa0898","properties":["attacks"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"headingProp":false,"heading":"","callback":"var s = property.bonus < 0 ? \"-\" : \"+\";\ns += Math.abs(property.bonus);\nif (property.desc) {\n s += \" \" + property.desc\n}\nif (property.damage) {\n s += \", __Damage__ \" + property.damage\n}\nreturn s"},{"type":"traits","id":"faeafb7b6b1b","properties":["spellcasting"],"fallback":"-","conditioned":true,"dice":true},{"type":"traits","id":"aacb399a3b58","properties":["abilities_bot"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"hasRule":false}],"hasRule":true},{"type":"text","id":"1b195a894b58","properties":["token"],"text":null,"fallback":"","heading":"Show to Players","conditioned":true,"markdown":true},{"type":"image","id":"1bba89582b29","properties":["token"],"fallback":"","conditioned":true,"hasRule":true},{"type":"property","id":"88e97a485b79","properties":["sourcebook"],"fallback":"-","conditioned":true,"markdown":true,"dice":false,"display":" Source:"}],"name":"Pathfinder 2e Creature Layout","id":"b8ab3ae89a0a","diceParsing":[{"regex":"(\\s|^)(\\d+d\\d+(?:\\s*[+-]\\s*\\d+)?)(\\W|$)","parser":"const [, before, text, after] = matches;\nreturn [before + text, \" (\", { text }, \")\", after];","id":"4a79397b896a","desc":"1d6+10"},{"regex":"(^|\\s)([+-]\\d+)(\\W|$)(?!status|bonus)","parser":"let [, before, bonus, after] = matches;\nreturn [\n before + bonus,\n \" (\", { text: \"1d20\" + bonus }, \")\",\n after\n];","id":"8bb8fbbb0869","desc":"+15"}],"edited":true} \ No newline at end of file +{"blocks":[{"type":"inline","id":"e9b8483aeafa","properties":[],"nested":[{"type":"property","id":"2b596a6919fb","properties":["name"],"fallback":"-","markdown":true,"dice":false,"conditioned":true,"display":" "},{"type":"ifelse","id":"badbdb298988","conditions":[{"nested":[{"type":"group","id":"990a4a988ae8","properties":[],"nested":[{"type":"inline","id":"499aea6a9aca","properties":[],"nested":[{"type":"action","id":"8a6a7a499b78","icon":"sword","callback":"(async() => {\n if (!InitiativeTracker.plugin.view) {\n await InitiativeTracker.plugin.addTrackerView();\n }\n InitiativeTracker.newEncounter({\n roll: true,\n creatures: [monster]\n });\n if (InitiativeTracker.plugin.view) {\n InitiativeTracker.plugin\n .app\n .workspace\n .revealLeaf(InitiativeTracker.plugin.view.leaf);\n }\n})();"},{"type":"action","id":"fbea380b09b9","icon":"plus-with-circle","callback":"(async() => {\n if (!InitiativeTracker.plugin.view) {\n await InitiativeTracker.plugin.addTrackerView();\n }\n InitiativeTracker.addCreatures([monster]);\n if (InitiativeTracker.plugin.view) {\n InitiativeTracker.plugin\n .app\n .workspace\n .revealLeaf(InitiativeTracker.plugin.view.leaf);\n }\n})();"}]}]}],"condition":"return plugin.app.plugins.enabledPlugins.has(\"initiative-tracker\");\n"}]},{"type":"property","id":"98389a48f808","properties":["level"],"fallback":"-","display":" ","conditioned":true,"markdown":true,"dice":false}],"hasRule":true},{"type":"group","id":"4b3a6809a938","properties":[],"nested":[{"type":"property","id":"0979a989583a","properties":[],"fallback":"-","callback":"const traits = []\nif (monster.rarity && monster.rarity.toLowerCase() !== \"common\") {\n traits.push(`${monster.rarity}`);\n}\n\nif (monster.alignment) {\n traits.push(`${monster.alignment}`);\n}\nif (monster.size) {\n traits.push(`${monster.size}`);\n}\n\nif (monster.traits) {\n traits.push(...monster.traits);\n}\n\nreturn traits ? (\"- \" + traits.join(\"\\n- \")) : \"\";","conditioned":true,"display":""}],"hasRule":true,"cls":"pf2e-traits"},{"type":"group","id":"5999ea79ca3b","properties":[],"nested":[{"type":"inline","id":"881859197838","properties":[],"nested":[{"type":"property","id":"4ad9f92ab8f8","properties":["modifier"],"fallback":"-","display":"Perception","conditioned":false,"dice":false,"diceCallback":"const num = (property < 0 ? \"-\" : \"+\") + Math.abs(property);\nreturn [num, \" (\", { text: \"1d20\"+num }, \")\"];","callback":"return (monster.modifier < 0 ? \"-\" : \"+\") + Math.abs(monster.modifier);"},{"type":"property","id":"8bd82998dadb","properties":["senses"],"fallback":"-","conditioned":true,"display":""}],"cls":"oneline","conditioned":true},{"type":"property","id":"ba28f9384918","properties":["languages"],"fallback":"-","display":"Language","conditioned":true,"markdown":true},{"type":"saves","id":"6a2b78099b0b","properties":["skills"],"fallback":"-","display":"Skills","conditioned":true,"dice":true,"callback":"const keys = [...Object.keys(property)];\nconst name = keys.shift();\n\nif (name === \"note\") {\n return {note: property.note};\n}\n\nvar note;\nvar stats = [];\nfor (const key of keys) {\n if (key === \"note\") {\n note = property[key];\n } else {\n const sign = property[key] < 0 ? \"-\" : \"+\";\n const num = Math.abs(property[key]);\n stats.push(`(${sign}${num} ${key})`);\n }\n}\n\nif (stats.length == 0 && !note) {\n return property;\n}\n\nstats.unshift(\n (property[name] < 0 ? \"-\" : \"+\") +\n Math.abs(property[name]));\nconst parts = [stats.join(\" \")];\nif (note) {\n parts.push(note);\n}\nreturn {[name]: parts.join(\", \")};"},{"type":"table","id":"b82b0a1a9969","properties":["abilityMods"],"headers":["Str","Dex","Con","Int","Wis","Cha"],"calculate":true,"fallback":"-","conditioned":true,"dice":false,"modifier":"stat","doNotAddClass":false},{"type":"property","id":"1b6a98ba4888","properties":["items"],"fallback":"-","display":"Items","conditioned":true},{"type":"traits","id":"e96ba9d8a80a","properties":["abilities_top"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"heading":" ","hasRule":false}],"hasRule":true},{"type":"group","id":"faaa08993a98","properties":[],"nested":[{"type":"inline","id":"3a5ab84a2b89","properties":[],"nested":[{"type":"inline","id":"cb6a7809aa2b","properties":[],"nested":[{"type":"property","id":"6b0b0bda0a7a","properties":["ac"],"fallback":"-","display":"AC"},{"type":"property","id":"0908aaab3b1b","properties":["acNote"],"fallback":"-","conditioned":true,"display":""}],"cls":"withnote","conditioned":true},{"type":"saves","id":"9999386a58ea","properties":["saves"],"fallback":"-","dice":true,"display":"","conditioned":true,"callback":"const keys = [...Object.keys(property)];\nconst name = keys.shift();\n\nif (name === \"note\") {\n return {note: property.note};\n}\n\nvar note;\nvar stats = [];\nfor (const key of keys) {\n if (key === \"note\") {\n note = property[key];\n } else {\n const sign = property[key] < 0 ? \"-\" : \"+\";\n const num = Math.abs(property[key]);\n stats.push(`(${sign}${num} ${key})`);\n }\n}\n\nif (stats.length == 0 && !note) {\n return property;\n}\n\nstats.unshift(\n (property[name] < 0 ? \"-\" : \"+\") +\n Math.abs(property[name]));\nconst parts = [stats.join(\" \")];\nif (note) {\n parts.push(note);\n}\nreturn {[name]: parts.join(\", \")};"}],"cls":"oneline","conditioned":true},{"type":"inline","id":"ea29d9ea5aa8","properties":[],"nested":[{"type":"inline","id":"39584be95ae9","properties":[],"nested":[{"type":"property","id":"bb6989092939","properties":["hp"],"fallback":"-","display":"HP"},{"type":"property","id":"b9fa1a89c8d9","properties":["hpNote"],"fallback":"-","doNotAddClass":false,"conditioned":true,"display":""}],"cls":"withnote","conditioned":true},{"type":"property","id":"4bbaa9380a9b","properties":["hardness"],"fallback":"-","display":"Hardness","conditioned":true},{"type":"property","id":"0a8ac8d96bba","properties":["immunities"],"fallback":"-","conditioned":true,"display":"Immunities"},{"type":"property","id":"78689b6b6b79","properties":["weaknesses"],"fallback":"-","conditioned":true,"display":"Weaknesses"},{"type":"property","id":"8b7a3b89fa59","properties":["resistances"],"fallback":"-","conditioned":true,"display":"Resistances"}],"cls":"oneline","conditioned":true},{"type":"traits","id":"ca2bf968987b","properties":["abilities_mid"],"fallback":"-","heading":"","conditioned":true,"dice":true,"markdown":true,"hasRule":false}],"hasRule":true},{"type":"group","id":"cbeabaf93b58","properties":[],"nested":[{"type":"property","id":"0b4809ba0b29","properties":["speed"],"fallback":"-","display":"Speed","conditioned":true,"markdown":true,"dice":false},{"type":"traits","id":"882bc9aa0898","properties":["attacks"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"headingProp":false,"heading":"","callback":"var s = property.bonus < 0 ? \"-\" : \"+\";\ns += Math.abs(property.bonus);\nif (property.desc) {\n s += \" \" + property.desc\n}\nif (property.damage) {\n s += \", __Damage__ \" + property.damage\n}\nreturn s"},{"type":"traits","id":"faeafb7b6b1b","properties":["spellcasting"],"fallback":"-","conditioned":true,"dice":true},{"type":"traits","id":"aacb399a3b58","properties":["abilities_bot"],"fallback":"-","conditioned":true,"dice":true,"markdown":true,"hasRule":false}],"hasRule":true},{"type":"text","id":"1b195a894b58","properties":["token"],"text":null,"fallback":"","heading":"Show to Players","conditioned":true,"markdown":true},{"type":"image","id":"1bba89582b29","properties":["token"],"fallback":"","conditioned":true,"hasRule":true},{"type":"property","id":"88e97a485b79","properties":["sourcebook"],"fallback":"-","conditioned":true,"markdown":true,"dice":false,"display":" Source:"}],"name":"Pathfinder 2e Creature Layout","id":"b8ab3ae89a0a","diceParsing":[{"regex":"(\\s|^)(\\d+d\\d+(?:\\s*[+-]\\s*\\d+)?)(\\W|$)","parser":"const [, before, text, after] = matches;\nreturn [before + text, \" (\", { text }, \")\", after];","id":"4a79397b896a","desc":"1d6+10"},{"regex":"(^|\\s)([+-]\\d+)(\\W|$)(?!status|bonus)","parser":"let [, before, bonus, after] = matches;\nreturn [\n before + bonus,\n \" (\", { text: \"1d20\" + bonus }, \")\",\n after\n];","id":"8bb8fbbb0869","desc":"+15"}],"edited":true} \ No newline at end of file diff --git a/src/layouts/pathfinder 2e/pf2e.ts b/src/layouts/pathfinder 2e/pf2e.ts index 09ace84..f64614f 100644 --- a/src/layouts/pathfinder 2e/pf2e.ts +++ b/src/layouts/pathfinder 2e/pf2e.ts @@ -494,35 +494,16 @@ export const LayoutPF2eCreature: DefaultLayout = { markdown: true }, { - type: "inline", - id: "db1a38ebcb6b", - properties: [], - nested: [ - { - type: "saves", - id: "6a2b78099b0b", - properties: [ - "skills" - ], - fallback: "-", - display: "Skills", - conditioned: true, - dice: true - }, - { - type: "property", - id: "2b987aead8ab", - properties: [ - "skillsNote" - ], - fallback: "-", - conditioned: true, - display: "" - } + type: "saves", + id: "6a2b78099b0b", + properties: [ + "skills" ], - heading: "", - cls: "oneline", - conditioned: true + fallback: "-", + display: "Skills", + conditioned: true, + dice: true, + callback: "const keys = [...Object.keys(property)];\nconst name = keys.shift();\n\nif (name === \"note\") {\n return {note: property.note};\n}\n\nvar note;\nvar stats = [];\nfor (const key of keys) {\n if (key === \"note\") {\n note = property[key];\n } else {\n const sign = property[key] < 0 ? \"-\" : \"+\";\n const num = Math.abs(property[key]);\n stats.push(`(${sign}${num} ${key})`);\n }\n}\n\nif (stats.length == 0 && !note) {\n return property;\n}\n\nstats.unshift(\n (property[name] < 0 ? \"-\" : \"+\") +\n Math.abs(property[name]));\nconst parts = [stats.join(\" \")];\nif (note) {\n parts.push(note);\n}\nreturn {[name]: parts.join(\", \")};" }, { type: "table", @@ -618,20 +599,11 @@ export const LayoutPF2eCreature: DefaultLayout = { fallback: "-", dice: true, display: "", - conditioned: true - }, - { - type: "property", - id: "69aa5a7b196a", - properties: [ - "savesNote" - ], - fallback: "-", - display: "", - conditioned: true + conditioned: true, + callback: "const keys = [...Object.keys(property)];\nconst name = keys.shift();\n\nif (name === \"note\") {\n return {note: property.note};\n}\n\nvar note;\nvar stats = [];\nfor (const key of keys) {\n if (key === \"note\") {\n note = property[key];\n } else {\n const sign = property[key] < 0 ? \"-\" : \"+\";\n const num = Math.abs(property[key]);\n stats.push(`(${sign}${num} ${key})`);\n }\n}\n\nif (stats.length == 0 && !note) {\n return property;\n}\n\nstats.unshift(\n (property[name] < 0 ? \"-\" : \"+\") +\n Math.abs(property[name]));\nconst parts = [stats.join(\" \")];\nif (note) {\n parts.push(note);\n}\nreturn {[name]: parts.join(\", \")};" } ], - cls: "oneline ac-saves", + cls: "oneline", conditioned: true }, { diff --git a/src/layouts/pathfinder 2e/xCSS/pf2e.css b/src/layouts/pathfinder 2e/xCSS/pf2e.css index b5eb219..09f6fc7 100644 --- a/src/layouts/pathfinder 2e/xCSS/pf2e.css +++ b/src/layouts/pathfinder 2e/xCSS/pf2e.css @@ -3410,9 +3410,15 @@ body.pathfinder-2e-affliction-layout-theme-kingmaker .statblock.pathfinder-2e-af .statblock.pathfinder-2e-creature-layout .property-name { margin-right: 0; } -.statblock.pathfinder-2e-creature-layout .ac-saves .save-name { +.statblock.pathfinder-2e-creature-layout .saves-container .saves.line .save-name { font-weight: var(--statblock-property-name-font-weight); } +.statblock.pathfinder-2e-creature-layout .saves-container .save-entry.save-note-entry .save-name { + display: none; +} +.statblock.pathfinder-2e-creature-layout .saves-container .save-entry:has(+ .save-entry.save-note-entry) .save-value::after { + content: "; "; +} .statblock.basic-pathfinder-2e-layout .statblock-item-inline:has(.statblock-inline-item .name) { display: flex; flex-direction: row; From 32beb41ac829040a31a11755c55c4210a47dc89f Mon Sep 17 00:00:00 2001 From: Jeremy Valentine <38669521+valentine195@users.noreply.github.com> Date: Fri, 6 Sep 2024 09:31:36 -0400 Subject: [PATCH 13/13] fix: Property lines now properly stringify arrays --- src/view/ui/PropertyLine.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/view/ui/PropertyLine.svelte b/src/view/ui/PropertyLine.svelte index 54db668..26ea5d0 100644 --- a/src/view/ui/PropertyLine.svelte +++ b/src/view/ui/PropertyLine.svelte @@ -1,14 +1,14 @@