|
21 | 21 | --rp-container-details-text: #666666;
|
22 | 22 | --rp-container-details-bg: rgba(128, 128, 128, 0.1);
|
23 | 23 | --rp-container-details-code-bg: rgba(128, 128, 128, 0.1);
|
| 24 | + --rp-container-details-link: rgb(0, 119, 255); |
24 | 25 | }
|
25 | 26 |
|
26 | 27 | .dark {
|
27 |
| - --rp-container-info-text: var(--rp-text-1); |
| 28 | + --rp-container-info-text: rgb(66, 215, 140); |
28 | 29 | --rp-container-info-bg: rgba(7, 156, 112, 0.1);
|
29 | 30 |
|
30 |
| - --rp-container-details-text: var(--rp-text-1); |
31 |
| - --rp-container-details-bg: rgba(128, 128, 128, 0.16); |
32 |
| - |
| 31 | + --rp-container-warning-text: rgb(251, 180, 81); |
33 | 32 | --rp-container-warning-border: rgba(255, 197, 23, 0.25);
|
34 | 33 | --rp-container-warning-bg: rgba(255, 197, 23, 0.12);
|
35 |
| - --rp-container-warning-text: var(--rp-text-1); |
36 | 34 |
|
| 35 | + --rp-container-danger-text: rgb(247, 110, 133); |
37 | 36 | --rp-container-danger-border: rgba(237, 60, 80, 0.3);
|
38 | 37 | --rp-container-danger-bg: rgba(237, 60, 80, 0.12);
|
39 |
| - --rp-container-danger-text: var(--rp-text-1); |
| 38 | + |
| 39 | + --rp-container-details-text: var(--rp-text-1); |
| 40 | + --rp-container-details-bg: rgba(128, 128, 128, 0.16); |
| 41 | + --rp-container-details-link: rgb(0, 119, 255); |
40 | 42 | }
|
41 | 43 |
|
42 | 44 | .rspress-doc .rspress-directive {
|
|
45 | 47 | padding: 20px 24px 12px;
|
46 | 48 | line-height: 1.7;
|
47 | 49 | font-size: 14px;
|
48 |
| - font-weight: 500; |
| 50 | + font-weight: 400; |
49 | 51 | margin: 24px 0;
|
50 | 52 | }
|
51 | 53 |
|
|
72 | 74 |
|
73 | 75 | .rspress-doc .rspress-directive code {
|
74 | 76 | color: inherit;
|
75 |
| - font-weight: bold; |
76 | 77 | font-size: 13px;
|
77 | 78 | }
|
78 | 79 |
|
79 | 80 | .rspress-doc .rspress-directive.tip,
|
80 | 81 | .rspress-doc .rspress-directive.note,
|
81 | 82 | .rspress-doc .rspress-directive.info {
|
82 | 83 | border-color: var(--rp-container-info-border);
|
83 |
| - color: var(--rp-container-info-text); |
84 | 84 | background-color: var(--rp-container-info-bg);
|
85 | 85 | }
|
86 | 86 |
|
87 |
| -.rspress-doc .rspress-directive.tip code, |
88 |
| -.rspress-doc .rspress-directive.note code { |
89 |
| - background-color: var(--rp-container-info-code-bg); |
| 87 | +.rspress-doc .rspress-directive.tip .rspress-directive-title, |
| 88 | +.rspress-doc .rspress-directive.note .rspress-directive-title, |
| 89 | +.rspress-doc .rspress-directive.info .rspress-directive-title { |
| 90 | + color: var(--rp-container-info-text); |
90 | 91 | }
|
91 | 92 |
|
| 93 | +.rspress-doc .rspress-directive.tip code, |
| 94 | +.rspress-doc .rspress-directive.note code, |
92 | 95 | .rspress-doc .rspress-directive.info code {
|
| 96 | + color: var(--rp-container-info-text); |
93 | 97 | background-color: var(--rp-container-info-code-bg);
|
94 | 98 | }
|
95 | 99 |
|
| 100 | +.rspress-doc .rspress-directive.tip a, |
| 101 | +.rspress-doc .rspress-directive.note a, |
| 102 | +.rspress-doc .rspress-directive.info a { |
| 103 | + font-weight: 500; |
| 104 | + color: var(--rp-container-info-text); |
| 105 | + transition: color 0.25s; |
| 106 | +} |
| 107 | + |
| 108 | +.rspress-doc .rspress-directive.tip a:hover, |
| 109 | +.rspress-doc .rspress-directive.note a:hover, |
| 110 | +.rspress-doc .rspress-directive.info a:hover { |
| 111 | + border-bottom: 1px solid var(--rp-container-info-text); |
| 112 | +} |
| 113 | + |
96 | 114 | .rspress-doc .rspress-directive.warning {
|
97 | 115 | border-color: var(--rp-container-warning-border);
|
98 |
| - color: var(--rp-container-warning-text); |
99 | 116 | background-color: var(--rp-container-warning-bg);
|
100 | 117 | }
|
101 | 118 |
|
| 119 | +.rspress-doc .rspress-directive.warning .rspress-directive-title { |
| 120 | + color: var(--rp-container-warning-text); |
| 121 | +} |
| 122 | + |
102 | 123 | .rspress-doc .rspress-directive.warning code {
|
| 124 | + color: var(--rp-container-warning-text); |
103 | 125 | background-color: var(--rp-container-warning-code-bg);
|
104 | 126 | }
|
105 | 127 |
|
| 128 | +.rspress-doc .rspress-directive.warning a { |
| 129 | + font-weight: 500; |
| 130 | + color: var(--rp-container-warning-text); |
| 131 | + transition: color 0.25s; |
| 132 | +} |
| 133 | + |
| 134 | +.rspress-doc .rspress-directive.warning a:hover { |
| 135 | + border-bottom: 1px solid var(--rp-container-warning-text); |
| 136 | +} |
| 137 | + |
106 | 138 | .rspress-doc .rspress-directive.caution,
|
107 | 139 | .rspress-doc .rspress-directive.danger {
|
108 | 140 | border-color: var(--rp-container-danger-border);
|
109 |
| - color: var(--rp-container-danger-text); |
110 | 141 | background-color: var(--rp-container-danger-bg);
|
111 | 142 | }
|
112 | 143 |
|
| 144 | +.rspress-doc .rspress-directive.caution .rspress-directive-title, |
| 145 | +.rspress-doc .rspress-directive.danger .rspress-directive-title { |
| 146 | + color: var(--rp-container-danger-text); |
| 147 | +} |
| 148 | + |
113 | 149 | .rspress-doc .rspress-directive.caution code,
|
114 | 150 | .rspress-doc .rspress-directive.danger code {
|
| 151 | + color: var(--rp-container-danger-text); |
115 | 152 | background-color: var(--rp-container-danger-code-bg);
|
116 | 153 | }
|
117 | 154 |
|
| 155 | +.rspress-doc .rspress-directive.caution a, |
| 156 | +.rspress-doc .rspress-directive.danger a { |
| 157 | + font-weight: 500; |
| 158 | + color: var(--rp-container-danger-text); |
| 159 | + transition: color 0.25s; |
| 160 | +} |
| 161 | + |
| 162 | +.rspress-doc .rspress-directive.caution a:hover, |
| 163 | +.rspress-doc .rspress-directive.danger a:hover { |
| 164 | + border-bottom: 1px solid var(--rp-container-danger-text); |
| 165 | +} |
| 166 | + |
118 | 167 | .rspress-doc .rspress-directive.details {
|
119 | 168 | border-color: var(--rp-container-details-border);
|
120 |
| - color: var(--rp-container-details-text); |
121 | 169 | background-color: var(--rp-container-details-bg);
|
122 | 170 | }
|
123 | 171 |
|
| 172 | +.rspress-doc .rspress-directive.details .rspress-directive-title { |
| 173 | + color: var(--rp-container-details-text); |
| 174 | +} |
| 175 | + |
124 | 176 | .rspress-doc .rspress-directive.details code {
|
| 177 | + color: var(--rp-container-details-text); |
125 | 178 | background-color: var(--rp-container-details-code-bg);
|
126 | 179 | }
|
| 180 | + |
| 181 | +.rspress-doc .rspress-directive.details a { |
| 182 | + font-weight: 500; |
| 183 | + color: var(--rp-container-details-link); |
| 184 | + transition: color 0.25s; |
| 185 | +} |
| 186 | + |
| 187 | +.rspress-doc .rspress-directive.details a:hover { |
| 188 | + border-bottom: 1px solid var(--rp-container-details-link); |
| 189 | +} |
0 commit comments