Files
threshold-ui/ui/desktop/app/styles/_notify.scss
T

90 lines
1.7 KiB
SCSS
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
2020-11-12 15:13:28 -05:00
// This file is essentially a rip of the default ember notify styles with some minor tweaks for positioning.
// sass-lint:disable no-vendor-prefixes
@-webkit-keyframes ember-notify-show {
2020-11-12 15:13:28 -05:00
from {
right: -310px;
2020-11-12 15:13:28 -05:00
}
to {
right: 0;
2020-11-12 15:13:28 -05:00
}
}
@keyframes ember-notify-show {
2020-11-12 15:13:28 -05:00
from {
right: -310px;
2020-11-12 15:13:28 -05:00
}
to {
right: 0;
2020-11-12 15:13:28 -05:00
}
}
@-webkit-keyframes ember-notify-hide {
2020-11-12 15:13:28 -05:00
from {
right: 0;
2020-11-12 15:13:28 -05:00
}
to {
right: -310px;
2020-11-12 15:13:28 -05:00
}
}
@keyframes ember-notify-hide {
2020-11-12 15:13:28 -05:00
from {
right: 0;
2020-11-12 15:13:28 -05:00
}
to {
right: -310px;
2020-11-12 15:13:28 -05:00
}
}
.ember-notify-cn {
bottom: 0;
right: 0;
2020-11-12 15:13:28 -05:00
position: fixed;
z-index: 5000;
margin-bottom: 16px;
2020-11-12 15:13:28 -05:00
}
.ember-notify {
box-sizing: border-box;
display: block;
margin: 16px 24px;
2020-11-12 15:13:28 -05:00
position: relative;
width: 360px;
2020-11-12 15:13:28 -05:00
}
.ember-notify-show {
-webkit-animation-duration: 500ms;
animation-duration: 500ms;
-webkit-animation-name: ember-notify-show;
2020-11-12 15:13:28 -05:00
animation-name: ember-notify-show;
-webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
2020-11-12 15:13:28 -05:00
}
.ember-notify-hide {
-webkit-animation-duration: 250ms;
animation-duration: 250ms;
-webkit-animation-name: ember-notify-hide;
2020-11-12 15:13:28 -05:00
animation-name: ember-notify-hide;
-webkit-animation-timing-function: cubic-bezier(0.6, -0.28, 0.735, 0.045);
animation-timing-function: cubic-bezier(0.6, -0.28, 0.735, 0.045);
2020-11-12 15:13:28 -05:00
&:hover {
-moz-animation-play-state: paused;
-webkit-animation-play-state: paused;
animation-play-state: paused;
}
}
@media only screen and (width <= 680px) {
2020-11-12 15:13:28 -05:00
.ember-notify {
width: 100%;
}
}