taiga-front/app/styles/components/notification-message.scss

97 lines
2.0 KiB
SCSS

.notification-message {
@include transform(translateY(-100%));
background: rgba($gray-light, .95);
color: $white;
opacity: 0;
padding: 1rem;
position: fixed;
top: 0;
width: 100%;
z-index: 99920;
&.inactive {
@include transition (all .6s ease-in-out);
}
&.active {
@include transform(translateY(0));
@include transition (all .6s ease-in-out);
opacity: 1;
}
.text {
display: inline-block;
margin-left: .5rem;
width: 80%;
p {
margin: 0;
}
}
.warning {
@extend %xlarge;
@extend %bold;
color: $white;
line-height: 2.4rem;
}
.icon-delete {
color: $white;
position: absolute;
right: 1rem;
top: 1rem;
}
}
.notification-message-success {
background: rgba($fresh-taiga, .9);
.icon-notification-success {
@extend %xxlarge;
display: inline;
vertical-align: sub;
}
}
.notification-message-error {
background: rgba($red, .9);
.icon-notification-error {
@extend %xxlarge;
display: inline;
vertical-align: sub;
}
}
.notification-light {
@include transform(translateY(-100%));
background: rgba($gray-light, .95);
color: $white;
left: calc(50% - 200px);
padding: 1rem 1rem .2rem;
position: absolute;
top: 0;
width: 400px;
z-index: 99999;
&.inactive {
@include transition (all .6s ease-in-out);
}
&.active {
@include transform(translateY(0));
@include transition (all .6s ease-in-out);
}
.text {
display: inline-block;
margin-left: .5rem;
width: 80%;
}
.warning {
@extend %large;
@extend %bold;
color: $white;
line-height: 2.4rem;
}
.icon-delete {
color: $white;
position: absolute;
right: 1rem;
}
}
.notification-message-light-error {
background: rgba($red, .95);
}