demarches-normaliennes/app/assets/stylesheets/new_alert.scss

34 lines
558 B
SCSS
Raw Normal View History

2017-05-09 12:18:52 +02:00
@import "colors";
@import "constants";
2017-05-09 12:18:52 +02:00
2017-05-05 14:55:05 +02:00
.alert {
padding: 15px;
border: 1px solid transparent;
}
.alert-danger {
2018-03-01 10:47:36 +01:00
background-color: $medium-red;
2018-02-26 17:21:21 +01:00
color: #FFFFFF;
2018-08-30 13:47:45 +02:00
a {
color: #FFFFFF;
}
2017-05-05 14:55:05 +02:00
}
2017-09-15 10:56:14 +02:00
.alert-success {
background-color: $lighter-green;
border-color: $light-green;
color: $dark-green;
}
2018-11-14 16:28:02 +01:00
.alert-fixed {
position: fixed;
left: 50%;
transform: translate(-50%);
max-width: 700px;
2018-11-14 16:28:02 +01:00
top: 10px;
border-radius: 10px;
// Ensure fixed flash messages are above `position: absolute` elements (like maps)
z-index: $alert-z-index;
2018-11-14 16:28:02 +01:00
}