mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 21:20:31 +00:00
修复选择输入框的样式和拥有者按钮高度
This commit is contained in:
2
.github/release.md
vendored
2
.github/release.md
vendored
@@ -7,3 +7,5 @@
|
|||||||
## 🐞 Fix
|
## 🐞 Fix
|
||||||
|
|
||||||
- 修复顶部导航栏的菜单按钮悬浮颜色
|
- 修复顶部导航栏的菜单按钮悬浮颜色
|
||||||
|
- 修复选择输入框的样式和选中时的背景色
|
||||||
|
- 修复创建仓库时拥有者按钮的高度
|
||||||
@@ -58,6 +58,7 @@ export const github = {
|
|||||||
* @clone `clone` 克隆地址框被选中时的边框颜色
|
* @clone `clone` 克隆地址框被选中时的边框颜色
|
||||||
* @issue `comment` 评论框被选中时的边框颜色
|
* @issue `comment` 评论框被选中时的边框颜色
|
||||||
* @menu `verticalMenu` 垂直菜单项激活时左侧的伪元素颜色
|
* @menu `verticalMenu` 垂直菜单项激活时左侧的伪元素颜色
|
||||||
|
* @dropdown `selectionDropdown` 选择输入框的内部边框颜色
|
||||||
*/
|
*/
|
||||||
emphasis: null,
|
emphasis: null,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -83,8 +83,9 @@ export const dropdown = css`
|
|||||||
|
|
||||||
// 选择框的下拉菜单看起来像普通按钮
|
// 选择框的下拉菜单看起来像普通按钮
|
||||||
export const selectionDropdown = css`
|
export const selectionDropdown = css`
|
||||||
.ui.selection.dropdown,
|
// 排除可以选择的输入搜索框和创建仓库的拥有者
|
||||||
.ui.selection.dropdown.active {
|
.ui.selection.dropdown:not(.search):not(.ellipsis-text-items),
|
||||||
|
.ui.selection.dropdown.active:not(.search):not(.ellipsis-text-items) {
|
||||||
background-color: ${themeVars.color.button};
|
background-color: ${themeVars.color.button};
|
||||||
border-color: ${themeVars.color.light.border};
|
border-color: ${themeVars.color.light.border};
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
@@ -104,6 +105,25 @@ export const selectionDropdown = css`
|
|||||||
${activeItemAfterStyle};
|
${activeItemAfterStyle};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 这个按钮项目前只在创建仓库的拥有者
|
||||||
|
// 不实现伪元素, 因为 .item 设置溢出的元素会被截断
|
||||||
|
.ui.selection.dropdown.ellipsis-text-items,
|
||||||
|
.ui.selection.dropdown.activeellipsis-text-items {
|
||||||
|
&:focus {
|
||||||
|
background: ${themeVars.color.button};
|
||||||
|
border-color: ${themeVars.color.light.border};
|
||||||
|
}
|
||||||
|
&:hover {
|
||||||
|
background: ${themeVars.color.hover.self};
|
||||||
|
border-color: ${themeVars.color.light.border};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 选择输入框效果和输入框效果一样, 但不修改背景色
|
||||||
|
.ui.selection.dropdown.active.search {
|
||||||
|
// 向内部添加一个 1px 的边框
|
||||||
|
box-shadow: inset 0 0 0 1px ${themeVars.github.borderColor.accent.emphasis};
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
// 排除一些小按钮, 例如软件包类型, 通常相邻有元素
|
// 排除一些小按钮, 例如软件包类型, 通常相邻有元素
|
||||||
.ui.selection.dropdown.active:not(.small) {
|
.ui.selection.dropdown.active:not(.small) {
|
||||||
border-bottom-left-radius: ${otherThemeVars.border.radius} !important;
|
border-bottom-left-radius: ${otherThemeVars.border.radius} !important;
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ export const input = css`
|
|||||||
input,
|
input,
|
||||||
textarea,
|
textarea,
|
||||||
.ui.input input,
|
.ui.input input,
|
||||||
.ui.form input:not([type]),
|
// 排除可以选择的输入搜索框
|
||||||
|
.ui.form input:not([type]):not(.search),
|
||||||
.ui.form select,
|
.ui.form select,
|
||||||
.ui.form textarea,
|
.ui.form textarea,
|
||||||
.ui.form input[type="date"],
|
.ui.form input[type="date"],
|
||||||
|
|||||||
@@ -38,7 +38,8 @@ export const radius = css`
|
|||||||
&.table,
|
&.table,
|
||||||
&.segment,
|
&.segment,
|
||||||
&.segments,
|
&.segments,
|
||||||
&.grid.segment &.selection.dropdown,
|
&.grid.segment,
|
||||||
|
&.selection.dropdown,
|
||||||
&.horizontal.segments,
|
&.horizontal.segments,
|
||||||
&.active.empty.selection.dropdown {
|
&.active.empty.selection.dropdown {
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
|
|||||||
Reference in New Issue
Block a user