Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TO-DO-LIST #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
208 changes: 208 additions & 0 deletions Kumari Anjali/layout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}

body {
height: 100%;
background-color: rgb(124, 65, 85);
color: #333;
font-family: Lato, sans-serif;
}


/* image */

.img {
width: 500px;
height: 300px;
margin-left: 400px;
}


/* MAIN HEADING */

h1 {
font-size: 4rem;
font-weight: 50;
margin: 1rem 0 3rem;
text-align: center;
color: #fff;
font-family: 'Roboto Condensed';
}

.container {
display: block;
width: 600px;
margin: 100px auto 0;
}

ul {
margin: 0;
padding: 0;
}

li * {
float: left;
}

li,
h3 {
clear: both;
list-style: none;
color: black;
font-size: 30px;
}

input,
button {
outline: none;
}


/* INPUT SECTION */

#new-task {
padding: 0.5rem 1rem;
height: 50px;
outline: none;
border: none;
background-color: white;
width: 400px;
font-size: 1.15rem;
margin: 0.25rem;
border-radius: 25px;
}


/* EDIT SECTION */

.editbar {
padding: 0.5rem 1rem;
height: 50px;
outline: none;
border: none;
background-color: white;
width: 400px;
font-size: 1.15rem;
margin: 0.25rem;
border-radius: 25px;
}

button:hover {
opacity: 0.7;
color: white;
}


/* ADD BUTTON */

.addButton {
height: 50px;
width: 100px;
border-radius: 30%;
outline: none;
border: none;
color: white;
margin: 0.25px;
font-weight: bold;
background-color: coral;
cursor: pointer;
}


/*DELETE BUTTON*/

.delete {
height: 50px;
width: 80px;
border-radius: 30%;
font-size: 1.1rem;
font-family: sans-serif;
background: none;
outline: none;
color: red;
margin: 0 10;
background-color: rgb(20, 19, 19);
border: none;
cursor: pointer;
}


/*EDIT BUTTON */

.edit {
height: 50px;
width: 80px;
border-radius: 30%;
font-size: 1.1rem;
font-family: sans-serif;
background: none;
outline: none;
color: lime;
background-color: black;
border: none;
cursor: pointer;
}


/* New Task */

label[for='new-task'] {
display: block;
margin: 0 0 20px;
}


/* Task list */

li {
overflow: hidden;
padding: 20px 0;
border-bottom: 1px solid #eee;
color: white;
}

.checkbox {
margin: 0 10px;
position: relative;
top: 15px;
width: 20px;
border-radius: 100%;
}

li>label {
font-size: 18px;
line-height: 40px;
width: 237px;
padding: 0 0 0 11px;
}

li>input[type="text"] {
width: 226px;
}


/* Completed */

#completed-tasks label {
text-decoration: line-through;
color: white;
}


/* Edit Task */

ul li input[type=text] {
display: none;
}

ul li.editMode input[type=text] {
display: block;
}

ul li.editMode label {
display: none;
}
50 changes: 50 additions & 0 deletions Kumari Anjali/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<html>

<head>
<title>Todo List</title>
<!-- <link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'> -->
<link rel="stylesheet" href="layout.css" type="text/css" media="screen" charset="utf-8">
</head>

<body>
<div class="container-fluid p-0">
<div class="content ">
<div class="d-flex ">
<div class="d-flex flex-column">
<img class="img" src="https://listproducer.com/wp-content/uploads/2015/02/023-001-ListPrdcr-GraphicR2.png" alt="">
</div>
</div>
</div>
</div>
<h1><span class="heading">To do List</span></h1>
<div class="container">
<p>
<input id="new-task" type="text"><button class="addButton">Add</button>
</p>

<h3>Todo</h3>
<ul id="incomplete-tasks">
<li><input class="checkbox" type="checkbox">
<label>Read Novel</label><input class="editbar" type="text">
<button class="edit">Edit</button>
<button class="delete">Delete</button></li>
<li class="editMode">
<input class="checkbox" type="checkbox">
<label>Play Badminton</label>
<input class="editbar" type="text" value="Play Badminton">
<button class="edit">Edit</button>
<button class="delete">Delete</button></li>

</ul>

<h3>Completed</h3>
<ul id="completed-tasks">
<li><input class="checkbox" type="checkbox" checked><label>Homework</label><input type="text"><button class="edit">Edit</button><button class="delete">Delete</button></li>
</ul>
</div>

<script type="text/javascript" src="todo.js"></script>

</body>

</html>
Loading