Template:Alert: Difference between revisions

From OCARC
Jump to navigation Jump to search
(Created page with "<div class="alert alert-danger" style="padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; {{ #ifeq: {{{type|info}}} | info...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="alert alert-danger" style="padding: 15px;
{{#switch: {{{type}}}
    margin-bottom: 20px;
| 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>
    border: 1px solid transparent;
| 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>
    border-radius: 4px;  
| 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>
#ifeq: {{{type|info}}} | info
  |  
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
  |  
}}
}}
#ifeq: {{{type|info}}} | danger
  |
  color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
  |
}}
#ifeq: {{{type|info}}} | warning
  |
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
  |
}}
#ifeq: {{{type|info}}} | success
  |
color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
  |
}}
    ">{{{message|No Text Entered}}}
</div>

Latest revision as of 06:01, 30 June 2017