Repository navigation
Expand file tree
/
Copy pathheader.css
More file actions
162 lines (150 loc) · 2.89 KB
/
Copy pathheader.css
File metadata and controls
162 lines (150 loc) · 2.89 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
header{
margin: 0;
padding: 0;
box-sizing:border-box;
display: block;
font-family: 'STHeiti','Microsoft Yahei',sans-Serif;
background: #F1F4F9;
line-height: 1.5;
}
header.clearfix {
background-color: white;
box-shadow:0px 0px 5px 1px #333;
}
/* clearfix */
.clearfix{
*zoom:1;
}
.clearfix:after {
visibility: hidden;
content: "";
display: block;
clear: both;
height: 0;
}
header h1{
float: left;
font-size: 100%;
font-weight: normal;
margin: 0;
padding: 0;
box-sizing: border-box;
display: block;
-webkit-margin-before: 0.67em;
-webkit-margin-after: 0.67em;
-webkit-margin-start: 0px;
-webkit-margin-end: 0px;
}
header h1 a {
display: inline-block;
width: 214px;
height: 49px;
margin: 25px 40px;
background: url(../img/logo.png) no-repeat;
}
header nav {
margin: 30px 40px;
float: right;
display: block;
}
header ul {
list-style: none;
margin: 0;
padding: 0;
box-sizing: border-box;
display: block;
-webkit-margin-before: 1em;
-webkit-margin-after: 1em;
-webkit-margin-start: 0px;
-webkit-margin-end: 0px;
-webkit-padding-start: 40px;
}
nav li a{
cursor:pointer;
}
li.unlink{
cursor: not-allowed;
color:#9d9c9c;
}
nav>ul>li a{
color:#221815;
}
nav ul ul{
line-height:2em;
position:absolute;
left:0;
top: 30px;
z-index:9999;
background:#424242;
color:#eee;
padding:14px 0;
white-space:nowrap;
display:none;
}
nav ul ul.active{
display: inline-block;
}
nav ul ul a{color:#eee;}
nav ul ul li:hover,nav ul ul li a:hover{color:#e6ae30;}
nav li li{position:relative;padding:0 20px}
nav li li ul{position:absolute;left:100%;top: -12px;background:#5c5c5c;}
li ul li.has-ul{
}
nav>ul>li:after{
content:"";
display:inline-block;
width:1px;
height:14px;
position:absolute;
top:10px;
left:0;
border-right: 1px solid #cbc2c0;
}
nav>ul>li:first-child:after{
border-right: 0
}
.header-nav{
float: left;
margin-top:40px;
}
.header-nav:before{
content:"";
position: relative;
top: -10px;
left:-14px;
float:left;
width: 0;
height: 0;
border:12px solid transparent;
border-left-width:8px;
border-right-width:8px;
border-bottom-color:#221816;
margin: 3px;
-webkit-transform:rotate(17deg);
-moz-transform:rotate(17deg);
-o-transform:rotate(17deg);
-ms-transform:rotate(17deg);
transform:rotate(17deg);
}
nav{
margin:30px 40px;
}
nav>ul>li{
position:relative;
float:left;
color:#221815;
font-size:14px;
line-height:1em;
padding:10px 20px;
cursor:pointer;
}
header hr{
display: block;
-webkit-margin-before: 0.5em;
-webkit-margin-after: 0.5em;
-webkit-margin-start: auto;
-webkit-margin-end: auto;
border-style: inset;
border-width: 1px;
box-sizing: border-box;
}