2019-12-26 15:27:52 +08:00
|
|
|
@import '../../../components/style/themes/default.less';
|
|
|
|
|
2017-11-27 15:36:58 +08:00
|
|
|
@header-height: 64px;
|
2017-12-01 11:24:05 +08:00
|
|
|
@menu-item-border: 2px;
|
2016-02-29 14:08:40 +08:00
|
|
|
|
|
|
|
#header {
|
2017-11-27 15:36:58 +08:00
|
|
|
position: relative;
|
|
|
|
z-index: 10;
|
2018-01-04 20:00:38 +08:00
|
|
|
max-width: 100%;
|
2019-12-23 11:46:40 +08:00
|
|
|
background: @component-background;
|
2019-02-15 10:48:07 +08:00
|
|
|
box-shadow: 0 2px 8px rgba(240, 241, 242, 65);
|
2016-03-23 22:36:26 +08:00
|
|
|
&.home-nav-bottom {
|
|
|
|
background: rgba(255, 255, 255, 0.9);
|
2017-02-26 15:41:50 +08:00
|
|
|
border-bottom-color: #ebedee;
|
2016-03-23 22:36:26 +08:00
|
|
|
.search {
|
2017-02-26 15:41:50 +08:00
|
|
|
border-left-color: #ebedee;
|
2016-03-23 22:36:26 +08:00
|
|
|
}
|
|
|
|
a {
|
2017-11-28 16:15:22 +08:00
|
|
|
color: @site-text-color;
|
2016-03-23 22:36:26 +08:00
|
|
|
}
|
|
|
|
}
|
2017-10-31 16:32:09 +08:00
|
|
|
|
|
|
|
.header-link {
|
2017-11-28 16:15:22 +08:00
|
|
|
color: @site-text-color;
|
2017-10-31 16:32:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.ant-menu-item-active .header-link {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
2019-12-26 15:27:52 +08:00
|
|
|
|
|
|
|
// ===================== Home Page =====================
|
|
|
|
&.home-header {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
max-width: 1200px;
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
background: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
#logo {
|
2020-01-03 19:09:48 +08:00
|
|
|
padding-right: 16px;
|
2020-01-03 20:25:58 +08:00
|
|
|
padding-left: 0;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
|
|
|
.page-wrapper-rtl & {
|
|
|
|
padding-right: 0;
|
2020-01-03 19:09:48 +08:00
|
|
|
padding-left: 16px;
|
2020-01-02 19:10:16 +08:00
|
|
|
}
|
2019-12-26 15:27:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.ant-menu {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
2020-01-02 19:10:16 +08:00
|
|
|
.header-lang-button,
|
|
|
|
.header-direction-button {
|
2019-12-26 15:27:52 +08:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#logo {
|
2016-03-22 19:19:37 +08:00
|
|
|
float: left;
|
2017-11-27 15:36:58 +08:00
|
|
|
height: @header-height;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding-left: 40px;
|
|
|
|
overflow: hidden;
|
2019-12-27 14:10:55 +08:00
|
|
|
color: @site-heading-color;
|
|
|
|
font-size: 18px;
|
|
|
|
font-family: Avenir, @font-family, sans-serif;
|
2019-12-27 18:08:41 +08:00
|
|
|
line-height: @header-height;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-decoration: none;
|
2019-12-27 14:10:55 +08:00
|
|
|
|
2020-01-02 19:10:16 +08:00
|
|
|
.ant-row-rtl & {
|
|
|
|
float: right;
|
|
|
|
padding-right: 40px;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
2017-11-27 15:36:58 +08:00
|
|
|
img {
|
2017-12-04 23:18:53 +08:00
|
|
|
position: relative;
|
2019-12-27 14:10:55 +08:00
|
|
|
top: -1.5px;
|
2019-12-27 18:08:41 +08:00
|
|
|
height: 32px;
|
|
|
|
margin-right: 16px;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
|
|
|
.ant-row-rtl & {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
2017-11-27 15:36:58 +08:00
|
|
|
}
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#search-box {
|
2016-03-22 19:19:37 +08:00
|
|
|
float: left;
|
|
|
|
height: 22px;
|
2017-11-28 11:17:38 +08:00
|
|
|
margin: 22px auto 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding-left: 16px;
|
|
|
|
line-height: 22px;
|
|
|
|
border-left: 1px solid @site-border-color-split;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
|
|
|
.ant-row-rtl & {
|
|
|
|
float: right;
|
|
|
|
padding-right: 16px;
|
|
|
|
padding-left: 0;
|
|
|
|
border-right: 1px solid @site-border-color-split;
|
|
|
|
border-left: none;
|
|
|
|
}
|
2017-11-27 15:36:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#search-box .anticon {
|
|
|
|
position: relative;
|
|
|
|
top: 0.5px;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: #ced4d9;
|
2016-02-29 14:08:40 +08:00
|
|
|
}
|
2016-03-22 19:19:37 +08:00
|
|
|
|
2017-12-29 12:02:22 +08:00
|
|
|
#search-box input {
|
2017-02-21 23:26:10 +08:00
|
|
|
width: 200px;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin-top: -5px;
|
|
|
|
font-size: 14px;
|
|
|
|
background: transparent;
|
2017-08-31 11:47:53 +08:00
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
2017-12-29 15:24:55 +08:00
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
color: #a3b1bf;
|
|
|
|
}
|
2017-08-31 11:47:53 +08:00
|
|
|
}
|
|
|
|
|
2017-12-01 20:27:44 +08:00
|
|
|
.header-lang-button,
|
2020-01-02 19:10:16 +08:00
|
|
|
.version,
|
|
|
|
.header-direction-button {
|
2016-04-25 12:07:15 +08:00
|
|
|
float: right;
|
2017-11-27 15:36:58 +08:00
|
|
|
margin-top: 20px;
|
2017-06-11 22:44:55 +08:00
|
|
|
margin-left: 16px;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2020-01-03 15:20:10 +08:00
|
|
|
#header .ant-row-rtl & {
|
2020-01-02 19:10:16 +08:00
|
|
|
float: left;
|
|
|
|
margin-right: 16px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2017-12-01 20:27:44 +08:00
|
|
|
}
|
|
|
|
|
2020-01-02 19:10:16 +08:00
|
|
|
.header-lang-button,
|
|
|
|
.header-direction-button {
|
2019-02-15 10:48:07 +08:00
|
|
|
margin-right: 40px;
|
2017-12-01 20:27:44 +08:00
|
|
|
color: @text-color;
|
|
|
|
border-color: @border-color-base;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2020-01-03 15:20:10 +08:00
|
|
|
#header .ant-row-rtl & {
|
2020-01-02 19:10:16 +08:00
|
|
|
margin-right: 16px;
|
2020-01-03 15:20:10 +08:00
|
|
|
margin-left: 16px;
|
2020-01-02 19:10:16 +08:00
|
|
|
}
|
2017-02-09 19:46:23 +08:00
|
|
|
}
|
|
|
|
|
2020-01-02 19:10:16 +08:00
|
|
|
.header-lang-button {
|
|
|
|
margin-right: 0;
|
|
|
|
|
2020-01-03 15:20:10 +08:00
|
|
|
#header .ant-row-rtl & {
|
2020-01-02 19:10:16 +08:00
|
|
|
margin-right: 16px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-01-03 15:20:10 +08:00
|
|
|
|
|
|
|
// Adjust github button style
|
|
|
|
.github-btn {
|
|
|
|
float: right;
|
|
|
|
height: auto;
|
|
|
|
margin: 20px 0 0 16px;
|
|
|
|
|
|
|
|
#header .ant-row-rtl & {
|
|
|
|
float: left;
|
|
|
|
|
|
|
|
.gh-count {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-btn {
|
|
|
|
height: auto;
|
|
|
|
padding: 1px 4px;
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
.gh-ico {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-count {
|
|
|
|
height: auto;
|
|
|
|
padding: 4px 8px;
|
|
|
|
font-weight: normal;
|
|
|
|
background: #fff;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-29 14:08:40 +08:00
|
|
|
#nav {
|
2016-03-22 19:19:37 +08:00
|
|
|
float: right;
|
|
|
|
font-size: 14px;
|
2019-01-28 16:01:25 +08:00
|
|
|
font-family: Avenir, @font-family, sans-serif;
|
2019-02-15 10:48:07 +08:00
|
|
|
border: 0;
|
2019-01-30 21:54:43 +08:00
|
|
|
|
2020-01-02 19:10:16 +08:00
|
|
|
.ant-row-rtl & {
|
|
|
|
float: left;
|
|
|
|
}
|
2017-11-27 15:36:58 +08:00
|
|
|
&.ant-menu-horizontal {
|
|
|
|
border-bottom: none;
|
|
|
|
|
2019-03-11 11:19:43 +08:00
|
|
|
& > .ant-menu-item,
|
|
|
|
& > .ant-menu-submenu {
|
2019-02-15 10:48:07 +08:00
|
|
|
min-width: 72px;
|
2017-11-27 15:36:58 +08:00
|
|
|
height: @header-height;
|
2017-12-01 20:27:44 +08:00
|
|
|
line-height: @header-height - @menu-item-border - 2px;
|
2017-12-01 11:24:05 +08:00
|
|
|
border-top: @menu-item-border solid transparent;
|
2017-11-27 15:36:58 +08:00
|
|
|
|
|
|
|
&:hover {
|
2017-12-01 11:24:05 +08:00
|
|
|
border-top: @menu-item-border solid @primary-color;
|
|
|
|
border-bottom: @menu-item-border solid transparent;
|
2017-11-27 15:36:58 +08:00
|
|
|
}
|
|
|
|
}
|
2016-03-22 19:19:37 +08:00
|
|
|
|
2019-03-11 11:19:43 +08:00
|
|
|
& > .ant-menu-submenu-open {
|
|
|
|
border-top: @menu-item-border solid @primary-color;
|
|
|
|
border-bottom: @menu-item-border solid transparent;
|
|
|
|
}
|
|
|
|
|
2017-11-27 15:36:58 +08:00
|
|
|
& > .ant-menu-item-selected {
|
2017-12-01 11:24:05 +08:00
|
|
|
border-top: @menu-item-border solid @primary-color;
|
|
|
|
border-bottom: @menu-item-border solid transparent;
|
2017-11-27 15:36:58 +08:00
|
|
|
a {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-11 11:19:43 +08:00
|
|
|
& > .ant-menu-item,
|
|
|
|
& > .ant-menu-submenu {
|
2017-11-27 15:36:58 +08:00
|
|
|
text-align: center;
|
2016-03-22 19:19:37 +08:00
|
|
|
}
|
2016-03-01 16:20:32 +08:00
|
|
|
}
|
|
|
|
|
2016-03-23 22:36:26 +08:00
|
|
|
.component-select {
|
|
|
|
&.ant-select-dropdown {
|
2019-02-15 10:48:07 +08:00
|
|
|
font-size: 14px;
|
2016-07-26 19:45:55 +08:00
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
2017-02-26 15:41:50 +08:00
|
|
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
|
2016-03-23 22:36:26 +08:00
|
|
|
}
|
|
|
|
.ant-select-dropdown-menu {
|
2016-07-26 19:45:55 +08:00
|
|
|
max-height: 200px;
|
2016-03-23 22:36:26 +08:00
|
|
|
}
|
|
|
|
.ant-select-dropdown-menu-item {
|
2016-07-26 19:45:55 +08:00
|
|
|
border-radius: 0 !important;
|
2016-03-23 22:36:26 +08:00
|
|
|
}
|
|
|
|
.ant-component-decs {
|
2016-07-26 19:45:55 +08:00
|
|
|
position: absolute;
|
|
|
|
right: 16px;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: #aaa;
|
|
|
|
font-size: 12px;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
|
|
|
.ant-row-rtl & {
|
|
|
|
right: auto;
|
|
|
|
left: 16px;
|
|
|
|
}
|
2016-03-23 22:36:26 +08:00
|
|
|
}
|
|
|
|
}
|
2019-12-26 15:27:52 +08:00
|
|
|
|
|
|
|
@media (max-width: @screen-sm-min) {
|
|
|
|
.github-btn {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-12-28 11:57:41 +08:00
|
|
|
|
|
|
|
#header.home-header {
|
|
|
|
.ant-row {
|
|
|
|
.ant-col {
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
a {
|
|
|
|
padding-right: 0;
|
2020-01-03 20:25:58 +08:00
|
|
|
padding-left: 0;
|
2019-12-28 11:57:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-26 15:27:52 +08:00
|
|
|
}
|