wagtail/client/scss/components/_messages.scss

89 wiersze
1.7 KiB
SCSS
Czysty Zwykły widok Historia

// Messages are specific to Django's 'Messaging' system which adds messages into the session,
2015-11-03 12:15:33 +00: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
.messages {
position: relative;
z-index: 5;
background-color: $color-grey-1;
.buttons {
margin-left: 1em;
}
> ul {
@include unlistimmediate();
position: relative;
top: -100px;
opacity: 0;
}
2015-11-03 12:15:33 +00:00
> ul > li {
// @include nice-padding;
padding: 1.6em 3em 1.6em 1.6em;
2015-11-03 12:15:33 +00:00
color: $color-white;
}
2014-05-08 15:05:12 +00:00
> ul > li:before {
@include font-smoothing;
margin-right: 0.5em;
font-size: 1.5em;
vertical-align: middle;
2014-05-08 15:05:12 +00:00
}
2020-06-29 15:17:04 +00:00
&-icon {
vertical-align: text-top;
margin-right: 0.5em;
width: 1.5em;
height: 1.5em;
}
.error {
background-color: $color-red-dark;
}
2015-11-03 12:15:33 +00:00
.warning {
background-color: $color-orange-dark;
}
2015-11-03 12:15:33 +00:00
.success {
background-color: $color-green-dark;
}
.success .button:hover {
background-color: $color-teal-dark;
}
2015-11-03 12:15:33 +00:00
.button-secondary {
2015-11-03 12:15:33 +00:00
border-color: rgba(255, 255, 255, 0.5);
color: $color-white;
2015-11-03 12:15:33 +00:00
&:hover {
border-color: transparent;
}
}
.errorlist {
margin: 0.5em 0 0 1em;
}
}
.messages.new > ul {
transition: none;
top: -100px;
}
.ready .messages > ul,
.messages.appear > ul {
transition: top 0.5s ease, opacity 0.5s ease, max-height 1.2s ease;
opacity: 1;
top: 0;
}
2014-02-06 16:41:52 +00:00
@include media-breakpoint-up(sm) {
.messages > ul > li {
padding-left: 1.6em;
padding-right: 3em;
2014-02-06 16:41:52 +00:00
}
2015-11-03 12:15:33 +00:00
}