Advertisement
eqeqwan21

Untitled

Jun 16th, 2024
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.57 KB | None | 0 0
  1. .notification-container {
  2.     position: relative;
  3.     display: inline-block;
  4.     margin-right: 20px;
  5. }
  6.  
  7. .bell {
  8.     width: 24px;
  9.     height: 24px;
  10.     background-size: contain;
  11.     background-repeat: no-repeat;
  12.     cursor: pointer;
  13.     position: relative;
  14.     background-image: url('../images/bell-disabled.png');
  15. }
  16.  
  17. .bell.disabled {
  18.     background-image: url('../images/bell-disabled.png');
  19. }
  20.  
  21. .bell.active {
  22.     background-image: url('../images/bell-icon.png');
  23. }
  24.  
  25. .badge {
  26.     position: absolute;
  27.     top: -5px;
  28.     right: -10px;
  29.     background-color: red;
  30.     color: white;
  31.     border-radius: 50%;
  32.     padding: 2px 6px;
  33.     font-size: 12px;
  34.     cursor: pointer;
  35. }
  36. .notification-container.large {
  37.     margin-right: 40px;
  38. }
  39. .notification-container.large .badge {
  40.     right: -30px;
  41. }
  42.  
  43. .notification-container .dropdown {
  44.     display: none;
  45.     position: absolute;
  46.     top: 30px;
  47.     right: 0;
  48.     background-color: white;
  49.     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  50.     width: 200px;
  51.     z-index: 1000;
  52. }
  53.  
  54. .notification-container .loader {
  55.     border: 4px solid #f3f3f3;
  56.     border-top: 4px solid #3498db;
  57.     border-radius: 50%;
  58.     width: 24px;
  59.     height: 24px;
  60.     animation: spin 2s linear infinite;
  61. }
  62.  
  63. @keyframes spin {
  64.     0% { transform: rotate(0deg); }
  65.     100% { transform: rotate(360deg); }
  66. }
  67.  
  68. .notification-container .dropdown ul {
  69.     list-style: none;
  70.     padding: 0;
  71.     margin: 0;
  72. }
  73.  
  74. .notification-container .dropdown ul li {
  75.     padding: 10px;
  76.     border-bottom: 1px solid #ddd;
  77. }
  78.  
  79. .notification-container .dropdown ul li:last-child {
  80.     border-bottom: none;
  81. }
  82.  
  83. .notification-container .dropdown ul li:hover {
  84.     background-color: #f0f0f0;
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement