open-vault/ui/app/styles/components/hover-copy-button.scss
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

31 lines
551 B
SCSS

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
.has-copy-button {
position: relative;
color: $grey;
}
.hover-copy-button,
.hover-copy-button-static {
position: absolute;
top: 0.5rem;
right: 0.5rem;
}
.hover-copy-button {
opacity: 0;
pointer-events: none;
transition: opacity $speed ease-in-out;
will-change: opacity;
z-index: 10;
}
.has-copy-button:hover .hover-copy-button,
.has-copy-button:focus .hover-copy-button,
.hover-copy-button .copy-button:focus {
opacity: 1;
pointer-events: auto;
}