User:Layer-09/Sandbox/Infobox Emacs/Content: Difference between revisions
Appearance
Created page with "<!-- This page is the “inner structure.” MediaWiki never shows this full page on its own; it is only pulled in by the wrapper above. --> <div class="infobox" style="border:1px solid #aaa; width:100%;"> <table cellspacing="0" cellpadding="4" style="width:100%;"> <tr> <th colspan="2" style="background-color:#336699; color:#fff; font-size:120%;"> {{{title}}} </th> </tr> <tr> <td colspan="2" style="text-align:center; padding:4..." |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
< | <div class="nix-wiki infobox" style=" | ||
--infobox-color: rgb(82, 119, 195); | |||
--infobox-background: #ffffff; | |||
-- | |||
--infobox-border-color: var(--infobox-color); | |||
--infobox-border-radius: 1rem; | |||
--infobox-border-size: 3px; | |||
--infobox-title-color: var(--infobox-color); | |||
--infobox-title-size: 1rem; | |||
--infobox-title-weight: bold; | |||
--infobox-title-align: center; | |||
--infobox-content-size: 90%; | |||
--infobox-content-padding: {{#if: {{{clip|}}} | calc(var(--infobox-border-radius) / 2) var(--infobox-border-radius) | var(--infobox-border-radius)}}; | |||
--infobox-content-title-color: var(--infobox-title-color); | |||
--infobox-separator-size: {{#if: {{{clip|}}} | 10px | 0}}; | |||
--infobox-separator-clip: {{#if: {{{clip|}}} | polygon(0 0, 100% 100%, 0 100%) | none}}; | |||
< | border: solid 3px var(--infobox-color); | ||
border-radius: var(--infobox-border-radius); | |||
overflow-y: hidden; | |||
"> | |||
<div class="nix-wiki infobox-header" style=" | |||
padding: var(--infobox-content-padding); | |||
"> | |||
<p class="nix-wiki infobox-title" style=" | |||
color: var(--infobox-title-color); | |||
font-size: var(--infobox-title-size); | |||
font-weight: var(--infobox-title-weight); | |||
< | text-align: var(--infobox-title-align); | ||
margin-top: 0; | |||
">{{{title}}}</p> | |||
<div class="nix-wiki infobox-image">[[File:{{{image}}}]]</div> | |||
</div> | |||
<div class="nix-wiki infobox-separator" style=" | |||
height: var(--infobox-separator-size); | |||
</ | width: 100%; | ||
background-color: #ffffff; | |||
clip-path: var(--infobox-separator-clip); | |||
"></div> | |||
<div class="nix-wiki infobox-content" style=" | |||
</ | padding: var(--infobox-content-padding); | ||
background-color: #ffffff; | |||
text-align: left; | |||
font-size: var(--infobox-content-size); | |||
"> | |||
{{{content}}} | |||
</div> | |||
</div> | </div> | ||