diff --git a/cosmere/Stormlight_Archives.css b/cosmere/Stormlight_Archives.css index b8d3463d18..5f4422b125 100644 --- a/cosmere/Stormlight_Archives.css +++ b/cosmere/Stormlight_Archives.css @@ -194,6 +194,12 @@ .sheet-rolltemplate-Stormlight_Archives:not(:first-child) { margin-top: 10px; } +.sheet-rolltemplate-Stormlight_Archives:has(.chat-message-action-button) .ui-dialog { + padding-top: 0 !important; +} +.sheet-rolltemplate-Stormlight_Archives:has(.chat-message-action-button) .charsheet { + padding-top: 2rem; +} .sheet-rolltemplate-Stormlight_Archives.sheet-rolltemplate-darkmode { --backColor:var(--dm-backColor); --selectedColor:var(--dm-selectedColor); @@ -212,6 +218,9 @@ --navColor: var(--dm-navColor); --collapseExpandedColor: var(--fontColor); } +.sheet-rolltemplate-Stormlight_Archives.sheet-rolltemplate-darkmode:has(.chat-message-action-button) { + --backColor: #0c0c0c; +} .sheet-rolltemplate-Stormlight_Archives.sheet-rolltemplate-darkmode .sheet-template { --inlineRollFumbleColor: var(--dm-inlineRollFumbleColor); } @@ -1886,14 +1895,14 @@ body { color: var(--fontColor); font-size: 1rem; } -body .ui-dialog .nav-tabs { - position: sticky; - top: 0; - z-index: 1000; - background-color: var(--backColor); +body:has(.tab-content:first-child) .ui-dialog { + padding-top: 0 !important; } -body .ui-dialog .nav-tabs a { - font-family: var(--font3); +body:has(.tab-content:first-child) .charsheet { + padding-top: 2rem; +} +body .ui-dialog { + background-color: var(--backColor) !important; } body .ui-dialog .tab-content .sheetform { background-color: transparent; @@ -2901,7 +2910,7 @@ body .ui-dialog .tab-content .charsheet .tabs--stormlight-archives__header { min-height: 40px; z-index: 10000; position: sticky; - top: 43.3px; + top: 0px; padding-inline: var(--normal-gap); } body .ui-dialog .tab-content .charsheet .tabs__nav-list { @@ -3439,6 +3448,9 @@ body .ui-dialog .tab-content .charsheet .skill-section { display: grid; grid-template-columns: subgrid; } +body .ui-dialog .tab-content .charsheet .skill-section button { + z-index: 10; +} body .ui-dialog .tab-content .charsheet .skill-repeats { display: grid; grid-template-columns: 1fr 1fr; @@ -3743,6 +3755,18 @@ body .ui-dialog .tab-content .charsheet .repeating-section > .repcontrol { body .ui-dialog .tab-content .charsheet .repeating-section > .repcontainer { grid-column: 1/-1; } +body .ui-dialog .nav-tabs { + position: sticky; + top: 0; + z-index: 1000; + background-color: var(--backColor); +} +body .ui-dialog .nav-tabs a { + font-family: var(--font3); +} +body .ui-dialog .nav-tabs ~ .tab-content .tabs--stormlight-archives__header { + top: 43.3px; +} body.sheet-darkmode { --backColor:var(--dm-backColor); --selectedColor:var(--dm-selectedColor); @@ -3764,6 +3788,9 @@ body.sheet-darkmode { body.sheet-darkmode .light-content { display: none; } +body.sheet-darkmode:has(.tab-content:first-child) { + --backColor: #0c0c0c; +} body:not(.sheet-darkmode) .dark-content { display: none; } \ No newline at end of file diff --git a/cosmere/Stormlight_Archives.html b/cosmere/Stormlight_Archives.html index 904266c8c1..e2b713e923 100644 --- a/cosmere/Stormlight_Archives.html +++ b/cosmere/Stormlight_Archives.html @@ -2921,7 +2921,7 @@ registerFuncs({ kTabOnOpen },{type:['opener']}); return kFuncs; }()); const actionAttributes = ["agility_action","athletics_action","heavy_weapons_action","light_weapons_action","stealth_action","thievery_action","repeating_physical-skills_$X_action","crafting_action","deduction_action","discipline_action","intimidation_action","lore_action","medicine_action","repeating_mental-skills_$X_action","deception_action","insight_action","leadership_action","perception_action","persuasion_action","survival_action","repeating_spiritual-skills_$X_action","repeating_weapons_$X_action","repeating_weapons_$X_damage_action","repeating_actions_$X_action","repeating_actions_$X_graze_action","repeating_actions_$X_hit_action"];const itemCategories = ["Wizard Spells","Cleric Spells"];const specialCategories = {"Wizard":"Wizard Spells","wizard":"Wizard Spells","Cleric":"Cleric Spells","cleric":"cleric Spells"};const maxAttr = [];const sectionLookup = {"Wizard":"spells","wizard":"spells","Cleric":"spells","cleric":"spells"};const skills = {"agility":"speed","athletics":"strength","heavy weapons":"strength","light weapons":"speed","stealth":"speed","thievery":"speed","crafting":"intellect","deduction":"intellect","discipline":"willpower","intimidation":"willpower","lore":"intellect","medicine":"intellect","deception":"presence","insight":"awareness","leadership":"presence","perception":"awareness","persuasion":"presence","survival":"awareness"};const skillsByCategory = {"physical":["agility","athletics","heavy weapons","light weapons","stealth","thievery"],"mental":["crafting","deduction","discipline","intimidation","lore","medicine"],"spiritual":["deception","insight","leadership","perception","persuasion","survival"]};const attributeAbbreviations = {"strength":"str","speed":"spd","intellect":"int","willpower":"wil","awareness":"awa","presence":"pre"};const attributesByCategory = {"physical":["strength","speed"],"mental":["intellect","willpower"],"spiritual":["awareness","presence"]};k.defaultRollStart = '@{template_start}'; -k.version = 1.01;/** +k.version = 1.02;/** * * @param {object} trigger - The trigger that caused the function to be called * @param {object} attributes - The attribute values of the character