Skip to content

Commit 9bb4905

Browse files
KianNHWalshyDev
andauthored
[Docs Site] Shrink codeblock buttons on mobile to desktop size (#19334)
* [Docs Site] Shrink codeblock buttons on mobile to desktop size * Update src/code.css * Update src/code.css Co-authored-by: Kian <[email protected]> --------- Co-authored-by: Daniel Walsh <[email protected]>
1 parent 31f1cba commit 9bb4905

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ export default defineConfig({
164164
sidebar: await autogenSections(),
165165
customCss: [
166166
"./src/asides.css",
167+
"./src/code.css",
167168
"./src/headings.css",
168169
"./src/input.css",
169-
"./src/kbd.css",
170170
"./src/littlefoot.css",
171171
"./src/mermaid.css",
172172
"./src/table.css",

src/code.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
This is normally set to 2.5rem if the user is unable to hover (i.e mobile)
3+
and 2rem otherwise, we would like it to always be 2rem.
4+
*/
5+
.expressive-code .copy button {
6+
width: 2rem !important;
7+
height: 2rem !important;
8+
}

0 commit comments

Comments
 (0)