header.css 1.82 KB
/***************************************************
* feature  :  全局头部,提供默认 深色(绿底白字) & 浅色(白底黑字)主题;
* update   :  2015/02/03;
* use      :  .m-header;
* extend   :  .header-*;
* example  :  <header class="m-header header-light"></header>;
* desc     :  默认为深色主题, 通过 .header-light 来引用浅色主题;
* feedback :  此处填入 issue, 并请附带以下信息[os_version, browser_version, page_path, issue_description]
*          -  demo => [windows 7, IE 8, http://diligrp.com/icon.html, 在不定height下未能垂直居中];
****************************************************/
.m-header {
  z-index: 5;
  color: #FFF;
  color: #ffffff;
  background-color: #23AC38;
  position: relative;
}
.m-header .head {
  padding: 0 50px;
  box-sizing: border-box;
  height: 44px;
  text-align: center;
}
.m-header .head h1 {
  display: inline-block;
  vertical-align: middle;
  line-height: 44px;
  font-weight: normal;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.m-header .lt-bar,
.m-header .rt-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  min-width: 44px;
  line-height: 44px;
  height: 100%;
  text-align: center;
  cursor: pointer;
  z-index: 1;
}
.m-header .lt-bar {
  float: left;
}
.m-header .lt-bar.text {
  padding-left: 10px;
  text-align: left;
}
.m-header .rt-bar {
  float: right;
  left: auto;
  right: 0;
}
.m-header .rt-bar.text {
  padding-right: 10px;
  text-align: right;
}
.m-header .text {
  text-align: center;
  line-height: 44px;
  font-size: 15px;
  color: #FFF;
}
.m-header.header-light {
  background-color: #FFF;
  color: #666;
}
.m-header.header-light .text {
  color: #666;
}
.m-header.header-light .m-input {
  color: #333;
}
.m-header.header-light .m-input::-webkit-input-placeholder {
  color: #999;
}