mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-12-22 06:33:57 +00:00
优化 Diff/Actions 的三点菜单按钮样式
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
##### 更符合 GitHub 风格
|
##### 更符合 GitHub 风格
|
||||||
|
|
||||||
- 优化用户头像样式
|
- 优化用户头像样式
|
||||||
- 优化 Issue/PR 的评论菜单按钮样式
|
- 优化 Issue/PR/Diff/Actions 的三点菜单按钮样式
|
||||||
- 优化用户动态样式
|
- 优化用户动态样式
|
||||||
|
|
||||||
### 🐞 Fix
|
### 🐞 Fix
|
||||||
|
|||||||
@@ -194,6 +194,7 @@ export const github = {
|
|||||||
* @issue `issueList` 头部菜单左侧开启关闭菜单的悬停背景颜色
|
* @issue `issueList` 头部菜单左侧开启关闭菜单的悬停背景颜色
|
||||||
* @dashboard `dashboard` 仓库列表项目的悬停背景颜色
|
* @dashboard `dashboard` 仓库列表项目的悬停背景颜色
|
||||||
* @notification `notification` 通知列表的按钮悬停背景颜色
|
* @notification `notification` 通知列表的按钮悬停背景颜色
|
||||||
|
* @actions `actions` 列表页运行信息的三点操作按钮悬停背景颜色
|
||||||
*/
|
*/
|
||||||
hover: null,
|
hover: null,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -88,9 +88,10 @@ export const actions = css`
|
|||||||
border-radius: ${otherThemeVars.border.radius};
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
}
|
}
|
||||||
> .ui.dropdown.jump {
|
> .ui.dropdown.jump {
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
&:hover {
|
&:hover {
|
||||||
color: ${themeVars.color.primary.self};
|
background-color: ${themeVars.github.control.transparent.bgColor.hover};
|
||||||
}
|
}
|
||||||
.menu > .item:hover {
|
.menu > .item:hover {
|
||||||
color: ${themeVars.color.text.self} !important;
|
color: ${themeVars.color.text.self} !important;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { css, themeVars } from "src/types/vars";
|
import { css, otherThemeVars, themeVars } from "src/types/vars";
|
||||||
|
|
||||||
export const diff = css`
|
export const diff = css`
|
||||||
/* 折叠行多余的颜色 */
|
/* 折叠行多余的颜色 */
|
||||||
@@ -63,9 +63,16 @@ export const diff = css`
|
|||||||
}
|
}
|
||||||
// 操作按钮
|
// 操作按钮
|
||||||
.diff-file-header-actions {
|
.diff-file-header-actions {
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
&:hover {
|
||||||
|
background-color: ${themeVars.github.control.transparent.bgColor.hover};
|
||||||
|
}
|
||||||
|
.diff-header-popup-btn {
|
||||||
|
padding: 5px !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ export const releases = css`
|
|||||||
// 标题
|
// 标题
|
||||||
.release-list-title {
|
.release-list-title {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
gap: 16px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
// 提交信息
|
// 提交信息
|
||||||
p.text.grey {
|
p.text.grey {
|
||||||
@@ -140,13 +140,13 @@ export const releases = css`
|
|||||||
position: relative;
|
position: relative;
|
||||||
left: -16px;
|
left: -16px;
|
||||||
width: calc(100% + 32px);
|
width: calc(100% + 32px);
|
||||||
border-top-width: 1.5px;
|
border-top-width: 1px;
|
||||||
margin: 24px 0 16px 0;
|
margin: 24px 0 16px 0;
|
||||||
}
|
}
|
||||||
// 下载列表
|
// 下载列表
|
||||||
.download {
|
.download {
|
||||||
summary {
|
summary {
|
||||||
font-size: 18px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
&::marker {
|
&::marker {
|
||||||
|
|||||||
Reference in New Issue
Block a user