notifications.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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. &.notification-type-offer {
  135. background-color: @white;
  136. border: 1px solid @neutral-20;
  137. .notification-icon {
  138. color: @neutral-50;
  139. }
  140. }
  141. @media (min-width: @screen-sm-min) {
  142. &:not(.notification-cta-below-content) {
  143. .notification-content-and-cta {
  144. flex-wrap: nowrap;
  145. }
  146. .notification-content {
  147. width: auto;
  148. }
  149. .notification-cta {
  150. height: 56px;
  151. padding-left: 16px;
  152. padding-bottom: 0;
  153. align-items: center;
  154. display: flex;
  155. }
  156. }
  157. }
  158. }
  159. .notification-with-scroll-margin {
  160. scroll-margin: 16px;
  161. }
  162. .notification-list {
  163. .notification {
  164. margin-bottom: @margin-md;
  165. }
  166. }
  167. // Reconfirmation notification
  168. .reconfirm-notification {
  169. display: flex;
  170. width: 100%;
  171. .fa-warning {
  172. margin-right: @margin-sm;
  173. }
  174. .btn-reconfirm {
  175. float: right;
  176. margin-left: @margin-sm;
  177. text-transform: capitalize;
  178. }
  179. }
  180. .group-invitation-cancel-subscription-notification-buttons {
  181. display: flex;
  182. align-items: center;
  183. }
  184. // Settings page
  185. .affiliations-table {
  186. .reconfirm-notification {
  187. margin: 0px auto @margin-sm auto !important;
  188. padding: @padding-md;
  189. }
  190. .reconfirm-row {
  191. td {
  192. border: 0;
  193. .alert {
  194. border: 0;
  195. padding: 0;
  196. }
  197. :not(.alert) {
  198. .reconfirm-notification {
  199. background-color: @ol-blue-gray-0;
  200. border-radius: @border-radius-base;
  201. .fa-warning {
  202. color: @brand-warning;
  203. }
  204. }
  205. }
  206. }
  207. }
  208. }