alerts.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // ALERT STYLES
  2. // ------------
  3. // Base alert styles
  4. .alert {
  5. padding: 8px 35px 8px 14px;
  6. margin-bottom: @baseLineHeight;
  7. text-shadow: 0 1px 0 rgba(255,255,255,.5);
  8. background-color: @warningBackground;
  9. border: 1px solid @warningBorder;
  10. .border-radius(4px);
  11. }
  12. .alert,
  13. .alert-heading {
  14. color: @warningText;
  15. }
  16. // Adjust close link position
  17. .alert .close {
  18. position: relative;
  19. top: -2px;
  20. right: -21px;
  21. line-height: 18px;
  22. }
  23. // Alternate styles
  24. // ----------------
  25. .alert-success {
  26. background-color: @successBackground;
  27. border-color: @successBorder;
  28. }
  29. .alert-success,
  30. .alert-success .alert-heading {
  31. color: @successText;
  32. }
  33. .alert-danger,
  34. .alert-error {
  35. background-color: @errorBackground;
  36. border-color: @errorBorder;
  37. }
  38. .alert-danger,
  39. .alert-error,
  40. .alert-danger .alert-heading,
  41. .alert-error .alert-heading {
  42. color: @errorText;
  43. }
  44. .alert-info {
  45. background-color: @infoBackground;
  46. border-color: @infoBorder;
  47. }
  48. .alert-info,
  49. .alert-info .alert-heading {
  50. color: @infoText;
  51. }
  52. // Block alerts
  53. // ------------------------
  54. .alert-block {
  55. padding-top: 14px;
  56. padding-bottom: 14px;
  57. }
  58. .alert-block > p,
  59. .alert-block > ul {
  60. margin-bottom: 0;
  61. }
  62. .alert-block p + p {
  63. margin-top: 5px;
  64. }