Skip to content

Commit 07595b3

Browse files
committed
fix(syntax): improve the font size and height of download button
1 parent f499fd6 commit 07595b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

static/css/code.css

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ figure.code {
3131
border-radius: var(--borderRadius) var(--borderRadius) 0 0;
3232
background-color: #544c50;
3333
color: #ebdbb2;
34-
padding: 2px 9.5px;
34+
padding: 1px 9.5px;
3535
font-family: var(--sansFontFamily);
36+
font-size: rfs(1.1rem);
3637
& span.liquid-tags-code-title {
3738
flex-grow: 1;
3839
}
@@ -47,13 +48,12 @@ figure.code {
4748
position: relative;
4849
margin-left: 30px;
4950
&:before {
50-
display: inline-block;
51-
height: 18px;
52-
width: 18px;
51+
height: rfs(0.9rem);
52+
width: rfs(0.9rem);
53+
top: rfs(0.35rem);
5354
content: url("data:image/svg+xml,%3Csvg%20image-rendering%3D%22optimizeQuality%22%20shape-rendering%3D%22geometricPrecision%22%20text-rendering%3D%22geometricPrecision%22%20viewBox%3D%220%200%20294%20452.5%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22%23b8bb26%22%3E%3Cpath%20d%3D%22m126%200h42v185h62l-83%20111-83-111h62z%22%2F%3E%3Cpath%20d%3D%22m294%20257v105c-98%200-196%200-294%200v-105h34v71h226v-71z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");
5455
margin: 0;
5556
padding: 0 4px 0 0;
56-
top: 4px;
5757
right: 100%;
5858
position: absolute;
5959
}

0 commit comments

Comments
 (0)