Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .notification-container {
- position: relative;
- display: inline-block;
- margin-right: 20px;
- }
- .bell {
- width: 24px;
- height: 24px;
- background-size: contain;
- background-repeat: no-repeat;
- cursor: pointer;
- position: relative;
- background-image: url('../images/bell-disabled.png');
- }
- .bell.disabled {
- background-image: url('../images/bell-disabled.png');
- }
- .bell.active {
- background-image: url('../images/bell-icon.png');
- }
- .badge {
- position: absolute;
- top: -5px;
- right: -10px;
- background-color: red;
- color: white;
- border-radius: 50%;
- padding: 2px 6px;
- font-size: 12px;
- cursor: pointer;
- }
- .notification-container.large {
- margin-right: 40px;
- }
- .notification-container.large .badge {
- right: -30px;
- }
- .notification-container .dropdown {
- display: none;
- position: absolute;
- top: 30px;
- right: 0;
- background-color: white;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
- width: 200px;
- z-index: 1000;
- }
- .notification-container .loader {
- border: 4px solid #f3f3f3;
- border-top: 4px solid #3498db;
- border-radius: 50%;
- width: 24px;
- height: 24px;
- animation: spin 2s linear infinite;
- }
- @keyframes spin {
- 0% { transform: rotate(0deg); }
- 100% { transform: rotate(360deg); }
- }
- .notification-container .dropdown ul {
- list-style: none;
- padding: 0;
- margin: 0;
- }
- .notification-container .dropdown ul li {
- padding: 10px;
- border-bottom: 1px solid #ddd;
- }
- .notification-container .dropdown ul li:last-child {
- border-bottom: none;
- }
- .notification-container .dropdown ul li:hover {
- background-color: #f0f0f0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement