forked from ps011/100daysofcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
144 lines (130 loc) · 2.51 KB
/
style.css
File metadata and controls
144 lines (130 loc) · 2.51 KB
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
* {
box-sizing: border-box;
line-height: 1.5;
font-family: 'Open Sans', sans-serif;
}
body {
background: #444;
}
a {
text-decoration: none;
color: #9e9e9e;
}
img {
width: 100%;
z-index: 0;
max-height: 337px;
}
.container {
display: flex;
flex-wrap: wrap;
background: #444;
}
.tag {
position: absolute;
right: 0;
z-index: 10;
margin: 1px;
border-radius: 6px;
border: 2px solid white;
padding: 4px;
background: dimgrey;
color: #fff;
}
.card {
margin: 16px 32px;
position: relative;
background: #333;
width: 20%;
height: 33%;
border-radius: 6px;
padding: 2rem;
color: #aaa;
box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.2), 0 0 1rem rgba(0, 0, 0, 0.2);
overflow: hidden;
max-height: 33%;
}
.card__image-container {
margin: -2rem -2rem 1rem -2rem;
max-height: 337px;
}
.card__line {
opacity: 0;
animation: LineFadeIn .8s .8s forwards ease-in;
}
.card__image {
opacity: 0;
animation: ImageFadeIn .8s 1.4s forwards;
}
.card__title {
color: white;
margin-top: 0;
font-weight: 800;
letter-spacing: 0.01em;
}
.card__content {
margin-top: -1rem;
opacity: 0;
animation: ContentFadeIn .8s 1.6s forwards;
}
.card__svg {
position: absolute;
left: 0;
top: 115px;
}
@keyframes LineFadeIn {
0% {
opacity: 0;
d: path("M 0 300 Q 0 300 0 300 Q 0 300 0 300 C 0 300 0 300 0 300 Q 0 300 0 300 ");
stroke: #fff;
}
50% {
opacity: 1;
d: path("M 0 300 Q 50 300 100 300 Q 250 300 350 300 C 350 300 500 300 650 300 Q 750 300 800 300");
stroke: #888BFF;
}
100% {
opacity: 1;
d: path("M -2 100 Q 50 200 100 250 Q 250 400 350 300 C 400 250 550 150 650 300 Q 750 450 802 400");
stroke: #545581;
}
}
@keyframes ContentFadeIn {
0% {
transform: translateY(-1rem);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
@keyframes ImageFadeIn {
0% {
transform: translate(-0.5rem, -0.5rem) scale(1.05);
opacity: 0;
filter: blur(2px);
}
50% {
opacity: 1;
filter: blur(2px);
}
100% {
transform: translateY(0) scale(1);
opacity: 1;
filter: blur(0);
}
}
@media (max-width: 768px) {
.card {
width: 100%;
}
.card__content > p{
display: none;
}
}
@media (min-width: 769px) and (max-width: 1024px){
.card {
width: 40%;
}
}