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
A
ant-design-pro
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
ant-design-pro
Commits
1cc97f56
Commit
1cc97f56
authored
Oct 14, 2018
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust Header style details
parent
0758cf42
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
15 deletions
+14
-15
src/components/GlobalHeader/index.less
src/components/GlobalHeader/index.less
+2
-2
src/components/SelectLang/index.js
src/components/SelectLang/index.js
+1
-1
src/components/SelectLang/index.less
src/components/SelectLang/index.less
+4
-0
src/components/TopNavHeader/index.js
src/components/TopNavHeader/index.js
+4
-8
src/components/TopNavHeader/index.less
src/components/TopNavHeader/index.less
+3
-4
No files found.
src/components/GlobalHeader/index.less
View file @
1cc97f56
...
...
@@ -4,7 +4,7 @@
.header {
height: 64px;
padding: 0
12px 0 0
;
padding: 0;
background: #fff;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
position: relative;
...
...
@@ -76,7 +76,7 @@ i.trigger {
margin: 20px 8px 20px 0;
color: @primary-color;
background: rgba(255, 255, 255, 0.85);
vertical-align:
middle
;
vertical-align:
top
;
}
}
}
...
...
src/components/SelectLang/index.js
View file @
1cc97f56
...
...
@@ -29,7 +29,7 @@ export default class SelectLang extends PureComponent {
<
/Menu
>
);
return
(
<
Dropdown
overlay
=
{
langMenu
}
>
<
Dropdown
overlay
=
{
langMenu
}
placement
=
"
bottomRight
"
>
<
Icon
type
=
"
global
"
className
=
{
classNames
(
styles
.
dropDown
,
className
)}
...
...
src/components/SelectLang/index.less
View file @
1cc97f56
...
...
@@ -14,4 +14,8 @@
font-size: 14px;
vertical-align: top;
line-height: 64px;
> svg {
position: relative;
top: 2px;
}
}
src/components/TopNavHeader/index.js
View file @
1cc97f56
...
...
@@ -5,17 +5,13 @@ import BaseMenu from '../SiderMenu/BaseMenu';
import
styles
from
'
./index.less
'
;
export
default
class
TopNavHeader
extends
PureComponent
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
maxWidth
:
(
props
.
contentWidth
===
'
Fixed
'
?
1200
:
window
.
innerWidth
)
-
330
-
165
-
4
-
36
,
state
=
{
maxWidth
:
undefined
,
};
}
static
getDerivedStateFromProps
(
props
)
{
return
{
maxWidth
:
(
props
.
contentWidth
===
'
Fixed
'
?
1200
:
window
.
innerWidth
)
-
330
-
165
-
4
-
36
,
maxWidth
:
(
props
.
contentWidth
===
'
Fixed
'
?
1200
:
window
.
innerWidth
)
-
280
-
165
-
40
,
};
}
...
...
src/components/TopNavHeader/index.less
View file @
1cc97f56
...
...
@@ -2,13 +2,12 @@
width: 100%;
transition: background 0.3s, width 0.2s;
height: 64px;
padding: 0 12px 0 0;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
position: relative;
:global {
.ant-menu-submenu.ant-menu-submenu-horizontal {
line-height: 64px;
height: 100%;
padding-top: 9px;
.ant-menu-submenu-title {
height: 100%;
}
...
...
@@ -24,7 +23,7 @@
&.wide {
max-width: 1200px;
margin: auto;
padding-left:
4px
;
padding-left:
0
;
}
.left {
flex: 1;
...
...
@@ -51,7 +50,7 @@
h1 {
color: #fff;
display: inline-block;
vertical-align:
middle
;
vertical-align:
top
;
font-size: 16px;
margin: 0 0 0 12px;
font-weight: 400;
...
...
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