Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1004 B
Plaintext
Raw Permalink Normal View History

2022-01-24 12:47:59 +01:00
/*
2024-09-09 14:57:16 +01:00
Copyright 2024 New Vector Ltd.
2022-01-24 12:47:59 +01:00
Copyright 2022 Šimon Brandner <simon.bra.ag@gmail.com>
2024-09-09 14:57:16 +01:00
Copyright 2019 New Vector Ltd
2022-01-24 12:47:59 +01:00
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
2024-09-09 14:57:16 +01:00
Please see LICENSE files in the repository root for full details.
2022-01-24 12:47:59 +01:00
*/
.mx_CopyableText {
align-items: center;
2022-01-24 12:47:59 +01:00
display: flex;
justify-content: space-between;
2022-01-24 12:47:59 +01:00
width: max-content;
max-width: 100%;
&.mx_CopyableText_border {
overflow: auto;
border-radius: 5px;
border: solid 1px $light-fg-color;
margin-bottom: 10px;
margin-top: 10px;
padding: 10px;
}
2022-01-24 12:47:59 +01:00
.mx_CopyableText_copyButton {
flex-shrink: 0;
display: block;
/* If the copy button is used within a scrollable div, make it stick to the right while scrolling */
position: sticky;
margin-left: var(--cpd-space-1x);
2022-01-24 12:47:59 +01:00
svg {
color: $message-action-bar-fg-color;
2022-01-24 12:47:59 +01:00
display: block;
}
}
}