1 | /* from http://www.zurb.com/playground/css3-polaroids thx ! */ |
---|
2 | .content { |
---|
3 | display:block; |
---|
4 | position: relative; |
---|
5 | z-index: 1; |
---|
6 | } |
---|
7 | ul.thumbnails { |
---|
8 | list-style: none; |
---|
9 | overflow: hidden; |
---|
10 | width: 100%; |
---|
11 | padding-top: 20px; |
---|
12 | padding-right: 0; |
---|
13 | padding-bottom: 0; |
---|
14 | padding-left: 0; |
---|
15 | margin: 0px; |
---|
16 | } |
---|
17 | ul.thumbnails li { |
---|
18 | display: inline; |
---|
19 | } |
---|
20 | ul.thumbnails a { |
---|
21 | -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25); |
---|
22 | -moz-transform: rotate(-2deg); |
---|
23 | -webkit-transition: -webkit-transform .15s linear; |
---|
24 | -webkit-box-shadow: 0 3px 6px rgba(0,0,0,.25); |
---|
25 | -webkit-transform: rotate(-2deg); |
---|
26 | -o-transition: -webkit-transform .15s linear; |
---|
27 | -o-box-shadow: 0 3px 6px rgba(0,0,0,.25); |
---|
28 | -o-transform:rotate(-2deg); |
---|
29 | box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25); |
---|
30 | text-shadow: 0 1px 1px #CCC; |
---|
31 | background: none repeat scroll 0 0 #FFFFFF; |
---|
32 | color: #333333; |
---|
33 | display: inline; |
---|
34 | float: left; |
---|
35 | font-family: "Marker Felt", sans-serif; |
---|
36 | font-size: 18px; |
---|
37 | margin: 0 0 27px 30px; |
---|
38 | padding: 10px 10px 15px; |
---|
39 | text-align: center; |
---|
40 | text-decoration: none; |
---|
41 | width: auto; |
---|
42 | overflow:hidden; |
---|
43 | border:none; |
---|
44 | } |
---|
45 | ul.thumbnails img { |
---|
46 | display: block; |
---|
47 | margin-bottom: 12px; |
---|
48 | width: 118px; |
---|
49 | } |
---|
50 | ul.thumbnails a:after { |
---|
51 | content: attr(title); |
---|
52 | } |
---|
53 | ul.thumbnails li:nth-child(2n) a { |
---|
54 | -moz-transform: rotate(2deg); |
---|
55 | -webkit-transform: rotate(2deg); |
---|
56 | -o-transform:rotate(2deg); |
---|
57 | } |
---|
58 | ul.thumbnails li:nth-child(3n) a { |
---|
59 | -moz-transform: none; |
---|
60 | -webkit-transform: none; |
---|
61 | -o-transform:none; |
---|
62 | position: relative; |
---|
63 | top: -5px; |
---|
64 | } |
---|
65 | ul.thumbnails li:nth-child(5n) a { |
---|
66 | -moz-transform: rotate(5deg); |
---|
67 | -webkit-transform: rotate(5deg); |
---|
68 | -o-transform: rotate(5deg); |
---|
69 | position: relative; |
---|
70 | right: 5px; |
---|
71 | } |
---|
72 | ul.thumbnails li:nth-child(8n) a { |
---|
73 | position: relative; |
---|
74 | right: 5px; |
---|
75 | top: 8px; |
---|
76 | } |
---|
77 | ul.thumbnails li:nth-child(11n) a { |
---|
78 | left: -5px; |
---|
79 | position: relative; |
---|
80 | top: 3px; |
---|
81 | } |
---|
82 | ul.thumbnails li.messy a { |
---|
83 | -moz-transform: rotate(-5deg); |
---|
84 | -webkit-transform: rotate(-5deg); |
---|
85 | -o-transform: rotate(-5deg); |
---|
86 | margin-left: 160px; |
---|
87 | margin-top: -375px; |
---|
88 | } |
---|
89 | ul.thumbnails li a:hover { |
---|
90 | -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); |
---|
91 | -webkit-box-shadow: 0 3px 6px rgba(0,0,0,.5); |
---|
92 | -moz-transform: scale(1.25); |
---|
93 | -webkit-transform: scale(1.25); |
---|
94 | -o-transform: scale(1.25); |
---|
95 | position: relative; |
---|
96 | z-index: 5; |
---|
97 | border:none; |
---|
98 | } |
---|