/
githubmirror
/
gitness
Обзор
Документация
Войти
/
githubmirror
/
gitness
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
web/src/ar/components/CommandBlock/CommandBlock.module.scss
74 строки
2 KB
Abhishek Bane
fix: [AH-564]: add copy icon to each command in a command block (#3029)
27 ноя 2024, 13:35
27 ноя 2024, 13:35
3235118
Код
Авторство
О чём код?
/* * Copyright 2024 Harness, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ .commandBlock { overflow: auto; width: 100% !important; background-color: var(--primary-1) !important; &.darkmode { background-color: var(--black) !important; } padding: var(--spacing-small) var(--spacing-medium) !important; p { padding-right: var(--spacing-medium) !important; // TODO: update this to variable font-family: Monaco, 'Ubuntu Mono', 'Courier New', monospace !important; } svg[data-icon='duplicate'] { path { color: var(--primary-7) !important; } } .commandRow { max-width: 100%; } .commandText { align-self: center; word-break: break-word; } .commandGroup { flex-shrink: 1; max-width: 100%; } .downloadAnchor { display: none; } } .ignoreWhiteSpaces { white-space: pre-wrap !important; } .noWrap { white-space: nowrap !important; overflow: auto !important; scrollbar-width: none; } .downloadBtn { cursor: pointer; margin-left: 0px !important; padding-left: var(--spacing-xsmall) !important; } .copyButtonHover { :global(.bp3-icon) { svg > path { fill: var(--white) !important; } } }