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

100 lines
1.8 KiB
SCSS
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
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 {
left: -310px;
}
2020-09-16 12:34:23 -04:00
2020-05-29 19:44:46 -04:00
to {
left: 0;
}
}
2022-12-14 12:22:44 -05:00
@keyframes ember-notify-show {
2020-05-29 19:44:46 -04:00
from {
left: -310px;
}
2020-09-16 12:34:23 -04:00
2020-05-29 19:44:46 -04:00
to {
left: 0;
}
}
2022-12-14 12:22:44 -05:00
@-webkit-keyframes ember-notify-hide {
2020-05-29 19:44:46 -04:00
from {
left: 0;
}
2020-09-16 12:34:23 -04:00
2020-05-29 19:44:46 -04:00
to {
left: -310px;
}
}
2022-12-14 12:22:44 -05:00
@keyframes ember-notify-hide {
2020-05-29 19:44:46 -04:00
from {
left: 0;
}
2020-09-16 12:34:23 -04:00
2020-05-29 19:44:46 -04:00
to {
left: -310px;
}
}
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;
left: 0;
2020-12-01 17:24:10 -05:00
max-width: 300px;
2020-05-29 19:44:46 -04:00
position: fixed;
z-index: 5000;
}
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: 10px;
position: relative;
width: 300px;
2020-09-16 12:34:23 -04:00
2020-05-29 19:44:46 -04:00
.close {
cursor: pointer;
2020-09-16 12:34:23 -04:00
float: right;
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
2020-05-29 19:44:46 -04:00
@media only screen and (max-width: 680px) {
.ember-notify-cn {
box-sizing: border-box;
2020-09-16 12:34:23 -04:00
padding-left: 20px;
width: 100%;
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 {
float: right;
2020-09-16 12:34:23 -04:00
width: 100%;
2020-05-29 19:44:46 -04:00
}
}