_alerts.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // Alerts
  3. // --------------------------------------------------
  4. // Base styles
  5. // -------------------------
  6. .alert {
  7. padding: 8px 35px 13px 14px;
  8. margin-bottom: $line-height-base;
  9. text-shadow: 0 1px 0 rgba(255,255,255,.5);
  10. background-color: $state-warning-bg;
  11. position: relative;
  12. color: $white;
  13. text-shadow: 0 1px 0 rgba(0,0,0,.5);
  14. border-radius: 2px;
  15. }
  16. // Alternate styles
  17. // -------------------------
  18. .alert-success {
  19. background-color: $successBackground;
  20. }
  21. .alert-danger,
  22. .alert-error {
  23. background-color: $errorBackground;
  24. }
  25. .alert-info {
  26. background-color: $infoBackground;
  27. }
  28. .alert-warning {
  29. background-color: $state-warning-bg;
  30. }
  31. .page-alert-list {
  32. z-index: 8000;
  33. min-width: 300px;
  34. max-width: 300px;
  35. position: fixed;
  36. right: 20px;
  37. top: 56px;
  38. }
  39. .alert-close {
  40. position: absolute;
  41. top: -4px;
  42. right: -2px;
  43. width: 16px;
  44. height: 16px;
  45. padding: 0;
  46. background: $white;
  47. border-radius: 50%;
  48. border: none;
  49. font-size: 1.1rem;
  50. color: $dark-4;
  51. .fa {
  52. position: relative;
  53. top: -3px;
  54. }
  55. }
  56. .alert-title {
  57. font-weight: $font-weight-semi-bold;
  58. padding-bottom: 2px;
  59. }