fix(site): some style

This commit is contained in:
afc163 2016-03-22 19:19:37 +08:00
parent 235de43605
commit 84f904d03c
2 changed files with 63 additions and 52 deletions

View File

@ -10,7 +10,7 @@ body {
} }
body { body {
font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",SimSun,sans-serif; font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",SimSun,sans-serif;
line-height: 1.5; line-height: 1.5;
color: #666; color: #666;
font-size: 14px; font-size: 14px;
@ -19,6 +19,10 @@ body {
overflow-x: hidden; overflow-x: hidden;
} }
a {
transition: color .3s ease;
}
.main-wrapper { .main-wrapper {
background: #fff; background: #fff;
width: 92%; width: 92%;
@ -42,7 +46,9 @@ body {
.sidebar { .sidebar {
padding-bottom: 50px; padding-bottom: 50px;
&.ant-menu-inline > .ant-menu-item { &.ant-menu-inline .ant-menu-submenu-title h4,
&.ant-menu-inline > .ant-menu-item,
&.ant-menu-inline .ant-menu-item a {
font-size: 14px; font-size: 14px;
} }

View File

@ -1,78 +1,83 @@
@header-height: 80px; @header-height: 80px;
#header { #header {
animation: xRightMatrix .5s ease-out; transition: opacity 0.5s;
transition: opacity 0.5S; background: #fff;
border-bottom: 1px solid #eee;
background: #fff; height: @header-height;
border-bottom: 1px solid #eee; margin-bottom: 24px;
height: @header-height; padding: 0 4%;
margin-bottom: 24px; width: 100%;
padding: 0 4%;
width: 100%;
} }
#logo { #logo {
animation: xLeftMatrix .5s ease-out; float: left;
transition: margin 0.3s cubic-bezier(0.075, 0.82, 0.165, 1) 0s, width 0.3s cubic-bezier(0.075, 0.82, 0.165, 1) 0s, height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1) 0s; height: 60px;
margin: 20px 45px 20px 0;
}
float: left;
height: 60px;
margin: 20px 45px 20px 0;
}
#logo img { #logo img {
height: 40px; height: 40px;
width: 40px; width: 40px;
margin-right: 8px; margin-right: 8px;
} }
#logo span { #logo span {
color: #6EB4E0; color: #6EB4E0;
float: right; float: right;
font-size: 14px; font-size: 14px;
font-family: "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif; font-family: "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
text-transform: uppercase; text-transform: uppercase;
} }
#search-box { #search-box {
border-left: 1px solid #EBEDEE; border-left: 1px solid #EBEDEE;
float: left; float: left;
height: 22px; height: 22px;
padding-left: 30px; padding-left: 30px;
margin: 32px auto 0; margin: 32px auto 0;
} }
#search-box .ant-select { #search-box .ant-select {
font-size: 14px; font-size: 14px;
margin-top: -2px; margin-top: -2px;
width: 230px; width: 230px;
} }
#search-box .ant-select-selection { #search-box .ant-select-selection {
border: 0; border: 0;
box-shadow: none; box-shadow: none;
} }
#nav { #nav {
border: 0; border: 0;
float: right; float: right;
font-size: 14px; font-size: 14px;
} }
#nav li { #nav li {
height: @header-height; height: @header-height;
line-height: @header-height; line-height: @header-height;
width: 86px; width: 72px;
text-align: center; text-align: center;
border-bottom-width: 3px;
&.ant-menu-item-selected a {
color: #2db7f5;
font-weight: bold;
}
} }
.ant-component-decs { .ant-component-decs {
font-size: 12px; font-size: 12px;
position: absolute; position: absolute;
top: 9px; top: 9px;
color: #aaa; color: #aaa;
right: 16px; right: 16px;
} }
.ant-select-combobox .ant-select-search__field:focus { .ant-select-combobox .ant-select-search__field:focus {
box-shadow: none; box-shadow: none;
} }