/** * Copyright JS Foundation and other contributors, http://js.foundation * * 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. **/ #red-ui-notifications { z-index: 100; width: 500px; margin-left: -250px; left: 50%; position: absolute; top: 1px; } .red-ui-notification { box-sizing: border-box; position: relative; padding: 14px 18px; margin-bottom: 4px; box-shadow: 0 1px 1px 1px $shadow; background-color: $secondary-background; color: $primary-text-color; border: 1px solid $notification-border-default; border-left-width: 16px; overflow: hidden; .ui-dialog-buttonset { margin-top: 20px; } } .red-ui-notification p:first-child { font-size: 1.1em; font-weight: 400; } .red-ui-notification a { text-decoration: none; &:hover { text-decoration: underline; } } .red-ui-notification-success { border-color: $notification-border-success; } .red-ui-notification-warning { border-color: $notification-border-warning; } .red-ui-notification-error { border-color: $notification-border-error; } .red-ui-notification-compact { p { margin: 0; } .ui-dialog-buttonset { margin-top: 0; position: absolute; top: 8px; right: 10px; } } .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; } @-webkit-keyframes red-ui-notification-shake-horizontal { 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); // } } @keyframes red-ui-notification-shake-horizontal { 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); // } }