Skip to content

Commit 368159d

Browse files
committed
Gentle changes to code/dd/anchor contrast
Includes fix for outbound link indicators (PT-1088)
1 parent 8d0c2a4 commit 368159d

File tree

3 files changed

+14
-26
lines changed

3 files changed

+14
-26
lines changed

docs/.vuepress/theme/styles/color-mode.pcss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,6 @@
197197
border-color: var(--border-color);
198198
}
199199

200-
dl {
201-
code {
202-
color: theme("colors.gray.500");
203-
background-color: rgba(0, 0, 0, 0.4);
204-
}
205-
}
206-
207200
.token.treeview-part .line-h:before,
208201
.token.treeview-part .line-v:before {
209202
border-left: 1px solid var(--border-color);

docs/.vuepress/theme/styles/custom-blocks.pcss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
&.tip {}
4040

4141
&.warning {
42-
border: 1px solid rgba(178, 148, 0, 0.25);
42+
border: 1px solid rgba(178, 148, 0, 1);
4343

4444
&:before {
4545
background: transparent url("/docs/icons/icon-warning.svg") no-repeat 0 0;
4646
}
4747
}
4848

4949
&.danger {
50-
border: 1px solid rgba(229, 66, 43, 0.25);
50+
border: 1px solid rgba(229, 66, 43, 1);
5151

5252
.custom-block-title {
5353
color: rgba(229, 66, 43, 1);

docs/.vuepress/theme/styles/typography.pcss

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,17 @@
8181
}
8282

8383
p,
84-
li:not(.theme-default-content-override) {
84+
li:not(.theme-default-content-override),
85+
dl {
8586
a[target="_blank"] {
8687
span {
8788
@apply inline-block;
8889

8990
.icon.outbound {
9091
width: 14px;
9192
height: 14px;
93+
color: currentColor;
94+
margin-left: 3px;
9295
}
9396
}
9497
}
@@ -99,7 +102,8 @@
99102
}
100103

101104
p:not(.theme-default-content-override) a,
102-
li:not(.theme-default-content-override) a {
105+
li:not(.theme-default-content-override) a,
106+
dl a {
103107
@apply underline;
104108
text-decoration-color: var(--link-underline-color);
105109
text-underline-offset: .15em;
@@ -148,15 +152,14 @@
148152

149153
dl {
150154
@apply py-5 px-6 rounded;
151-
background: var(--dl-color);
152-
153-
dt,
154-
dd {
155-
@apply mt-1 mx-0 mb-0;
156-
}
155+
background-color: var(--custom-block-bg-color);
157156

158157
dt {
159-
@apply pr-4 box-border font-medium;
158+
@apply mb-2 pr-4 box-border font-medium;
159+
160+
&:not(:first-child) {
161+
@apply mt-4;
162+
}
160163

161164
code {
162165
@apply font-semibold bg-transparent px-0;
@@ -166,10 +169,6 @@
166169
dd {
167170
@apply pl-8;
168171

169-
code {
170-
@apply bg-transparent px-0;
171-
}
172-
173172
p:first-child {
174173
@apply mt-0;
175174
}
@@ -178,10 +177,6 @@
178177
@apply mt-4;
179178
}
180179
}
181-
182-
code {
183-
background: #dadfe3;
184-
}
185180
}
186181

187182
.compact dl {

0 commit comments

Comments
 (0)