.notifications-button { position: relative; float: right; width: 16px; height: 16px; display: block; border-radius: 50%; text-align: center; padding: 10px; opacity: .6; &:hover, &:focus { opacity: 1 !important; } &.hasNotifications { opacity: 1 !important; &:hover, &:focus { opacity: .6 !important; } } &, img { cursor: pointer; } } .notification-container { display: none; right: 13px; width: 350px; max-width: 90%; min-height: 200px; .notification-wrapper { display: flex; flex-direction: column; overflow-y: auto; max-height: 260px; } .emptycontent { padding: 50px 0; margin: 0; position: absolute; top: 0; @include icon-black-white('notifications-dark', 'notifications', 1); } .dismiss-all { display: flex; justify-content: center; color: var(--color-text-maxcontrast); padding: 10px; &:hover, .icon-close { opacity: 1; cursor: pointer; } .icon-close { opacity: .5; margin-right: 5px; } } /* Menu arrow */ &:after { right: 101px; } } .notification { padding-bottom: 12px; max-height: 500px; &:not(:last-child) { border-bottom: 1px solid var(--color-border); } .notification-heading { display: flex; .notification-time { color: var(--color-text-maxcontrast); margin: 13px 0 13px auto; } .notification-delete { display: flex; color: var(--color-text-maxcontrast); padding: 14px; &:hover, .icon-close { opacity: 1; cursor: pointer; } .icon-close { opacity: .5; } } } .notification-subject, .notification-message, .notification-full-message, .notification-actions { margin: 0 12px 12px; } .notification-subject { display: flex; align-items: center; & > .image { align-self: flex-start; } & > span.text, & > a > span.text { padding-left: 10px; } } .notification-message, .notification-full-message { line-height: 20px; padding-left: 42px; // 32px icon + 10px title padding color: var(--color-text-maxcontrast); & > .collapsed { overflow: hidden; max-height: 70px } & > .notification-overflow { box-shadow: 0 0 20px 20px var(--color-main-background); position: relative; } } img.notification-icon { width: 32px; height: 32px; display: flex; } .notification-message img, .notification-full-message img, .notification-subject img:not(.notification-icon) { max-width: 32px; max-height: 32px; margin: 0 5px 5px 0; } strong { font-weight: bold; opacity: 1; } .avatar-name-wrapper { position: relative; cursor: pointer; .avatar { vertical-align: middle; display: inline-block; margin: 0 5px 3px; } } .notification-actions { overflow: hidden; .action-button.primary { color: var(--color-primary-text); } &:first-child { margin-left: auto; } } }