提交 | 用户 | 时间
|
58d006
|
1 |
.enable_image_gallery() when(@enable-image-gallery = true) { |
A |
2 |
|
|
3 |
//gallery |
|
4 |
.ace-thumbnails { |
|
5 |
list-style: none; |
|
6 |
margin: 0; |
|
7 |
padding: 0; |
|
8 |
|
|
9 |
> li { |
|
10 |
float: left; |
|
11 |
display: block; |
|
12 |
position: relative; |
|
13 |
overflow: hidden; |
|
14 |
|
|
15 |
margin: 2px; |
|
16 |
border: 2px solid #333; |
|
17 |
|
|
18 |
> :first-child { |
|
19 |
display: block; |
|
20 |
position: relative; |
|
21 |
&:focus { |
|
22 |
outline: none; |
|
23 |
} |
|
24 |
} |
|
25 |
|
|
26 |
.tags { |
|
27 |
display: inline-block; |
|
28 |
position: absolute; |
|
29 |
bottom: 0; |
|
30 |
right: 0; |
|
31 |
//left: 0; |
|
32 |
overflow: visible; |
|
33 |
|
|
34 |
direction: rtl; |
|
35 |
|
|
36 |
//set these so that it's not confused with tags plugin |
|
37 |
padding: 0; |
|
38 |
margin: 0; |
|
39 |
height: auto; |
|
40 |
width: auto; |
|
41 |
background-color: transparent; |
|
42 |
border-width: 0; |
|
43 |
vertical-align: inherit; |
|
44 |
|
|
45 |
> .label-holder { |
|
46 |
.opacity(0.92); |
|
47 |
display: table; |
|
48 |
margin: 1px 0 0 0; |
|
49 |
|
|
50 |
direction: ltr; |
|
51 |
text-align: left; |
|
52 |
|
|
53 |
&:hover { |
|
54 |
.opacity(1); |
|
55 |
} |
|
56 |
} |
|
57 |
} |
|
58 |
|
|
59 |
|
|
60 |
> .tools { |
|
61 |
position: absolute; |
|
62 |
top: 0; |
|
63 |
bottom: 0; |
|
64 |
left: -30px; |
|
65 |
width: 24px; |
|
66 |
|
|
67 |
background-color: rgba(0,0,0,0.55); |
|
68 |
|
|
69 |
text-align: center; |
|
70 |
vertical-align: middle; |
|
71 |
|
|
72 |
.transition(~"all 0.2s ease"); |
|
73 |
|
|
74 |
|
|
75 |
&.tools-right { |
|
76 |
left: auto; |
|
77 |
right: -30px; |
|
78 |
} |
|
79 |
&.tools-bottom { |
|
80 |
width: auto; |
|
81 |
height: 28px; |
|
82 |
left: 0; |
|
83 |
right: 0; |
|
84 |
top: auto; |
|
85 |
bottom: -30px; |
|
86 |
} |
|
87 |
&.tools-top { |
|
88 |
width: auto; |
|
89 |
height: 28px; |
|
90 |
left: 0; |
|
91 |
right: 0; |
|
92 |
top: -30px; |
|
93 |
bottom: auto; |
|
94 |
} |
|
95 |
} |
|
96 |
|
|
97 |
&:hover > { |
|
98 |
> .tools { left: 0; right: 0; } |
|
99 |
> .tools.tools-bottom { top: auto; bottom: 0; } |
|
100 |
> .tools.tools-top { bottom: auto; top: 0; } |
|
101 |
> .tools.tools-right { left: auto; right: 0; } |
|
102 |
} |
|
103 |
> .in { |
|
104 |
&.tools { left: 0; right: 0; } |
|
105 |
&.tools.tools-bottom { top: auto; bottom: 0; } |
|
106 |
&.tools.tools-top { bottom: auto; top: 0; } |
|
107 |
&.tools.tools-right { left: auto; right: 0; } |
|
108 |
} |
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
> .tools > a , > :first-child .inner a { |
|
113 |
display: inline-block; |
|
114 |
color: #FFF; |
|
115 |
font-size: @font-size-gallery-hover-tools; |
|
116 |
font-weight: normal; |
|
117 |
padding: 0 4px; |
|
118 |
|
|
119 |
&:hover { |
|
120 |
text-decoration: none; |
|
121 |
color: #C9E2EA; |
|
122 |
} |
|
123 |
} |
|
124 |
.tools.tools-bottom > a , .tools.tools-top > a { |
|
125 |
display: inline-block; |
|
126 |
} |
|
127 |
|
|
128 |
|
|
129 |
//the custom text on hover |
|
130 |
> :first-child > .text { |
|
131 |
position: absolute; |
|
132 |
right: 0; |
|
133 |
left: 0; |
|
134 |
bottom: 0; |
|
135 |
top: 0; |
|
136 |
|
|
137 |
text-align: center; |
|
138 |
color: #FFF; |
|
139 |
background-color:rgba(0,0,0,0.55); |
|
140 |
|
|
141 |
.opacity(0); |
|
142 |
.transition(~"all 0.2s ease"); |
|
143 |
|
|
144 |
&:before {/* makes the inner text become vertically centered*/ |
|
145 |
content: ''; |
|
146 |
display: inline-block; |
|
147 |
height: 100%; |
|
148 |
vertical-align: middle; |
|
149 |
margin-right: 0; /* Adjusts for spacing */ |
|
150 |
} |
|
151 |
|
|
152 |
> .inner { |
|
153 |
padding: 4px 0; |
|
154 |
margin: 0; |
|
155 |
|
|
156 |
display: inline-block; |
|
157 |
vertical-align: middle; |
|
158 |
max-width: 90%; |
|
159 |
} |
|
160 |
} |
|
161 |
&:hover > :first-child > .text{ |
|
162 |
.opacity(1); |
|
163 |
} |
|
164 |
|
|
165 |
}//li |
|
166 |
} |
|
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
|
171 |
//gallery |
|
172 |
@media only screen and (max-width: @screen-xs) { |
|
173 |
.ace-thumbnails { |
|
174 |
text-align: center; |
|
175 |
} |
|
176 |
|
|
177 |
.ace-thumbnails > li { |
|
178 |
float: none; |
|
179 |
display: inline-block; |
|
180 |
} |
|
181 |
} |
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
} |
|
187 |
.enable_image_gallery(); |