source: extensions/flop_style/mainpage_categories/polaroid.css @ 9821

Last change on this file since 9821 was 9821, checked in by flop25, 13 years ago

polaroid for thumbnails
polaroid comp. for opera and webkit browsers
medium centered

File size: 2.1 KB
Line 
1/* from http://www.zurb.com/playground/css3-polaroids thx ! */
2.content {
3        display:block;
4        position: relative;
5        z-index: 1;
6}
7ul.polaroids {
8        list-style: none;
9        overflow: visible;
10        width: 100%;
11        padding-top: 20px;
12        padding-right: 0;
13        padding-bottom: 0;
14        padding-left: 0;
15        margin: 0px;
16}
17ul.polaroids li {
18        display: inline;
19}
20ul.polaroids 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        border:none;
43}
44ul.polaroids img {
45        display: block;
46        margin-bottom: 12px;
47        width: 190px;
48}
49ul.polaroids a:after {
50        content: attr(title);
51}
52ul.polaroids li:nth-child(2n) a {
53        -moz-transform: rotate(2deg);
54        -webkit-transform: rotate(2deg);
55        -o-transform:rotate(2deg);
56}
57ul.polaroids li:nth-child(3n) a {
58        -moz-transform: none;
59        -webkit-transform: none;
60        -o-transform:none;
61        position: relative;
62        top: -5px;
63}
64ul.polaroids li:nth-child(5n) a {
65        -moz-transform: rotate(5deg);
66        -webkit-transform: rotate(5deg);
67        -o-transform: rotate(5deg);
68        position: relative;
69        right: 5px;
70}
71ul.polaroids li:nth-child(8n) a {
72        position: relative;
73        right: 5px;
74        top: 8px;
75}
76ul.polaroids li:nth-child(11n) a {
77        left: -5px;
78        position: relative;
79        top: 3px;
80}
81ul.polaroids li.messy a {
82        -moz-transform: rotate(-5deg);
83        -webkit-transform: rotate(-5deg);
84        -o-transform: rotate(-5deg);
85        margin-left: 160px;
86        margin-top: -375px;
87}
88ul.polaroids li a:hover {
89        -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
90        -webkit-box-shadow: 0 3px 6px rgba(0,0,0,.5);
91        -moz-transform: scale(1.25);
92        -webkit-transform: scale(1.25);
93        -o-transform:  scale(1.25);
94        position: relative;
95        z-index: 5;
96        border:none;
97}
Note: See TracBrowser for help on using the repository browser.