2015-07-17 13:17:49 +08:00
|
|
|
.Alert {
|
|
|
|
padding: 12px 16px;
|
|
|
|
border-radius: @border-radius;
|
|
|
|
line-height: 1.5;
|
|
|
|
|
2016-06-05 07:53:36 +08:00
|
|
|
.Alert--color(@alert-color, @alert-bg);
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
.Alert--error {
|
2016-06-05 07:53:36 +08:00
|
|
|
.Alert--color(@alert-error-color, @alert-error-bg);
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
2015-07-31 18:46:47 +08:00
|
|
|
.Alert--success {
|
2016-06-05 07:53:36 +08:00
|
|
|
.Alert--color(@alert-success-color, @alert-success-bg);
|
2015-07-31 18:46:47 +08:00
|
|
|
|
2015-09-18 13:09:20 +08:00
|
|
|
a, a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2015-07-31 18:46:47 +08:00
|
|
|
}
|
2016-06-05 07:53:36 +08:00
|
|
|
.Alert--color(@color; @background) {
|
|
|
|
background: @background;
|
|
|
|
|
|
|
|
&,
|
|
|
|
a,
|
|
|
|
a:hover,
|
|
|
|
.Button,
|
|
|
|
.Button:hover,
|
|
|
|
.Button:active,
|
|
|
|
.Button.active,
|
|
|
|
.Button:focus,
|
|
|
|
.Button.focus {
|
|
|
|
color: @color;
|
|
|
|
}
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
.Alert-controls {
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0 -8px 0 8px;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0 5px;
|
|
|
|
|
2015-09-18 15:16:46 +08:00
|
|
|
> a, > .Button {
|
2015-07-17 13:17:49 +08:00
|
|
|
text-transform: uppercase;
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
cursor: default;
|
|
|
|
text-decoration: none;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2015-09-18 15:16:46 +08:00
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> .Button {
|
|
|
|
margin: -10px;
|
2015-07-31 18:46:47 +08:00
|
|
|
vertical-align: 0;
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|