Jump to content

User:DoggoBit/Sandbox/Infobox/Layout: Difference between revisions

From NixOS Wiki
DoggoBit (talk | contribs)
No edit summary
DoggoBit (talk | contribs)
No edit summary
Line 15: Line 15:


   --infobox-separator-size: 10px;
   --infobox-separator-size: 10px;
  --infobox-clip: {{#if: {{{clip|}}} | polygon(0 0, 100% 100%, 0 100%) | none}};
    
    
   border: solid 3px var(--infobox-color);
   border: solid 3px var(--infobox-color);
Line 36: Line 38:
   width: 100%;
   width: 100%;
   background-color: var(--infobox-background);
   background-color: var(--infobox-background);
   clip-path: polygon(0 0, 100% 100%, 0 100%);
   clip-path: var(--infobox-clip);
"></div>
"></div>
<div class="nix-wiki infobox-content" style="
<div class="nix-wiki infobox-content" style="
Line 45: Line 47:
">
">
{{{content}}}
{{{content}}}
</div>
{{#if: {{{footer|}}} |
<div style="background-color: var(--infobox-background);">
<div class="nix-wiki infobox-separator" style="
  height: var(--infobox-separator-size);
  width: 100%;
  background-color: var(--infobox-color);
  clip-path: var(--infobox-clip);
">
</div>
</div>
<div class="nix-wiki infobox-footer" style="
  padding: 0 var(--infobox-border-radius) var(--infobox-border-radius) var(--infobox-border-radius);
  background-color: var(--infobox-color);
  color: white;
  font-weight: bold;
  text-align: center;
  font-size: var(--infobox-content-size);
">
<p style="margin: 0">{{{footer|}}}</p>
</div>
|}}
</div>
</div>
</div>
</div>

Revision as of 23:53, 3 June 2025

{{{title}}}

[[File:{{{image}}}]]

{{{content}}}