From 6974915deaace4e6b81073d7e0ec67d76498b0fb Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Wed, 19 Jun 2024 22:17:53 +0800 Subject: [PATCH] Rename spoiler accordion to content accordion --- eleventy.config.md.js | 12 ++++++------ src/assets/css/components.css | 12 ++++++------ .../cassette-beasts-more-than-a-pokemon-clone.md | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/eleventy.config.md.js b/eleventy.config.md.js index d362b01a..a573c038 100644 --- a/eleventy.config.md.js +++ b/eleventy.config.md.js @@ -121,13 +121,13 @@ module.exports = function (eleventyConfig) { `; }); - // Paired shorcode: Spoiler accordion - eleventyConfig.addPairedShortcode('spoiler', (content, hint) => { - const hintMarkup = markdownLibrary.renderInline(hint); + // Paired shorcode: Content accordion + eleventyConfig.addPairedShortcode('accordion', (content, summary) => { + const summaryMarkup = markdownLibrary.renderInline(summary); const contentMarkup = markdownLibrary.render(content); - return `
- ${hintMarkup} -
${contentMarkup}
+ return `
+ ${summaryMarkup} +
${contentMarkup}
`; }); diff --git a/src/assets/css/components.css b/src/assets/css/components.css index cdc12ebd..19d86ca0 100644 --- a/src/assets/css/components.css +++ b/src/assets/css/components.css @@ -80,24 +80,24 @@ outline-offset: -0.25em; } -/* Spoiler Accordion */ -* + .spoiler-accordion { +/* Content Accordion */ +* + .content-accordion { margin-top: var(--sz-paragraph-margin); } -.spoiler-accordion { +.content-accordion { padding: 0.5em 0; } -.spoiler-accordion__hint { +.content-accordion__summary { font-weight: 700; } -.spoiler-accordion__spoiler { +.content-accordion__content { padding: 0.5em 1em; } -.spoiler-accordion__spoiler p + p { +.content-accordion__content p + p { margin-top: 1em; } diff --git a/src/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone.md b/src/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone.md index 9872d5f1..45aafd30 100644 --- a/src/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone.md +++ b/src/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone.md @@ -90,13 +90,13 @@ The protagonists of {% cite "Pokémon" %} games become the new Champion of their In addition, {% cite "Cassette Beasts" %}' story can get genuinely dark at times, most notably in the cosmic horror presented by the Archangels, the eldritch entities that you need to defeat in boss battles to gather clues about a way out of New Wirral and return home. -{%- spoiler 'Major Story Spoilers for Cassette Beasts' %} +{%- accordion 'Major Story Spoilers for Cassette Beasts' %} Towards the end of the main quest, it is revealed that Archangels are [egregores](https://en.wikipedia.org/wiki/Egregore) created from humanity's desires and ideas. Aleph, the main antagonist and final boss of the main story, is an Archangel that is an incarnation of conquest, and his goal is to leave New Wirral and cause chaos across reality. While {% cite "Pokémon" %} has its own fair share of sinister villains, the threat the main villain of {% cite "Cassette Beasts" %} poses is even greater in scope than any {% cite "Pokémon" %} villain, maybe except for Rainbow Rocket Giovanni from {% cite "Ultra Sun" %} and {% cite "Ultra Moon" %}, who shares the goal of ruling the multiverse. Moreover, even though the player character and their party are able to defeat the main villain in the end, the game makes it clear that since Archangels are not flesh and blood and born from human ideas, as long as humans are interested in conquest Aleph will return at some point. This reflects our world in that defeating a tyrant does not magically solve everything, especially when the system that enables tyrants' rise to power still exists. -{% endspoiler %} +{% endaccordion %} ## Features {% cite "Cassette Beasts" %} Has But {% cite "Pokémon" %} Lacks @@ -154,9 +154,9 @@ If the existence of the option to romance your human companion is not enough, in On the flip side, {% cite "Cassette Beasts" %} has canon LGBTQ+ characters. For characters who are attracted to the samge gender, the most notable ones are the human companions, who can be romanced by the player character regardless of gender, meaning they are canonically bisexual. Furthermore, the game also has a pair of NPCs who are revealed in-game to be a gay married couple. -{%- spoiler 'Minor Quest Spoilers for Cassette Beasts' %} +{%- accordion 'Minor Quest Spoilers for Cassette Beasts' %} To be specific, this pair of NPCs in question are Leader Ianthe and Ranger Wilma, members of the Ranger Guild. After you defeat all 12 Ranger Captains, and you challenge Ianthe to a battle, Ianthe will reveal that she will fight alongside her wife, who is none other than Ranger Wilma, the woman in charge of the Ranger Guild store. Yes, {% cite "Cassette Beasts" %} has a canon married lesbian couple. -{%- endspoiler %} +{%- endaccordion %} As for transgender and non-binary representation, {% cite "Pokémon" %} has a few ambiguously canon ones, namely [Beauty Nova](https://lgbtqgamearchive.com/2016/05/25/beauty-nova-in-pokemon-xy/), a minor female NPC Trainer from {% cite "X" %} and {% cite "Y" %} who is heavily implied to be a trans woman, and [Blanche](https://bulbapedia.bulbagarden.net/wiki/Blanche) from {% cite "Pokémon GO" %}, who is not referred to by gendered pronouns in the English version of the game and official social media accounts. Some other human characters are also commonly interpreted or headcanonned as trans by LGBTQ+ fans, but none of them are officially confirmed to be trans or non-binary.