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

96 lines
1.7 KiB
SCSS
Raw Normal View History

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.
2020-05-29 19:44:46 -04:00
2020-09-16 12:34:23 -04:00
// sass-lint:disable no-vendor-prefixes
@-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;
}
}
2020-09-16 12:34:23 -04: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;
}
}
2020-09-16 12:34:23 -04: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;
}
}
2020-09-16 12:34:23 -04: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-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;
-webkit-animation-name: ember-notify-show;
2020-09-30 12:57:30 -04:00
-webkit-animation-timing-function: cubic-bezier(.175, .885, .32, 1.275);
2020-09-16 12:34:23 -04:00
animation-duration: 500ms;
2020-05-29 19:44:46 -04:00
animation-name: ember-notify-show;
2020-09-30 12:57:30 -04:00
animation-timing-function: cubic-bezier(.175, .885, .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;
-webkit-animation-name: ember-notify-hide;
2020-09-30 12:57:30 -04:00
-webkit-animation-timing-function: cubic-bezier(.6, -.28, .735, .045);
2020-09-16 12:34:23 -04:00
animation-duration: 250ms;
2020-05-29 19:44:46 -04:00
animation-name: ember-notify-hide;
2020-09-30 12:57:30 -04:00
animation-timing-function: cubic-bezier(.6, -.28, .735, .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
}
}