mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 13:00:31 +00:00
同步软件包页面样式
This commit is contained in:
1
.github/release.md
vendored
1
.github/release.md
vendored
@@ -30,6 +30,7 @@
|
|||||||
- 同步仓库已标星的星星颜色
|
- 同步仓库已标星的星星颜色
|
||||||
- 优化仪表板动态信息间隔
|
- 优化仪表板动态信息间隔
|
||||||
- 微调仓库相关界面元素间隔
|
- 微调仓库相关界面元素间隔
|
||||||
|
- 同步软件包页面样式
|
||||||
|
|
||||||
### 🐞 Fix
|
### 🐞 Fix
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitea-github-theme",
|
"name": "gitea-github-theme",
|
||||||
"version": "1.24.6",
|
"version": "1.24.6",
|
||||||
"description": "A sophisticated theme to make Gitea look and feel like GitHub",
|
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --mode dev",
|
"dev": "vite build --mode dev",
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import "./milestones";
|
|||||||
import "./newrepo";
|
import "./newrepo";
|
||||||
import "./notification";
|
import "./notification";
|
||||||
import "./org";
|
import "./org";
|
||||||
|
import "./packages";
|
||||||
import "./release";
|
import "./release";
|
||||||
import "./repo";
|
import "./repo";
|
||||||
import "./setting";
|
import "./setting";
|
||||||
|
|||||||
@@ -522,37 +522,53 @@ const sidebarPadding = {
|
|||||||
|
|
||||||
// 侧边栏
|
// 侧边栏
|
||||||
export const issueSidebar = css`
|
export const issueSidebar = css`
|
||||||
.issue-content {
|
.repository.view.issue {
|
||||||
gap: 24px;
|
.issue-content {
|
||||||
.issue-content-right {
|
gap: 24px;
|
||||||
border: 0;
|
.issue-content-right {
|
||||||
font-size: 12px;
|
border: 0;
|
||||||
padding: 0;
|
|
||||||
.ui.button {
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
padding: 0;
|
||||||
.ui.form,
|
.ui.button {
|
||||||
a.fixed-text.muted,
|
font-size: 12px;
|
||||||
span.text,
|
}
|
||||||
// 列表项为空时的文字
|
.ui.form,
|
||||||
span.item.empty-list,
|
a.fixed-text.muted,
|
||||||
p {
|
span.text,
|
||||||
color: ${themeVars.color.text.light.num1};
|
// 列表项为空时的文字
|
||||||
font-size: 12px;
|
span.item.empty-list,
|
||||||
}
|
p {
|
||||||
.ui.dropdown.select-branch,
|
color: ${themeVars.color.text.light.num1};
|
||||||
.ui.form,
|
font-size: 12px;
|
||||||
a.fixed-text.muted,
|
}
|
||||||
span.text,
|
.ui.dropdown.select-branch,
|
||||||
.ui.watching > div,
|
.ui.form,
|
||||||
.ui.depending > div,
|
a.fixed-text.muted,
|
||||||
.flex-text-block,
|
span.text,
|
||||||
.ui.list,
|
.ui.watching > div,
|
||||||
p {
|
.ui.depending > div,
|
||||||
${sidebarPadding};
|
.flex-text-block,
|
||||||
}
|
.ui.list,
|
||||||
.issue-sidebar-combo {
|
p {
|
||||||
.ui.dropdown > a.fixed-text.muted {
|
${sidebarPadding};
|
||||||
|
}
|
||||||
|
.issue-sidebar-combo {
|
||||||
|
.ui.dropdown > a.fixed-text.muted {
|
||||||
|
align-items: center;
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
|
text-decoration-line: none;
|
||||||
|
height: 28px;
|
||||||
|
&:hover {
|
||||||
|
background: ${themeVars.github.control.transparent.bgColor.hover};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.ui.list {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
margin-bottom: 0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 时间追踪
|
||||||
|
> div:not([class]):not([id]) > .ui.dropdown.jump > a.fixed-text.muted {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
text-decoration-line: none;
|
text-decoration-line: none;
|
||||||
@@ -561,62 +577,48 @@ export const issueSidebar = css`
|
|||||||
background: ${themeVars.github.control.transparent.bgColor.hover};
|
background: ${themeVars.github.control.transparent.bgColor.hover};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ui.list {
|
// 选中日期颜色
|
||||||
margin-top: 0 !important;
|
.ui.form .due-date {
|
||||||
margin-bottom: 0 !important;
|
color: ${themeVars.color.text.self};
|
||||||
}
|
}
|
||||||
}
|
.divider {
|
||||||
// 时间追踪
|
margin: 12px 0 12px 8px;
|
||||||
> div:not([class]):not([id]) > .ui.dropdown.jump > a.fixed-text.muted {
|
width: calc(100% - 16px);
|
||||||
align-items: center;
|
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
|
||||||
text-decoration-line: none;
|
|
||||||
height: 28px;
|
|
||||||
&:hover {
|
|
||||||
background: ${themeVars.github.control.transparent.bgColor.hover};
|
|
||||||
}
|
}
|
||||||
}
|
// 订阅按钮
|
||||||
// 选中日期颜色
|
.ui.watching .ui.button {
|
||||||
.ui.form .due-date {
|
padding: 0px 8px;
|
||||||
color: ${themeVars.color.text.self};
|
height: 28px;
|
||||||
}
|
|
||||||
.divider {
|
|
||||||
margin: 12px 0 12px 8px;
|
|
||||||
width: calc(100% - 16px);
|
|
||||||
}
|
|
||||||
// 订阅按钮
|
|
||||||
.ui.watching .ui.button {
|
|
||||||
padding: 0px 8px;
|
|
||||||
height: 28px;
|
|
||||||
svg {
|
|
||||||
margin: 0 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// PIN 按钮
|
|
||||||
.form-fetch-action.single-button-form .ui.button,
|
|
||||||
// 底部操作按钮
|
|
||||||
.ui.show-modal.button {
|
|
||||||
border: 0;
|
|
||||||
background: unset;
|
|
||||||
font-weight: 400;
|
|
||||||
${sidebarPadding};
|
|
||||||
// 好像是浏览器 BUG, 最后不生效, 必须 !important
|
|
||||||
margin: 0 !important;
|
|
||||||
justify-content: left;
|
|
||||||
&:hover {
|
|
||||||
background: ${themeVars.github.control.transparent.bgColor.hover};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.ui.show-modal.button[data-modal="#sidebar-delete-issue"] {
|
|
||||||
color: ${themeVars.color.red.self};
|
|
||||||
svg {
|
|
||||||
color: ${themeVars.color.red.self};
|
|
||||||
}
|
|
||||||
&:hover {
|
|
||||||
background-color: ${themeVars.color.red.badge.bg};
|
|
||||||
color: ${themeVars.color.red.light};
|
|
||||||
svg {
|
svg {
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// PIN 按钮
|
||||||
|
.form-fetch-action.single-button-form .ui.button,
|
||||||
|
// 底部操作按钮
|
||||||
|
.ui.show-modal.button {
|
||||||
|
border: 0;
|
||||||
|
background: unset;
|
||||||
|
font-weight: 400;
|
||||||
|
${sidebarPadding};
|
||||||
|
// 好像是浏览器 BUG, 最后不生效, 必须 !important
|
||||||
|
margin: 0 !important;
|
||||||
|
justify-content: left;
|
||||||
|
&:hover {
|
||||||
|
background: ${themeVars.github.control.transparent.bgColor.hover};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.ui.show-modal.button[data-modal="#sidebar-delete-issue"] {
|
||||||
|
color: ${themeVars.color.red.self};
|
||||||
|
svg {
|
||||||
|
color: ${themeVars.color.red.self};
|
||||||
|
}
|
||||||
|
&:hover {
|
||||||
|
background-color: ${themeVars.color.red.badge.bg};
|
||||||
color: ${themeVars.color.red.light};
|
color: ${themeVars.color.red.light};
|
||||||
|
svg {
|
||||||
|
color: ${themeVars.color.red.light};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
105
styles/components/packages.ts
Normal file
105
styles/components/packages.ts
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
import { css, otherThemeVars, themeVars } from "src/types/vars";
|
||||||
|
|
||||||
|
// 组织/仓库的软件包列表(包含用户但未测试)
|
||||||
|
export const packagesList = css`
|
||||||
|
.page-content.packages {
|
||||||
|
// 这里必须要用 >, 否则会影响到软件包详细信息页的样式
|
||||||
|
> .ui.container > div:not([class]) {
|
||||||
|
border: 1px solid ${themeVars.color.light.border};
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
|
margin-top: 16px;
|
||||||
|
.flex-list {
|
||||||
|
border-top: 1px solid ${themeVars.color.light.border};
|
||||||
|
&:first-child {
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
.flex-item {
|
||||||
|
padding: 16px;
|
||||||
|
.flex-item-main {
|
||||||
|
.flex-item-title {
|
||||||
|
gap: 8px;
|
||||||
|
> a {
|
||||||
|
min-height: 25px;
|
||||||
|
}
|
||||||
|
// 软件包类型的标签
|
||||||
|
.ui.label {
|
||||||
|
gap: 4px;
|
||||||
|
padding: 3px 6px;
|
||||||
|
min-height: 24.5px;
|
||||||
|
background-color: unset;
|
||||||
|
border: 1px solid ${themeVars.color.light.border};
|
||||||
|
color: ${themeVars.color.primary.self};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.flex-item-body {
|
||||||
|
font-size: 12px;
|
||||||
|
a {
|
||||||
|
text-decoration: underline;
|
||||||
|
text-underline-offset: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
// 软件包详细信息页
|
||||||
|
export const packagesDetail = css`
|
||||||
|
.page-content.packages {
|
||||||
|
.issue-title-header > div {
|
||||||
|
color: ${themeVars.color.text.light.num1};
|
||||||
|
}
|
||||||
|
.issue-content {
|
||||||
|
.issue-content-left {
|
||||||
|
.ui.top.attached.header {
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
.ui.attached.segment {
|
||||||
|
color: ${themeVars.color.text.light.num1};
|
||||||
|
padding: 16px;
|
||||||
|
.ui.table,
|
||||||
|
.ui.form .field > label {
|
||||||
|
color: ${themeVars.color.text.light.num1};
|
||||||
|
}
|
||||||
|
.ui.form .field > label {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.markup {
|
||||||
|
color: ${themeVars.color.text.self};
|
||||||
|
pre {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 400;
|
||||||
|
padding: 12px 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+ .ui.top.attached.header {
|
||||||
|
margin-top: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.issue-content-right {
|
||||||
|
border: 0;
|
||||||
|
padding: 0px 16px;
|
||||||
|
> strong {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
> .divider {
|
||||||
|
margin: 16px 0px;
|
||||||
|
}
|
||||||
|
// 详情
|
||||||
|
> .ui.relaxed.list {
|
||||||
|
margin: 16px 0px;
|
||||||
|
.item {
|
||||||
|
color: ${themeVars.color.text.light.num1};
|
||||||
|
svg {
|
||||||
|
color: ${themeVars.color.text.self};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
@@ -120,4 +120,9 @@ export const fixButton = css`
|
|||||||
.ui.ui.ui.ui.small.button {
|
.ui.ui.ui.ui.small.button {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
// 代码复制按钮
|
||||||
|
.ui.button.code-copy {
|
||||||
|
padding: 4px 6px;
|
||||||
|
min-height: 28px;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -186,19 +186,3 @@ export const repoLabel = css`
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
// 软件包列表
|
|
||||||
export const packagesLabel = css`
|
|
||||||
.page-content {
|
|
||||||
&.packages {
|
|
||||||
> .ui.container > div > .flex-list {
|
|
||||||
// 软件包类型的标签
|
|
||||||
.ui.label {
|
|
||||||
background-color: unset;
|
|
||||||
border: 1px solid ${themeVars.color.light.border};
|
|
||||||
color: ${themeVars.color.primary.self};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user