Skip to content

Commit

Permalink
"Unneccessary Margin removed, Padding converted into %, meadia query …
Browse files Browse the repository at this point in the history
…among Svgs added"
  • Loading branch information
CH-RAFAY committed Jun 14, 2024
1 parent f42a9d3 commit 6326a2b
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
1 change: 1 addition & 0 deletions SVGs/close_24dp_FILL0_wght400_GRAD0_opsz24.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions SVGs/menu_24dp_FILL0_wght400_GRAD0_opsz24.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 24 additions & 5 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ body{

#logo{
float:left;
margin-left: 140px;
margin-left: 3%;
}


ul {
list-style-type: none;
margin-right: 200px;
padding: 0;
padding-right: 5%; /*Padding in %*/
overflow: hidden;
}
li {
Expand All @@ -38,14 +37,34 @@ li a {
text-decoration: none;
}

nav svg {
fill: var(white);
}
#sidebar-active
{
display: none;
}


#navi a:hover {
color: #19e68c;
}

.open-side-button, .close-side-button
{
display: none;
padding: 0 20px;
}


@media (max-width: 1920px) {
nav;
@media (max-width: 1900px) {

nav
{
background: #000;
height: 80px;
width: 100%;
}

}

Expand Down
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@
</a>

<nav>
<ul>
<input type="checkbox" id="sidebar-active">
<label for="sidebar-active" class="open-side-button">
<svg xmlns="http://www.w3.org/2000/svg" height="32px" viewBox="0 -960 960 960" width="32px" fill="#5f6368"><path d="M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"/></svg>
</label>
<div class="links-container">
<label for="sidebar-active" class="close-side-button">
<svg xmlns="http://www.w3.org/2000/svg" height="32px" viewBox="0 -960 960 960" width="32px" fill="#5f6368"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>
</label>
</div>

<ul>
<li><a href="forum.html">Log in</a></li>
<li><a href="forum.html">Sign up</a></li>
<li><a href="">|</a></li>
Expand Down

0 comments on commit 6326a2b

Please sign in to comment.