CrucibleCodexStyles: Difference between revisions
Appearance
Created page with "{{CodexHeader}} <div class="codex-page"> = Crucible Codex Styles Guide = This page is a visual reference for reusable Codex formatting styles. Use it as a copy-and-paste library when building new pages. == Shared Codex Wrapper == This is the standard shared wrapper used across subsites. <div class="codex-page"> This is a plain <code>codex-page</code> wrapper. It gives the page its centered panel, padding, rounded corners, and shadow. </div> <pre> <div class="co..." |
No edit summary |
||
| Line 2: | Line 2: | ||
<div class="codex-page"> | <div class="codex-page"> | ||
= Crucible Codex | = Crucible Codex Markup Pattern = | ||
This page | This page defines the standard wrapper pattern for all Crucible Codex subsites. | ||
The canonical structure is now consistent across subsites: | |||
= | <pre> | ||
{{SubsiteHeader}} | |||
<div class="codex-page codex-page--subsite"> | |||
Page content here. | |||
<div class="codex- | <div class="codex-navbox codex-navbox--subsite"> | ||
'''Subsite Codex''' | |||
[[Subsite:Home|Home]] • [[Subsite:Other Page|Other Page]] | |||
</div> | </div> | ||
</div> | </div> | ||
</pre> | </pre> | ||
== | == Canonical Subsite Wrappers == | ||
{| class="wikitable" | {| class="wikitable" | ||
! | ! Subsite !! Page Wrapper !! Navigation Wrapper !! Legacy Alias Still Supported | ||
|- | |- | ||
| | | Nightcats || <code><div class="codex-page codex-page--nightcats"></code> || <code><div class="codex-navbox codex-navbox--nightcats"></code> || None needed | ||
|- | |- | ||
| | | Five Fists / Burning Temple || <code><div class="codex-page codex-page--ffbt"></code> || <code><div class="codex-navbox codex-navbox--ffbt"></code> || None needed | ||
< | |||
<div class="codex-page codex-page-- | |||
|- | |- | ||
| | | Sigil Lands || <code><div class="codex-page codex-page--sigil"></code> || <code><div class="codex-navbox codex-navbox--sigil"></code> || None needed | ||
< | |||
< | |||
</ | |||
|- | |- | ||
| | | Stormbringer || <code><div class="codex-page codex-page--stormbringer"></code> || <code><div class="codex-navbox codex-navbox--stormbringer"></code> || <code>codex-nav--stormbringer</code>, <code>stormbringer-nav</code> | ||
|- | |- | ||
| | | Hawkmoon || <code><div class="codex-page codex-page--hawkmoon"></code> || <code><div class="codex-navbox codex-navbox--hawkmoon"></code> || <code>hawkmoon-theme</code>, <code>hawkmoon-navbox</code> | ||
< | |||
<div class="codex-page codex-page-- | |||
<div class=" | |||
|- | |- | ||
| | | Apes || <code><div class="codex-page codex-page--apes"></code> || <code><div class="codex-navbox codex-navbox--apes"></code> || None needed | ||
|} | |} | ||
== | == Standard Rule == | ||
All subsites should use: | |||
* a shared Codex page wrapper based on <code>codex-page</code> | |||
* a subsite modifier in the form <code>codex-page--NAME</code> | |||
* a shared navigation wrapper based on <code>codex-navbox</code> | |||
* a subsite modifier in the form <code>codex-navbox--NAME</code> | |||
This keeps page markup predictable and makes future CSS maintenance much easier. | |||
== Stormbringer Example == | |||
<pre> | <pre> | ||
{{StormbringerHeader}} | |||
{ | |||
<div class="codex-page codex-page--stormbringer"> | <div class="codex-page codex-page--stormbringer"> | ||
= Character Creation = | |||
Page text here. | |||
<div class="storm- | <div class="codex-navbox codex-navbox--stormbringer"> | ||
<span class="storm-nav-title">Stormbringer Codex</span> | |||
[[Stormbringer:Home|Home]] • [[Stormbringer:Character Creation|Character Creation]] | |||
</div> | </div> | ||
</div> | </div> | ||
</pre> | |||
== Hawkmoon Example == | |||
<pre> | <pre> | ||
{{HawkmoonHeader}} | |||
<div class="codex-page codex-page--hawkmoon"> | |||
= Granbretan = | |||
Page text here. | |||
<div class="codex-navbox codex-navbox--hawkmoon"> | |||
'''Hawkmoon Codex''' | |||
[[Hawkmoon:Home|Home]] • [[Hawkmoon:Granbretan|Granbretan]] | |||
</div> | |||
''' | |||
</div> | </div> | ||
</pre> | </pre> | ||
== | == Migration Note == | ||
Older markup should continue to render, because legacy Hawkmoon and Stormbringer selectors are still supported in CSS. New pages should use the canonical wrappers shown here. | |||
</div> | </div> | ||
[[Category:Crucible Codex]] | [[Category:Crucible Codex]] | ||
Revision as of 12:55, 23 April 2026
Crucible Codex Markup Pattern
This page defines the standard wrapper pattern for all Crucible Codex subsites.
The canonical structure is now consistent across subsites:
{{SubsiteHeader}}
<div class="codex-page codex-page--subsite">
Page content here.
<div class="codex-navbox codex-navbox--subsite">
'''Subsite Codex'''
[[Subsite:Home|Home]] • [[Subsite:Other Page|Other Page]]
</div>
</div>
Canonical Subsite Wrappers
| Subsite | Page Wrapper | Navigation Wrapper | Legacy Alias Still Supported |
|---|---|---|---|
| Nightcats | <div class="codex-page codex-page--nightcats"> |
<div class="codex-navbox codex-navbox--nightcats"> |
None needed |
| Five Fists / Burning Temple | <div class="codex-page codex-page--ffbt"> |
<div class="codex-navbox codex-navbox--ffbt"> |
None needed |
| Sigil Lands | <div class="codex-page codex-page--sigil"> |
<div class="codex-navbox codex-navbox--sigil"> |
None needed |
| Stormbringer | <div class="codex-page codex-page--stormbringer"> |
<div class="codex-navbox codex-navbox--stormbringer"> |
codex-nav--stormbringer, stormbringer-nav
|
| Hawkmoon | <div class="codex-page codex-page--hawkmoon"> |
<div class="codex-navbox codex-navbox--hawkmoon"> |
hawkmoon-theme, hawkmoon-navbox
|
| Apes | <div class="codex-page codex-page--apes"> |
<div class="codex-navbox codex-navbox--apes"> |
None needed |
Standard Rule
All subsites should use:
- a shared Codex page wrapper based on
codex-page - a subsite modifier in the form
codex-page--NAME - a shared navigation wrapper based on
codex-navbox - a subsite modifier in the form
codex-navbox--NAME
This keeps page markup predictable and makes future CSS maintenance much easier.
Stormbringer Example
{{StormbringerHeader}}
<div class="codex-page codex-page--stormbringer">
= Character Creation =
Page text here.
<div class="codex-navbox codex-navbox--stormbringer">
<span class="storm-nav-title">Stormbringer Codex</span>
[[Stormbringer:Home|Home]] • [[Stormbringer:Character Creation|Character Creation]]
</div>
</div>
Hawkmoon Example
{{HawkmoonHeader}}
<div class="codex-page codex-page--hawkmoon">
= Granbretan =
Page text here.
<div class="codex-navbox codex-navbox--hawkmoon">
'''Hawkmoon Codex'''
[[Hawkmoon:Home|Home]] • [[Hawkmoon:Granbretan|Granbretan]]
</div>
</div>
Migration Note
Older markup should continue to render, because legacy Hawkmoon and Stormbringer selectors are still supported in CSS. New pages should use the canonical wrappers shown here.
