_alerts.scss 1.3 KB

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