Rename spoiler accordion to content accordion

This commit is contained in:
Helen Chong 2024-06-19 22:17:53 +08:00
parent 7af3604725
commit 6974915dea
3 changed files with 16 additions and 16 deletions

View File

@ -121,13 +121,13 @@ module.exports = function (eleventyConfig) {
</figure>`; </figure>`;
}); });
// Paired shorcode: Spoiler accordion // Paired shorcode: Content accordion
eleventyConfig.addPairedShortcode('spoiler', (content, hint) => { eleventyConfig.addPairedShortcode('accordion', (content, summary) => {
const hintMarkup = markdownLibrary.renderInline(hint); const summaryMarkup = markdownLibrary.renderInline(summary);
const contentMarkup = markdownLibrary.render(content); const contentMarkup = markdownLibrary.render(content);
return `<details class="spoiler-accordion"> return `<details class="content-accordion">
<summary class="spoiler-accordion__hint">${hintMarkup}</summary> <summary class="content-accordion__summary">${summaryMarkup}</summary>
<div class="spoiler-accordion__spoiler">${contentMarkup}</div> <div class="content-accordion__content">${contentMarkup}</div>
</details>`; </details>`;
}); });

View File

@ -80,24 +80,24 @@
outline-offset: -0.25em; outline-offset: -0.25em;
} }
/* Spoiler Accordion */ /* Content Accordion */
* + .spoiler-accordion { * + .content-accordion {
margin-top: var(--sz-paragraph-margin); margin-top: var(--sz-paragraph-margin);
} }
.spoiler-accordion { .content-accordion {
padding: 0.5em 0; padding: 0.5em 0;
} }
.spoiler-accordion__hint { .content-accordion__summary {
font-weight: 700; font-weight: 700;
} }
.spoiler-accordion__spoiler { .content-accordion__content {
padding: 0.5em 1em; padding: 0.5em 1em;
} }
.spoiler-accordion__spoiler p + p { .content-accordion__content p + p {
margin-top: 1em; margin-top: 1em;
} }

View File

@ -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. 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 <cite>Cassette Beasts</cite>' %} {%- accordion 'Major Story Spoilers for <cite>Cassette Beasts</cite>' %}
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. 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. 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. 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 ## 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. 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 <cite>Cassette Beasts</cite>' %} {%- accordion 'Minor Quest Spoilers for <cite>Cassette Beasts</cite>' %}
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. 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. 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.