You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

notifications.css 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2021 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. .navbar-latest-notification {
  21. flex: 0 1 240px;
  22. text-align: right;
  23. overflow: hidden;
  24. }
  25. .navbar-latest-notification-wrapper {
  26. position: relative;
  27. display: inline-block;
  28. padding: var(--gridSize);
  29. padding-left: 50px;
  30. height: 28px;
  31. max-width: 100%;
  32. box-sizing: border-box;
  33. overflow: hidden;
  34. vertical-align: middle;
  35. font-size: var(--smallFontSize);
  36. text-overflow: ellipsis;
  37. white-space: nowrap;
  38. color: var(--sonarcloudBlack500);
  39. background-color: #000;
  40. border-radius: 3px 0 0 3px;
  41. cursor: pointer;
  42. }
  43. .navbar-latest-notification-wrapper:hover {
  44. color: var(--sonarcloudBlack300);
  45. }
  46. .navbar-latest-notification-wrapper .badge-info {
  47. position: absolute;
  48. margin-right: var(--gridSize);
  49. left: 6px;
  50. top: 6px;
  51. }
  52. .navbar-latest-notification-wrapper .label {
  53. display: block;
  54. max-width: 330px;
  55. overflow: hidden;
  56. text-overflow: ellipsis;
  57. white-space: nowrap;
  58. }
  59. .navbar-latest-notification-dismiss .navbar-icon {
  60. height: 28px;
  61. background-color: #000;
  62. border-radius: 0 3px 3px 0;
  63. padding: var(--gridSize) 7px !important;
  64. margin-left: 1px;
  65. margin-right: var(--gridSize);
  66. color: var(--sonarcloudBlack500) !important;
  67. }
  68. .navbar-latest-notification-dismiss .navbar-icon:hover {
  69. color: var(--sonarcloudBlack300) !important;
  70. }
  71. .notifications-sidebar {
  72. position: fixed;
  73. top: 0;
  74. right: 0;
  75. bottom: 0;
  76. width: 400px;
  77. display: flex;
  78. flex-direction: column;
  79. background: var(--sonarcloudBlack200);
  80. }
  81. .notifications-sidebar-top {
  82. position: relative;
  83. display: flex;
  84. align-items: center;
  85. justify-content: space-between;
  86. padding: calc(2 * var(--gridSize));
  87. border-bottom: 1px solid var(--sonarcloudBlack250);
  88. background-color: var(--sonarcloudBlack100);
  89. }
  90. .notifications-sidebar-top h3 {
  91. font-weight: normal;
  92. font-size: var(--bigFontSize);
  93. }
  94. .notifications-sidebar-content {
  95. flex: 1 1;
  96. overflow-y: auto;
  97. }
  98. .notifications-sidebar-footer {
  99. padding-top: var(--gridSize);
  100. border-top: 1px solid var(--sonarcloudBlack250);
  101. flex: 0 0 40px;
  102. }
  103. .notifications-sidebar-slice h4 {
  104. padding: calc(2 * var(--gridSize));
  105. padding-bottom: calc(var(--gridSize) / 2);
  106. background-color: var(--sonarcloudBlack200);
  107. font-weight: normal;
  108. font-size: var(--smallFontSize);
  109. text-align: right;
  110. color: var(--sonarcloudBlack500);
  111. }
  112. .notifications-sidebar-slice .feature:last-of-type {
  113. border-bottom: 1px solid var(--sonarcloudBlack250);
  114. }
  115. .notifications-sidebar-slice .feature {
  116. padding: calc(2 * var(--gridSize));
  117. background-color: var(--sonarcloudBlack100);
  118. border-top: 1px solid var(--sonarcloudBlack250);
  119. overflow: hidden;
  120. }
  121. .notifications-sidebar-slice.unread .feature {
  122. background-color: #e6f6ff;
  123. border-color: #cee4f2;
  124. }
  125. .notifications-sidebar-slice .learn-more {
  126. clear: both;
  127. float: right;
  128. margin-top: var(--gridSize);
  129. }
  130. .notifications-sidebar-slice .categories li {
  131. display: inline-block;
  132. padding: 4px;
  133. margin-right: var(--gridSize);
  134. font-size: 9px;
  135. line-height: 8px;
  136. text-transform: uppercase;
  137. font-weight: bold;
  138. color: #fff;
  139. border-radius: 3px;
  140. }