blob: 2be68e7006ad57dc25df356f32f1692f3e25ee9a (
plain)
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
|
header{
height: 30px;
padding: 30px 0;
border-bottom: 1px solid $border;
line-height: 30px;
a{
color: $font-main;
@include transition(0.3s);
&:hover{
color: $main;
}
}
h1{
font-weight: 300;
font-size: 30px;
}
nav{
margin-left: 30px;
>ul{
list-style: none;
padding-right: 30px;
>li{
float: left;
margin-left: 50px;
position: relative;
&:hover{
>a{
color: $main;
}
}
>a{
padding: 35px 30px 35px 0;
margin-top: -35px;
background: image-url('detail.png') right center no-repeat;
&:only-child{
padding-right: 0;
background: none;
}
}
}
ul{
position: absolute;
top: 60px;
left: 0;
z-index: 10;
white-space: nowrap;
background: #ddd;
border: 1px solid #ccc;
border-radius: 0 0 5px 5px;
box-shadow: 0 4px 8px #DDDDDD;
list-style: none;
display: none;
li{
@include border-shadow(#eee, #ccc);
&:hover{
background: #d5d5d5;
}
&:first-of-type{
border-top: none;
}
&:last-of-type{
border-bottom: none;
}
a{
display: block;
padding: 5px 15px;
width: 100%;
&:hover{
color: #666;
}
}
}
}
li{
&:hover{
>ul{
display: block;
}
}
}
}
}
.search{
input[type="text"]{
background: image-url('search.png') 10px center no-repeat #f2f2f2;
color: #999;
border: 1px solid $border;
@include border-radius(15px);
font: 13px $default;
padding: 6px 15px 6px 35px;
width: 100px;
@include transition(0.3s);
&:focus, &:active{
background: image-url('search.png') 10px center no-repeat #fff;
width: 150px;
border-top: 1px solid #ccc;
color: $font-main;
outline: none;
}
}
}
.social{
margin-right: 15px;
a{
@include border-radius(50%);
display: inline-block;
text-indent: -9999px;
margin-right: 15px;
opacity: 0.5;
@include square(28px);
@include transition(0.3s);
&:hover{
opacity: 1;
}
&:first-of-type{
background: image-url('facebook.png') center no-repeat #3B5998;
border: 1px solid #3B5998;
&:hover{
border: 1px solid darken(#3B5998, 10%);
}
}
&:nth-of-type(2){
background: image-url('google.png') center no-repeat #C83D20;
border: 1px solid #C83D20;
&:hover{
border: 1px solid darken(#C83D20, 10%);
}
}
&:nth-of-type(3){
background: image-url('twitter.png') center no-repeat #55CFF8;
border: 1px solid #55CFF8;
&:hover{
border: 1px solid darken(#55CFF8, 10%);
}
}
&:last-of-type{
background: image-url('rss.png') center no-repeat #EF7522;
border: 1px solid #EF7522;
&:hover{
border: 1px solid darken(#EF7522, 10%);
}
}
}
}
}
|