images
1 year ago
notification
9 months ago
query
1 year ago
state
1 year ago
index.js
1 year ago
index.scss
1 year ago
notification-icon.jsx
1 year ago
notifications-container.jsx
1 year ago
notifications.jsx
1 year ago
index.scss
115 lines
| 1 | #wpchill-notifications-root { |
| 2 | position: fixed; |
| 3 | right: 20px; |
| 4 | bottom: 25px; |
| 5 | z-index: 9999; |
| 6 | padding: 10px; |
| 7 | .notification-log-empty{ |
| 8 | padding: 5px; |
| 9 | } |
| 10 | .notification-container { |
| 11 | position: absolute; |
| 12 | width: 500px; |
| 13 | right: 0; |
| 14 | bottom: 80px; |
| 15 | background: #fff; |
| 16 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
| 17 | .notification-header { |
| 18 | display: flex; |
| 19 | justify-content: space-between; |
| 20 | align-items: center; |
| 21 | padding: 8px; |
| 22 | background-color: #f9f9f9; |
| 23 | border-bottom: 0; |
| 24 | h2 { |
| 25 | font-size: 1.1em; |
| 26 | margin: 8px; |
| 27 | } |
| 28 | button{ |
| 29 | .dashicons{ |
| 30 | margin: 0; |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | .notification_time { |
| 35 | margin-left: auto; |
| 36 | color: #888; |
| 37 | font-size: 12px; |
| 38 | } |
| 39 | .notification-footer { |
| 40 | display: flex; |
| 41 | align-items: center; |
| 42 | justify-content: center; |
| 43 | background-color: #f9f9f9; |
| 44 | } |
| 45 | .notification-source-icon-wrap { |
| 46 | width: 20px; |
| 47 | height: 20px; |
| 48 | margin-right: 5px; |
| 49 | flex: 0 0 20px; |
| 50 | .notification-source-icon { |
| 51 | width: 100%; |
| 52 | height: 100%; |
| 53 | object-fit: contain; |
| 54 | } |
| 55 | } |
| 56 | span.notification-source-name { |
| 57 | margin-right: 16px; |
| 58 | position: relative; |
| 59 | &:after{ |
| 60 | content: '-'; |
| 61 | position: absolute; |
| 62 | right: -15px; |
| 63 | width: 10px; |
| 64 | height: 100%; |
| 65 | } |
| 66 | } |
| 67 | .notification_dismiss_button{ |
| 68 | margin-left: auto; |
| 69 | padding: 0; |
| 70 | height: auto; |
| 71 | } |
| 72 | .components-panel { |
| 73 | max-height: 250px; |
| 74 | overflow: auto; |
| 75 | .notification-row{ |
| 76 | .notification-actions-wrapp{ |
| 77 | a, button{ |
| 78 | margin-right: 10px; |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | .notification-icon { |
| 85 | width: 45px; |
| 86 | height: 45px; |
| 87 | border-radius: 50%; |
| 88 | border: 1px solid #222222; |
| 89 | box-shadow: 0 0 5px #222222 ; |
| 90 | background: #fff; |
| 91 | display: flex; |
| 92 | justify-content: center; |
| 93 | align-items: center; |
| 94 | position: relative; |
| 95 | cursor: pointer; |
| 96 | padding: 4px; |
| 97 | background-image: url('./images/wpchill-logo.jpg'); |
| 98 | background-size: contain; |
| 99 | box-sizing: content-box; |
| 100 | .warn-icon { |
| 101 | position: absolute; |
| 102 | top: -6px; |
| 103 | right: -8px; |
| 104 | color: #fff; |
| 105 | display: flex; |
| 106 | justify-content: center; |
| 107 | align-items: center; |
| 108 | width: 20px; |
| 109 | height: 20px; |
| 110 | border-radius: 50%; |
| 111 | background-color: #d63638; |
| 112 | } |
| 113 | } |
| 114 | } |
| 115 |