123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- // Callout styles for the Callout shortcode
- /* Style asides as Bootstrap alerts. */
- .article-style aside {
- @extend .alert;
- }
- /* Asides use <p> block element whereas alerts use <div>. */
- .article-style aside p,
- div.alert > div {
- position: relative;
- display: block;
- font-size: 1rem;
- margin-left: 2rem;
- margin-top: 0;
- margin-bottom: 0;
- }
- div.alert div > * {
- margin-bottom: .5rem; /* Use smaller paragraph spacing than usual. */
- }
- div.alert div > :last-child {
- margin-bottom: 0;
- }
- .article-style aside p::before,
- div.alert > div:first-child::before {
- position: absolute;
- top: -0.5rem;
- left: -2rem;
- font-size: 1.5rem;
- color: #209cee;
- font-family: 'Font Awesome 5 Free';
- font-weight: 900;
- content: '\f05a';
- width: 1.5rem;
- text-align: center;
- }
- div.alert-warning > div:first-child::before {
- font-family: 'Font Awesome 5 Free';
- font-weight: 900;
- color: #ff3860;
- content: '\f071';
- }
- .article-style aside a,
- div.alert a {
- color: currentColor;
- text-decoration: none;
- border-bottom: solid 1px currentColor;
- }
- .article-style aside,
- .alert-note {
- color: #12537e;
- background-color: #f6fbfe;
- border-color: #209cee;
- }
- .alert-warning {
- color: #cd0930;
- background-color: #fff5f7;
- border-color: #ff3860;
- }
|