提交 | 用户 | 时间
|
58d006
|
1 |
.enable_search() when(@enable-search = true) { |
A |
2 |
|
|
3 |
.well.search-area { |
|
4 |
background-color: #ecf1f4; |
|
5 |
border-color: #d6e1ea; |
|
6 |
.box-shadow(none); |
|
7 |
} |
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
.search-thumbnail { |
|
12 |
.transition-duration(0.1s); |
|
13 |
|
|
14 |
&:hover { |
|
15 |
border-color: #75A8CE; |
|
16 |
} |
|
17 |
|
|
18 |
.search-title { |
|
19 |
margin-top: 15px; |
|
20 |
} |
|
21 |
} |
|
22 |
|
|
23 |
|
|
24 |
.search-media { |
|
25 |
border: 1px solid #ddd; |
|
26 |
margin-top: -1px; |
|
27 |
padding: 12px; |
|
28 |
.transition(~"border 0.1s ease-in-out 0s"); |
|
29 |
|
|
30 |
position: relative; |
|
31 |
padding-right: 150px; |
|
32 |
|
|
33 |
&:hover { |
|
34 |
border-color: #75A8CE; |
|
35 |
z-index: 1; |
|
36 |
} |
|
37 |
|
|
38 |
|
|
39 |
.search-actions { |
|
40 |
position: absolute; |
|
41 |
right: 0; |
|
42 |
top: 0; |
|
43 |
bottom: 0; |
|
44 |
height: 100%; |
|
45 |
width: 20%; |
|
46 |
min-width: 100px; |
|
47 |
max-width: 150px; |
|
48 |
|
|
49 |
padding: 6px 9px; |
|
50 |
|
|
51 |
&::before { |
|
52 |
content: ""; |
|
53 |
display: block; |
|
54 |
|
|
55 |
position: absolute; |
|
56 |
left: 0; |
|
57 |
top: 8px; |
|
58 |
bottom: 16px; |
|
59 |
|
|
60 |
width: 1px; |
|
61 |
|
|
62 |
#gradient > .vertical(#FFF, #DDD); |
|
63 |
} |
|
64 |
} |
|
65 |
&:hover .search-actions { |
|
66 |
background-color: #F0F4F7; |
|
67 |
} |
|
68 |
&.disabled:hover .search-actions { |
|
69 |
background-color: #F6F6F6; |
|
70 |
} |
|
71 |
&:not(.disabled):hover .search-actions::before { |
|
72 |
#gradient > .vertical(#FFF, lighten(#6FB3E0, 5%)); |
|
73 |
} |
|
74 |
} |
|
75 |
|
|
76 |
.search-filter-header { |
|
77 |
padding: 8px; |
|
78 |
margin: -4px; |
|
79 |
} |
|
80 |
|
|
81 |
|
|
82 |
.search-btn-action { |
|
83 |
position: absolute; |
|
84 |
bottom: -5px; |
|
85 |
left: 0; |
|
86 |
right: 0; |
|
87 |
width: auto; |
|
88 |
|
|
89 |
.transition(~"bottom 0.15s"); |
|
90 |
} |
|
91 |
.search-media:hover .search-btn-action{ |
|
92 |
bottom: 1px; |
|
93 |
} |
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
.search-promotion.label { |
|
98 |
position: absolute; |
|
99 |
margin-top: -1px; |
|
100 |
margin-left: -1px; |
|
101 |
} |
|
102 |
|
|
103 |
|
|
104 |
.search-filter-element { |
|
105 |
padding: 12px; |
|
106 |
background-color: #FFF; |
|
107 |
border: 1px solid #C9DDE7; |
|
108 |
} |
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
//search type 2 |
|
114 |
.search-results { |
|
115 |
padding: 24px 12px; |
|
116 |
min-height: 20px; |
|
117 |
} |
|
118 |
|
|
119 |
.search-result { |
|
120 |
margin-top: -1px; |
|
121 |
position: relative; |
|
122 |
|
|
123 |
padding: 12px; |
|
124 |
|
|
125 |
border: 1px dotted; |
|
126 |
border-color: #DDD #FFF #FFF; |
|
127 |
border-color: rgba(0, 0, 0, 0.11) transparent transparent; |
|
128 |
|
|
129 |
&:hover { |
|
130 |
background-color: #F7F7F7; |
|
131 |
border-color: #D6E1EA; |
|
132 |
border-style: solid; |
|
133 |
z-index: 1; |
|
134 |
} |
|
135 |
|
|
136 |
&:first-child { |
|
137 |
border-top-color: #FFF; |
|
138 |
border-top-color: transparent; |
|
139 |
} |
|
140 |
&:first-child:hover { |
|
141 |
border-top-color: #D6E1EA; |
|
142 |
} |
|
143 |
|
|
144 |
|
|
145 |
///// |
|
146 |
.search-title { |
|
147 |
font-size: @font-size-search-title; |
|
148 |
margin-top: 0; |
|
149 |
margin-bottom: 6px; |
|
150 |
} |
|
151 |
.search-content { |
|
152 |
margin-top: 2px; |
|
153 |
} |
|
154 |
} |
|
155 |
|
|
156 |
|
|
157 |
} |
|
158 |
.enable_search(); |