2
0

_help-block.scss 1019 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Help text formatters
  2. .help-block {
  3. padding: 1em;
  4. margin: 1em 0;
  5. clear: both;
  6. color: $color-text-base;
  7. p {
  8. margin-top: 0;
  9. &:last-child {
  10. margin-bottom: 0;
  11. }
  12. }
  13. a {
  14. color: $color-link;
  15. }
  16. }
  17. .help-info,
  18. .help-warning,
  19. .help-critical {
  20. border-radius: 3px;
  21. padding-left: 3.5em;
  22. position: relative;
  23. &:before {
  24. font-family: wagtail;
  25. position: absolute;
  26. left: 1em;
  27. top: 0.7em;
  28. content: map-get($icons, 'help');
  29. font-size: 1.4em;
  30. }
  31. }
  32. .help-info {
  33. background-color: lighten($color-blue, 30%);
  34. &:before {
  35. color: $color-blue;
  36. }
  37. }
  38. .help-warning {
  39. background-color: lighten($color-orange, 30%);
  40. &:before {
  41. color: $color-orange;
  42. content: map-get($icons, 'warning');
  43. }
  44. }
  45. .help-critical {
  46. background-color: lighten($color-red, 40%);
  47. &:before {
  48. color: $color-red;
  49. content: map-get($icons, 'warning');
  50. }
  51. }