Skip to content

Commit 514bc0a

Browse files
committed
Heart Update
1 parent 695bd9c commit 514bc0a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

14. Heart/style.css

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ body {
1919

2020
/* main-heart */
2121
.main-heart {
22-
background: var(--primary-color);
22+
height: 100px;
23+
width: 100px;
2324
display: flex;
2425
justify-content: center;
2526
align-items: center;
26-
width: 100px;
27-
height: 100px;
2827
position: relative;
2928
top: 0;
3029
transform: rotate(-45deg);
30+
background: var(--primary-color);
3131
}
3232

3333
.main-heart:before,
3434
.main-heart:after {
35-
content: "";
36-
background: var(--primary-color);
37-
border-radius: 50%;
3835
height: 100px;
3936
width: 100px;
4037
position: absolute;
38+
content: "";
39+
background: var(--primary-color);
40+
border-radius: 50%;
4141
}
4242

4343
.main-heart:before {
@@ -52,25 +52,25 @@ body {
5252

5353
/* red-heart */
5454
.red-heart {
55-
background: var(--secondry-color);
56-
display: flex;
57-
justify-content: center;
58-
align-items: center;
5955
height: 100px;
6056
width: 100px;
61-
transform: rotate(-45deg);
57+
display: flex;
58+
align-items: center;
59+
justify-content: center;
6260
position: absolute;
6361
visibility: hidden;
62+
transform: rotate(-45deg);
63+
background: var(--secondry-color);
6464
}
6565

6666
.red-heart:before,
6767
.red-heart:after {
68-
content: "";
69-
background: var(--secondry-color);
70-
border-radius: 50%;
71-
width: 100px;
7268
height: 100px;
69+
width: 100px;
70+
content: "";
7371
position: absolute;
72+
border-radius: 50%;
73+
background: var(--secondry-color);
7474
}
7575

7676
.red-heart:before {

0 commit comments

Comments
 (0)