messages.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /**
  2. * @file
  3. * Styles for system messages.
  4. */
  5. .messages {
  6. background: no-repeat 10px 17px; /* LTR */
  7. border: 1px solid;
  8. border-width: 1px 1px 1px 0; /* LTR */
  9. border-radius: 2px;
  10. padding: 15px 20px 15px 35px; /* LTR */
  11. word-wrap: break-word;
  12. overflow-wrap: break-word;
  13. }
  14. [dir="rtl"] .messages {
  15. border-width: 1px 0 1px 1px;
  16. background-position: right 10px top 17px;
  17. padding-left: 20px;
  18. padding-right: 35px;
  19. text-align: right;
  20. }
  21. .messages + .messages {
  22. margin-top: 1.538em;
  23. }
  24. .messages__list {
  25. list-style: none;
  26. padding: 0;
  27. margin: 0;
  28. }
  29. .messages__item + .messages__item {
  30. margin-top: 0.769em;
  31. }
  32. /* See .color-success in Seven's colors.css */
  33. .messages--status {
  34. color: #325e1c;
  35. background-color: #f3faef;
  36. border-color: #c9e1bd #c9e1bd #c9e1bd transparent; /* LTR */
  37. background-image: url(../../../../misc/icons/73b355/check.svg);
  38. box-shadow: -8px 0 0 #77b259; /* LTR */
  39. }
  40. [dir="rtl"] .messages--status {
  41. border-color: #c9e1bd transparent #c9e1bd #c9e1bd;
  42. box-shadow: 8px 0 0 #77b259;
  43. margin-left: 0;
  44. }
  45. /* See .color-warning in Seven's colors.css */
  46. .messages--warning {
  47. background-color: #fdf8ed;
  48. background-image: url(../../../../misc/icons/e29700/warning.svg);
  49. border-color: #f4daa6 #f4daa6 #f4daa6 transparent; /* LTR */
  50. color: #734c00;
  51. box-shadow: -8px 0 0 #e09600; /* LTR */
  52. }
  53. [dir="rtl"] .messages--warning {
  54. border-color: #f4daa6 transparent #f4daa6 #f4daa6;
  55. box-shadow: 8px 0 0 #e09600;
  56. }
  57. /* See .color-error in Seven's colors.css */
  58. .messages--error {
  59. background-color: #fcf4f2;
  60. color: #a51b00;
  61. background-image: url(../../../../misc/icons/e32700/error.svg);
  62. border-color: #f9c9bf #f9c9bf #f9c9bf transparent; /* LTR */
  63. box-shadow: -8px 0 0 #e62600; /* LTR */
  64. }
  65. [dir="rtl"] .messages--error {
  66. border-color: #f9c9bf transparent #f9c9bf #f9c9bf;
  67. box-shadow: 8px 0 0 #e62600;
  68. }
  69. .messages--error p.error {
  70. color: #a51b00;
  71. }