Commit 1595c7d3 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

Switch theme completion

parent e89dadee
...@@ -24,13 +24,16 @@ const LocalIdentNameplugin = postcss.plugin('LocalIdentNameplugin', ({ localIden ...@@ -24,13 +24,16 @@ const LocalIdentNameplugin = postcss.plugin('LocalIdentNameplugin', ({ localIden
return; return;
} }
// εˆ ι™€ :global(className) 保留 className // εˆ ι™€ :global(className) 保留 className
if (item.selector && !item.selector.includes('(')) { if (item.selector) {
if (item.selector.includes(':global(')) { if (item.selector.includes(':global(')) {
// converted :global(.classNameοΌ‰ // converted :global(.classNameοΌ‰
const className = item.selector.match(/:global\((\S*)\)/)[1]; const className = item.selector.match(/:global\((\S*)\)/)[1];
item.selector = className; item.selector = className;
return; return;
} }
if (item.selector.includes('(')) {
return;
}
const className = item.selector.replace(/\./g, `.${localIdentName}`); const className = item.selector.replace(/\./g, `.${localIdentName}`);
item.selector = className; item.selector = className;
} }
......
...@@ -56,8 +56,10 @@ i.trigger { ...@@ -56,8 +56,10 @@ i.trigger {
vertical-align: middle; vertical-align: middle;
color: @text-color; color: @text-color;
} }
&:hover, &:hover {
&:global(.ant-popover-open) { background: @primary-1;
}
:global(&.ant-popover-open) {
background: @primary-1; background: @primary-1;
} }
} }
......
...@@ -133,6 +133,7 @@ class SettingDarwer extends PureComponent { ...@@ -133,6 +133,7 @@ class SettingDarwer extends PureComponent {
window.less window.less
.modifyVars({ .modifyVars({
'@primary-color': color, '@primary-color': color,
'@input-hover-border-color': color,
}) })
.then(() => { .then(() => {
hideMessage(); hideMessage();
......
...@@ -119,11 +119,10 @@ ...@@ -119,11 +119,10 @@
position: relative; position: relative;
right: 6px; right: 6px;
} }
} .ant-tabs-tab-active h4 {
:global(.ant-tabs-tab-active) h4 {
color: @primary-color; color: @primary-color;
} }
}
} }
.trendText { .trendText {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment