delete some unused files
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
|
||||||
if (message.action === "openTab") {
|
|
||||||
chrome.tabs.create({url: message.url});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@@ -13,12 +13,8 @@
|
|||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"scripting",
|
"scripting",
|
||||||
"activeTab",
|
"activeTab"
|
||||||
"tabs"
|
|
||||||
],
|
],
|
||||||
"background": {
|
|
||||||
"service_worker": "background.js"
|
|
||||||
},
|
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"matches": [
|
"matches": [
|
||||||
|
|||||||
46
popup.css
46
popup.css
@@ -5,31 +5,31 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-bottom: 1px solid #ccc;
|
border-bottom: 1px solid #ccc;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header h1 {
|
.header h1 {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons-row {
|
.buttons-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -41,38 +41,38 @@ body {
|
|||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
transition-duration: 0.4s;
|
transition-duration: 0.4s;
|
||||||
margin: 0; /* 去掉左右外边距 */
|
margin: 0; /* 去掉左右外边距 */
|
||||||
}
|
}
|
||||||
|
|
||||||
button:hover {
|
button:hover {
|
||||||
background-color: #16A085;
|
background-color: #16A085;
|
||||||
border-color: #14967F;
|
border-color: #14967F;
|
||||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
button#bulk-delete, button#toggle-checkboxes {
|
button#bulk-delete, button#toggle-checkboxes {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
background-color: #e74c3c;
|
background-color: #e74c3c;
|
||||||
border-color: #c0392b;
|
border-color: #c0392b;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: calc(200px + 40px); /* bulk-delete 宽度等于 body 的宽度减去左右内边距再加上两者之间的距离 */
|
width: calc(200px + 40px); /* bulk-delete 宽度等于 body 的宽度减去左右内边距再加上两者之间的距离 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons-wrapper {
|
.buttons-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons-row button {
|
.buttons-row button {
|
||||||
width: 120px; /* 将 remove-checkboxes 和 add-checkboxes 按钮的宽度增加到 120px */
|
width: 120px; /* 将 remove-checkboxes 和 add-checkboxes 按钮的宽度增加到 120px */
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons-row button:first-child {
|
.buttons-row button:first-child {
|
||||||
margin-right: 10px; /* 添加一个右外边距来增加两个按钮之间的距离 */
|
margin-right: 10px; /* 添加一个右外边距来增加两个按钮之间的距离 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -82,12 +82,6 @@ body {
|
|||||||
display: flex; /* 添加这一行使得.footer下的直接子元素并排排列 */
|
display: flex; /* 添加这一行使得.footer下的直接子元素并排排列 */
|
||||||
justify-content: center; /* 使得子元素在中心对齐 */
|
justify-content: center; /* 使得子元素在中心对齐 */
|
||||||
gap: 10px; /* 如果需要,可以添加这一行以在子元素之间创建一些空间 */
|
gap: 10px; /* 如果需要,可以添加这一行以在子元素之间创建一些空间 */
|
||||||
}
|
|
||||||
|
|
||||||
.footer button {
|
|
||||||
font-size: inherit; /* 这行代码使按钮的字体大小继承自其父元素,即.footer */
|
|
||||||
background-color: #383E46;
|
|
||||||
border-color: #78838F;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
button#remove-checkboxes {
|
button#remove-checkboxes {
|
||||||
|
|||||||
Reference in New Issue
Block a user