*{
margin: 0;
padding: 0;
list-style: none;
color: inherit;
text-decoration: none;
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,900&display=swap');
html,body{font-family: 'Poppins', sans-serif;}
h2,h3,h4,h5,h6{font-weight: 400;}
button,input{border: 0; background-color: rgba(0,0,0,0);}
main{
width: 100%;
height: 100vh;
position: fixed;
top: 0;
left: 0;
background-image: url("/Widget/image/pic1.jpg");
background-repeat: no-repeat;
background-size: cover;
}
main:before{
opacity: 0.8;
content: ''; display: block; width: 100%; height: 100%;
background: linear-gradient(45deg, rgba(255,175,189,.7), rgba(100,216,243,.7), rgba(234,236,198,.7), rgba(245,146,176,.7), rgba(52,219,216,.7)) 0 0 / 1000% no-repeat;
animation: gradientAnimation 40s ease infinite;
position: absolute;
top: 0;
left: 0;;
}
@keyframes gradientAnimation {
0% { background-position: 0% 30%, 0 0;}
50% { background-position: 100% 70%, 0 0;}
100% { background-position: 0% 30%, 0 0;}
}
section.userInfo{
text-align: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
section.userInfo h2{font-size: 120px; color: #fff;}
section.userInfo input{border-bottom: 2px solid #fff; transition: all 0.8s; text-align: center; width: 500px; height: 80px; color: #fff; font-size: 50px;}
section.userInfo input::placeholder{color: #fff; text-align: center; font-size: 50px;}
section.userInfo input:focus{background-color: rgba(255,255,255,0.3); border-radius: 10px; width: 600px;}
section.welcome{
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
font-size: 38px;
width: 100%;
text-align: center;
color: #fff;
display: none;
}
section.welcome *{vertical-align: middle;}
section.welcome #userEdit{
display: inline-block;
display: none;
}
section.welcome #userEdit input{
font-size: 38px;
height: 45px;
color: #fff;
border-bottom: 2px solid #fff;
width: 200px;
outline: none;
}
section.welcome .clock {font-size: 100px; line-height: 0.75; font-weight: 200;}
section.welcome span.edit button{cursor: pointer;font-size: 18px;opacity: 0.4;transition: all 0.2s;}
section.welcome span.edit button:hover{opacity: 1;}
section.todo{
opacity: 0.8;
transition: all 0.4s;
width: 200px;
height: 240px;
background-color: #fff;
position: absolute;
right: 0;
bottom: 20px;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
overflow: hidden;
box-shadow: -5px 5px 5px rgba(0,0,0,0.25);
}
section.todo:hover{opacity: 1;}
section.todo .list{
max-height: 200px;
width: 100%;
position: absolute;
bottom: 40px;
left: 0;
overflow-y: scroll;
}
section.todo .list::-webkit-scrollbar-track{
box-shadow: 0,0,10px rgba(0,0,0,0.5) inset;
background-color: #f5f5f5;
border-radius: 5px;
}
section.todo .list::-webkit-scrollbar{
width: 3px;
}
section.todo .list::-webkit-scrollbar-thumb{
border-radius: 5px;
}
section.todo .list li{
font-size: 0;
padding: 5px 10px;
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid #f5f5f5;
box-sizing: border-box;
}
section.todo .list li .keyword{
font-size: 12px;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 0 5px;
box-sizing: border-box;
}
section.todo .list li .del{
width: 14px;
height: 14px;
position: relative;
opacity: 0.4;
}
section.todo .list li input[type="checkbox"]:checked ~ .keyword{
text-decoration: line-through;
}
section.todo .list li .del:hover{opacity: 1; cursor: pointer;}
section.todo .list li .del span{position: absolute; top: 50%; left: 50%; display: block; width: 10px; height: 2px; background-color: #ccc;}
section.todo .list li .del span:first-child{transform: translate(-50%, -50%) rotate(45deg);}
section.todo .list li .del span:last-child{transform: translate(-50%, -50%) rotate(-45deg);}
section.todo form{
background-color: #fff;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 40px;
padding: 10px 8px;
box-sizing: border-box;
box-shadow: 0 -5px 5px rgba(0,0,0,0.05);
z-index: 9999;
}
section.todo form input{
height: 20px;
display: block;
background-color: rgba(0,0,0,0);
border: 1px solid #ccc;
box-sizing: border-box;
width: 100%;
}
section.weather{
position: absolute;
top: 50px;
right: 50px;
color: #fff;
font-size: 28px;
/* display: none; */
}
section.weather span.ico {
display: inline-block;
width: 50px;
height: 50px;
/* background-color: #fff; */
background-size: auto 100%;
background-position: center center;
background-repeat: no-repeat;
}
section.weather span.disc {
display: inline-block;
width: 120px;
height: 70px;
font-size: 11px;
}