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

整体布局和番茄钟整合

This commit is contained in:
xiao_io
2022-02-09 16:45:45 +08:00
parent d5054bee66
commit 0f09aebc39
17 changed files with 604 additions and 373 deletions

View File

@@ -17,23 +17,46 @@ body {
}
#popup header {
width: inherit;
height: 30px;
height: 40px;
background: linear-gradient(to right, #f6d365 0%, #fda085 51%, #f6d365 100%);
}
#popup header img {
height: inherit;
}
#popup .article ul li {
#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 #weather {
width: 100%;
height: 150px;
margin-top: 3px;
background-color: #fff;
}
#popup #article .left {
float: left;
width: 200px;
}
#popup #article .left ul li {
margin: 5px 0;
height: 45px;
background: linear-gradient(to right, #84fab0 0%, #8fd3f4 51%, #84fab0 100%);
}
#popup .article ul li span {
#popup #article .left ul li span {
font-size: 16px;
line-height: 45px;
margin-left: 5px;
}
#popup .article ul li #click-per .button {
#popup #article .left ul li #click-per .button {
position: relative;
float: right;
top: 6px;
@@ -42,7 +65,7 @@ body {
height: 32px;
border-radius: 100px;
}
#popup .article ul li #click-per .button .checkbox {
#popup #article .left ul li #click-per .button .checkbox {
position: relative;
width: 100%;
height: 100%;
@@ -50,24 +73,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 .left ul li #click-per .button .knobs,
#popup #article .left ul li #click-per .button .layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
#popup .article ul li #click-per .button .knobs {
#popup #article .left ul li #click-per .button .knobs {
z-index: 2;
}
#popup .article ul li #click-per .button .layer {
#popup #article .left ul li #click-per .button .layer {
border-radius: 100px;
width: 100%;
background-color: #ebf7fc;
z-index: 1;
}
#popup .article ul li #click-per .button .knobs::before {
#popup #article .left ul li #click-per .button .knobs::before {
content: "YES";
position: absolute;
top: 2px;
@@ -83,20 +106,20 @@ body {
background-color: #03a9f4;
border-radius: 50%;
}
#popup .article ul li #click-per .button .checkbox:checked + .knobs:before {
#popup #article .left ul li #click-per .button .checkbox:checked + .knobs:before {
content: "NO";
left: 3px;
background-color: #f44336;
}
#popup .article ul li #click-per .button .checkbox:checked ~ .layer {
#popup #article .left ul li #click-per .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 {
#popup #article .left ul li #click-per .button .knobs,
#popup #article .left ul li #click-per .button .knobs:before,
#popup #article .left ul li #click-per .button .layer {
transition: 0.3s ease all;
}
#popup .article ul li #mouse-style .button {
#popup #article .left ul li #mouse-style .button {
position: relative;
float: right;
top: 6px;
@@ -105,7 +128,7 @@ body {
height: 32px;
border-radius: 100px;
}
#popup .article ul li #mouse-style .button .checkbox {
#popup #article .left ul li #mouse-style .button .checkbox {
position: relative;
width: 100%;
height: 100%;
@@ -113,24 +136,24 @@ body {
cursor: pointer;
z-index: 3;
}
#popup .article ul li #mouse-style .button .knobs,
#popup .article ul li #mouse-style .button .layer {
#popup #article .left ul li #mouse-style .button .knobs,
#popup #article .left ul li #mouse-style .button .layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
#popup .article ul li #mouse-style .button .knobs {
#popup #article .left ul li #mouse-style .button .knobs {
z-index: 2;
}
#popup .article ul li #mouse-style .button .layer {
#popup #article .left 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 {
#popup #article .left ul li #mouse-style .button .knobs::before {
content: "YES";
position: absolute;
top: 2px;
@@ -146,25 +169,44 @@ body {
background-color: #03a9f4;
border-radius: 50%;
}
#popup .article ul li #mouse-style .button .checkbox:checked + .knobs:before {
#popup #article .left 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 {
#popup #article .left 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 .left ul li #mouse-style .button .knobs,
#popup #article .left ul li #mouse-style .button .knobs:before,
#popup #article .left ul li #mouse-style .button .layer {
transition: 0.3s ease all;
}
#popup #article .right {
float: right;
width: 100px;
}
#popup #article .right #clock {
width: 80px;
height: 80px;
margin: 30px auto;
background-color: #fff;
border-radius: 50%;
text-align: center;
line-height: 80px;
cursor: pointer;
font-size: 20px;
}
#popup #article .right #clock:active {
transform: translate(0px, 1px);
box-shadow: 0px 1px 0px 0px;
}
#popup #btnScreenshot {
position: absolute;
top: 1px;
right: 5px;
width: 64px;
height: 27px;
width: 81px;
height: 37px;
color: #fff;
font-weight: 500;
cursor: pointer;

View File

@@ -19,162 +19,205 @@ body {
width: 300px;
header{
width: inherit;
height: 30px;
height: 40px;
background: linear-gradient(to right, #f6d365 0%, #fda085 51%, #f6d365 100%);;
img {
height: inherit;
}
}
.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 {
#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{
#weather{
width: 100%;
height: 150px;
margin-top: 3px;
background-color: #fff;
}
.left{
float: left;
width: 200px;
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;
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;
}
}
}
}
#mouse-style{
.button {
position: relative;
float: right;
top: 6px;
right: 6px;
width: 66px;
height: 32px;
border-radius: 100px;
.checkbox {
#mouse-style{
.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;
}
}
}
}
}
}
.right{
float: right;
width: 100px;
#clock{
width: 80px;
height: 80px;
margin: 30px auto;
background-color: #fff;
border-radius: 50%;
text-align: center;
line-height: 80px;
cursor: pointer;
font-size: 20px;
}
#clock:active{
transform: translate(0px, 1px);
box-shadow: 0px 1px 0px 0px;
}
}
}
#btnScreenshot{
position: absolute;
top: 1px;
right: 5px;
width: 64px;
height: 27px;
width: 81px;
height: 37px;
color: #fff;
font-weight: 500;
cursor: pointer;
@@ -189,4 +232,6 @@ body {
transform: translate(0px, 1px);
box-shadow: 0px 1px 0px 0px;
}
}