Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
d1e0e8bc
Commit
d1e0e8bc
authored
Jul 23, 2021
by
无木
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(dark-theme): fixed `TreeSelect` & `DatePicker` theme
修复黑暗主题下的组件样式 fixed: #955
parent
d3f08e37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
theme.ts
build/vite/plugin/theme.ts
+4
-1
theme.less
src/design/theme.less
+8
-0
No files found.
build/vite/plugin/theme.ts
View file @
d1e0e8bc
...
@@ -33,8 +33,10 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
...
@@ -33,8 +33,10 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
return
s
;
return
s
;
case
'
.ant-steps-item-icon > .ant-steps-icon
'
:
case
'
.ant-steps-item-icon > .ant-steps-icon
'
:
return
s
;
return
s
;
case
'
.ant-select-item-option-selected:not(.ant-select-item-option-disabled)
'
:
return
s
;
}
}
return
`[data-theme]
${
s
}
`
;
return
s
.
startsWith
(
'
[data-theme
'
)
?
s
:
`[data-theme]
${
s
}
`
;
},
},
colorVariables
:
[...
getThemeColors
(),
...
colors
],
colorVariables
:
[...
getThemeColors
(),
...
colors
],
}),
}),
...
@@ -49,6 +51,7 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
...
@@ -49,6 +51,7 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
darkModifyVars
:
{
darkModifyVars
:
{
...
generateModifyVars
(
true
),
...
generateModifyVars
(
true
),
'
text-color
'
:
'
#c9d1d9
'
,
'
text-color
'
:
'
#c9d1d9
'
,
'
primary-1
'
:
'
rgb(255 255 255 / 8%)
'
,
'
text-color-base
'
:
'
#c9d1d9
'
,
'
text-color-base
'
:
'
#c9d1d9
'
,
'
component-background
'
:
'
#151515
'
,
'
component-background
'
:
'
#151515
'
,
'
heading-color
'
:
'
rgb(255 255 255 / 65%)
'
,
'
heading-color
'
:
'
rgb(255 255 255 / 65%)
'
,
...
...
src/design/theme.less
View file @
d1e0e8bc
...
@@ -37,4 +37,12 @@ html[data-theme='light'] {
...
@@ -37,4 +37,12 @@ html[data-theme='light'] {
box-shadow: 1px 0 0 0 #434343, 0 1px 0 0 #434343, 1px 1px 0 0 #434343, 1px 0 0 0 #434343 inset,
box-shadow: 1px 0 0 0 #434343, 0 1px 0 0 #434343, 1px 1px 0 0 #434343, 1px 0 0 0 #434343 inset,
0 1px 0 0 #434343 inset;
0 1px 0 0 #434343 inset;
}
}
.ant-calendar-selected-day .ant-calendar-date {
color: rgba(0, 0, 0, 0.8);
}
.ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected {
color: rgba(0, 0, 0, 0.9);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment