Difference between revisions of "Template:Alert"
(Tag: Undo) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="{{#switch: {{{1}}} | <div style="{{#switch: {{{1}}} | ||
− | + | | info = border-color: #bcdff1; color: #31708f; {{#switch:{{{opt}}}|bg = background-color: #d9edf7;|}} | |
− | + | | success = border-color: #d0e9c6; color: #3c763d; {{#switch:{{{opt}}}|bg = background-color: #dff0d8;|}} | |
− | + | | warning = border-color: #faf2cc; color: #8a6d3b; {{#switch:{{{opt}}}|bg = background-color: #fcf8e3;|}} | |
− | + | | danger = border-color: #ebcccc; color: #a94442; {{#switch:{{{opt}}}|bg = background-color: #f2dede;|}} | |
− | + | | #default = border-color: #bcdff1; color: #3c763d; {{#switch:{{{opt}}}|bg = background-color: #d9edf7;|}} | |
}} | }} | ||
{{#switch:{{{opt}}} | {{#switch:{{{opt}}} | ||
− | + | | full-border = border-width: 1px; border-top-style: solid; border-bottom-style: solid; | |
− | + | | #default = | |
}} | }} | ||
border-left-width: 3px; | border-left-width: 3px; | ||
Line 17: | Line 17: | ||
border-radius: 5px; | border-radius: 5px; | ||
{{ #ifeq: {{{inline|no}}} | yes | {{ #ifeq: {{{inline|no}}} | yes | ||
− | + | | display: inline-table; margin-top: 5px; margin-bottom: 5px; | |
− | + | | display: table; margin-top: 10px; margin-bottom: 10px; | |
}} | }} | ||
border-collapse: separate; | border-collapse: separate; | ||
border-spacing: 5px; | border-spacing: 5px; | ||
"> {{#if: {{{3|}}} | "> {{#if: {{{3|}}} | ||
− | + | | <strong style="display: table-cell; padding-right: 5px; vertical-align: middle;">{{{2}}}</strong>{{{3}}} | |
− | + | | <span>{{{2}}}</span> | |
}}</div> | }}</div> |
Latest revision as of 12:52, 27 March 2020
{{{2}}}