notifications.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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-disclaimer {
  84. padding-bottom: 16px;
  85. }
  86. .notification-close-btn {
  87. height: 56px;
  88. align-items: center;
  89. display: flex;
  90. }
  91. .notification-close-btn {
  92. padding: 0 0 0 16px;
  93. button {
  94. aspect-ratio: 1;
  95. border-radius: 50%;
  96. display: flex;
  97. float: right;
  98. padding: 5.5px;
  99. cursor: pointer;
  100. background: transparent;
  101. border: 0;
  102. &:hover,
  103. &:focus {
  104. background-color: rgba(@neutral-90, 0.08);
  105. color: @text-color;
  106. }
  107. }
  108. }
  109. &.notification-type-info {
  110. background-color: @blue-10;
  111. border: 1px solid @blue-20;
  112. .notification-icon {
  113. color: @blue-50;
  114. }
  115. }
  116. &.notification-type-success {
  117. background-color: @green-10;
  118. border: 1px solid @green-20;
  119. .notification-icon {
  120. color: @green-50;
  121. }
  122. }
  123. &.notification-type-warning {
  124. background-color: @yellow-10;
  125. border: 1px solid @yellow-20;
  126. .notification-icon {
  127. color: @yellow-40;
  128. }
  129. }
  130. &.notification-type-error {
  131. background-color: @red-10;
  132. border: 1px solid @red-20;
  133. .notification-icon {
  134. color: @red-50;
  135. }
  136. }
  137. &.notification-type-offer {
  138. background-color: @white;
  139. border: 1px solid @neutral-20;
  140. .notification-icon {
  141. color: @neutral-50;
  142. }
  143. }
  144. @media (min-width: @screen-sm-min) {
  145. &:not(.notification-cta-below-content) {
  146. .notification-content-and-cta {
  147. flex-wrap: nowrap;
  148. }
  149. .notification-content {
  150. width: auto;
  151. }
  152. .notification-cta {
  153. height: 56px;
  154. padding-left: 16px;
  155. padding-bottom: 0;
  156. align-items: center;
  157. display: flex;
  158. }
  159. }
  160. }
  161. }
  162. .notification-with-scroll-margin {
  163. scroll-margin: 16px;
  164. }
  165. .notification-list {
  166. .notification {
  167. margin-bottom: @margin-md;
  168. }
  169. }
  170. // Reconfirmation notification
  171. .reconfirm-notification {
  172. display: flex;
  173. width: 100%;
  174. .fa-warning {
  175. margin-right: @margin-sm;
  176. }
  177. .btn-reconfirm {
  178. float: right;
  179. margin-left: @margin-sm;
  180. text-transform: capitalize;
  181. }
  182. }
  183. .group-invitation-cancel-subscription-notification-buttons {
  184. display: flex;
  185. align-items: center;
  186. }
  187. // Settings page
  188. .affiliations-table {
  189. .reconfirm-notification {
  190. margin: 0px auto @margin-sm auto !important;
  191. padding: @padding-md;
  192. }
  193. .reconfirm-row {
  194. td {
  195. border: 0;
  196. .alert {
  197. border: 0;
  198. padding: 0;
  199. }
  200. :not(.alert) {
  201. .reconfirm-notification {
  202. background-color: @ol-blue-gray-0;
  203. border-radius: @border-radius-base;
  204. .fa-warning {
  205. color: @brand-warning;
  206. }
  207. }
  208. }
  209. }
  210. }
  211. }