1
- /* Inspired by VuePress Theme Hope - Solid Background Style */
1
+ /* callout.css - VuePress Theme Hope Style - Corrected Layout */
2
2
3
- /* Base container style */
4
3
.aside {
5
- padding : 1 rem 1.5 rem ;
6
- margin : 1rem 0 ;
7
- border-radius : 8 px ;
8
- border : none; /* Ensure no borders */
4
+ border-radius : 8 px ;
5
+ margin : 1rem 0 ;
6
+ padding : 1 rem ;
7
+ border : 1 px solid transparent;
9
8
}
10
9
11
- /* Title style */
12
- .aside .aside-container p : first-child {
13
- font-weight : 600 ;
14
- margin-bottom : -0.4rem ;
15
- margin-top : 0 ;
16
- display : flex;
17
- align-items : center;
18
- gap : 0.5rem ;
10
+ .aside .aside-title {
11
+ font-weight : 700 ;
12
+ margin : 0 ;
13
+ margin-bottom : -0.4rem ; /* Negative margin to pull content up */
14
+ display : flex;
15
+ align-items : center;
16
+ gap : 0.5rem ;
17
+ }
18
+
19
+ .aside .aside-title svg {
20
+ width : 1.5em ;
21
+ height : 1.5em ;
19
22
}
20
23
21
- /* Content style */
22
24
.aside .aside-content {
23
- margin-top : 1rem ;
25
+ margin-top : 1rem ; /* Counteract the negative margin */
26
+ color : inherit;
24
27
}
25
28
26
- .aside .aside-content p {
27
- line-height : 1.6 ;
29
+ .aside .aside-content > : first-child {
30
+ margin-top : 0 ;
31
+ }
32
+ .aside .aside-content > : last-child {
33
+ margin-bottom : 0 ;
28
34
}
29
35
30
36
/* --- Light Mode --- */
31
37
.aside .aside-note {
32
- background-color : # e7f3fe ;
33
- color : # 30588c ;
38
+ background-color : rgb (142 150 170 / 14% );
39
+ }
40
+ .aside .aside-note .aside-title {
41
+ color : # 656869 ;
34
42
}
35
43
36
44
.aside .aside-tip {
37
- background-color : # e6f6e6 ;
38
- color : # 2d6b4e ;
45
+ background-color : rgb (16 185 129 / 14% );
46
+ }
47
+ .aside .aside-tip .aside-title {
48
+ color : # 18794e ;
49
+ }
50
+
51
+ .aside .aside-info {
52
+ background-color : rgb (27 178 229 / 14% );
53
+ }
54
+ .aside .aside-info .aside-title {
55
+ color : # 2888a7 ;
56
+ }
57
+
58
+ .aside .aside-warning {
59
+ background-color : rgb (234 179 8 / 14% );
60
+ }
61
+ .aside .aside-warning .aside-title {
62
+ color : # 915930 ;
39
63
}
40
64
41
65
.aside .aside-caution {
42
- background-color : # fff8e6 ;
43
- color : # 8c6d30 ;
66
+ background-color : rgb (244 63 94 / 14% );
67
+ }
68
+ .aside .aside-caution .aside-title {
69
+ color : # b8272c ;
44
70
}
45
71
46
- .aside .aside-danger {
47
- background-color : # fde7e9 ;
48
- color : # 8c3030 ;
72
+ .aside .aside-important {
73
+ background-color : rgb (159 122 234 / 14% );
74
+ }
75
+ .aside .aside-important .aside-title {
76
+ color : # 6f42c1 ;
49
77
}
50
78
51
79
/* --- Dark Mode --- */
52
80
html .dark .aside .aside-note {
53
- background-color : # 2f3e55 ;
54
- color : # a8b1ff ;
81
+ background-color : rgb (142 150 170 / 14% );
82
+ }
83
+ html .dark .aside .aside-note .aside-title {
84
+ color : # e4e4e9 ;
55
85
}
56
86
57
87
html .dark .aside .aside-tip {
58
- background-color : # 2a4f44 ;
59
- color : # 80c8a5 ;
88
+ background-color : rgb (16 185 129 / 16% );
89
+ }
90
+ html .dark .aside .aside-tip .aside-title {
91
+ color : # 3dd68c ;
92
+ }
93
+
94
+ html .dark .aside .aside-info {
95
+ background-color : rgb (27 178 229 / 16% );
96
+ }
97
+ html .dark .aside .aside-info .aside-title {
98
+ color : # 43bde2 ;
99
+ }
100
+
101
+ html .dark .aside .aside-warning {
102
+ background-color : rgb (234 179 8 / 16% );
103
+ }
104
+ html .dark .aside .aside-warning .aside-title {
105
+ color : # e6b30a ;
60
106
}
61
107
62
108
html .dark .aside .aside-caution {
63
- background-color : # 554a2f ;
64
- color : # e7c000 ;
109
+ background-color : rgb (244 63 94 / 16% );
110
+ }
111
+ html .dark .aside .aside-caution .aside-title {
112
+ color : # ff7875 ;
65
113
}
66
114
67
- html .dark .aside .aside-danger {
68
- background-color : # 553030 ;
69
- color : # ff9999 ;
70
- }
115
+ html .dark .aside .aside-important {
116
+ background-color : rgb (159 122 234 / 16% );
117
+ }
118
+ html .dark .aside .aside-important .aside-title {
119
+ color : # b392f0 ;
120
+ }
0 commit comments