|
3 | 3 | BSD-style license that can be found in the LICENSE file. */ |
4 | 4 |
|
5 | 5 | .markdown-alert { |
6 | | - margin-top: 1rem; |
7 | | - margin-bottom: 1rem; |
8 | | - padding: 1.25rem; |
| 6 | + border-left: 0.25em solid var(--pub-inset-bgColor); |
| 7 | + padding: 0.5rem 1rem; |
| 8 | + margin: 1rem 0; |
9 | 9 |
|
10 | 10 | >:last-child { |
11 | 11 | margin-bottom: 0; |
12 | 12 | } |
13 | 13 |
|
14 | 14 | &.markdown-alert-note { |
15 | | - background-color: var(--pub-markdown-alert-info); |
| 15 | + border-left-color: var(--pub-markdown-alert-note); |
| 16 | + |
| 17 | + .markdown-alert-title { |
| 18 | + color: var(--pub-markdown-alert-note); |
| 19 | + } |
16 | 20 |
|
17 | 21 | // NOTE: This is a copy of the dartdoc alert style, for using Material Symbols font. |
18 | 22 | // TODO: remove or fix this rule |
|
22 | 26 | } |
23 | 27 |
|
24 | 28 | &.markdown-alert-tip { |
25 | | - background-color: var(--pub-markdown-alert-tip); |
| 29 | + border-left-color: var(--pub-markdown-alert-tip); |
| 30 | + |
| 31 | + .markdown-alert-title { |
| 32 | + color: var(--pub-markdown-alert-tip); |
| 33 | + } |
26 | 34 |
|
27 | 35 | // NOTE: This is a copy of the dartdoc alert style, for using Material Symbols font. |
28 | 36 | // TODO: remove or fix this rule |
|
32 | 40 | } |
33 | 41 |
|
34 | 42 | &.markdown-alert-important { |
35 | | - background-color: var(--pub-markdown-alert-important); |
| 43 | + border-left-color: var(--pub-markdown-alert-important); |
| 44 | + |
| 45 | + .markdown-alert-title { |
| 46 | + color: var(--pub-markdown-alert-important); |
| 47 | + } |
36 | 48 |
|
37 | 49 | // NOTE: This is a copy of the dartdoc alert style, for using Material Symbols font. |
38 | 50 | // TODO: remove or fix this rule |
|
42 | 54 | } |
43 | 55 |
|
44 | 56 | &.markdown-alert-warning { |
45 | | - background-color: var(--pub-markdown-alert-warning); |
| 57 | + border-left-color: var(--pub-markdown-alert-warning); |
| 58 | + |
| 59 | + .markdown-alert-title { |
| 60 | + color: var(--pub-markdown-alert-warning); |
| 61 | + } |
46 | 62 |
|
47 | 63 | // NOTE: This is a copy of the dartdoc alert style, for using Material Symbols font. |
48 | 64 | // TODO: remove or fix this rule |
|
52 | 68 | } |
53 | 69 |
|
54 | 70 | &.markdown-alert-caution { |
55 | | - background-color: var(--pub-markdown-alert-error); |
| 71 | + border-left-color: var(--pub-markdown-alert-caution); |
| 72 | + |
| 73 | + .markdown-alert-title { |
| 74 | + color: var(--pub-markdown-alert-caution); |
| 75 | + } |
56 | 76 |
|
57 | 77 | // NOTE: This is a copy of the dartdoc alert style, for using Material Symbols font. |
58 | 78 | // TODO: remove or fix this rule |
|
0 commit comments