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

Light mood slider was over flowing its container, used padding to fix it #575

Open
wants to merge 2 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
1 change: 1 addition & 0 deletions TO-Do list/TODO.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ h6 {

#page-title {
font-size: 6rem;
font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.container {
Expand Down
7 changes: 3 additions & 4 deletions TO-Do list/TODO.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@

<body>
<section id="myDIV" class="header p-2">
<h2 id="page-title">To-Do List</h2>
<h2 id="page-title">To-Do </h2>
<div class="adding">
<input type="text" id="myInput" placeholder="Enter Task" >
<input type="text" id="myInput" placeholder="Enter Task">
<span onclick="newElement()" class="btn btn-pink">Add</span>
</div>
</section>
<div class="container">


<div class="container">
<ul id="myUL" class="m-1">
<li>Hit the gym</li>
<li class="checked">Pay bills</li>
Expand Down
2 changes: 1 addition & 1 deletion modified_homepage_css.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ nav {
font-size: 10px;
margin-right: 21px;
}
.theme-toggle {
.theme-toggle{
position: relative;
display: inline-block;
width: 44px !important;
Expand Down
1 change: 1 addition & 0 deletions resources/style/themeToggle.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ html[theme='dark'] {
background-color: #CCCCCC;
transition: 0.4s;
cursor: pointer;
padding: 0 1.8rem;
}

.slider::before {
Expand Down
91 changes: 75 additions & 16 deletions todo_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,47 +31,98 @@
}

h1 {
margin-top: 10rem;
margin-top: 3rem;
margin-bottom: 30px;
font-size: 5em;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;

}

.navbar{
background-color: #009999;
position: fixed;
}

.first-div{
display: flex;
flex-direction: column;
background-color: rgb(112, 107, 107, 0.2);
position:absolute;
top:50%;
left:50%;
transform: translate(-50%, -50%);
padding:3vw;
border-radius:10px ;
}
li {
font-size: 1.5rem;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
list-style: none;
line-height: 0.6rem;
}

.newBtn {
margin: 20px;
background-color: #e15563;
padding:10px;
font-size: medium;
max-width: 10rem;
background-color: rgb(194, 44, 44);
border: none;
}

#btn-submit{
transition: 0.7s;
box-shadow: 2px 2px 6px rgb(0, 0, 0,0.7);
}


div button{
margin-bottom: 9px;
border-radius: 10px;

}
#product{
font-size: 1.5rem;
margin: 10px;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
border-radius: 50px;
padding:0.7rem;
border: 2px solid #007bff;;
}

.done {
text-decoration: line-through;
}

#list{
display:grid;
grid-template-columns: 1fr 1fr;
gap:1.5rem;
}
#reload {
padding: 10px;
padding:10px 25px;
font-size: medium;
max-width: 15rem;
background-color: rgb(0, 0, 0);
color: white;
border: none;
align-self: center;
transition: 0.7s;
box-shadow: 2px 2px 6px rgb(0, 0, 0,0.7);
}
div button{
transition: 0.5s;
}
div button:hover{
color: white;
background-color: black;
border-radius: 10px;
}

.under-line{
background-color:black;
width:6rem;
margin-top:0;
box-shadow: 2px 2px 10px rgb(0, 0, 0,0.7);
}
.space{
padding :2rem;
}

</style>
</head>
Expand Down Expand Up @@ -123,12 +174,16 @@
<div class="first-div">
<h1>To Do List</h1>
<form action="/nowhere">
<input type="text" id="product" name="product" placeholder="Enter Item">
<button class="btn btn-primary" id="btn-submit">Submit</button>
<input type="text" id="product" name="product" placeholder="To Do...">
<button class="btn btn-primary" id="btn-submit">Add</button>
</form>

<br><br>
<h3>List :</h3>

<h3>List </h3>

<hr class="under-line">
<div class="space"></div>
<ul id="list"></ul>
<button class="btn btn-dark"id="reload" onclick="location.reload()">Refresh</button>
</div>
Expand All @@ -152,21 +207,25 @@ <h3>List :</h3>
form.addEventListener("submit", (event) => {
let li = document.createElement("li");
let btn = document.createElement("button");
let span = document.createElement("span");


btn.innerText = "Delete Item";
btn.classList.add("newBtn");

li.append(product.value, btn);

li.append(product.value);
li.addEventListener('click', () => {
li.classList.toggle('done');
});
span.append(li);


let ul = document.querySelector("#list");
ul.append(span);
ul.append(li);
ul.append(btn);

btn.addEventListener("click", () => {
span.remove();
li.remove();
btn.remove();
})

product.value = "";
Expand Down