Skip to content
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
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<body>
<div class="stickheader" id="myHeader">
<h2 class="title brand">PlayListAdda</h2>
<img id="darkmode" src="sun.png" alt="darkmode">
<input
id="search_bar"
type="text"
Expand Down Expand Up @@ -3034,5 +3035,18 @@ <h1>Naruto Shippuden Openings playlist</h1>
loop: true,
});
</script>

<script>
var darkmode = document.getElementById("darkmode");
darkmode.onclick = function () {
document.body.classList.toggle("dark-theme");
if (document.body.classList.contains("dark-theme")) {
darkmode.src = "moon.png";
} else {
darkmode.src = "sun.png";
}
}
</script>

</body>
</html>
Binary file added moon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 29 additions & 12 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,27 @@
margin: 0px;
padding: 0px;
}

:root{
--primary-color:white;
--secondary-color:black;
--third-color:blue;
}
.dark-theme{
--primary-color:black;
--secondary-color:white;
--third-color:white;
}
#darkmode{
height: 50px;
width: 65px;
float: left;
}

.stickheader {
padding: 10px 30px;
background: #151617;
color: #f1f1f1;
background: var(--secondary-color);
color: var(--primary-color);
position: fixed;
top: 0;
width: 100%;
Expand All @@ -30,8 +47,8 @@
}

body {
background-color: black;
color: white;
background-color: var(--secondary-color);
color: var(--primary-color);
font-family: arial;
}

Expand Down Expand Up @@ -66,7 +83,7 @@ body {
width: 20%;
margin-right: 1%;
padding: 10px;
border: none;
border: 2px solid var(--primary-color);
outline: none;
font-size: 1rem;
}
Expand All @@ -85,7 +102,7 @@ body {
.card {
width: 20.01%;
display: inline-block;
box-shadow: 2px 2px 10px silver;
box-shadow: 2px 2px 10px var(--primary-color);
border-radius: 5px;
margin: 2% auto;
}
Expand Down Expand Up @@ -138,26 +155,26 @@ h1 {

button {
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
color: white;
color: var(--primary-color);
margin-top: 40px;
margin-bottom: 10px;
background-color: gray;
border: 1px solid black;
border: 1px solid var(--secondary-color);
border-radius: 5px;
padding: 10px;
opacity: 0.7;
}

button:hover {
background-color: greenyellow;
color: black;
color: var(--secondary-color);
transition: 0.3s;
cursor: pointer;
opacity: 1;
}

.yt--player {
color: white;
color: var(--primary-color);
text-align: center;
font-family: serif;
font-weight: bolder;
Expand All @@ -181,7 +198,7 @@ button:hover {
flex: 0 0 auto;
display: flex;
flex-direction: column;
background-color: antiquewhite;
background-color: var(--primary-color);
max-width: 500px;
border-radius: 15px;
overflow: hidden;
Expand Down Expand Up @@ -234,7 +251,7 @@ html::-webkit-scrollbar-thumb:hover {
}

html::-webkit-scrollbar-track {
background-color: #151619;
background-color: var(--secondary-color);
box-shadow: inset 0 0 3px;
border-radius: 10px;
}
Expand Down
Binary file added sun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.