mirror of https://github.com/zulip/zulip.git
css: Display copy_codeblock button during hover only.
This commit is contained in:
parent
3eddb0dd82
commit
d9c4181243
|
@ -445,9 +445,17 @@
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
&:hover .copy_codeblock,
|
||||||
|
&:focus-within .copy_codeblock {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* TODO: Consolidate with .copy_message */
|
/* TODO: Consolidate with .copy_message */
|
||||||
/* Style copy-to-clipboard button inside codeblocks */
|
/* Style copy-to-clipboard button inside codeblocks */
|
||||||
.copy_codeblock {
|
.copy_codeblock {
|
||||||
|
visibility: hidden;
|
||||||
outline-color: hsl(0, 0%, 73%);
|
outline-color: hsl(0, 0%, 73%);
|
||||||
height: 18px;
|
height: 18px;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
|
|
Loading…
Reference in New Issue