Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
1595c7d3
Commit
1595c7d3
authored
Jul 03, 2018
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch theme completion
parent
e89dadee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
scripts/AddlocalIdentName.js
scripts/AddlocalIdentName.js
+4
-1
src/components/GlobalHeader/index.less
src/components/GlobalHeader/index.less
+4
-2
src/components/SettingDarwer/index.js
src/components/SettingDarwer/index.js
+1
-0
src/pages/Dashboard/Analysis.less
src/pages/Dashboard/Analysis.less
+3
-4
No files found.
scripts/AddlocalIdentName.js
View file @
1595c7d3
...
@@ -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
;
}
}
...
...
src/components/GlobalHeader/index.less
View file @
1595c7d3
...
@@ -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;
}
}
}
}
...
...
src/components/SettingDarwer/index.js
View file @
1595c7d3
...
@@ -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
();
...
...
src/pages/Dashboard/Analysis.less
View file @
1595c7d3
...
@@ -119,10 +119,9 @@
...
@@ -119,10 +119,9 @@
position: relative;
position: relative;
right: 6px;
right: 6px;
}
}
}
.ant-tabs-tab-active h4 {
color: @primary-color;
:global(.ant-tabs-tab-active) h4 {
}
color: @primary-color;
}
}
}
}
...
...
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