2017-07-11 15:20:14 +02:00
|
|
|
// Messages are specific to Django's 'Messaging' system which adds messages into the session,
|
2015-11-03 13:15:33 +01:00
|
|
|
// for display on the next page visited. These appear as an animated banner at the top of the page.
|
|
|
|
// For inline help text, see typography.scss
|
2015-09-25 15:17:39 +02:00
|
|
|
.messages {
|
|
|
|
position: relative;
|
|
|
|
background-color: $color-grey-1;
|
2014-01-24 18:34:26 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.buttons {
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-start: 1em;
|
2014-11-07 17:09:42 +01:00
|
|
|
}
|
|
|
|
|
2017-03-10 18:09:59 +01:00
|
|
|
> ul {
|
|
|
|
@include unlistimmediate();
|
2015-09-25 15:17:39 +02:00
|
|
|
position: relative;
|
|
|
|
top: -100px;
|
|
|
|
opacity: 0;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2017-03-10 18:09:59 +01:00
|
|
|
> ul > li {
|
2016-10-26 23:20:08 +02:00
|
|
|
// @include nice-padding;
|
2017-08-18 02:28:38 +02:00
|
|
|
padding: 1.6em 3em 1.6em 1.6em;
|
2015-11-03 13:15:33 +01:00
|
|
|
color: $color-white;
|
2022-07-20 22:34:23 +02:00
|
|
|
border-bottom: 1px solid transparent;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2014-05-08 17:05:12 +02:00
|
|
|
|
2017-03-10 18:09:59 +01:00
|
|
|
> ul > li:before {
|
2018-01-17 09:51:03 +01:00
|
|
|
@include font-smoothing;
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-end: 0.5em;
|
2015-09-25 15:17:39 +02:00
|
|
|
font-size: 1.5em;
|
|
|
|
vertical-align: middle;
|
2014-05-08 17:05:12 +02:00
|
|
|
}
|
|
|
|
|
2020-06-29 17:17:04 +02:00
|
|
|
&-icon {
|
|
|
|
vertical-align: text-top;
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-end: 0.5em;
|
2020-06-29 17:17:04 +02:00
|
|
|
width: 1.5em;
|
|
|
|
height: 1.5em;
|
|
|
|
}
|
|
|
|
|
2022-09-08 10:53:34 +02:00
|
|
|
.button.button-secondary {
|
|
|
|
border-color: currentColor;
|
|
|
|
color: inherit;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: transparent;
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.error {
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: theme('colors.critical.200');
|
2022-09-08 10:53:34 +02:00
|
|
|
|
|
|
|
.button:hover {
|
|
|
|
color: $color-grey-1;
|
|
|
|
}
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.warning {
|
2022-07-09 08:32:51 +02:00
|
|
|
color: $color-grey-1;
|
|
|
|
background-color: theme('colors.warning.100');
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.success {
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: theme('colors.positive.100');
|
2014-11-07 17:09:42 +01:00
|
|
|
|
2022-09-08 10:53:34 +02:00
|
|
|
.button:hover {
|
|
|
|
background-color: $color-teal-dark;
|
2014-11-07 17:09:42 +01:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2017-03-10 18:09:59 +01:00
|
|
|
|
|
|
|
.errorlist {
|
|
|
|
margin: 0.5em 0 0 1em;
|
|
|
|
}
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2014-03-03 18:56:24 +01:00
|
|
|
|
2017-03-10 18:09:59 +01:00
|
|
|
.messages.new > ul {
|
2015-11-03 18:12:12 +01:00
|
|
|
transition: none;
|
2015-09-25 15:17:39 +02:00
|
|
|
top: -100px;
|
2014-03-03 18:56:24 +01:00
|
|
|
}
|
|
|
|
|
2017-03-10 18:09:59 +01:00
|
|
|
.ready .messages > ul,
|
|
|
|
.messages.appear > ul {
|
2015-11-03 18:12:12 +01:00
|
|
|
transition: top 0.5s ease, opacity 0.5s ease, max-height 1.2s ease;
|
2015-09-25 15:17:39 +02:00
|
|
|
opacity: 1;
|
|
|
|
top: 0;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2014-02-06 17:41:52 +01:00
|
|
|
|
2018-11-04 22:46:42 +01:00
|
|
|
@include media-breakpoint-up(sm) {
|
2017-03-10 18:09:59 +01:00
|
|
|
.messages > ul > li {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 1.6em;
|
|
|
|
padding-inline-end: 3em;
|
2014-02-06 17:41:52 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
}
|