/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/docusaurus-theme-classic/src/theme/CodeBlock/Buttons/CopyButton/styles.module.css
47 строк
916 B
Sébastien Lorber
refactor(theme): introduce CodeBlockContextProvider + split into smaller components (#11062)
04 апр 2025, 21:11
Не верифицирован
04 апр 2025, 21:11
31b279f
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ :global(.theme-code-block:hover) .copyButtonCopied { opacity: 1 !important; } .copyButtonIcons { position: relative; width: 1.125rem; height: 1.125rem; } .copyButtonIcon, .copyButtonSuccessIcon { position: absolute; top: 0; left: 0; fill: currentColor; opacity: inherit; width: inherit; height: inherit; transition: all var(--ifm-transition-fast) ease; } .copyButtonSuccessIcon { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.33); opacity: 0; color: #00d600; } .copyButtonCopied .copyButtonIcon { transform: scale(0.33); opacity: 0; } .copyButtonCopied .copyButtonSuccessIcon { transform: translate(-50%, -50%) scale(1); opacity: 1; transition-delay: 0.075s; }