styled copy button

This commit is contained in:
2024-02-09 12:09:26 +01:00
parent f8a61b6fdd
commit 1ef0cdec90
2 changed files with 25 additions and 1 deletions

View File

@@ -19,7 +19,14 @@ export default defineConfig({
integrations: [
minify(),
metaTags(),
expressiveCode({ themes: [codeTheme] }),
expressiveCode({
themes: [codeTheme],
styleOverrides: {
frames: {
tooltipSuccessBackground: "#7ECA9C",
},
},
}),
mdx(),
lighthouse(),
icon(),

View File

@@ -91,6 +91,23 @@ figure {
figure {
box-shadow: none !important;
}
.copy {
button {
width: 30px !important;
height: 30px !important;
margin: 5px !important;
border-radius: 25px !important;
display: none;
}
}
&:hover {
.copy {
button {
display: inline;
}
}
}
position: relative;
overflow: scroll;
display: grid;
margin: 0;