_alerts.scss 1.3 KB

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