Commit 1595c7d3 authored by 陈帅's avatar 陈帅

Switch theme completion

parent e89dadee
......@@ -24,13 +24,16 @@ const LocalIdentNameplugin = postcss.plugin('LocalIdentNameplugin', ({ localIden
return;
}
// 删除 :global(className) 保留 className
if (item.selector && !item.selector.includes('(')) {
if (item.selector) {
if (item.selector.includes(':global(')) {
// converted :global(.className)
const className = item.selector.match(/:global\((\S*)\)/)[1];
item.selector = className;
return;
}
if (item.selector.includes('(')) {
return;
}
const className = item.selector.replace(/\./g, `.${localIdentName}`);
item.selector = className;
}
......
......@@ -56,8 +56,10 @@ i.trigger {
vertical-align: middle;
color: @text-color;
}
&:hover,
&:global(.ant-popover-open) {
&:hover {
background: @primary-1;
}
:global(&.ant-popover-open) {
background: @primary-1;
}
}
......
......@@ -133,6 +133,7 @@ class SettingDarwer extends PureComponent {
window.less
.modifyVars({
'@primary-color': color,
'@input-hover-border-color': color,
})
.then(() => {
hideMessage();
......
......@@ -119,10 +119,9 @@
position: relative;
right: 6px;
}
}
:global(.ant-tabs-tab-active) h4 {
color: @primary-color;
.ant-tabs-tab-active h4 {
color: @primary-color;
}
}
}
......
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