Skip to content

Commit e39bd91

Browse files
committed
Improve the appearance of Copy Code
1 parent cedac7d commit e39bd91

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

dist/lite/markedit-preview.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/markedit-preview.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/code-copy/base.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
right: 6px;
99
opacity: 0;
1010
transition: opacity 0.2s, background 0.2s;
11-
border: none;
11+
border: 1px solid var(--borderColor-default);
1212
border-radius: 8px;
1313
padding: 6px 7px;
14-
background: none;
14+
background: var(--bgColor-muted);
1515

1616
/* Prevent elements from moving during opacity changes in Safari */
1717
will-change: opacity, background;

styles/code-copy/dark.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
}
44

55
.code-copy-button:hover {
6-
background: #222222;
6+
background: #21262d;
77
}
88

99
.code-copy-button:active {
10-
background: #333333;
10+
background: #2d333b;
1111
}

styles/code-copy/light.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
}
44

55
.code-copy-button:hover {
6-
background: #eeeeee;
6+
background: #e6e9ed;
77
}
88

99
.code-copy-button:active {
10-
background: #dddddd;
10+
background: #dce0e5;
1111
}

0 commit comments

Comments
 (0)