-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
218 lines (175 loc) · 3.32 KB
/
style.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
body {
background-image: url("5432299.jpg") no-repeat;
-webkit-background-size: cover;
background-size: cover;
font-size: 18px;
width: 100%;
height:100%;
}
p {
line-height: 1.5;
}
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: none; }
a:active { text-decoration: none; }
.container {
max-width: 800px;
margin: 0 auto;
}
.card-column {
width: 50%;
float: left;
padding: 4%;
box-sizing: border-box;
}
.column-1 {
padding-top: 100px;
}
.card {
width: 92%;
max-width: 340px;
margin-left: auto;
margin-right: auto;
margin-top:100px;
position: relative;
background: black;
color: white;
cursor: pointer;
margin-bottom: 60px;
}
.border {
position: absolute;
width: 100%;
height: 100%;
padding: 6px;
border: 1px solid #fff;
opacity: 0.5;
left: -6px;
top: -6px;
}
.card h1 {
position: relative;
padding: 190px 0px 100px 10px;
width: 90%;
}
.card > img {
width: 90%;
position: absolute;
top: -6%;
left: -6%;
}
.card-color-0 {
background: linear-gradient(to bottom right,#3bd9f5,rgb(224, 97, 250) );}
.card-color-1 {
background: linear-gradient(to bottom right,#3bd9f5,rgb(224, 97, 250) );}
.card-color-2 {
background: linear-gradient(to bottom right,#3bd9f5,rgb(224, 97, 250) );}
.card-color-3 {
background: linear-gradient(to bottom right,#3bd9f5,rgb(224, 97, 250) );}
.cover {
position: fixed;
background: #EB5160;
z-index: 100;
transform-origin: 50% 50%;
}
.open-content {
width: 100%;
z-index: 110;
position: absolute;
opacity: 0;
pointer-events: none;
}
.open-content img {
position: relative;
width: 90%;
margin-left: 3%;
margin-top: 20px;
z-index: 5;
}
.open-content .text {
background: #fff;
margin-top: -56%;
padding: 60% 5% 5% 5%;
width: 80%;
margin-left: 5%;
margin-bottom: 5%;
}
.open-content .text h1, .open-content .text p {
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
.close-content {
display: block;
position: absolute;
right: 12px;
top: 12px;
width: 30px;
height: 30px;
}
.close-content span {
background: black;
width: 30px;
height: 6px;
display: block;
position: absolute;
top: 14px;
}
.x-1 {
transform: rotate(45deg);
}
.x-2 {
transform: rotate(-45deg);
}
.card {
transition: opacity 200ms linear 320ms, transform 200ms ease-out 320ms;
}
.border {
transition: opacity 200ms linear, transform 200ms ease-out;
}
.card img {
transition: opacity 200ms linear 0ms, transform 200ms ease-in 0ms;
}
.card h1 {
transform: translate3d(20%, 0px, 0px);
transition: opacity 200ms linear 120ms, transform 200ms ease-in 120ms;
}
.card.clicked img {
transform: translate3d(0px, -40px, 0px);
opacity: 0;
}
.card.clicked .border {
opacity: 0;
transform: scale(1.3);
}
.card.out, .card.out img {
transform: translate3d(0px, -40px, 0px);
opacity: 0;
}
.card.out h1, .card.clicked h1 {
transform: translate3d(20%, -40px, 0px);
opacity: 0;
}
.cover {
transition: transform 300ms ease-in-out;
}
.open-content {
transition: opacity 200ms linear 0ms;
}
.open-content.open {
opacity: 1;
pointer-events: all;
transition-delay: 1000ms;
}
@media screen and (max-width: 600px) {
.card-column {
width: 90%;
}
.column-1 {
padding-top: 0px;
}
.open-content img {
margin-top: 40px;
}
}