styled copy button
This commit is contained in:
@@ -19,7 +19,14 @@ export default defineConfig({
|
|||||||
integrations: [
|
integrations: [
|
||||||
minify(),
|
minify(),
|
||||||
metaTags(),
|
metaTags(),
|
||||||
expressiveCode({ themes: [codeTheme] }),
|
expressiveCode({
|
||||||
|
themes: [codeTheme],
|
||||||
|
styleOverrides: {
|
||||||
|
frames: {
|
||||||
|
tooltipSuccessBackground: "#7ECA9C",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
mdx(),
|
mdx(),
|
||||||
lighthouse(),
|
lighthouse(),
|
||||||
icon(),
|
icon(),
|
||||||
|
@@ -91,6 +91,23 @@ figure {
|
|||||||
figure {
|
figure {
|
||||||
box-shadow: none !important;
|
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;
|
overflow: scroll;
|
||||||
display: grid;
|
display: grid;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
Reference in New Issue
Block a user