2015-12-21 13:26:54 +01:00
|
|
|
//
|
|
|
|
// Alerts
|
|
|
|
// ---
|
2017-05-29 21:15:48 +02:00
|
|
|
// bigchaindb.com
|
2015-12-21 13:26:54 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
// Base
|
|
|
|
.alert {
|
|
|
|
@extend .small;
|
|
|
|
padding: $alert-padding;
|
|
|
|
margin-bottom: $spacer;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
// Improve alignment and spacing of inner content
|
|
|
|
> p + p {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
|
2017-05-06 18:03:40 +02:00
|
|
|
> p:last-child { margin-bottom: 0; }
|
2018-04-18 17:32:43 +02:00
|
|
|
|
|
|
|
.form & {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2015-12-21 13:26:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert__icon {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 2rem;
|
|
|
|
stroke-width: 3;
|
2017-05-06 18:03:40 +02:00
|
|
|
margin: 0 auto $spacer;
|
2015-12-21 13:26:54 +01:00
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
padding-bottom: $spacer;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Alternate styles
|
|
|
|
//
|
2017-06-27 21:51:09 +02:00
|
|
|
.alert--success {
|
|
|
|
@include alert-variant($alert-success-bg, $alert-success-text);
|
2015-12-21 13:26:54 +01:00
|
|
|
}
|
2017-05-06 18:03:40 +02:00
|
|
|
|
2017-06-27 21:51:09 +02:00
|
|
|
.alert--info {
|
|
|
|
@include alert-variant($alert-info-bg, $alert-info-text);
|
2015-12-21 13:26:54 +01:00
|
|
|
}
|
2017-05-06 18:03:40 +02:00
|
|
|
|
2017-06-27 21:51:09 +02:00
|
|
|
.alert--warning {
|
|
|
|
@include alert-variant($alert-warning-bg, $alert-warning-text);
|
2015-12-21 13:26:54 +01:00
|
|
|
}
|
2017-05-06 18:03:40 +02:00
|
|
|
|
2017-06-27 21:51:09 +02:00
|
|
|
.alert--danger {
|
|
|
|
@include alert-variant($alert-danger-bg, $alert-danger-text);
|
2015-12-21 13:26:54 +01:00
|
|
|
}
|