/
githubmirror
/
gitness
Обзор
Документация
Войти
/
githubmirror
/
gitness
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
web/src/components/ThreadSection/ThreadSection.module.scss
108 строк
2 KB
Calvin Lee
fix: [code-930]: fix design audit issues (#652)
05 окт 2023, 22:58
05 окт 2023, 22:58
daabd34
Код
Авторство
О чём код?
/* * Copyright 2023 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. */ .thread { margin-bottom: var(--spacing-medium); --layout-spacing: var(--spacing-2) !important; .content { padding-left: 25px; position: relative; > ::before { position: absolute; top: -8px; left: 7px; content: ''; width: 1px; height: calc(100% + 18px); border: 1px dashed var(--grey-200); opacity: 0.7; } &.hideGutter > ::before { display: none; } &.hideTitleGutter > ::before { display: none; } } } .titleContent { padding-left: 25px; position: relative; > ::before { position: absolute; top: 28px; left: 15px; content: ''; width: 1px; height: 25px; border: 1px dashed var(--grey-200); opacity: 0.7; z-index: 2; } &.hideTitleGutter > ::before { display: none; } } .inCommentBox { padding-left: 25px; position: relative; > ::after { position: absolute; bottom: -10px; left: 15px; content: ''; width: 1px; height: 22px; border: 1px dashed var(--grey-200); opacity: 0.7; z-index: 2; } } .threadLessSpace { margin-bottom: var(--spacing-small) !important; --layout-spacing: var(--spacing-2) !important; .content { padding-left: 25px; position: relative; --layout-spacing: var(--spacing-2) !important; > ::before { position: absolute; top: -8px; left: 9px; content: ''; width: 1px; height: calc(100% + 18px); border: 1px dashed var(--grey-200); opacity: 0.7; } &.hideGutter > ::before { display: none; } &.hideTitleGutter > ::before { display: none; } } }