-
Notifications
You must be signed in to change notification settings - Fork 3
/
cascade.css
117 lines (101 loc) · 1.82 KB
/
cascade.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@import url(https://fonts.googleapis.com/css?family=Raleway:400,700);
.snip1572 {
font-family: 'Raleway', Arial, sans-serif;
position: relative;
display: inline-block;
overflow: hidden;
margin: 8px;
min-width: 230px;
max-width: 315px;
width: 100%;
color: #000000;
text-align: left;
font-size: 16px;
background: #ffffff;
}
.snip1572 *,
.snip1572:before,
.snip1572:after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.snip1572 img {
max-width: 100%;
backface-visibility: hidden;
vertical-align: top;
}
.snip1572:before,
.snip1572:after {
content: '';
background-color: #000;
position: absolute;
z-index: 1;
top: 50%;
left: 50%;
opacity: 0;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.snip1572:before {
width: 300px;
height: 2px;
}
.snip1572:after {
height: 300px;
width: 2px;
}
.snip1572 figcaption {
position: absolute;
left: 0;
bottom: 0;
}
.snip1572 h3 {
font-weight: 400;
padding: 8px 15px;
margin: 0;
opacity: 0;
-webkit-transform: translateY(100%);
transform: translateY(100%);
}
.snip1572 a {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
}
.snip1572:hover img,
.snip1572.hover img {
zoom: 1;
filter: alpha(opacity=25);
-webkit-opacity: 0.25;
opacity: 0.25;
}
.snip1572:hover:before,
.snip1572.hover:before,
.snip1572:hover:after,
.snip1572.hover:after {
opacity: 1;
}
.snip1572:hover:before,
.snip1572.hover:before {
width: 50px;
}
.snip1572:hover:after,
.snip1572.hover:after {
height: 50px;
}
.snip1572:hover h3,
.snip1572.hover h3 {
-webkit-transform: translateY(0%);
transform: translateY(0%);
opacity: 1;
}
/* Demo purposes only */
body {
background-color: #212121;
text-align: center;
}