-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathjquery.mosaic.css
executable file
·63 lines (53 loc) · 1.15 KB
/
jquery.mosaic.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
jQuery Mosaic v0.15.3
https://github.com/tin-cat/jquery-mosaic
*/
.jQueryMosaic {
width: 100%;
float: left;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
overflow: hidden;
}
.jQueryMosaic > div,
.jQueryMosaic > a,
.jQueryMosaic > img,
.jQueryMosaic > video {
float: left;
}
.jQueryMosaic > .item {
position: relative;
}
.jQueryMosaic > .item.withImage {
background-size: cover;
}
.jQueryMosaic > .item > .overlay {
opacity: 0;
position: absolute;
left: 0px; right: 0px; top: 0px; bottom: 0px;
transition: opacity .2s ease-in-out;
-moz-transition: opacity .2s ease-in-out;
-webkit-transition: opacity .2s ease-in-out;
}
.jQueryMosaic > .item:hover > .overlay {
opacity: 1;
}
.jQueryMosaic > .item > .overlay > .texts {
position: absolute;
left: 0px; right: 0px; bottom: 0px;
padding: 15pt;
background: rgba(0, 0, 0, 0.2);
color: #fff;
}
.jQueryMosaic > .item > .overlay > .texts h1,
.jQueryMosaic > .item > .overlay > .texts h2 {
margin: 0;
line-height: 1.3em;
}
.jQueryMosaic > .item > .overlay > .texts h1 {
font-size: 17pt;
}
.jQueryMosaic > .item > .overlay > .texts h2 {
font-size: 13pt;
}