_callouts.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Callout styles for the Callout shortcode
  2. /* Style asides as Bootstrap alerts. */
  3. .article-style aside {
  4. @extend .alert;
  5. }
  6. /* Asides use <p> block element whereas alerts use <div>. */
  7. .article-style aside p,
  8. div.alert > div {
  9. position: relative;
  10. display: block;
  11. font-size: 1rem;
  12. margin-left: 2rem;
  13. margin-top: 0;
  14. margin-bottom: 0;
  15. }
  16. div.alert div > * {
  17. margin-bottom: .5rem; /* Use smaller paragraph spacing than usual. */
  18. }
  19. div.alert div > :last-child {
  20. margin-bottom: 0;
  21. }
  22. .article-style aside p::before,
  23. div.alert > div:first-child::before {
  24. position: absolute;
  25. top: -0.5rem;
  26. left: -2rem;
  27. font-size: 1.5rem;
  28. color: #209cee;
  29. font-family: 'Font Awesome 5 Free';
  30. font-weight: 900;
  31. content: '\f05a';
  32. width: 1.5rem;
  33. text-align: center;
  34. }
  35. div.alert-warning > div:first-child::before {
  36. font-family: 'Font Awesome 5 Free';
  37. font-weight: 900;
  38. color: #ff3860;
  39. content: '\f071';
  40. }
  41. .article-style aside a,
  42. div.alert a {
  43. color: currentColor;
  44. text-decoration: none;
  45. border-bottom: solid 1px currentColor;
  46. }
  47. .article-style aside,
  48. .alert-note {
  49. color: #12537e;
  50. background-color: #f6fbfe;
  51. border-color: #209cee;
  52. }
  53. .alert-warning {
  54. color: #cd0930;
  55. background-color: #fff5f7;
  56. border-color: #ff3860;
  57. }