1
+ body {
2
+ font-family : "Sansita Swashed" ;
3
+ color : # ffffff ;
4
+ background-color : # 4060ff ;
5
+ margin : 80px auto 0 ;
6
+ }
7
+
8
+ .single-post {
9
+ width : 80% ;
10
+ margin : 0 auto;
11
+ }
12
+
13
+ .post-image {
14
+ width : 100% ;
15
+ border-radius : 50px ;
16
+ }
17
+
18
+ .post-title {
19
+ text-align : center;
20
+ margin : 10px ;
21
+ }
22
+
23
+ .post-content {
24
+ font-family : "Oswald" ;
25
+ text-align : justify;
26
+ font-size : 18px ;
27
+ padding : 16px ;
28
+ border-radius : 20px ;
29
+ font-weight : normal;
30
+ background-color : # 00000066 ;
31
+ }
32
+
33
+ # heart-button {
34
+ display : block;
35
+ position : relative;
36
+ float : right;
37
+ cursor : pointer;
38
+ margin : -80px 30px 0 0 ;
39
+ font-size : 50px ;
40
+ transition : 0.5s ;
41
+ }
42
+
43
+ # heart-button : hover {
44
+ color : # ff0000 ;
45
+ transform : scale (1.09 );
46
+ }
47
+
48
+ # total-likes {
49
+ cursor : text;
50
+ font-size : 40px ;
51
+ vertical-align : 7px ;
52
+ margin-right : 10px ;
53
+ }
54
+
55
+ .red-heart {
56
+ color : # ff0000 ;
57
+ }
58
+
59
+ .white-heart {
60
+ color : # ffffff ;
61
+ }
62
+
63
+ .heartbeat {
64
+ -webkit-animation : heartbeat 1.5s ease-in-out both;
65
+ animation : heartbeat 1.5s ease-in-out both;
66
+ }
67
+
68
+ @-webkit-keyframes heartbeat {
69
+ from {
70
+ -webkit-transform : scale (1 );
71
+ transform : scale (1 );
72
+ -webkit-transform-origin : center center;
73
+ transform-origin : center center;
74
+ -webkit-animation-timing-function : ease-out;
75
+ animation-timing-function : ease-out;
76
+ }
77
+
78
+ 10% {
79
+ -webkit-transform : scale (0.8 );
80
+ transform : scale (0.8 );
81
+ -webkit-animation-timing-function : ease-in;
82
+ animation-timing-function : ease-in;
83
+ }
84
+
85
+ 17% {
86
+ -webkit-transform : scale (1.3 );
87
+ transform : scale (1.3 );
88
+ -webkit-animation-timing-function : ease-out;
89
+ animation-timing-function : ease-out;
90
+ }
91
+
92
+ 33% {
93
+ -webkit-transform : scale (0.8 );
94
+ transform : scale (0.8 );
95
+ -webkit-animation-timing-function : ease-in;
96
+ animation-timing-function : ease-in;
97
+ }
98
+
99
+ 45% {
100
+ -webkit-transform : scale (1 );
101
+ transform : scale (1 );
102
+ -webkit-animation-timing-function : ease-out;
103
+ animation-timing-function : ease-out;
104
+ }
105
+ }
106
+
107
+ @keyframes heartbeat {
108
+ from {
109
+ -webkit-transform : scale (1 );
110
+ transform : scale (1 );
111
+ -webkit-transform-origin : center center;
112
+ transform-origin : center center;
113
+ -webkit-animation-timing-function : ease-out;
114
+ animation-timing-function : ease-out;
115
+ }
116
+
117
+ 10% {
118
+ -webkit-transform : scale (0.8 );
119
+ transform : scale (0.8 );
120
+ -webkit-animation-timing-function : ease-in;
121
+ animation-timing-function : ease-in;
122
+ }
123
+
124
+ 17% {
125
+ -webkit-transform : scale (1.3 );
126
+ transform : scale (1.3 );
127
+ -webkit-animation-timing-function : ease-out;
128
+ animation-timing-function : ease-out;
129
+ }
130
+
131
+ 33% {
132
+ -webkit-transform : scale (0.8 );
133
+ transform : scale (0.8 );
134
+ -webkit-animation-timing-function : ease-in;
135
+ animation-timing-function : ease-in;
136
+ }
137
+
138
+ 45% {
139
+ -webkit-transform : scale (1 );
140
+ transform : scale (1 );
141
+ -webkit-animation-timing-function : ease-out;
142
+ animation-timing-function : ease-out;
143
+ }
144
+ }
0 commit comments