mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-27 22:40:30 +00:00
release 迁移
This commit is contained in:
@@ -4,5 +4,6 @@ import "./dashboard";
|
||||
import "./diff";
|
||||
import "./heatmap";
|
||||
import "./issue";
|
||||
import "./release";
|
||||
import "./repo";
|
||||
import "./setting";
|
||||
|
||||
@@ -107,15 +107,9 @@ export const dropdown = css`
|
||||
&.issue-list .ui.dropdown .menu, .ui.menu .ui.dropdown .menu,
|
||||
// Issue/PR 详情下的右侧的上半部分选项菜单
|
||||
&.issue.view .issue-content-right .ui.dropdown .scrolling.menu {
|
||||
.item {
|
||||
&.active,
|
||||
&.selected,
|
||||
&:hover {
|
||||
&:after {
|
||||
content: "";
|
||||
${activeItemAfterStyle}
|
||||
}
|
||||
}
|
||||
.item:hover:after {
|
||||
content: "";
|
||||
${activeItemAfterStyle}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
// Made by Luting ^-^
|
||||
.page-content.repository.releases {
|
||||
h2 .item {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
#release-list .release-entry {
|
||||
.meta {
|
||||
gap: 2px;
|
||||
padding-top: 24px;
|
||||
padding-right: 40px;
|
||||
text-align: left;
|
||||
min-width: 0;
|
||||
flex: 0.125;
|
||||
|
||||
a.muted {
|
||||
color: #9198a1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
|
||||
svg {
|
||||
margin-right: 8px !important;
|
||||
}
|
||||
|
||||
svg.tw-mr-1.svg.octicon-tag {
|
||||
margin-top: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.js-branch-tag-selector {
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.segment.detail {
|
||||
p.text.grey {
|
||||
margin: 16px 0;
|
||||
|
||||
.time {
|
||||
color: #f0f6fc;
|
||||
}
|
||||
}
|
||||
|
||||
.markup {
|
||||
> *:first-child {
|
||||
margin-top: 16px !important;
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
margin-bottom: 16px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ui.small.primary.button {
|
||||
background-color: var(--color-button);
|
||||
|
||||
&:hover {
|
||||
background-color: #262c36;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page-content.repository.tags {
|
||||
.tag-list-row .download a.muted:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.page-content.repository.tags,
|
||||
.page-content.repository.releases {
|
||||
.ui.small.menu {
|
||||
.active.item {
|
||||
color: #fff;
|
||||
background: #1f6feb !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
101
styles/components/release.tsx
Normal file
101
styles/components/release.tsx
Normal file
@@ -0,0 +1,101 @@
|
||||
import { css, themeVars } from "src/types/vars";
|
||||
|
||||
// release 顶部栏左侧按钮组
|
||||
export const releaseTagMenu = css`
|
||||
.page-content.repository {
|
||||
&.releases,
|
||||
&.tags {
|
||||
h2.small.menu {
|
||||
.item {
|
||||
background-color: unset !important;
|
||||
font-weight: 500;
|
||||
&.active {
|
||||
background: ${themeVars.github.bgColor.accent.emphasis} !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
// 标签页样式
|
||||
export const tags = css`
|
||||
.page-content.repository.tags {
|
||||
// 标签的选项取消下划线
|
||||
.tag-list-row {
|
||||
.tag-list-row-title {
|
||||
line-height: 1.5;
|
||||
}
|
||||
.download {
|
||||
color: ${themeVars.color.text.light.num1};
|
||||
font-size: 12px;
|
||||
a.muted:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
// 发布页样式
|
||||
export const releases = css`
|
||||
.page-content.repository.releases {
|
||||
#release-list .release-entry {
|
||||
// 左侧发布元信息
|
||||
.meta {
|
||||
gap: 0.5rem;
|
||||
padding-top: 24px;
|
||||
padding-right: 40px;
|
||||
text-align: left;
|
||||
min-width: 0;
|
||||
flex: 0.125;
|
||||
a.muted {
|
||||
color: ${themeVars.color.text.light.num1};
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
svg {
|
||||
margin-right: 8px !important;
|
||||
}
|
||||
svg.tw-mr-1.svg.octicon-tag {
|
||||
margin-top: 1px;
|
||||
}
|
||||
}
|
||||
.js-branch-tag-selector {
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
// 右侧发布详细信息
|
||||
.segment.detail {
|
||||
.svg {
|
||||
color: ${themeVars.color.text.light.num1};
|
||||
}
|
||||
p.text.grey {
|
||||
margin: 16px 0;
|
||||
.time {
|
||||
color: ${themeVars.color.text.self};
|
||||
}
|
||||
}
|
||||
.markup {
|
||||
> *:first-child {
|
||||
margin-top: 16px !important;
|
||||
}
|
||||
> *:last-child {
|
||||
margin-bottom: 16px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 顶部右侧按钮组
|
||||
.ui.small.button {
|
||||
background-color: ${themeVars.color.button};
|
||||
padding: 5px 16px;
|
||||
min-height: auto;
|
||||
line-height: 20px;
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.hover.self};
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user