notifications.less 4.5 KB

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