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
|
#header{
height: 68px;
margin: 30px auto;
text-transform: uppercase;
line-height: 1;
h1{
a{
background: #000;
color: #fff;
padding: 30px 10px 10px 100px;
margin-right: 5px;
display: block;
}
}
ul{
background: $black;
font-size: 14px;
li{
display: inline-block;
position: relative;
>a{
color: #fff;
position: relative;
padding: 44px 20px 7px;
display: block;
border-bottom: 3px solid transparent;
&:after{
font: 13px/1 $symbol;
color: #666;
content: "[";
margin-left: 10px;
}
&:only-child{
&:after{
display: none;
}
}
}
&:hover{
>a{
background: #000;
border-bottom: 3px solid $main;
&:after{
color: #ccc;
}
}
>.sub-menu{
display: block;
}
}
.sub-menu{
position: absolute;
top: 100%;
left: 0;
background: $main;
white-space: nowrap;
z-index: 5;
text-transform: none;
display: none;
font-size: 13px;
@include box-shadow(0 12px 16px $shadow);
li{
display: block;
a{
padding: 10px 40px 10px 20px;
border-bottom: 1px solid lighten($main, 5%);
border-top: 1px solid darken($main, 5%);
&:hover{
background: darken($main, 10%);
}
&:after{
content: ">";
position: absolute;
right: 10px;
font: 13px/1 $symbol;
color: lighten($main, 10%);
}
&:only-child{
padding-right: 20px;
&:after{
content: "";
}
}
}
&:hover{
>a{
background: darken($main, 10%);
}
}
&:first-of-type{
a{
border-top: none;
}
}
&:last-of-type{
a{
border-bottom: none;
}
}
}
.sub-menu{
top: 0;
left: 100%;
}
}
}
}
.search{
margin-top: 25px;
input[type="text"]{
background: rgba(0,0,0,0.2);
border-style: solid;
border-width: 1px 0;
border-color: rgba(0,0,0,0.5) transparent #555;
color: #ccc;
padding: 5px 15px;
margin: 2px 10px 0 0;
width: 150px;
font-size: 13px;
font-family: inherit;
@include border-radius(15px);
&:active, &:focus{
background: $black;
}
}
input[type="submit"]{
font: 18px/1 $symbol;
width: 24px;
height: 24px;
@include square(24px);
border: none;
background: none;
color: #fff;
cursor: pointer;
&:hover{
color: $main;
}
}
}
}
|