ant-design/site/theme/template/Layout/Header/index.less
二货机器人 b926c535ea
docs: site build script update (#32984)
* chore: rm color-less

* refactor: MV theme to variable

* docs: fix header

* chore: clean up

* chore: enable esbuild
2021-11-23 18:57:59 +08:00

55 lines
926 B
Plaintext

@import '../../../static/theme.less';
@import (reference) '../../../../../components/style/themes/index.less';
@header-height: 64px;
@menu-item-border: 2px;
@mobile-max-width: 767.99px;
#header {
position: relative;
z-index: 10;
max-width: 100%;
background: @component-background;
box-shadow: 0 2px 8px rgba(240, 241, 242, 65);
.menu-row {
display: flex;
align-items: center;
margin: 0;
> * {
flex: none;
margin: 0 12px 0 0;
&:last-child {
margin-right: 40px;
}
}
}
// Adjust github button style
.ant-row-rtl {
.menu-row {
> * {
&:last-child {
margin-right: 12px;
margin-left: 40px;
}
}
}
}
// Buttons
.header-button {
color: @text-color;
border-color: @border-color-base;
}
}
@media only screen and (max-width: @mobile-max-width) {
#header {
text-align: center;
}
}