Template:Important: Difference between revisions
m add category |
Explicitly define a text color. Fixes the text not being visible on dark mode. |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="important" style="background-color: #fee; border: 1px solid #faa; padding: 10px; margin: 10px 0; width:fit-content"> | <div class="important" style="background-color: #fee; color: #000; border: 1px solid #faa; padding: 10px; margin: 10px 0; width:fit-content"> | ||
<strong>Important:</strong> {{{1}}} | <strong>Important:</strong> {{{1}}} | ||
</div> | </div> | ||
Line 15: | Line 15: | ||
</pre> | </pre> | ||
to create a box with around the text like this: {{Important|Example of important text in a box}} | to create a box with around the text like this: {{Important|Example of important text in a box}} | ||
[[Category:Styling | [[Category:Styling templates]] | ||
== Template Data == | == Template Data == | ||