todolistPhp / style.css
style.css
Raw
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box
}
body{
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #cfd5db;

}
a{
    text-decoration: none;
    color: inherit;
}
/* ----Style for the header----*/
header{
    height:80px;
    background-color:#1d2d44;
    color: #f0ebd8;
}
header h1{
    text-align: center;
    padding-top: 20px;
    font-family:'Times New Roman', Times, serif;
}
header a:hover{
    text-decoration: underline;
}

/* ----Style for the container of the page----*/
.container{
    margin-top: 50px;
    width: 90%;
    font-size: 1.3em;
    margin-bottom: 30px;
    margin: auto;
    display: block;
    background-color: #f8f9fa;
    padding-left: 30px;

}

.content{
    min-height: 70vh;
}

.container h2{
    padding-top: 50px;
    margin-bottom: 30px;
    font-family:'Times New Roman', Times, serif;
    text-align: center;
}

form input[type=text]{
    margin-top: 10px;
    height: 40px;
    width: 50%;
    border: 1px solid #1d2d44;
    margin-right: 20px;
    
}

.addBtn{
    padding: 11px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    background-color: #1d2d44;
    color: #f0ebd8;
    width: 140px;
    font-size: 0.8em;
    margin-top: 6px;
}
form input[type=date]{
    height: 40px;
    width: 50%;
    border: 1px solid #1d2d44;
}

.todolist{
    margin-top: 30px;
    width: 90%;
    list-style-type: none;
    margin-bottom: 30px;
}

.todolist li{
    margin-bottom: 10px;
    padding: 8px;
    width: 100%;
}
.deleteAll{
    padding: 11px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    background-color: #d11a2a;
    color:#f0ebd8;
    width: 140px;
    font-size: 0.8em;
    margin-bottom: 30px;
    margin-top: 30px;

}
/* ----Style for the the footer ----*/
footer{
    height:100px;
    width:100%;
    color: #1d2d44;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-decoration: underline;
}

@media screen and (max-width: 480px){
    h1{
        font-size: 1.4em;
    }

    .container h2{
        font-size: 1.1em;
    }
   
}
@media screen and (max-width: 340px){
 
    h1{
        font-size: 1.2em;
    }

    .container h2{
        font-size: 1em;
    }
   
}