notifications.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. .notification-body {
  2. // will be deprecated once notifications moved to use .notification (see below)
  3. flex-grow: 1;
  4. width: 90%;
  5. @media (min-width: @screen-sm-min) {
  6. width: auto;
  7. }
  8. }
  9. .notification-action {
  10. // will be deprecated once notifications moved to use .notification (see below)
  11. margin-top: (@line-height-computed / 2); // match paragraph padding
  12. order: 1;
  13. @media (min-width: @screen-sm-min) {
  14. margin-top: 0;
  15. order: 0;
  16. padding-left: @padding-sm;
  17. }
  18. }
  19. .notification-close {
  20. // will be deprecated once notifications moved to use .notification (see below)
  21. padding-left: @padding-sm;
  22. text-align: right;
  23. width: 10%;
  24. button {
  25. aspect-ratio: 1;
  26. border-radius: 50%;
  27. display: flex;
  28. float: right;
  29. padding: 5.5px;
  30. cursor: pointer;
  31. background: transparent;
  32. border: 0;
  33. &:hover,
  34. &:focus {
  35. background-color: rgba(@neutral-90, 0.08);
  36. color: @text-color;
  37. }
  38. }
  39. @media (min-width: @screen-sm-min) {
  40. width: auto;
  41. }
  42. }
  43. .notification {
  44. border-radius: @border-radius-base-new;
  45. color: @content-primary;
  46. display: flex;
  47. padding: 0 16px 0 16px; // vertical padding added by elements within notification
  48. width: 100%;
  49. a:not(.btn) {
  50. text-decoration: underline;
  51. }
  52. p {
  53. margin-bottom: 4px;
  54. }
  55. .notification-icon {
  56. flex-grow: 0;
  57. padding: 18px 16px 0 0;
  58. }
  59. .notification-content-and-cta {
  60. // shared container to align cta with text on smaller screens
  61. display: flex;
  62. flex-grow: 1;
  63. flex-wrap: wrap;
  64. p:last-child {
  65. margin-bottom: 0;
  66. }
  67. }
  68. .notification-content {
  69. flex-grow: 1;
  70. padding: 16px 0 16px 0;
  71. width: 100%;
  72. }
  73. .notification-cta {
  74. padding-bottom: 16px;
  75. a {
  76. font-weight: 700;
  77. }
  78. a,
  79. button {
  80. white-space: nowrap;
  81. }
  82. }
  83. .notification-close-btn {
  84. height: 56px;
  85. align-items: center;
  86. display: flex;
  87. }
  88. .notification-close-btn {
  89. padding: 0 0 0 16px;
  90. button {
  91. aspect-ratio: 1;
  92. border-radius: 50%;
  93. display: flex;
  94. float: right;
  95. padding: 5.5px;
  96. cursor: pointer;
  97. background: transparent;
  98. border: 0;
  99. &:hover,
  100. &:focus {
  101. background-color: rgba(@neutral-90, 0.08);
  102. color: @text-color;
  103. }
  104. }
  105. }
  106. &.notification-type-info {
  107. background-color: @blue-10;
  108. border: 1px solid @blue-20;
  109. .notification-icon {
  110. color: @blue-50;
  111. }
  112. }
  113. &.notification-type-success {
  114. background-color: @green-10;
  115. border: 1px solid @green-20;
  116. .notification-icon {
  117. color: @green-50;
  118. }
  119. }
  120. &.notification-type-warning {
  121. background-color: @yellow-10;
  122. border: 1px solid @yellow-20;
  123. .notification-icon {
  124. color: @yellow-40;
  125. }
  126. }
  127. &.notification-type-error {
  128. background-color: @red-10;
  129. border: 1px solid @red-20;
  130. .notification-icon {
  131. color: @red-50;
  132. }
  133. }
  134. @media (min-width: @screen-sm-min) {
  135. &:not(.notification-cta-below-content) {
  136. .notification-content-and-cta {
  137. flex-wrap: nowrap;
  138. }
  139. .notification-content {
  140. width: auto;
  141. }
  142. .notification-cta {
  143. height: 56px;
  144. padding-left: 16px;
  145. padding-bottom: 0;
  146. align-items: center;
  147. display: flex;
  148. }
  149. }
  150. }
  151. }
  152. .notification-list {
  153. .notification {
  154. margin-bottom: @margin-md;
  155. }
  156. }
  157. // Reconfirmation notification
  158. .reconfirm-notification {
  159. display: flex;
  160. width: 100%;
  161. .fa-warning {
  162. margin-right: @margin-sm;
  163. }
  164. .btn-reconfirm {
  165. float: right;
  166. margin-left: @margin-sm;
  167. text-transform: capitalize;
  168. }
  169. }
  170. // Settings page
  171. .affiliations-table {
  172. .reconfirm-notification {
  173. margin: 0px auto @margin-sm auto !important;
  174. padding: @padding-md;
  175. }
  176. .reconfirm-row {
  177. td {
  178. border: 0;
  179. .alert {
  180. border: 0;
  181. padding: 0;
  182. }
  183. :not(.alert) {
  184. .reconfirm-notification {
  185. background-color: @ol-blue-gray-0;
  186. border-radius: @border-radius-base;
  187. .fa-warning {
  188. color: @brand-warning;
  189. }
  190. }
  191. }
  192. }
  193. }
  194. }