-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
164 lines (141 loc) · 3.8 KB
/
styles.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
html {
background-color: black;
border: 0;
margin: 0;
}
body {
border: 0;
margin: 0;
}
.canvas-container {
position: fixed;
}
.custom-heading {
margin: 0;
color: white;
position: absolute;
top: 250px;
left: 200px;
font-size: 64px;
z-index: 9999;
}
.counter-container {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 50px;
margin: 0;
position: absolute;
top: 64px;
right: 64px;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
z-index: 9999;
}
.counter, .like-container {
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
}
.counter:hover,.like-container:hover {
transform: translateY(-5px);
}
#like-button {
background-color: transparent;
border: none;
cursor: pointer;
width: 40px;
height: 40px;
background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 21c-1.157-.814-5.27-4.186-7.828-6.745C1.791 11.872 1 10.069 1 8.2 1 5.313 3.313 3 6.2 3c1.772 0 3.516.931 4.8 2.434C12.284 3.931 14.028 3 15.8 3 18.687 3 21 5.313 21 8.2c0 1.869-.791 3.672-3.172 6.055C17.27 16.814 13.157 20.186 12 21z"/></svg>');
background-repeat: no-repeat;
background-position: center;
background-size: contain;
transition: background-color 0.3s, transform 0.3s;
}
#like-button.liked {
background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 21c-1.157-.814-5.27-4.186-7.828-6.745C1.791 11.872 1 10.069 1 8.2 1 5.313 3.313 3 6.2 3c1.772 0 3.516.931 4.8 2.434C12.284 3.931 14.028 3 15.8 3 18.687 3 21 5.313 21 8.2c0 1.869-.791 3.672-3.172 6.055C17.27 16.814 13.157 20.186 12 21z"/></svg>');
transform: scale(1.2);
}
p {
margin: 0;
font-size: 18px;
color: #333;
}
/* Media Queries for smaller screens */
@media (max-width: 600px) {
.counter-container {
flex-direction: column;
}
.counter,
.like-container {
max-width: 100%;
}
}
footer>p {
position: absolute;
left: 40%;
bottom: 30px;
}
/* #version-button {
background-color: black;
border-radius: 25%;
border: 2px solid white;
color: white;
position: absolute;
top: 30%;
right: 10%;
padding: left;
} */
/* CSS */
#version-button {
position: absolute;
top: 30%;
right: 10%;
appearance: button;
background-color: #000;
background-image: none;
border: 1px solid #000;
border-radius: 4px;
box-shadow: #fff 4px 4px 0 0, #000 4px 4px 0 1px;
box-sizing: border-box;
color: #fff;
cursor: pointer;
display: inline-block;
font-family: ITCAvantGardeStd-Bk, Arial, sans-serif;
font-size: 14px;
font-weight: 400;
line-height: 20px;
margin: 0 5px 10px 0;
overflow: visible;
padding: 12px 40px;
text-align: center;
text-transform: none;
touch-action: manipulation;
user-select: none;
-webkit-user-select: none;
vertical-align: middle;
white-space: nowrap;
}
#version-button:focus {
text-decoration: none;
}
#version-button:hover {
text-decoration: none;
}
#version-button:active {
box-shadow: rgba(0, 0, 0, .125) 0 3px 5px inset;
outline: 0;
}
#version-button:not([disabled]):active {
box-shadow: #fff 2px 2px 0 0, #000 2px 2px 0 1px;
transform: translate(2px, 2px);
}
@media (min-width: 768px) {
.button-50 {
padding: 12px 50px;
}
}