|
1 | 1 |
|
2 | 2 | // Custom containers from markdown-it |
3 | | -.custom-container { |
| 3 | +.alert { |
4 | 4 | // Position & Layout |
5 | 5 | position: relative; |
6 | 6 | overflow: clip; |
|
14 | 14 | // Typography |
15 | 15 | color: var(--custom-container-color); |
16 | 16 |
|
17 | | - .custom-container-content { |
| 17 | + .alert__content { |
18 | 18 | // (when there's no title) |
19 | 19 | &:first-child { |
20 | 20 | // Box Model |
|
27 | 27 | } |
28 | 28 | } |
29 | 29 |
|
30 | | - .custom-container-title { |
| 30 | + .alert__title { |
31 | 31 | // Box Model |
32 | 32 | margin: 0rem -1rem 0.25rem; |
33 | 33 | padding-top: 0.75rem; |
|
49 | 49 | // Typography |
50 | 50 | color: var(--custom-container_note-color, var(--custom-container-color)); |
51 | 51 |
|
52 | | - .custom-container-title { |
| 52 | + .alert__title { |
53 | 53 | // Background |
54 | 54 | background-color: var(--custom-containerTitle_note-bg, var(--custom-containerTitle-bg)); |
55 | 55 | // Typography |
|
65 | 65 | // Typography |
66 | 66 | color: var(--custom-container_warning-color, var(--custom-container-color)); |
67 | 67 |
|
68 | | - .custom-container-title { |
| 68 | + .alert__title { |
69 | 69 | // Background |
70 | 70 | background-color: var(--custom-containerTitle_warning-bg, var(--custom-containerTitle-bg)); |
71 | 71 | // Typography |
|
81 | 81 | // Typography |
82 | 82 | color: var(--custom-container_info-color, var(--custom-container-color)); |
83 | 83 |
|
84 | | - .custom-container-title { |
| 84 | + .alert__title { |
85 | 85 | // Background |
86 | 86 | background-color: var(--custom-containerTitle_info-bg, var(--custom-containerTitle-bg)); |
87 | 87 | // Typography |
|
97 | 97 | // Typography |
98 | 98 | color: var(--custom-container_tip-color, var(--custom-container-color)); |
99 | 99 |
|
100 | | - .custom-container-title { |
| 100 | + .alert__title { |
101 | 101 | // Background |
102 | 102 | background-color: var(--custom-containerTitle_tip-bg, var(--custom-containerTitle-bg)); |
103 | 103 | // Typography |
|
113 | 113 | // Typography |
114 | 114 | color: var(--custom-container_danger-color, var(--custom-container-color)); |
115 | 115 |
|
116 | | - .custom-container-title { |
| 116 | + .alert__title { |
117 | 117 | // Background |
118 | 118 | background-color: var(--custom-containerTitle_danger-bg, var(--custom-containerTitle-bg)); |
119 | 119 | // Typography |
|
0 commit comments