Skip to content

Commit e173b17

Browse files
authored
fix: typo of variable fg-default & make copied button active bg color as a variable (#260)
1 parent 9cc8590 commit e173b17

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

core/src/styles/markdown.less

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
--color-accent-emphasis: #1f6feb;
4545
--color-attention-subtle: rgba(187, 128, 9, 0.15);
4646
--color-danger-fg: #f85149;
47+
--color-copied-active-bg: #2e9b33;
4748
}
4849
}
4950

@@ -93,6 +94,7 @@
9394
--color-accent-emphasis: #0969da;
9495
--color-attention-subtle: #fff8c5;
9596
--color-danger-fg: #cf222e;
97+
--color-copied-active-bg: #2e9b33;
9698
}
9799
}
98100

@@ -405,7 +407,14 @@ body[data-color-mode*='light'] {
405407
kbd {
406408
display: inline-block;
407409
padding: 3px 5px;
408-
font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
410+
font:
411+
11px ui-monospace,
412+
SFMono-Regular,
413+
SF Mono,
414+
Menlo,
415+
Consolas,
416+
Liberation Mono,
417+
monospace;
409418
line-height: 10px;
410419
color: var(--color-fg-default);
411420
vertical-align: middle;
@@ -444,7 +453,14 @@ body[data-color-mode*='light'] {
444453
kbd {
445454
display: inline-block;
446455
padding: 3px 5px;
447-
font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
456+
font:
457+
11px ui-monospace,
458+
SFMono-Regular,
459+
SF Mono,
460+
Menlo,
461+
Consolas,
462+
Liberation Mono,
463+
monospace;
448464
line-height: 10px;
449465
color: var(--color-fg-default);
450466
vertical-align: middle;
@@ -530,13 +546,27 @@ body[data-color-mode*='light'] {
530546

531547
tt,
532548
code {
533-
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
549+
font-family:
550+
ui-monospace,
551+
SFMono-Regular,
552+
SF Mono,
553+
Menlo,
554+
Consolas,
555+
Liberation Mono,
556+
monospace;
534557
font-size: 12px;
535558
}
536559
pre {
537560
margin-top: 0;
538561
margin-bottom: 0;
539-
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
562+
font-family:
563+
ui-monospace,
564+
SFMono-Regular,
565+
SF Mono,
566+
Menlo,
567+
Consolas,
568+
Liberation Mono,
569+
monospace;
540570
font-size: 12px;
541571
word-wrap: normal;
542572
}
@@ -1008,7 +1038,7 @@ body[data-color-mode*='light'] {
10081038
display: flex;
10091039
position: absolute;
10101040
cursor: pointer;
1011-
color: var(--color-fg-defaul);
1041+
color: var(--color-fg-default);
10121042
top: 6px;
10131043
right: 6px;
10141044
border-radius: 5px;
@@ -1036,7 +1066,7 @@ body[data-color-mode*='light'] {
10361066
}
10371067
&:hover .copied:active,
10381068
.copied.active {
1039-
background: #2e9b33;
1069+
background: var(--color-copied-active-bg);
10401070
color: var(--color-canvas-default);
10411071
}
10421072
.active {

0 commit comments

Comments
 (0)