美化头部样式阴影
This commit is contained in:
@ -1,27 +1,31 @@
|
||||
@import '../baseStyle.less';
|
||||
|
||||
.header {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: @width;
|
||||
margin: 0 auto;
|
||||
.logo {
|
||||
height: 45px;
|
||||
.header-container {
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
.header {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: @width;
|
||||
margin: 0 auto;
|
||||
.logo {
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.header-menu {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
.ant-menu-horizontal {
|
||||
line-height: 58px;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
.user {
|
||||
margin-left: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.header-menu {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
.ant-menu-horizontal {
|
||||
line-height: 58px;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
.user {
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
@ -7,9 +7,11 @@ import './Header.less';
|
||||
import HeaderMenu from './HeaderMenu';
|
||||
const Header: React.FC = (props) => {
|
||||
return (
|
||||
<div className="header">
|
||||
<img className='logo' src={LogoImg} alt="logo" />
|
||||
<HeaderMenu />
|
||||
<div className="header-container">
|
||||
<div className="header">
|
||||
<img className="logo" src={LogoImg} alt="logo" />
|
||||
<HeaderMenu />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user