Skip to content

Commit

Permalink
Create Menu For Small Screens
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedKhamisMostafa committed Jan 24, 2024
1 parent ee09ad8 commit 3851650
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions css/master.css
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,17 @@ text-align: right;
cursor: pointer;
margin-top: 15px;
display: none;
position: relative;
}

.header-area .toggle-menu::before{
content: '';
border-width: 10px ;
border-style: solid;
border-color: transparent transparent #fff transparent;
position: absolute;
top: 22px;
left: 10px;
}

.header-area .toggle-menu:focus{
Expand All @@ -267,6 +278,7 @@ text-align: right;
margin-bottom: 4px;
}


.introdaction-text {
position: absolute;
top: 50%;
Expand Down Expand Up @@ -298,6 +310,25 @@ text-align: right;
.header-area .links{
display: none;
}
.header-area .links.open{
background-color: white;
display: block;
position: absolute;
top: 50px;
left: 0;
width: 100%;
border-radius: 4px;
padding: 10px;
text-align: left;
}
.header-area .links.open li:not(:last-of-type) {
display: block;
margin-bottom: 10px;
}
.header-area .links.open li a{
color: var(--main-color);
font-weight: bold;
}
.header-area .toggle-menu{
display: inline-block;
}
Expand Down

0 comments on commit 3851650

Please sign in to comment.