| 1 | #notifications-block { |
| 2 | position: fixed; |
| 3 | top: 0; |
| 4 | right: 0; |
| 5 | width: 100%; |
| 6 | z-index: 200; |
| 7 | } |
| 8 | .notification { |
| 9 | overflow: hidden; |
| 10 | color: #000; |
| 11 | font-size: 0.9rem; |
| 12 | opacity: 0.9; |
| 13 | background-clip: padding-box; |
| 14 | border: 1px solid rgba(0, 0, 0, 1); |
| 15 | box-shadow: 0 0.25rem 0.75rem var(--color-sh-default); |
| 16 | position: relative; |
| 17 | padding: 0.75rem 2rem 0.75rem 0.75rem; |
| 18 | overflow-wrap: break-word; |
| 19 | word-break: normal; |
| 20 | transition: opacity 2s ease-in-out; |
| 21 | } |
| 22 | .notification:not(:last-child) { |
| 23 | margin-bottom: 0.2rem; |
| 24 | } |
| 25 | .notification:hover { |
| 26 | border: 1px solid #ccc; |
| 27 | opacity: 1; |
| 28 | } |
| 29 | @media screen and (min-width:20em) { |
| 30 | #notifications-block { |
| 31 | top: 2rem; |
| 32 | right: 1em; |
| 33 | width: 15em; |
| 34 | } |
| 35 | .notification { |
| 36 | border-radius: 5px; |
| 37 | } |
| 38 | .notification:not(:last-child) { |
| 39 | margin-bottom: 0.5rem; |
| 40 | } |
| 41 | } |
| 42 | .notif-close { |
| 43 | position: absolute; |
| 44 | top: 0; |
| 45 | right: 0.3rem; |
| 46 | padding: 0; |
| 47 | color: #000; |
| 48 | border: 0; |
| 49 | float: right; |
| 50 | cursor: pointer; |
| 51 | font-size: 1.2rem; |
| 52 | font-weight: 700; |
| 53 | line-height: 1; |
| 54 | text-shadow: 0 1px 0 #fff; |
| 55 | opacity: 0.6; |
| 56 | background-color: transparent; |
| 57 | margin: 0; |
| 58 | border-radius: 0; |
| 59 | } |
| 60 | .notif-error { |
| 61 | background-color: var(--color-nt-error); |
| 62 | } |
| 63 | .notif-warn { |
| 64 | background-color: var(--color-nt-warning); |
| 65 | } |
| 66 | .notif-info { |
| 67 | background-color: var(--color-nt-inform); |
| 68 | } |
| 69 | .invisible { |
| 70 | opacity: 0 !important; |
| 71 | } |