mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2026-10-28 09:44:55 +00:00
135 lines
3.5 KiB
TypeScript
135 lines
3.5 KiB
TypeScript
/*!
|
|
* Copyright (c) https://github.com/lutinglt
|
|
*
|
|
* See the NOTICE file distributed with this work for additional
|
|
* information regarding copyright ownership.
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
import { css, themeVars } from "@lutinglt/gitea-github-theme/core";
|
|
|
|
// 仓库代码布局调整, 侧边栏宽度调整
|
|
export const repoGrid = css`
|
|
.repo-grid-filelist-sidebar {
|
|
grid-template-columns: auto 312px;
|
|
gap: 24px;
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.repo-grid-filelist-sidebar {
|
|
grid-template-columns: 100%;
|
|
}
|
|
}
|
|
`;
|
|
|
|
// 仓库代码页面侧边栏上半部, 版本发布以上
|
|
export const repoSidebarTop = css`
|
|
.page-content.repository.file.list {
|
|
.repo-home-sidebar-top {
|
|
/* 搜索代码 */
|
|
.ui.input > input {
|
|
background: unset;
|
|
}
|
|
a.muted:hover {
|
|
text-decoration: none;
|
|
}
|
|
.flex-item {
|
|
padding: 10px 0 0 0;
|
|
/* 仓库描述本身 */
|
|
.flex-item-title {
|
|
margin-top: 10px;
|
|
}
|
|
/* 仓库描述内容 */
|
|
.flex-item-body {
|
|
> .tw-flex:first-child {
|
|
margin-top: 16px !important;
|
|
gap: 8px !important;
|
|
}
|
|
.repo-description {
|
|
color: ${themeVars.color.text.self};
|
|
}
|
|
#repo-topics {
|
|
margin: 8px 0px !important;
|
|
}
|
|
.flex-text-block {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin-top: 10px;
|
|
&.muted {
|
|
margin-top: 2px;
|
|
font-weight: normal;
|
|
}
|
|
svg.svg {
|
|
margin-right: 4px;
|
|
&.octicon-database,
|
|
&.octicon-law {
|
|
margin-right: 6px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
// 仓库代码页面侧边栏下半部, 版本发布以下
|
|
export const repoSidebarBottom = css`
|
|
.page-content.repository.file.list {
|
|
.repo-home-sidebar-bottom {
|
|
a.muted:hover {
|
|
text-decoration: none;
|
|
}
|
|
.flex-item {
|
|
padding: 16px 0;
|
|
.flex-item {
|
|
padding: 16px 0 0 0;
|
|
.flex-item-leading {
|
|
svg.svg.octicon-tag {
|
|
color: ${themeVars.color.green.self};
|
|
}
|
|
}
|
|
.flex-item-header .flex-item-title {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
.flex-item-body {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
/* 编程语言 */
|
|
.language-stats {
|
|
height: 8px;
|
|
margin-bottom: 0px;
|
|
background-color: ${themeVars.github.progressBar.track.bgColor};
|
|
outline: 1px solid ${themeVars.github.progressBar.track.borderColor};
|
|
outline-offset: -1px;
|
|
}
|
|
.language-stats-details .item {
|
|
font-size: 12px;
|
|
margin-right: 8px;
|
|
.color-icon {
|
|
height: 8px;
|
|
width: 8px;
|
|
margin-right: 8px;
|
|
}
|
|
.tw-font-semibold {
|
|
color: ${themeVars.color.text.self};
|
|
margin-right: 2px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|