Skip to content

Commit

Permalink
feat(input): [input] dark theme adaptation
Browse files Browse the repository at this point in the history
  • Loading branch information
MomoPoppy committed Mar 4, 2025
1 parent aff176f commit a5326e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/theme/src/tall-storage/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
background-color: var(--tv-TallStorage-bg-color);
box-shadow: var(--tv-TallStorage-box-shadow);
border-radius: var(--tv-TallStorage-border-radius);
overflow: hidden;
width: 100%;
box-sizing: border-box;
z-index: 10;
Expand All @@ -47,7 +48,7 @@
&:hover,
&.item-hover {
cursor: pointer;
background-color: var(--tv-TallStorage-item-bg-color);
background-color: var(--tv-TallStorage-item-bg-color-hover);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/theme/src/tall-storage/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

.inject-TallStorage-vars() {
// 背景颜色
--tv-TallStorage-bg-color: var(--tv-color-bg-secondary);
--tv-TallStorage-bg-color: var(--tv-color-bg-2);
// 圆角
--tv-TallStorage-border-radius: var(--tv-border-radius-md);
// 选项高度
--tv-TallStorage-item-height: var(--tv-size-height-md);
// 选项背景颜色
--tv-TallStorage-item-bg-color: var(--tv-color-bg);
// 选项悬浮背景颜色
--tv-TallStorage-item-bg-color-hover: var(--tv-color-bg-hover);
// 阴影
--tv-TallStorage-box-shadow: var(--tv-shadow-2-down);
}

0 comments on commit a5326e8

Please sign in to comment.