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

113 lines
1.9 KiB
Plaintext
Raw Normal View History

2016-02-29 14:08:40 +08:00
@header-height: 80px;
#header {
2016-03-22 19:19:37 +08:00
transition: opacity 0.5s;
background: #fff;
border-bottom: 1px solid #eee;
height: @header-height;
margin-bottom: 24px;
padding: 0 4%;
width: 100%;
2016-03-23 22:36:26 +08:00
&.home-nav-bottom {
background: rgba(255, 255, 255, 0.9);
border-bottom-color: #EBEDEE;
.search {
border-left-color: #EBEDEE;
}
a {
color: #666;
}
}
2016-02-29 14:08:40 +08:00
}
#logo {
2016-03-22 19:19:37 +08:00
float: left;
2016-04-07 15:29:54 +08:00
height: 80px;
line-height: 80px;
2016-02-29 14:08:40 +08:00
}
2016-03-22 19:19:37 +08:00
2016-02-29 14:08:40 +08:00
#logo img {
2016-04-07 15:29:54 +08:00
height: 80px;
line-height: 80px;
2016-03-22 19:19:37 +08:00
width: 40px;
margin-right: 8px;
2016-02-29 14:08:40 +08:00
}
2016-03-22 19:19:37 +08:00
2016-02-29 14:08:40 +08:00
#logo span {
2016-03-22 19:19:37 +08:00
float: right;
2016-05-11 00:24:00 +08:00
font-size: 16px;
font-family: 'Raleway', 'Hiragino Sans GB', sans-serif;
2016-04-07 15:29:54 +08:00
height: 80px;
line-height: 80px;
2016-03-22 19:19:37 +08:00
text-transform: uppercase;
2016-02-29 14:08:40 +08:00
}
#search-box {
2016-03-22 19:19:37 +08:00
border-left: 1px solid #EBEDEE;
float: left;
height: 22px;
2016-04-07 15:29:54 +08:00
line-height: 22px;
2016-03-22 19:19:37 +08:00
padding-left: 30px;
2016-04-07 15:29:54 +08:00
margin: 29px auto 0;
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;
2016-04-07 15:29:54 +08:00
margin-top: -3px;
2016-03-22 19:19:37 +08:00
width: 230px;
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
}
2016-10-07 14:33:08 +08:00
.lang {
2016-04-25 12:07:15 +08:00
float: right;
margin-top: 29px;
2016-05-17 14:10:35 +08:00
margin-left: 12px;
2016-04-25 12:07:15 +08:00
}
2016-02-29 14:08:40 +08:00
#nav {
2016-03-22 19:19:37 +08:00
border: 0;
float: right;
font-size: 14px;
2016-09-29 11:21:19 +08:00
font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
2016-02-29 14:08:40 +08:00
}
2016-03-22 19:19:37 +08:00
2016-02-29 14:08:40 +08:00
#nav li {
2016-03-22 19:19:37 +08:00
height: @header-height;
line-height: @header-height;
2016-04-18 16:38:07 +08:00
min-width: 72px;
2016-03-22 19:19:37 +08:00
text-align: center;
border-bottom-width: 3px;
&.ant-menu-item-selected a {
2016-11-13 18:58:02 +08:00
color: @primary-color;
2016-03-22 19:19:37 +08:00
font-weight: bold;
}
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;
box-shadow: 0 0 8px rgba(0,0,0,0.25);
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;
top: 9px;
color: #aaa;
right: 16px;
2016-03-23 22:36:26 +08:00
}
}