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

Added and Styled Dark Mode Icon From Google Material Design API #2

Open
wants to merge 1 commit 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
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HackClub SSGI</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link id="theme" rel="stylesheet" href=" ">
</head>
Expand All @@ -22,7 +23,8 @@ <h1 class="main-head">Hack Club SSGI</h1>
<a href="https://www.instagram.com/hackclubssgi" class="link-icon"><i class="fab fa-2x fa-instagram"></i></a>
</div>
</div>
<div><button id="dark" class="dark">Dark</button></div>
<div><button id="dark" class="dark">Dark</button>
<i class = "material-icons" id="night-mode-icon">dark_mode</i></div>
</div>
</header><main>

Expand Down
8 changes: 8 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,14 @@ p {
border: 2px solid #5bc0de;
}

/* ------------------------------- NIGHT ICON --------------------------------- */
.material-icons{
font-size: 30px;
margin-top: 8px;
margin-left: -15px;
position: absolute;
}

/* ------------------------------- MEDIA QUERIES --------------------------------- */
@media screen and (max-width: 768px) {
section,
Expand Down