Template:Alert: Difference between revisions

From OCARC
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 2: Line 2:
  | danger = <div class="alert alert-danger" style="padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; color: #a94442; background-color: #f2dede; border-color: #ebccd1;">{{{message}}}</div>
  | danger = <div class="alert alert-danger" style="padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; color: #a94442; background-color: #f2dede; border-color: #ebccd1;">{{{message}}}</div>
  | info = <div class="alert alert-danger" style="padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; color: #31708f; background-color: #d9edf7; border-color: #bce8f1;">{{{message}}}</div>
  | info = <div class="alert alert-danger" style="padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; color: #31708f; background-color: #d9edf7; border-color: #bce8f1;">{{{message}}}</div>
| warning = <div class="alert alert-danger" style="padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc;">{{{message}}}</div>
| success = <div class="alert alert-danger" style="padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6;">{{{message}}}</div>
}}
}}
<div class="alert alert-{{{type|}}}" style="padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
{{
#ifeq: {{{type|}}} | info |
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
  |
}}
#ifeq: {{{type|}}} | danger |
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
  |
}}
#ifeq: {{{type|}}} | warning |
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
  |
}}
#ifeq: {{{type|}}} | success |
color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
  |
x
}}
    ">{{{message|No Text Entered}}}
</div>

Latest revision as of 06:01, 30 June 2017