ant-design/site/theme/static/header.less

147 lines
2.5 KiB
Plaintext
Raw Normal View History

@header-height: 64px;
2016-02-29 14:08:40 +08:00
#header {
2016-03-22 19:19:37 +08:00
transition: opacity 0.5s;
background: #fff;
box-shadow: 0 2px 8px rgba(240, 241, 242, 65);
position: relative;
z-index: 10;
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;
}
2016-02-29 14:08:40 +08:00
}
#logo {
overflow: hidden;
padding-left: 40px;
2016-03-22 19:19:37 +08:00
float: left;
height: @header-height;
line-height: @header-height;
text-decoration: none;
2016-03-22 19:19:37 +08:00
img {
height: 28px;
margin-right: 16px;
}
span {
float: right;
font-size: 14px;
font-family: 'PingFang SC', 'Raleway', 'Hiragino Sans GB', sans-serif;
height: @header-height;
line-height: @header-height;
text-transform: uppercase;
}
2016-02-29 14:08:40 +08:00
}
#search-box {
2017-02-26 15:41:50 +08:00
border-left: 1px solid #ebedee;
2016-03-22 19:19:37 +08:00
float: left;
height: 22px;
2016-04-07 15:29:54 +08:00
line-height: 22px;
padding-left: 16px;
2017-11-28 11:17:38 +08:00
margin: 22px auto 0;
}
#search-box .anticon {
color: #ced4d9;
position: relative;
top: 0.5px;
2016-02-29 14:08:40 +08:00
}
2016-03-22 19:19:37 +08:00
2016-02-29 14:08:40 +08:00
#search-box .ant-select {
2016-03-22 19:19:37 +08:00
font-size: 14px;
margin-top: -5px;
2017-02-21 23:26:10 +08:00
width: 200px;
2016-02-29 14:08:40 +08:00
}
#search-box .ant-select-selection {
2016-03-22 19:19:37 +08:00
border: 0;
box-shadow: none;
2016-02-29 14:08:40 +08:00
}
#search-box .ant-input {
border: 0;
box-shadow: none;
}
.version {
2016-04-25 12:07:15 +08:00
float: right;
margin-top: 20px;
margin-left: 16px;
margin-right: 40px;
}
2016-02-29 14:08:40 +08:00
#nav {
2016-03-22 19:19:37 +08:00
border: 0;
float: right;
font-size: 14px;
2017-03-31 13:45:16 +08:00
font-family: Lato, @font-family;
2016-02-29 14:08:40 +08:00
}
2016-03-22 19:19:37 +08:00
#nav {
&.ant-menu-horizontal {
border-bottom: none;
& > .ant-menu-item {
height: @header-height;
line-height: @header-height;
min-width: 72px;
border-top: 2px solid transparent;
&:hover {
border-top: 2px solid @primary-color;
border-bottom: 2px solid transparent;
}
}
2016-03-22 19:19:37 +08:00
& > .ant-menu-item-selected {
border-top: 2px solid @primary-color;
border-bottom: 2px solid transparent;
a {
color: @primary-color;
}
}
}
& > .ant-menu-item {
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 {
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-07-26 19:45:55 +08:00
font-size: 14px;
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
font-size: 12px;
position: absolute;
color: #aaa;
right: 16px;
2016-03-23 22:36:26 +08:00
}
}