forked from augustocesarfmo/clone-instagram-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
121 lines (100 loc) · 1.66 KB
/
index.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
* {
padding: 0px;
margin: 0px;
box-sizing: border-box;
list-style: none;
}
body {
font-family: "Roboto", sans-serif;
}
main {
padding-top: 20px;
padding-bottom: 20px;
}
ul {
display: flex;
flex-direction: column;
align-items: center;
}
ul li {
margin-bottom: 15px;
/* Adiciona espaçamento abaixo de cada item */
}
ul li:last-child {
margin-bottom: 0;
/* Remove a margem do último item */
}
.post-container {
/* border: 1px solid black; */
width: 400px;
height: 500px;
padding: 20px;
display: flex;
flex-direction: column;
gap: 10px;
-webkit-box-shadow: 10px 10px 29px 0px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 10px 10px 29px 0px rgba(0, 0, 0, 0.3);
box-shadow: 10px 10px 29px 0px rgba(0, 0, 0, 0.3);
}
.post-header {
display: flex;
align-items: center;
gap: 10px;
}
.post-header img {
width: 100%;
height: 100%;
object-fit: cover;
}
.post-header>div {
width: 40px;
height: 40px;
border: 1px solid black;
border-radius: 50%;
overflow: hidden;
}
.post-image {
border: 1px solid black;
flex: 1;
}
.post-image img {
object-fit: cover;
height: 100%;
width: 100%;
}
.post-icons {
font-size: 28px;
display: flex;
justify-content: space-between;
}
.post-icons>div {
display: flex;
gap: 10px;
}
.post-likes {
display: flex;
align-items: center;
gap: 5px;
font-size: 14px;
}
.liked {
color: red;
animation: pulse 0.4s;
}
.btn {
cursor: pointer;
}
@keyframes pulse {
0% {
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}