_alerts.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. //
  2. // Alerts
  3. // --------------------------------------------------
  4. // Base styles
  5. // -------------------------
  6. .alert {
  7. padding: 15px 20px;
  8. margin-bottom: $space-xs;
  9. border-left: 3px solid $alert-error-bg;
  10. background: $layer2;
  11. position: relative;
  12. border-radius: $border-radius;
  13. display: flex;
  14. flex-direction: row;
  15. align-items: center;
  16. }
  17. // Alternate styles
  18. // -------------------------
  19. .alert-success {
  20. border-color: $alert-success-bg;
  21. }
  22. .alert-danger,
  23. .alert-error {
  24. border-color: $alert-error-bg;
  25. }
  26. .alert-info {
  27. border-color: $alert-info-bg;
  28. }
  29. .alert-warning {
  30. border-color: $alert-warning-bg;
  31. }
  32. .page-alert-list {
  33. z-index: 8000;
  34. min-width: 400px;
  35. max-width: 600px;
  36. position: fixed;
  37. right: 10px;
  38. top: 60px;
  39. }
  40. .alert-close {
  41. padding: 0 0 0 $space-md;
  42. border: none;
  43. background: none;
  44. display: flex;
  45. align-items: center;
  46. .fa {
  47. align-self: flex-end;
  48. font-size: 21px;
  49. color: rgba(255, 255, 255, 0.75);
  50. }
  51. }
  52. .alert-title {
  53. font-weight: $font-weight-semi-bold;
  54. }
  55. .alert-icon {
  56. padding: 0 $space-md 0 0;
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. width: 35px;
  61. .fa {
  62. font-size: 21px;
  63. }
  64. }
  65. .alert-body {
  66. overflow-wrap: break-word;
  67. word-break: break-word;
  68. flex-grow: 1;
  69. }
  70. .alert-icon-on-top {
  71. align-items: flex-start;
  72. }
  73. @include media-breakpoint-down(sm) {
  74. .page-alert-list {
  75. min-width: 0;
  76. top: 30px;
  77. width: calc(100% - 20px);
  78. max-height: calc(100% - 60px);
  79. overflow-y: auto;
  80. }
  81. }