You've already forked gitea-banana-theme
banana v1
This commit is contained in:
@@ -8,6 +8,9 @@ export const label = css`
|
||||
&.ui.ui.ui {
|
||||
&.label {
|
||||
border-radius: 25px;
|
||||
padding: 5px 12px; // 增加内边距
|
||||
font-weight: 500; // 增加字体粗细
|
||||
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); // 添加过渡效果
|
||||
// 多个标签的组合标签的圆角修复
|
||||
&.scope-parent {
|
||||
.scope-left {
|
||||
@@ -27,42 +30,75 @@ export const label = css`
|
||||
background-color: unset;
|
||||
border: 1px solid ${themeVars.color.primary.self};
|
||||
color: ${themeVars.color.primary.self};
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.primary.dark.num1}; // 悬停时添加背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
/* 红色标签 */
|
||||
&.red {
|
||||
background-color: unset;
|
||||
border: 1px solid ${themeVars.github.borderColor.done.emphasis};
|
||||
color: ${themeVars.color.purple.self};
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.purple.dark.num1}; // 悬停时添加背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
/* 橙色标签 */
|
||||
&.orange {
|
||||
background-color: unset;
|
||||
border: 1px solid ${themeVars.github.borderColor.attention.emphasis};
|
||||
color: ${themeVars.color.yellow.self};
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.yellow.dark.num1}; // 悬停时添加背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
/* 黄色标签 */
|
||||
&.yellow {
|
||||
background-color: unset;
|
||||
border: 1px solid ${themeVars.github.borderColor.attention.emphasis};
|
||||
color: ${themeVars.color.orange.self};
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.orange.dark.num1}; // 悬停时添加背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
/* 黄绿色标签 */
|
||||
&.olive {
|
||||
background-color: unset;
|
||||
border: 1px solid ${themeVars.color.olive.self};
|
||||
color: ${themeVars.color.olive.self};
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.olive.dark.num1}; // 悬停时添加背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
/* 绿色标签 */
|
||||
&.green {
|
||||
background-color: unset;
|
||||
border: 1px solid ${themeVars.github.borderColor.success.emphasis};
|
||||
color: ${themeVars.color.green.self};
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.green.dark.num1}; // 悬停时添加背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
/* 紫色标签 */
|
||||
&.purple {
|
||||
background-color: unset;
|
||||
border: 1px solid ${themeVars.github.borderColor.done.emphasis};
|
||||
color: ${themeVars.color.purple.self};
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.purple.dark.num1}; // 悬停时添加背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
// 添加悬停效果
|
||||
&:hover:not(.primary):not(.red):not(.orange):not(.yellow):not(.olive):not(.green):not(.purple) {
|
||||
background-color: ${themeVars.color.hover.self}; // 悬停时添加背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -84,10 +120,14 @@ export const shaLabel = css`
|
||||
color: ${themeVars.color.text.light.num1};
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
padding: 4px 8px; // 增加内边距
|
||||
// 仪表盘页的提交 SHA 标签居中对齐
|
||||
margin-top: 2px;
|
||||
border-radius: 25px; // 增加圆角
|
||||
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); // 添加过渡效果
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.label.hoverBg};
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
// 验证提交 SHA 标签
|
||||
&.commit-is-signed {
|
||||
@@ -95,22 +135,26 @@ export const shaLabel = css`
|
||||
background-color: unset !important;
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.label.hoverBg} !important;
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
span.ui.label.commit-is-signed {
|
||||
padding: 3px 5px;
|
||||
margin-left: 5px;
|
||||
border-radius: 25px; // 增加圆角
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 验证提交附带的图标
|
||||
span.ui.label.commit-is-signed {
|
||||
border-radius: 25px; // 增加圆角
|
||||
// 验证信任
|
||||
&.sign-trusted {
|
||||
border: 1.5px solid ${themeVars.color.green.badge.self} !important;
|
||||
color: ${themeVars.color.green.badge.self} !important;
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.green.badge.hover.bg} !important;
|
||||
background-color: ${themeVars.color.green.badge.bg} !important;
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
// 验证未信任
|
||||
@@ -118,7 +162,8 @@ export const shaLabel = css`
|
||||
border: 1.5px solid ${themeVars.color.yellow.badge.self} !important;
|
||||
color: ${themeVars.color.yellow.badge.self} !important;
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.yellow.badge.hover.bg} !important;
|
||||
background-color: ${themeVars.color.yellow.badge.bg} !important;
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
// 验证未匹配
|
||||
@@ -126,7 +171,8 @@ export const shaLabel = css`
|
||||
border: 1.5px solid ${themeVars.color.orange.badge.self} !important;
|
||||
color: ${themeVars.color.orange.badge.self} !important;
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.orange.badge.hover.bg} !important;
|
||||
background-color: ${themeVars.color.orange.badge.bg} !important;
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
// 验证警告
|
||||
@@ -134,7 +180,8 @@ export const shaLabel = css`
|
||||
border: 1.5px solid ${themeVars.color.red.badge.self} !important;
|
||||
color: ${themeVars.color.red.badge.self} !important;
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.red.badge.hover.bg} !important;
|
||||
background-color: ${themeVars.color.red.badge.bg} !important;
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -147,12 +194,26 @@ export const taskStatusLabel = css`
|
||||
color: ${themeVars.color.success.text};
|
||||
border: 1px solid ${themeVars.color.success.border};
|
||||
background: ${themeVars.color.success.bg};
|
||||
border-radius: 25px; // 增加圆角
|
||||
padding: 5px 12px; // 增加内边距
|
||||
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); // 添加过渡效果
|
||||
&:hover {
|
||||
background: ${themeVars.color.success.bg}; // 悬停时改变背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
|
||||
&failure {
|
||||
color: ${themeVars.color.error.text};
|
||||
border: 1px solid ${themeVars.color.error.border};
|
||||
background: ${themeVars.color.error.bg.self};
|
||||
border-radius: 25px; // 增加圆角
|
||||
padding: 5px 12px; // 增加内边距
|
||||
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); // 添加过渡效果
|
||||
&:hover {
|
||||
background: ${themeVars.color.error.bg.self}; // 悬停时改变背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
|
||||
&running,
|
||||
@@ -160,6 +221,13 @@ export const taskStatusLabel = css`
|
||||
color: ${themeVars.color.info.text};
|
||||
border: 1px solid ${themeVars.color.info.border};
|
||||
background: ${themeVars.color.info.bg};
|
||||
border-radius: 25px; // 增加圆角
|
||||
padding: 5px 12px; // 增加内边距
|
||||
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); // 添加过渡效果
|
||||
&:hover {
|
||||
background: ${themeVars.color.info.bg}; // 悬停时改变背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
|
||||
&cancelled,
|
||||
@@ -167,6 +235,13 @@ export const taskStatusLabel = css`
|
||||
color: ${themeVars.color.warning.text};
|
||||
border: 1px solid ${themeVars.color.warning.border};
|
||||
background: ${themeVars.color.warning.bg};
|
||||
border-radius: 25px; // 增加圆角
|
||||
padding: 5px 12px; // 增加内边距
|
||||
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); // 添加过渡效果
|
||||
&:hover {
|
||||
background: ${themeVars.color.warning.bg}; // 悬停时改变背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -181,10 +256,16 @@ export const repoLabel = css`
|
||||
color: ${themeVars.color.text.light.num1};
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
padding: 3px 6px;
|
||||
padding: 4px 8px; // 增加内边距
|
||||
border-radius: 25px; // 增加圆角
|
||||
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); // 添加过渡效果
|
||||
&:hover {
|
||||
background-color: ${themeVars.color.hover.self}; // 悬停时添加背景色
|
||||
transform: translateY(-1px); // 轻微上移效果
|
||||
}
|
||||
}
|
||||
}
|
||||
.org-visibility span.ui.basic.label {
|
||||
font-size: 14px;
|
||||
}
|
||||
`;
|
||||
`;
|
||||
Reference in New Issue
Block a user