Template:Color: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(This will allow support for CSS color names.)
m (Preventing extra newlines.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="display:inline-flex;border-radius:4px;border:1px solid black;margin:0;padding:2px;background:#eee;">
<templatestyles src="Color/styles.css" /><span class="color-box"><span class="color-text">{{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000000}}}}}}}</span><span class="color-fill" style="background-color: {{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000000}}}}}}};"></span></span><noinclude>
<span style="color:black;
            background:white;
            margin:0;
            border-radius:4px 0 0 4px;
            font-family:Courier,monospace;">
<nowiki></nowiki>{{{1|{{{color|#000000}}}}}}</span>
<span style="color:transparent;
            background:{{{1|{{{color|#000000}}}}}};
            margin:0;
            border-radius:0 4px 4px 0;
            width:1.75em;"></span></span><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 10:32, 22 November 2024

#000000