-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
126 lines (126 loc) · 2.79 KB
/
popup.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>X to Twitter</title>
<style>
*:focus {
outline: 0 !important;
}
body {
background-color: rgb(26, 36, 50);
border-radius: 10px;
}
.container {
height: 160px;
width: 300px;
}
.wrapper {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 10px;
}
.title {
color: white;
text-align: center;
}
.toggle-button-text {
color: white;
font-size: 16px;
font-weight: 500;
}
.toggle-button {
border: none !important;
outline: none !important;
box-shadow: none !important;
cursor: pointer;
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
background-color: transparent;
transition: background 0.5s, color 0.5s, transform 0.3s ease-out;
padding: 0px;
z-index: 20;
transform-origin: 36px 36px;
transform: rotate(180deg);
}
.toggle-button:focus,
.toggle-button:active {
outline: none !important;
border: none !important;
box-shadow: none !important;
}
.toggle-button:hover {
transform: rotate(180deg) scale(1.1);
}
.toggle-button.active {
transform: rotate(0deg);
}
.toggle-button.active:hover {
transform: rotate(0deg) scale(1.1);
}
.icon-container {
position: relative;
width: 70px;
height: 70px;
display: flex;
justify-content: center;
align-items: center;
transition: transform 0.5s ease;
}
.icon-container::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 3px solid rgb(85, 255, 138);
border-radius: 50%;
opacity: 0;
transition: opacity 0.5s ease;
box-sizing: border-box;
}
.icon-container.enabled::after {
opacity: 1;
}
.icon-container svg {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="container">
<h1 class="title">X to Twitter</h1>
<div class="wrapper">
<p class="toggle-button-text" id="toggleButtonText">
Replacement Enabled
</p>
<button id="toggleButton" class="toggle-button">
<div class="icon-container">
<svg
width="70"
height="70"
viewBox="0 0 72 72"
aria-hidden="true"
tabindex="-1"
fill="white"
>
<path
d="M31.5 18.57a18 18 0 109-.01v3.13a15 15 0 11-9 0v-3.12zm3-5.07v22a1.5 1.5 0 003 0v-22a1.5 1.5 0 00-3 0zM36 66a30 30 0 110-60 30 30 0 010 60z"
fill="#FFF"
transform="translate(0, 0)"
></path>
</svg>
</div>
</button>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>