mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-10-07 08:25:15 +08:00
修复番茄钟背景图填充不完全问题
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500&display=swap');
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap');
|
||||||
|
html {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
body {
|
body {
|
||||||
/* background-color: rgb(51, 11, 116); */
|
/* background-color: rgb(51, 11, 116); */
|
||||||
background: url(../../images/pomo_green.jpeg) no-repeat;
|
background: url(../../images/pomo_green.jpeg) no-repeat;
|
||||||
@@ -242,4 +245,4 @@ footer .settings {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
right: 5px;
|
right: 5px;
|
||||||
}
|
}
|
||||||
|
@@ -230,9 +230,9 @@ function change_r() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function change(n) {
|
function change(n) {
|
||||||
document.body.style = "background: url(" + photos[n] + ") no-repeat; background-size: cover;";
|
document.body.style = "background: url(" + photos[n] + ") no-repeat; background-size: cover; background-position: center;";
|
||||||
}
|
}
|
||||||
|
|
||||||
let t = setInterval(function() {
|
let t = setInterval(function() {
|
||||||
change_r();
|
change_r();
|
||||||
}, 40000);
|
}, 40000);
|
||||||
|
Reference in New Issue
Block a user