-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheaders.vue
139 lines (139 loc) · 4.45 KB
/
headers.vue
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<template>
<div class="headers-box">
<div class="headers-small-box">
<div class="headers-zhihu">
<img src="../images/logo2.png" alt="">
</div>
<div class="appheaders">
<a href="#" class="active">首页</a>
<a href="#">发现</a>
<a href="#">话题</a>
</div>
<div class="search-box" role="search">
<div class="inputbox">
<input type="text" placeholder="搜索你感兴趣的内容...">
</div>
<div class="problem">提问</div>
</div>
<div class="userInfo">
<div class="notifications"><img src="../images/notifications.png" alt=""></div>
<div class="messages"><img src="../images/messages.png" alt=""></div>
<div class="Personal-center"></div>
</div>
</div>
</div>
</template>
<style lang="less">
.headers-box{
height: 52px;
position: fixed;
z-index: 989;
top:0;
left: 0;
width:100%;
display: inline-block;
background:#fff;
.headers-small-box{
width:1000px;
height: 52px;
position: relative;
padding:0 16px;
margin:0 auto;
display: flex;
align-items:center;
.headers-zhihu{
width:65px;
height: 30px;
img{
width:100%;
height:100%;
}
}
.appheaders{
margin: 0 18px 0 27px;
height: 30px;
line-height:30px;
font-size:15px;
display:flex;
a{
flex:1;
text-decoration: none;
color:#8590a6;
padding:0 15px;
font-size:15px;
white-space:nowrap;
&:first-child{
padding-left:0;
}
&.active{
color:#333;
}
}
}
.search-box{
width:400px;
height:34px;
display:flex;
font-size:15px;
.inputbox{
width:326px;
height: 34px;
line-height:34px;
border:1px solid #e7eaf1;
position: relative;
background:#f7f8fa;
box-sizing:border-box;
border-radius:3px;
padding:4px 10px;
display: flex;
font-size:14px;
input{
line-height:24px;
height: 24px;
flex:1;
padding:0;
font-size:14px;
border:none;
outline: none;
resize:none;
overflow:hidden;
background:#f7f8fa;
}
}
.problem{
color:#fff;
font-size:14px;
background: #0f88ed;
padding:0 12px;
margin-left:16px;
line-height:30px;
border:1px solid #0f88ed;
border-radius:3px;
text-align:center;
}
}
.userInfo{
width:326px;
height: 31px;
display: flex;
justify-content: flex-end;
align-items: center;
.notifications{
width:20px;
height: 20px;
margin-right: 40px;
}
.messages{
width:20px;
height: 20px;
margin-right: 40px;
}
.Personal-center{
border:1px solid black;
width:30px;
height:30px;
}
}
}
}
</style>