source: pro-violet-viettel/www/deploy/20150304/assets/css/less/gallery.less @ 782

Last change on this file since 782 was 780, checked in by dungnv, 10 years ago
File size: 2.4 KB
RevLine 
[780]1/* gallery */
2.ace-thumbnails {
3  list-style:none;
4  margin:0; padding:0;
5
6  > li {
7        float:left;
8        display:block;
9        position:relative;
10        overflow:hidden;
11
12        margin:2px;
13        border:2px solid #333;
14       
15        > :first-child {
16                display:block;
17                position:relative;
18        }
19       
20        .tags {
21                display:inline-block;
22                position:absolute;
23                bottom:0; right:0; left:0; overflow:visible;
24 
25                direction:rtl;
26               
27                //set these so that it's not confused with tags plugin
28                padding:0; margin:0;
29                height:auto; width:auto;
30                background-color:transparent;
31                border:none;
32                vertical-align:inherit;
33               
34                > .label-holder {
35                        .opacity(0.92);
36                        display:table;
37                        margin:1px 0 0 0;
38
39                        direction:ltr;
40                        text-align:left;
41                       
42                        &:hover {
43                                .opacity(1);
44                        }
45                }
46        }
47
48
49        > .tools {
50                 position:absolute;
51                 top:0; bottom:0;
52                 left:-30px;
53                 width:24px;
54                 
55                 background-color:rgba(0,0,0,0.55);
56
57                 text-align:center;
58                 vertical-align:middle;
59                 
60                .transition(~"all 0.2s ease");
61               
62                &.tools-right {
63                        left:auto; right:-30px;
64                }
65                &.tools-bottom {
66                        width:auto; height:28px;
67                        left:0; right:0; top:auto;
68                        bottom:-30px;
69                }
70                &.tools-top {
71                        width:auto; height:28px;
72                        left:0; right:0; top:-30px;
73                        bottom:auto;
74                }
75        }
76        &:hover {
77                > .tools { left:0; }
78                > .tools.tools-bottom { top:auto; bottom:0; }
79                > .tools.tools-top { bottom:auto; top:0; }
80                > .tools.tools-right { left:auto; right:0; }
81        }
82
83        > .tools > a , > :first-child .inner a {
84                display:inline-block;
85                color:#FFF;
86                font-size:18px; font-weight:normal;
87                padding:0 4px;
88               
89                &:hover {
90                        text-decoration:none;
91                        color:#C9E2EA;
92                }               
93        }
94        .tools.tools-bottom > a , .tools.tools-top > a {
95                display:inline-block;
96        }
97 
98 
99  /* the custom text on hover */
100        > :first-child > .text {
101                position:absolute;
102                right:0; left:0; bottom:0; top:0;
103
104                text-align:center;
105                color:#FFF;
106                background-color:rgba(0,0,0,0.55);
107
108                .opacity(0);
109                .transition(~"all 0.2s ease");
110               
111                &:before {/* makes the inner text become vertically centered*/
112                        content: '';
113                        display: inline-block;
114                        height: 100%;
115                        vertical-align: middle;
116                        margin-right: 0; /* Adjusts for spacing */
117                }
118               
119                > .inner {
120                         padding:4px 0;
121                         margin:0;
122
123                         display: inline-block;
124                         vertical-align: middle;
125                         max-width: 90%;
126                }
127        }
128        &:hover > :first-child  > .text{
129                .opacity(1);
130        }
131       
132  }//li
133}
134
135
136
137
138/* gallery */
139@media only screen and (max-width: @screen-xs) {
140.ace-thumbnails {
141 text-align:center;
142 }
143 
144 .ace-thumbnails > li {
145        float:none;
146        display:inline-block;
147 }
148}
149
150
Note: See TracBrowser for help on using the repository browser.