mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 16:48:05 +00:00
40 lines
877 B
CSS
Executable file
40 lines
877 B
CSS
Executable file
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
.codeBlock {
|
|
margin-bottom: 0;
|
|
overflow: hidden;
|
|
overflow-wrap: break-word;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.codeBlockWrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.codeBlockWrapper:hover > .copyButton {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
|
|
.copyButton {
|
|
background: rgb(1, 22, 39);
|
|
border: 1px solid rgb(214, 222, 235);
|
|
border-radius: var(--ifm-global-radius);
|
|
color: rgb(214, 222, 235);
|
|
cursor: pointer;
|
|
line-height: 12px;
|
|
opacity: 0;
|
|
outline: none;
|
|
padding: 4px 8px;
|
|
position: absolute;
|
|
right: var(--ifm-pre-padding);
|
|
top: var(--ifm-pre-padding);
|
|
visibility: hidden;
|
|
transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out,
|
|
bottom 200ms ease-in-out;
|
|
}
|