27bb03bbc0
* adding copyright header * fix fmt and a test
31 lines
551 B
SCSS
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;
|
|
}
|