1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-10-08 08:45:14 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

Merge branch 'zxs' into develop

This commit is contained in:
2022-02-09 19:26:20 +08:00
21 changed files with 854 additions and 573 deletions

View File

@@ -9,8 +9,7 @@ a {
text-decoration: none;
}
body {
background: url(../image/weather/yun.webp);
/* background: linear-gradient(to right bottom, #fbc2eb 0%, #a6c1ee 51%, #fbc2eb 100%); */
background: linear-gradient(to right bottom, #fbc2eb 0%, #a6c1ee 51%, #fbc2eb 100%);
}
#popup {
min-height: 450px;
@@ -18,39 +17,116 @@ body {
}
#popup header {
width: inherit;
height: 30px;
height: 40px;
background: linear-gradient(to right, #f6d365 0%, #fda085 51%, #f6d365 100%);
}
#popup header img {
#popup header #logo {
height: inherit;
}
/* 天气的css */
#weather{
display: inline-block;
#popup header #weather {
float: right;
height: 100%;
line-height: 40px;
margin-right: 10px;
}
#weatherSite{
display: inline-block;
#popup header #weather #weatherSite {
font-size: 13px;
margin-right: 5px;
}
#weatherText{
display: inline-block
#popup header #weather #svg_w {
height: 15px;
vertical-align: text-bottom;
}
#weatherTemp{
display: inline-block
#popup header #weather #weatherText {
font-size: 13px;
}
/* 天气的css end */
#popup .article ul li {
margin: 5px 0;
#popup header #weather #weatherTemp {
font-size: 13px;
}
#popup #back {
display: none;
position: absolute;
top: 54px;
left: 10px;
width: 15px;
height: 15px;
background-color: transparent;
border-top: 2px solid #fff;
border-left: 2px solid #fff;
transform: rotate(-45deg);
cursor: pointer;
}
#popup #article #buttons {
position: relative;
margin-top: 12px;
}
#popup #article #buttons #btnScreenshot,
#popup #article #buttons #transform {
float: left;
top: 1px;
right: 5px;
width: 90px;
height: 40px;
color: #fff;
font-weight: 500;
cursor: pointer;
background-color: #71b0f3;
border: none;
border-radius: 4px;
}
#popup #article #buttons #btnScreenshot:hover {
background-color: #6FC6FF;
}
#popup #article #buttons #btnScreenshot:active {
transform: translate(0px, 1px);
box-shadow: 0px 1px 0px 0px;
}
#popup #article #buttons #transform {
margin-left: 10px;
background-color: #71b0f3;
}
#popup #article #buttons #transform:hover {
background-color: #6FC6FF;
}
#popup #article #buttons #transform:active {
transform: translate(0px, 1px);
box-shadow: 0px 1px 0px 0px;
}
#popup #article #buttons #clock {
float: left;
margin-left: 30px;
margin-right: 30px;
width: 42px;
height: 42px;
background-color: #F7BAEF;
border-radius: 50%;
text-align: center;
line-height: 40px;
cursor: pointer;
font-size: 12px;
}
#popup #article #buttons #clock:active {
transform: translate(0px, 1px);
box-shadow: 0px 1px 0px 0px;
}
#popup #article .setting {
float: left;
width: 100%;
margin-top: 12px;
}
#popup #article .setting ul li {
margin: 7px 5px;
height: 45px;
background: linear-gradient(to right, #84fab0 0%, #8fd3f4 51%, #84fab0 100%);
border-radius: 25px;
background: #ffffffc9;
padding: 0 1px 0 12px;
}
#popup .article ul li span {
#popup #article .setting ul li span {
font-size: 16px;
line-height: 45px;
margin-left: 5px;
}
#popup .article ul li #click-per .button {
#popup #article .setting ul li .setting-item .button {
position: relative;
float: right;
top: 6px;
@@ -59,7 +135,7 @@ body {
height: 32px;
border-radius: 100px;
}
#popup .article ul li #click-per .button .checkbox {
#popup #article .setting ul li .setting-item .button .checkbox {
position: relative;
width: 100%;
height: 100%;
@@ -67,24 +143,24 @@ body {
cursor: pointer;
z-index: 3;
}
#popup .article ul li #click-per .button .knobs,
#popup .article ul li #click-per .button .layer {
#popup #article .setting ul li .setting-item .button .knobs,
#popup #article .setting ul li .setting-item .button .layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
#popup .article ul li #click-per .button .knobs {
#popup #article .setting ul li .setting-item .button .knobs {
z-index: 2;
}
#popup .article ul li #click-per .button .layer {
#popup #article .setting ul li .setting-item .button .layer {
border-radius: 100px;
width: 100%;
background-color: #ebf7fc;
z-index: 1;
}
#popup .article ul li #click-per .button .knobs::before {
#popup #article .setting ul li .setting-item .button .knobs::before {
content: "YES";
position: absolute;
top: 2px;
@@ -100,79 +176,16 @@ body {
background-color: #03a9f4;
border-radius: 50%;
}
#popup .article ul li #click-per .button .checkbox:checked + .knobs:before {
#popup #article .setting ul li .setting-item .button .checkbox:checked + .knobs:before {
content: "NO";
left: 3px;
background-color: #f44336;
}
#popup .article ul li #click-per .button .checkbox:checked ~ .layer {
#popup #article .setting ul li .setting-item .button .checkbox:checked ~ .layer {
background-color: #fcebeb;
}
#popup .article ul li #click-per .button .knobs,
#popup .article ul li #click-per .button .knobs:before,
#popup .article ul li #click-per .button .layer {
transition: 0.3s ease all;
}
#popup .article ul li #mouse-style .button {
position: relative;
float: right;
top: 6px;
right: 6px;
width: 66px;
height: 32px;
border-radius: 100px;
}
#popup .article ul li #mouse-style .button .checkbox {
position: relative;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
z-index: 3;
}
#popup .article ul li #mouse-style .button .knobs,
#popup .article ul li #mouse-style .button .layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
#popup .article ul li #mouse-style .button .knobs {
z-index: 2;
}
#popup .article ul li #mouse-style .button .layer {
border-radius: 100px;
width: 100%;
background-color: #ebf7fc;
z-index: 1;
}
#popup .article ul li #mouse-style .button .knobs::before {
content: "YES";
position: absolute;
top: 2px;
left: 34px;
width: 20px;
height: 10px;
color: #fff;
font-size: 10px;
font-weight: bold;
text-align: center;
line-height: 1;
padding: 9px 4px;
background-color: #03a9f4;
border-radius: 50%;
}
#popup .article ul li #mouse-style .button .checkbox:checked + .knobs:before {
content: "NO";
left: 3px;
background-color: #f44336;
}
#popup .article ul li #mouse-style .button .checkbox:checked ~ .layer {
background-color: #fcebeb;
}
#popup .article ul li #mouse-style .button .knobs,
#popup .article ul li #mouse-style .button .knobs:before,
#popup .article ul li #mouse-style .button .layer {
#popup #article .setting ul li .setting-item .button .knobs,
#popup #article .setting ul li .setting-item .button .knobs:before,
#popup #article .setting ul li .setting-item .button .layer {
transition: 0.3s ease all;
}

View File

@@ -19,150 +19,179 @@ body {
width: 300px;
header{
width: inherit;
height: 30px;
height: 40px;
background: linear-gradient(to right, #f6d365 0%, #fda085 51%, #f6d365 100%);;
img {
#logo {
height: inherit;
}
#weather{
float: right;
height: 100%;
line-height: 40px;
margin-right: 10px;
#weatherSite{
font-size: 13px;
margin-right: 5px;
}
#svg_w{
height: 15px;
vertical-align: text-bottom;
}
#weatherText{
font-size: 13px;
}
#weatherTemp{
font-size: 13px;
}
}
}
.article{
ul{
li{
margin: 5px 0;
height: 45px;
background: linear-gradient(to right, #84fab0 0%, #8fd3f4 51%, #84fab0 100%);
span{
font-size: 16px;
line-height: 45px;
margin-left: 5px;
}
#click-per{
.button {
position: relative;
float: right;
top: 6px;
right: 6px;
width: 66px;
height: 32px;
border-radius: 100px;
.checkbox {
position: relative;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
z-index: 3;
}
.knobs,
.layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.knobs {
z-index: 2;
}
.layer{
border-radius: 100px;
width: 100%;
background-color: #ebf7fc;
z-index: 1;
}
.knobs::before {
content: "YES";
position: absolute;
top: 2px;
left: 34px;
width: 20px;
height: 10px;
color: #fff;
font-size: 10px;
font-weight: bold;
text-align: center;
line-height: 1;
padding: 9px 4px;
background-color: #03a9f4;
border-radius: 50%;
}
.checkbox:checked+.knobs:before {
content: "NO";
left: 3px;
background-color: #f44336;
}
.checkbox:checked~.layer {
background-color: #fcebeb;
}
.knobs,
.knobs:before,
.layer{
transition: 0.3s ease all;
}
#back {
display: none;
position: absolute;
top: 54px;
left: 10px;
width: 15px;
height: 15px;
background-color: transparent;
border-top: 2px solid #fff;
border-left: 2px solid #fff;
transform: rotate(-45deg);
cursor: pointer;
}
#article{
#buttons{
position: relative;
margin-top: 12px;
#btnScreenshot,
#transform{
float: left;
top: 1px;
right: 5px;
width: 90px;
height: 40px;
color: #fff;
font-weight: 500;
cursor: pointer;
background-color: #71b0f3;
border: none;
border-radius: 4px;
}
#btnScreenshot:hover{
background-color: #6FC6FF;
}
#btnScreenshot:active{
transform: translate(0px, 1px);
box-shadow: 0px 1px 0px 0px;
}
#transform{
margin-left: 10px;
background-color: #71b0f3;
}
#transform:hover{
background-color: #6FC6FF;
}
#transform:active{
transform: translate(0px, 1px);
box-shadow: 0px 1px 0px 0px;
}
#clock{
float: left;
margin-left: 30px;
margin-right: 30px;
width: 42px;
height: 42px;
background-color: #F7BAEF;
border-radius: 50%;
text-align: center;
line-height: 40px;
cursor: pointer;
font-size: 12px;
}
#clock:active{
transform: translate(0px, 1px);
box-shadow: 0px 1px 0px 0px;
}
}
.setting{
float: left;
width: 100%;
margin-top: 12px;
// opacity: 0.5;
ul{
li{
margin: 7px 5px;
height: 45px;
border-radius: 25px;
background: #ffffffc9;
padding: 0 1px 0 12px;
span{
font-size: 16px;
line-height: 45px;
margin-left: 5px;
}
}
#mouse-style{
.button {
position: relative;
float: right;
top: 6px;
right: 6px;
width: 66px;
height: 32px;
border-radius: 100px;
.checkbox {
.setting-item {
.button {
position: relative;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
z-index: 3;
}
.knobs,
.layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.knobs {
z-index: 2;
}
.layer{
float: right;
top: 6px;
right: 6px;
width: 66px;
height: 32px;
border-radius: 100px;
width: 100%;
background-color: #ebf7fc;
z-index: 1;
}
.knobs::before {
content: "YES";
position: absolute;
top: 2px;
left: 34px;
width: 20px;
height: 10px;
color: #fff;
font-size: 10px;
font-weight: bold;
text-align: center;
line-height: 1;
padding: 9px 4px;
background-color: #03a9f4;
border-radius: 50%;
}
.checkbox:checked+.knobs:before {
content: "NO";
left: 3px;
background-color: #f44336;
}
.checkbox:checked~.layer {
background-color: #fcebeb;
}
.knobs,
.knobs:before,
.layer{
transition: 0.3s ease all;
.checkbox {
position: relative;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
z-index: 3;
}
.knobs,
.layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.knobs {
z-index: 2;
}
.layer{
border-radius: 100px;
width: 100%;
background-color: #ebf7fc;
z-index: 1;
}
.knobs::before {
content: "YES";
position: absolute;
top: 2px;
left: 34px;
width: 20px;
height: 10px;
color: #fff;
font-size: 10px;
font-weight: bold;
text-align: center;
line-height: 1;
padding: 9px 4px;
background-color: #03a9f4;
border-radius: 50%;
}
.checkbox:checked+.knobs:before {
content: "NO";
left: 3px;
background-color: #f44336;
}
.checkbox:checked~.layer {
background-color: #fcebeb;
}
.knobs,
.knobs:before,
.layer{
transition: 0.3s ease all;
}
}
}
}