m_header_search.css
2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/***************************************************
* feature : 搜索功能头部;
* update : 2015/02/03;
* use : 待改进;
* extend : ;
* example : ;
* desc : ;
* feedback : 此处填入 issue, 并请附带以下信息[os_version, browser_version, page_path, issue_description]
* - demo => [windows 7, IE 8, http://diligrp.com/icon.html, 在不定height下未能垂直居中];
****************************************************/
/***************************************************
* feature : 变量配置;
* update : 2015/02/05;
* use : ;
* extend : ;
* example : ;
* desc : ;
* feedback : 此处填入 issue, 并请附带以下信息[os_version, browser_version, page_path, issue_description]
* - demo => [windows 7, IE 8, http://diligrp.com/icon.html, 在不定height下未能垂直居中];
****************************************************/
.header {
height: 44px;
background-color: #66cc22;
}
.header .header-home {
position: relative;
padding: 7px 10px 7px 55px;
}
.header .icon-arrow {
display: inline-block;
vertical-align: middle;
width: 12px;
height: 12px;
background: url('../../images/icon.png') -121px -203px no-repeat;
background-size: 150px;
}
.header .logo {
position: absolute;
left: 0;
top: 0;
width: 25px;
height: 44px;
background: url('../../images/icon.png') -125px 11px no-repeat;
background-size: 150px;
margin: 0 15px;
}
.header .h-search {
background-color: #55bb22;
border-radius: 3px;
height: 30px;
line-height: 30px;
color: #eee;
text-align: center;
}
.header .h-search .icon-search {
display: inline-block;
vertical-align: middle;
width: 20px;
height: 20px;
background: url('../../images/icon.png') -59px -140px no-repeat;
background-size: 150px;
}
.header .head {
height: 44px;
box-sizing: border-box;
text-align: center;
}
.header h1 {
display: inline-block;
font-weight: normal;
font-size: 18px;
vertical-align: middle;
line-height: 44px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
color: #ffffff;
}
.header .m-icon {
width: 42px;
height: 44px;
background: url('../../images/icon.png') no-repeat;
background-size: 150px;
cursor: pointer;
text-align: left;
text-indent: -9999px;
position: absolute;
top: 0;
}
.header .lt-bar {
left: 0;
}
.header .rt-bar {
right: 0;
width: 42px;
height: 44px;
line-height: 44px;
font-size: 14px;
cursor: pointer;
text-align: left;
color: #fff;
position: absolute;
top: 0;
}
.header .icon-back {
background-position: -78px -158px;
}
.header .icon-more {
background-position: 11px -268px;
}