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

88 lines
1.6 KiB
SCSS
Raw Normal View History

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