2015-04-09 15:46:29 +02:00
|
|
|
/**
|
2017-01-11 16:24:33 +01:00
|
|
|
* Copyright JS Foundation and other contributors, http://js.foundation
|
2015-04-09 15:46:29 +02:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
**/
|
|
|
|
|
2019-05-01 23:41:20 +02:00
|
|
|
#red-ui-notifications {
|
2018-01-08 15:46:38 +01:00
|
|
|
z-index: 100;
|
2015-07-14 16:59:56 +02:00
|
|
|
width: 500px;
|
|
|
|
margin-left: -250px;
|
|
|
|
left: 50%;
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
}
|
2019-05-01 23:41:20 +02:00
|
|
|
.red-ui-notification {
|
2015-07-14 16:59:56 +02:00
|
|
|
box-sizing: border-box;
|
2015-07-14 00:21:03 +02:00
|
|
|
position: relative;
|
2015-07-14 16:59:56 +02:00
|
|
|
padding: 14px 18px;
|
2015-07-14 00:21:03 +02:00
|
|
|
margin-bottom: 4px;
|
2019-05-15 14:54:29 +02:00
|
|
|
box-shadow: 0 1px 1px 1px $shadow;
|
|
|
|
background-color: $secondary-background;
|
|
|
|
color: $primary-text-color;
|
|
|
|
border: 1px solid $notification-border-default;
|
2015-07-14 16:59:56 +02:00
|
|
|
border-left-width: 16px;
|
2017-04-21 10:02:43 +02:00
|
|
|
overflow: hidden;
|
2019-05-23 17:39:06 +02:00
|
|
|
.ui-dialog-buttonset {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
2015-07-14 00:21:03 +02:00
|
|
|
}
|
2019-05-01 23:41:20 +02:00
|
|
|
.red-ui-notification p:first-child {
|
2018-01-09 16:06:05 +01:00
|
|
|
font-size: 1.1em;
|
2018-01-18 23:17:48 +01:00
|
|
|
font-weight: 400;
|
2018-01-09 16:06:05 +01:00
|
|
|
}
|
2019-05-01 23:41:20 +02:00
|
|
|
.red-ui-notification a {
|
2016-01-13 00:03:33 +01:00
|
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
2015-07-14 00:21:03 +02:00
|
|
|
|
2019-05-01 23:41:20 +02:00
|
|
|
.red-ui-notification-success {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: $notification-border-success;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-05-01 23:41:20 +02:00
|
|
|
.red-ui-notification-warning {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: $notification-border-warning;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-05-01 23:41:20 +02:00
|
|
|
.red-ui-notification-error {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: $notification-border-error;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2019-01-09 15:02:46 +01:00
|
|
|
|
2019-05-23 17:39:06 +02:00
|
|
|
.red-ui-notification-compact {
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.ui-dialog-buttonset {
|
|
|
|
margin-top: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
|
|
|
right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-01 23:41:20 +02:00
|
|
|
.red-ui-notification-shake-horizontal {
|
|
|
|
-webkit-animation: red-ui-notification-shake-horizontal 0.3s steps(2, end) both;
|
|
|
|
animation: red-ui-notification-shake-horizontal 0.3s steps(2, end) both;
|
2019-01-09 15:02:46 +01:00
|
|
|
}
|
|
|
|
|
2019-05-01 23:41:20 +02:00
|
|
|
@-webkit-keyframes red-ui-notification-shake-horizontal {
|
2019-01-09 15:02:46 +01:00
|
|
|
0%,
|
|
|
|
100% {
|
|
|
|
-webkit-transform: translateX(0);
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
10%,
|
|
|
|
30%,
|
|
|
|
50%,
|
|
|
|
70% {
|
|
|
|
-webkit-transform: translateX(-1px);
|
|
|
|
transform: translateX(-1px);
|
|
|
|
}
|
|
|
|
20%,
|
|
|
|
40%,
|
|
|
|
60% {
|
|
|
|
-webkit-transform: translateX(1px);
|
|
|
|
transform: translateX(1px);
|
|
|
|
}
|
|
|
|
// 80% {
|
|
|
|
// -webkit-transform: translateX(1px);
|
|
|
|
// transform: translateX(1px);
|
|
|
|
// }
|
|
|
|
// 90% {
|
|
|
|
// -webkit-transform: translateX(-1px);
|
|
|
|
// transform: translateX(-1px);
|
|
|
|
// }
|
|
|
|
}
|
2019-05-01 23:41:20 +02:00
|
|
|
@keyframes red-ui-notification-shake-horizontal {
|
2019-01-09 15:02:46 +01:00
|
|
|
0%,
|
|
|
|
100% {
|
|
|
|
-webkit-transform: translateX(0);
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
10%,
|
|
|
|
30%,
|
|
|
|
50%,
|
|
|
|
70% {
|
|
|
|
-webkit-transform: translateX(-1px);
|
|
|
|
transform: translateX(-1px);
|
|
|
|
}
|
|
|
|
20%,
|
|
|
|
40%,
|
|
|
|
60% {
|
|
|
|
-webkit-transform: translateX(1px);
|
|
|
|
transform: translateX(1px);
|
|
|
|
}
|
|
|
|
// 80% {
|
|
|
|
// -webkit-transform: translateX(1px);
|
|
|
|
// transform: translateX(1px);
|
|
|
|
// }
|
|
|
|
// 90% {
|
|
|
|
// -webkit-transform: translateX(-1px);
|
|
|
|
// transform: translateX(-1px);
|
|
|
|
// }
|
|
|
|
}
|