Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
159 lines (137 sloc) 3.79 KB
// J!Blank Template for Joomla by JBlank.pro (JBZoo.com)
//
// @package JBlank
// @author SmetDenis <admin@jbzoo.com>
// @copyright Copyright (c) JBlank.pro
// @license http://www.gnu.org/licenses/gpl.html GNU/GPL
// @link http://jblank.pro/ JBlank project page
// For Joomla 3.x
// Gets from Bootstrap 3.2.0
// ---------------------------------------------------------------------------------------------------------------------
@alert-padding: 15px;
@alert-border-radius: 4px;
@font-size-base: 14px;
@line-height-base: 1.428571429;
@line-height-computed: floor((@font-size-base * @line-height-base));
@state-success-text: #3c763d;
@state-success-bg: #dff0d8;
@state-success-border: darken(spin(@state-success-bg, -10), 5%);
@state-info-text: #31708f;
@state-info-bg: #d9edf7;
@state-info-border: darken(spin(@state-info-bg, -10), 7%);
@state-warning-text: #8a6d3b;
@state-warning-bg: #fcf8e3;
@state-warning-border: darken(spin(@state-warning-bg, -10), 5%);
@state-danger-text: #a94442;
@state-danger-bg: #f2dede;
@state-danger-border: darken(spin(@state-danger-bg, -10), 5%);
.alert-variant(@background; @border; @text-color) {
background-color: @background;
border-color: @border;
color: @text-color;
hr {
border-top-color: darken(@border, 5%);
}
.alert-link {
color: darken(@text-color, 10%);
}
}
#system-message {
.alert {
padding: @alert-padding;
margin-bottom: @line-height-computed;
border: 1px solid transparent;
.border-radius(@alert-border-radius);
// Provide class for links that match alerts
.alert-link {
font-weight: bold;
}
> p,
> ul {
margin: 0;
}
> p + p {
margin-top: 5px;
}
}
// close alerts
.close {
position: relative;
line-height: 20px;
float: right;
font-size: 20px;
font-weight: bold;
color: #000;
text-shadow: 0 1px 0 rgba(255, 255, 255, 1);
text-decoration: none;
.opacity(20);
&:hover,
&:focus {
color: #000;
text-decoration: none;
cursor: pointer;
.opacity(40);
}
}
.alert-notice {
.alert-variant(@state-success-bg; @state-success-border; @state-success-text);
}
.alert-message {
.alert-variant(@state-info-bg; @state-info-border; @state-info-text);
}
.alert-warning {
.alert-variant(@state-warning-bg; @state-warning-border; @state-warning-text);
}
.alert-error {
.alert-variant(@state-danger-bg; @state-danger-border; @state-danger-text);
}
}
// For Joomla 2.5
// ---------------------------------------------------------------------------------------------------------------------
#system-message {
border: 0;
margin: 0;
padding: 0;
dt {
position: absolute;
top: -2000px;
left: -3000px;
}
dd {
margin: 0 0 15px 0;
font-weight: bold;
text-indent: 0px;
padding: 0;
ul {
color: #000;
list-style: none;
padding: 0px;
li {
line-height: 1.5em;
}
}
}
dd.message {
ul {
padding: 10px 10px 10px 40px;
border-top: 2px solid #90B203;
border-bottom: 2px solid #90B203;
}
}
dd.error {
ul {
padding: 10px 10px 10px 40px;
border-top: 2px solid #990000;
border-bottom: 2px solid #990000;
}
}
dd.notice {
ul {
padding: 10px 10px 10px 40px;
border-top: 2px solid #FAA528;
border-bottom: 2px solid #FAA528;
color: #000;
margin: 10px 0;
}
}
}