Skip to content

Commit 3d6b56a

Browse files
committed
chore(style): use viewport units
1 parent 5ecaa9d commit 3d6b56a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

rollup.config.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ export default svelteReadme({
44
style: `
55
.code-fence {
66
overflow-y: scroll;
7-
height: 380px;
7+
height: 50vh;
8+
min-height: 380px;
89
padding: 0;
910
}
1011
@@ -26,8 +27,8 @@ export default svelteReadme({
2627
}
2728
2829
.code-fence header ~ div {
29-
margin-top: calc(380px - 80px);
30-
height: 200px;
30+
margin-top: 50vh;
31+
height: 25vh;
3132
padding: 1rem;
3233
background-color: #376462;
3334
color: #fff;
@@ -38,7 +39,7 @@ export default svelteReadme({
3839
color: #d54309;
3940
}
4041
41-
.code-fence header.intersecting {
42+
.code-fence .intersecting {
4243
color: #00a91c;
4344
}
4445
`,

0 commit comments

Comments
 (0)